Auto re-direct customers back to site after paypal payment

Share this Article :


Hope this article will help you people who are looking out  for  Auto Redirect  the  page  to the  site  after making  the successful payments.

Paypal   will  allow  you  to do this   with help  of      “return” variable   either  in  your  Form  or  in  Link

for ex :

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_donations" />
<input name="business" type="hidden" value="businessname@email.com" />
<input name="amount" type="hidden" value="10" />
<input name="currency_code" type="hidden" value="usd" />
<input name="item_name" type="hidden" value="Donations for My Website" />
<input name="image_url" type="hidden" value="http://website.com/images/paypallogo.png" />
<input name="return" type="hidden" value="http://website.com/thanks.html" />
<input name="cancel_return" type="hidden" value="http://website.com/donate.html" />
<input alt="Donate with PayPal" name="submit" src="http://website.com/images/donatebutton.png" type="image" />
</form>

IN the above button

<input name="return" type="hidden" value="http://website.com/thanks.html" />

This will do the Magic.
Hold on Folks … we are not Done YET. We need to do another setting too ..

For Setting Up Auto Return

  1. Log in and click the Profile subtab under My Account.
  2. Click the Website Payment Preferences link under Selling Preferences.
  3. Click the On to enable Auto Return.
  4. Enter the Return URL. Note: You must meet the Return URL requirements in order to set up Auto Return. Learn more about Return URL

Now, Its time to GO.. Now, when ever your customers do the payments it will automatically redirects to the URL what you have given …

Written by adrevol

{adrevol has written 91 posts on ITTreats.com . See all posts by }


Leave a Reply