How to urlencode API notification URL
Posted: August 18th, 2011, 8:46 am
Hi
I have an s2Member Pro Account. I have successfully setup Authorize.net payment integration.
Now I am trying to do API Notification. I wrote a simple PHP script which gets the following fields - fullname, address, email id, amount, transaction id. The script basically GETs these values and writes them into a text file on the server.
However when I make a test payment, the payment passes through but when I open the text file I do not see the entries are filled in. I suspect the reason is address has spaces and "#" symbols in it and some kind of urlencode needs to be done.
Does s2Member automatically does the urlencode? If not where should I do the url encode so that the URL sent to the server is in the correct format.
Your prompt reply is appreciated. Thank you.
Regards
Arpana
I have an s2Member Pro Account. I have successfully setup Authorize.net payment integration.
Now I am trying to do API Notification. I wrote a simple PHP script which gets the following fields - fullname, address, email id, amount, transaction id. The script basically GETs these values and writes them into a text file on the server.
However when I make a test payment, the payment passes through but when I open the text file I do not see the entries are filled in. I suspect the reason is address has spaces and "#" symbols in it and some kind of urlencode needs to be done.
Does s2Member automatically does the urlencode? If not where should I do the url encode so that the URL sent to the server is in the correct format.
Your prompt reply is appreciated. Thank you.
Regards
Arpana