membership return url after paypal payment

Hi, i would like to know how is it possible to redirect a new user who just made a payment in paypal (subscriptions) to a a different url, where could see important info. I noticed that users get return to the home page but that could be confusing, more if you just made a payment

thanks

  • Tanmay
    • Flash Drive

    u need to use return HTML variable while coding for your paypal button.
    adding this code will works:
    <input type="hidden" name="return" value="http://your-web-domain.com/thanks.htm">

    Also u can check other useful parameters here.

    Hit thanks if you find it helpful.

  • jhonatan1988
    • Design Lord, Child of Thor

    Hi, thanks, but can i use this in the membership plugin? in which file could it be possible? actually im unsing "PayPal Express - with subscriptions" gateway. I appreciate if you are more specific because i could check several html forms in paypal addons

    thanks in advanced

  • Tanmay
    • Flash Drive

    @jhonatan1988

    Yes you can. you have to add this code to your html code of paypal button:
    <input type="hidden" name="return" value="http://your-web-domain.com/thanks.htm">

    example:

    <form method=post action=https://api-3t.sandbox.paypal.com/nvp>
    		<input type=hidden name=USER value=API_username>
    		<input type=hidden name=PWD value=API_password>
    		<input type=hidden name=SIGNATURE value=API_signature>
    		<input type=hidden name=VERSION value=XX.0>
    		<input type=hidden name=PAYMENTREQUEST_0_PAYMENTACTION
    			value=Sale>
    		<input name=PAYMENTREQUEST_0_AMT value=19.95>
    		<input type=hidden name=RETURNURL
    			value=https://www.YourReturnURL.com>
    		<input type=hidden name=CANCELURL
    			value=https://www.YourCancelURL.com>
    		<input type=submit name=METHOD value=SetExpressCheckout>
    	</form>

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.