Can I get a user's authorization to make future payments with Paypal on web?
On their documentation and samples, it seems to only be available via the mobile SDKs
Future Payments are only available for the PayPal Express Checkout payments with the MSDKs. So if you're trying to do something outside mobile, then you'll want to use the PayPal vault and create your API engine and use the vaulted card/ID for future transactions.
Or you can use the billing agreement API for this with your own recurring engine and create the billing frequency of consistent billing goals.
Hope this helps
Related
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:
Ability to pay sellers in UK and US.
Make payments through my website, be it moving buyer to their own page, opening payment window in an iFrame or provide an access token to make payment though my backend.
Ability to take future payments.
Ability to programmatically cancel payments.
Ability to programmatically refund payments.
Subscriptions.
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
I want to make a website, which has a function, users have to login and link their credit card to use that function, and I charge them for how many times they use in a month. Just like how Google does on Google Ads.
How can I do this?
Is this possible by using Google Pay API?
Google Pay FAQ says:
Support for recurring billing is
tied to the payment method returned in the Google Pay API response.
Both tokenized cards and cards on file can be used for recurring
billing. To process recurring billing, the merchant doesn't have to
call our API at a cadence. Rather, the payment credential is stored on
the merchant side for recurring payments. The merchant uses their
payment gateway APIs to manage recurring billing.
Google Pay supports recurring payments if the following statements are
true:
Merchants comply with network rules, such as merchant-initiated
transactions. Terms of payment are disclosed and accepted by the user
within the merchant’s buyflow. We also support recurring billing with
variable amounts. For example, monthly phone bills for mobile carriers
are supported. To get more information, merchants must contact their
payment gateway representative.
I don't totally understand. Does that mean I have to ask my bank? If so, what data should they give me to accomplish this? Or should I change to other service provider like paypal?
Google Pay doesn't process the payment. It facilitates it by securely providing you (the developer) a payment token that you can use to process a payment with your payment service provider. See supported payment service providers.
What that means is that it depends on whether or not your payment service provider supports recurring payments. Which one are you using?
Braintree for example supports this type of recurring payment with Google Pay.
Using Paypal Classic API Billing agreement can be created. Agreement Id can be used for future payment using Paypal reference transaction.
Can this same functionality achieved using Paypal REST API? If yes please help me providing reference. I'm aware Billing Plan and Billing agreement can be created using Paypal REST API but without Billing Plan billing agreement can't be created.
Regards,
"Billing agreement" in RESTful APIs is specificly for Recurring Payments, and that might have misled you.
The terms are slightly different between Classic APIs and the RESTful APIs, and Reference Transactions is pretty equivalent to what is called "future payments" in RESTful APIs.
Technical specs are listed HERE, pls be noted that as of now, future payment has to work with mobile integration on top of PayPal MSDK (to obtain user consent and auth code)
Now this feature is available in REST APIs also. But please note this is a vetted product from PayPal. Not every merchant will be approved to use the Pre-Approved payments . Docs are available - But as a limited release
Docs for PayPal Reference transaction API. Also called as pre-approved payments
I need to send money from company's Paypal account to another Paypal account.
Is it possible to do with Paypal's REST API (if so, how)?
Or must I use the adaptive payments API (that doesn't have an official Paypal SDK)?
Send money from your account has not been added to their REST APIs yet. You can see the operations that they have available here. To automate the send money, you can choose from either their Adaptive Payments Implicit Send Money (here are links to the SDK, Integration Guide and the API references) or the MassPay APIs (again, links to the Merchant SDK, Integration Guide and the API reference).
You would need to create an APP to run the Adaptive Payments send money here or contact PayPal's customer support to get Mass Payments turned on in your account
I'm looking at the new PayPal REST API and the examples. Does it work as of today to make recurring payments? (a.k.a: subscriptions with recurring payments with billing cycle and the number of times the recurring payment is made.)
I cannot find this information in the documentation.
Thanks,
PayPal REST API now officially support Recurring Payments (Billing Plans and Agreements)
The PayPal REST API doesn't currently offer recurring payments, although the Classic APIs do offer this feature:
https://developer.paypal.com/webapps/developer/docs/classic/use-cases/
There are two options here for the REST API.
First you can store a credit card in the vault to make recurring payments against that card.
The second option is not yet released, but will involve a long term OAuth token, see this answer.
Try the Paypal REST API-> https://developer.paypal.com/docs/integration/direct/create-billing-plan/
After setting your account, you´ll get a secret key and client id, which you´ll use later on to make the call to the api.
Remeber to set the grant_type on the apiContext so you don´t get a 403.
https://developer.paypal.com/docs/api/#create-a-plan
Billing Plan and Agreement APIs are also deprecated, we can use Subscription API instead,
Integration guide: https://developer.paypal.com/docs/subscriptions/integrate/#
Documentation: https://developer.paypal.com/docs/api/subscriptions/v1/