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)
The second one (in profile > my selling tools)
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 ?
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.
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 .
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.
Setting Up Auto Return Using PayPal
To set up Auto Return:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With