Page 1 of 1

How to urlencode API notification URL

PostPosted: August 18th, 2011, 8:46 am
by Arpana
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

Re: How to urlencode API notification URL

PostPosted: August 18th, 2011, 2:52 pm
by Cristián Lávaque
Hi Arpana. Yes, s2Member URL encodes the values for the replacement codes you use in the API. Have you tested your code that saves data to the file?

Re: How to urlencode API notification URL

PostPosted: August 21st, 2011, 10:14 am
by Arpana
Thanks Cristian.