Jump to content

First Data Module Issue upon "Validate Order" button press


Recommended Posts

I have an account with First Data, installed and configured the First Data Module, and entered my credit card info at checkout.

 

When I hit the "validate order" button, my credit card info is cleared, and nothing is submitted to the payment gateway.  The following is appended to the url:  ?step=3&cgv=1&firstdataError=#firstdata-anchor

 

I called First Data's support line to make sure I was doing everything correctly.  They went so far as to successfully submit a test transaction with all my credentials.

 

I found this topic of the same issue, but it's zero help. http://www.prestashop.com/forums/topic/265447-problems-whit-firsdata-gateway-module/

 

Just like that topic, First Data claimed it's a PrestaShop problem.  

 

I understand that thousands are using this module with no issue, so is there a scenario where a unrelated parameter is interfering?

Link to comment
Share on other sites

A little update....

 

The first oddity I've found is in the First Data module firstdata.php when the _firstDataCall() function tries to return curl_exec($ch).

 

In this case, curl_exec($ch) neither returns a FALSE nor a valid result (with CURLOPT_RETURNTRANSFER set to true, a successful call will return the result).

 

When I print_r(curl_getInfo($ch)) I notice that the content_type is null.  The php documentation says null "indicates server did not send valid Content-Type: header" which is a constant set to 'application/json; charset=UTF-8'

 

I have also verified that $ch contains the correct data before curl_exec($ch) is called.

 

Here is the full print_r(curl_getInfo($ch)):

 

Array (

=> https://api.globalgatewaye4.firstdata.com/transaction/v12

[content_type] =>

[http_code] => 0

[header_size] => 0

[request_size] => 0

[filetime] => -1

[ssl_verify_result] => 0

[redirect_count] => 0

[total_time] => 0.431957 

[namelookup_time] => 0.35008 

[connect_time] => 0.432027

[pretransfer_time] => 0

[size_upload] => 0

[size_download] => 0

[speed_download] => 0

[speed_upload] => 0

[download_content_length] => -1

[upload_content_length] => -1

[starttransfer_time] => 0

[redirect_time] => 0

)

 

Thoughts?

Link to comment
Share on other sites

Turned on verbose logging during curl.  The bold line might be my issue.  

 

First Data claimed that their API Team was working with someone on the PrestaShop side to resolve this.  Any takers?

 

* About to connect() to api.globalgatewaye4.firstdata.com port 443 (#0)

*   Trying 76.74.200.145...

* connected

* Connected to api.globalgatewaye4.firstdata.com (76.74.200.145) port 443 (#0)

* successfully set certificate verify locations:

*   CAfile: /etc/pki/tls/certs/ca-bundle.crt

  CApath: none

* error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group

* Closing connection #0
Link to comment
Share on other sites

×
×
  • Create New...