简体   繁体   中英

PayPal REST API and recurring payments

I'm looking at the new PayPal REST API and the examples. Does it work as of today to make recurring payments? (aka: 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现在正式支持定期付款 (账单计划和协议)

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM