ststesting
asked on
read a "cgi post back to my server"
I am setting up a payment confirmation/fail page and asked the processing vendor for some sample code for retrieving the transaction details and this is the response I got.
"Here is an example of a CGI response post back to the merchant.
{status=DUPLICATE&failReas on=The+ord er+already +exists+in +the+datab ase.&OID=1 339768581& OID=133976 8581&ttime =06%2f15%2 f12+02%3a3 9%3a47+PM& merchant=H ardin+Solu tions&merc hantphone= 123-456-29 003&mercha ntemail=Je ff.koenig% commerceba nk.com.com &txnorg=ec i&subtotal =9.00&char getotal=9. 00&cardnum ber=(Visa) ++....1111 &expmonth= 01&expyear =2013&bnam e=Mike+Sni de&baddr1= 1245+S.+To dd+St.&Cit y%2c+State %2c+Zip%3a =Wichita%2 c+KS%2c+67 207&bcount ry=US&user id=A33AE3E 33079&bcit y=Wichita& suppressTi tle=true&_ _VIEWSTATE =%2fwEPDwU JLTc0ODU2O TMzZGQ%3d& cctype=V&i nvoice_num ber=133976 8581&bzip= 67207&bsta te=KS}
"
I really can't figure out how to access that in php, but even in anything would steer me in the right direction. Thanks in advance for any help/tips....
"Here is an example of a CGI response post back to the merchant.
{status=DUPLICATE&failReas
"
I really can't figure out how to access that in php, but even in anything would steer me in the right direction. Thanks in advance for any help/tips....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm not sure, that depends on your merchant / vendor. Usually it comes back as a response from the charge submission.
e.g.
$response = try_to_charge($creditcardn umber,$oth er_details ,$apikey);
e.g.
$response = try_to_charge($creditcardn
ASKER
My charge submission is a form that redirects to their site, then the user is redirected to the confirmation page....
Usually in that model, the user is redirected back to the final page with the variables in the URL. If you don't see the variables in the URL, you'll have to ask the vendor how you can get them with the redirect approach.
ASKER
Taking it back to the support guy (who is terrible, or I wouldn't be on here...).
Thanks for the quick, quality response. Have a good one!
Thanks for the quick, quality response. Have a good one!
ASKER
What would I set your first line $response = to in the actual code?