Reputation: 1490
I want to integrate Paypal as an online payment option into my website and have been looking at their documentation and apis for days, but I can't for the life of me figure out which product should I use and which apis work with what products. It seems they have got several products like payflow, web payments pro, paypal payments pro and several others. Then they have also got orders api, payments api, nvm/soap api, JS SDK etc. Can someone suggest which product/api should I choose when I am looking at the following factors:
Upvotes: 1
Views: 271
Reputation: 30477
You need different products for different things. For future headless payments that are not recurring on a schedule, you'll have to talk to PayPal
For recurring payments on a schedule, which are called subscriptions, use https://developer.paypal.com/docs/subscriptions/ . There is no SDK for this latest subscriptions API, you need to use direct API calls.
For one-type payments, use PayPal Checkout https://developer.paypal.com/docs/checkout/ . If you want a server API integration, here's the front-end: https://developer.paypal.com/demo/checkout/#/pattern/server , and the two routes you'll need on your server are with the Orders V2 API to 'Set Up Transaction' and 'Capture Transaction', which have a guide here: https://developer.paypal.com/docs/checkout/reference/server-integration/
That should be enough to get you started
Upvotes: 1