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/
Related
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
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'm unable to find documentation by PayPal about how it handles webhooks for payouts. Are payouts treated the same as payments, so that a completed payout will initiate a payment completed webhook? In general, do payments and payouts translate to each other doing webhooks; or are there intricacies and gotchas someone from the paypal team could explain to me?
In a webhook perspective, the payouts transactions and sale transactions are not exactly the same thing. The payout event will be added into the webhooks supported event type list but not yet at this moment.
https://developer.paypal.com/webapps/developer/docs/integration/direct/rest-webhooks-overview/#event-type-support
So the classic IPN will still be your consideration of handling the "call-backs", for payouts and even other transaction types under RESTful API
Steps To work on payout:
go to paypal developers account and login using business account
Create new app and get client, secret etc
create some personal accounts.
Go to https://github.com/paypal/Payouts-PHP-SDK to get sample code. Update your credentials and it will work.
If you want a running code, go to https://www.voizacinc.com/ and submit inquiry. You will get working code.
I need to charge fee at every transaction made via PayPal so when user pays via my application i need to charge additional $1 to my PayPal account.
I know Adaptive payments in Classic API can do what i need. Is there a support for this in new REST API?
The REST API is a replacement to the Adaptive Payment API. However, if I understand that you're asking for the more complex payments like chained, parallel or split, then I believe they are scheduled to be supported by the REST API by early next year (2015).
In my application I have implemented the Paypal website payment standards. But when I use it I can't retrieve details for recurring users. Can I use the API to do the job? Is this a valid or meaningful method?
no you can't retrieve the standard subscription. But you could use the paypal API to make the recurring payments.
http://www.codeproject.com/Answers/526264/How-to-create-recurring-profile-with-express-check#answer1
the above link will provide you the code to create it.
Tip:-
The mentioned code first create a Sales account and then convert it in to the recurring account
With standard subscriptions you can't access those via the API. If you want to work with subscriptions via the API you'll need to use the Recurring Payments platform instead of Payments Standard.