简体   繁体   English

PayPal REST API和定期付款

[英]PayPal REST API and recurring payments

I'm looking at the new PayPal REST API and the examples. 我正在查看新的PayPal REST API和示例。 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: PayPal REST API当前不提供定期付款,尽管Classic API确实提供了以下功能:

https://developer.paypal.com/webapps/developer/docs/classic/use-cases/ https://developer.paypal.com/webapps/developer/docs/classic/use-cases/

There are two options here for the REST API. REST API这里有两个选项。

First you can store a credit card in the vault to make recurring payments against that card. 首先,您可以将信用卡存储在Vault中,以对该卡进行定期付款。

The second option is not yet released, but will involve a long term OAuth token, see this answer . 第二个选项尚未发布,但将涉及长期的OAuth令牌,请参见此答案

Try the Paypal REST API-> https://developer.paypal.com/docs/integration/direct/create-billing-plan/ 尝试使用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. 设置帐户后,您将获得一个密钥和客户端ID,稍后将使用它们来调用api。

Remeber to set the grant_type on the apiContext so you don´t get a 403. 请记住在apiContext上设置grant_type,以免得到403。

https://developer.paypal.com/docs/api/#create-a-plan https://developer.paypal.com/docs/api/#create-a-plan

Billing Plan and Agreement APIs are also deprecated, we can use Subscription API instead, Billing Plan and Agreement API也已弃用,我们可以改用Subscription API

Integration guide: https://developer.paypal.com/docs/subscriptions/integrate/# 整合指南: https//developer.paypal.com/docs/subscriptions/integrate/#

Documentation: https://developer.paypal.com/docs/api/subscriptions/v1/ 文档: https//developer.paypal.com/docs/api/subscriptions/v1/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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