Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal - Auto redirect after successful payment?

Tags:

paypal

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 ?

like image 434
user198989 Avatar asked Sep 14 '14 02:09

user198989


People also ask

What is PayPal Express Checkout?

Express checkout workflow Unlike other payment methods, PayPal Express Checkout allows the customer to check out at the beginning of the usual checkout workflow from the product page, the mini shopping cart, and the shopping cart. 1. Customer places order. The customer clicks/taps the Check out with PayPal button.


3 Answers

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 .

like image 135
Eshan Avatar answered Oct 12 '22 21:10

Eshan


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.

like image 41
user207421 Avatar answered Oct 12 '22 21:10

user207421


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.

like image 39
Homesh Paul Avatar answered Oct 12 '22 22:10

Homesh Paul