user198989
user198989

Reputation: 4665

Paypal - Auto redirect after successful payment?

I want to redirect visitor automatically after successful payment. There are two options in Paypal and I am confused.

The first one (in the buy now button editing section)

enter image description here

The second one (in profile > my selling tools)

enter image description here

But in the second one, you can only select 1 url and that will be for all buy now buttons. That won't be good. What is the correct way to do that ?

Upvotes: 6

Views: 35920

Answers (3)

Homesh Paul
Homesh Paul

Reputation: 151

Setting Up Auto Return Using PayPal

To set up Auto Return:

  1. Log in to paypal and click Profile.
  2. Click the Website Payment Preferences link under Selling Preferences.
  3. Click the On radio button to enable Auto Return. Enter the Return URL.

Note: You must meet the Return URL requirements in order to set up Auto Return. Learn more about Return URL.

Sendbox Form Multiple Return Request URL's : If you are using different URL's for success/failure

It will automatically overwrite paypal specified URL.

Upvotes: 1

Eshan
Eshan

Reputation: 3677

To make the auto return works you first need to turn on the "Auto Return" in your PayPal Profile and you can specify any return url there . Now if you have the multiple return url's then you should specify the return url in your button code in the section "Take my customer to this url when they finish checkout " . In this way it will always override the return url that you have mentioned in your PayPal Profile .

Upvotes: 13

user207421
user207421

Reputation: 310907

Well, you can either set it account-wide or per button: in fact, you can do both - have an account-wide default and a selective override for selected buttons. There is a third way: define the return_url variable in the POST data for the button yourself: this is another per-button override.

Which you use is up to you.

Upvotes: 1

Related Questions