How can I use Paypal for future payments without redirects?

Viewed 121

In my web app (PHP) the user should be able to connect his paypal account and every time he sold a product from our catalog we will charge him the price. Since the user might sell lot of products I want to make the payment part automatically so he won't have to approve every transaction.

Unfortunately I don't find a way to do this with Paypal SDK.

Currently the app is using the OAuth flow so the user is redirected to Paypal from where I get the access_token for him.

Question: Having the access_token for an user how can I create a (background) payment without the Paypal redirect?

Thank you

1 Answers

Answering to my question here since I think I found a solution. It looks like this can be done using Payment Preapproval Api

Related