PDA

View Full Version : Merchant Account - First Data Global Gateway Web Service API



TheSocialRegressive
07-05-2010, 12:16 PM
Howdy, folks.

I have built a custom shopping cart in PHP on HostMonster. I have purchased my dedicated IP and SSL. The shopping cart seems to work just fine in my own test mode.

Now I am trying to integrate a merchant account with First Data. Either their documentation is really lousy, or there is something I should have learned before this point that would help it all make sense. I am just trying to get my card verification action page working. I am attempting to connect it to a test account that I set up with them. It only seems to require about 20 lines of code or so. I created the XML for transmission, set up most of the cUrl options they requested, and nothing happens. No error messages. Nothing.

Q1: Has anyone here ever tried to integrate the First Data Global Gateway with HostMonster?

Q2: Two of the cUrl settings are supposed to be (a) a link to the SSL's .key file, and (b) the SSL Key's password (starts with ckp_). I have no idea how to find the .key file or the password. Any ideas?

Thanks!

Guildan
04-11-2011, 02:57 PM
http://www.robinsontechnical.com/PHP_FORM_MIN.txt

This link shows two things are needed to connect to the test environment--

//$wsdl = "https://ws.merchanttest.firstdataglobalgateway.com/fdggwsapi/services/order.wsdl"; // CTE WSDL - Note lines 74 and 75 regarding CTE

$userid = "WS000000_.1"; // "Username" from WS000000._.1.auth.txt
$password = ""; // "Password" from WS000000._.1.auth.txt
$pemlocation = realpath("WS000000._.1.pem"); // Location of "WS000000._.1.pem"
$kslocation = realpath("WS000000._.1.key"); // Location of "WS000000._.1.key"
$keyname = "ckp_0000000000"; // From WS000000._.1.key.pw.txt



And then in addition--

curl_setopt($ch, CURLOPT_SSLKEY, $kslocation); // For CTE, comment out this line
curl_setopt($ch, CURLOPT_SSLKEYPASSWD, $keyname); // For CTE, comment out this line


Hope that helps.