where is error code from remote server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
surfetish
Forum Newbie
Posts: 1
Joined: Mon Aug 27, 2007 11:25 am

where is error code from remote server

Post by surfetish »

Not sure where to post this, so here goes.
I have a credit card page (using amember software) that is connecting to the payment gateway but not making a transaction.
"Please provide the error code returned by our Payment Gateway." the gateway techs told me.
My server is connecting, trying to make the payment, and then they are sending an error code which generates a "card declined system failure" error..
soooo.. I need to know how to get the code the gateway server is sending back.

Any help appreciated!
Thanks!
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: where is error code from remote server

Post by josh »

How are you connecting to the remote server? What protocol? For instance if this was a SOAP request I'd print_r() the response object to see the raw structured response, you could also log this somewhere if its a production server.
Post Reply