Paypal button code for automatic redirection after payment

In my paypal button, I have a return and cancel_return variable with their urls. When the payment is completed and the user wants to return to the site, he will have to click the link.

I read in different places that to enable automatic forwarding I will need to go to the profile, payment settings, automatic return.

The problem is that when I go to the profile, I can’t find the Payment settings for paying for the website, so I would like to know how to do this programmatically on the button.

Rate it.

+4
source share
2 answers

It depends on the type of account you have, where it appears or even appears at all. I think you need to be in a Premier or Business lease for these profile options. Once you are a user of this type, you will find the section "Website Payment Settings", and on this screen you will find the first option, marked as "Automatic return for website payment." This is an ON / OFF option.

+5
source

Spent me finding it, but for my real account, it was not where the documentation said it was or where it was in the Sandbox. I found it under:

My Account> Profile> My Sales Tools

Then click the Refresh link:

Online Sales> Website Settings

+7
source

Source: https://habr.com/ru/post/1332275/


All Articles