latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Auto-Return Page (success) and Paypal buttons

Home Forums Community Forum Auto-Return Page (success) and Paypal buttons

This topic contains 0 replies, has 1 voice. Last updated by  Pierre 3 years, 11 months ago.

Topic Author Topic
Posted: Tuesday Jan 29th, 2013 at 1:47 pm #39915

No response on the customer support forum, so created this here too:

I have created my own custom paypal buttons using this code which I “manufactured” myself:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"></form>

Also, just so you know, I have the following advanced variables on the paypal side:

custom=www.mysite.com
notify_url=http://www.mysite.com/?s2member_paypal_notify=1
rm=2

Everything seems to work, except the success page redirect – which I want to bypass entirely and have the user go straight to the registration page (buddypress installed). I guessed the last hidden input, as I can’t use a shortcode for this. Can you give me the html for the success field please that I can use here? Or perhaps give me some function to add to my s2hacks.php. This is pretty much the main reason I purchased the plugin.

As a suggested solution, will it be possible to create a custom paypal-return.php with the following code:

This should simply redirect to the registration page. Is that ok? Will this break anything?

A second concern I have is that I’m using jquery to create the paypal buttons (pricing table does this), so I want to avoid all php in the buttons code, as I dont know how to do php in jquery. As a result, I have NOT included the hidden inputs “invoice”, “on0″ / “on1″ and “os0″ / “os1″ – is that a problem? I understand s2member will still track users when the attempt to login, but I’m not sure about why the “invoice” input is needed.

Any insight would be appreciated.

Many thanks.

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.