|Posted: Sunday Jan 27th, 2013 at 1:44 pm #39732|
I have created my own custom paypal buttons using this code which I “manufactured” myself:
Also, just so you know, I have the following advanced variables on the paypal side:
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, so I want to avoid all php in the buttons code. I haven’t included the hidden fields “invoice”, “on0” / “on1” and “os0” / “os1” – is that a problem? I understand s2member will still track users when the attempt to login.
- s2Member® Products