PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

How to urlencode API notification URL

s2Member Plugin. A Membership plugin for WordPress®.

How to urlencode API notification URL

Postby Arpana » 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
User avatar
Arpana
Registered User
Registered User
 
Posts: 6
Joined: August 18, 2011

Re: How to urlencode API notification URL

Postby Cristián Lávaque » August 18th, 2011, 2:52 pm

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?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: How to urlencode API notification URL

Postby Arpana » August 21st, 2011, 10:14 am

Thanks Cristian.
User avatar
Arpana
Registered User
Registered User
 
Posts: 6
Joined: August 18, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 0 guests

cron