Hi, I am using the CURL command to post credit card info to a gateway .exe
program on a secure server. The code below works fine to produce the comma
delimitted credit card authorization information to the browser page
(for example: "declined","Invalid form data
posted","8/29/2002","18:07","0","0","","","","" ), but I need to capture the
credit card gateway authorization string so that I can take action within my
PHP code, versus the user receiving the auth code returned on the browser

Here is the code I am using:

// A very simple PHP example that sends a HTTP POST to a remote site

$ch = curl_init();

curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,

curl_exec ($ch);
curl_close ($ch);


It produces:
"declined","Invalid form data
posted","8/29/2002","18:07","0","0","","","",""  at the browser... It is a
valid decline on the credit card, which I am no concerned with, but I don't
have this return to the user, want to parse the string and produce my own
php output based on "accepted" or "declined" status.

Any ideas?


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to