Hi There, on a related issue, I too have the return from paypal. This is for a specific page access, there is no membership involed and no user created. The visitor clicks a buy button.
PayPal returns the PDT info and s2Member deals with this under the hood. I can set a success url, but I need those PDT variables as listed in the section regarding sending them to another url as well if I want.
Either I use default-return.php and user clicks continue to go to the locked page, or I use success=”http”//…”
I’m not understanding the success url though. I set it to be the url of the protected page, but since it is protected, and the user is not logged in (they will never have an account anyway) s2member redirects to the members options page.
I think I see now the success=”http://..” as being a simple thank you page, which is not what I want
The restricted page has a form on it. The vistor who has paid for access to that page will then enter two pieces of information allowing us to complete their order.
I need the PDT info as well, so it can be put into the form as prefilled data – name, paypal email etc and also hidden data, tractaion data etc. The buyer can then change the email if neccessary, enter the other requested inform and send, thus being redirected to a thank you page, and the data being put in to a databse ready for us to extract and fullfill the service ordered.
I used %%variable%% etc in the form, but it just printed that, rather than the data. I have used this free plugin before (Formbuilder) using the s2Member short codes for name email etc and it has worked brillanty for that.
My only current option as I see it now is to create a form with all those feilds, and then have the customer cut an paste that data from their specific page acess email -data I can easily put into the email using the %%variables%%.
Obviously, thats seems a totally silly way to do it.
Any ideas?
Also, no luck creating my own paypal-return.php with in wordpress theme – could do with an example if its been done by anybody – ie the page will be something akin to: &get_header(); s2Member stuff &get_footer; etc.
I get the page, but no s2member data in it.
Ideally i would like to do achieve the following:
buy button–>paypal–>paypal-return.php–>restricted page on which is a form using the %%variables%%
Any help appreciated, I’ve been going in circles trying different things, but no luck.
Thank you!