简体   繁体   English

Paypal JAVA REST API定期付款示例

[英]Paypal JAVA REST API examples for recurring payments

Does the Paypal JAVA REST API support recurring payment? Paypal JAVA REST API是否支持定期付款? like getting payment $20 on the 1st day of every month. 例如在每个月的第一天获得20美元的付款。

Any examples? 有什么例子吗? I could not find such examples. 我找不到这样的例子。

Thanks for help. 感谢帮助。

In the REST API, classic recurring payments are know as billing plans and billing agreements. 在REST API中,经典的定期付款被称为计费计划和计费协议。

You can find more information here: 您可以在这里找到更多信息:

https://developer.paypal.com/docs/integration/direct/create-billing-plan/ https://developer.paypal.com/docs/integration/direct/create-billing-plan/

This would be, roughly, the flow: 大概是这样的流程:

  • Create a Billing Plan with the subscription/recurring payment properties and activate it. 使用订阅/定期付款属性创建一个计费计划并激活它。

  • Create a Billing Agreement passing the ID of the plan you want to use for that particular customer. 创建一个计费协议,传递您要用于该特定客户的计划的ID。

  • Redirect buyer to PayPal for approval of the agreement. 将买方重定向至PayPal,以批准该协议。

  • Execute the agreement after buyer has approved it and returned back to your site. 买方批准协议后执行协议,然后返回您的网站。

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

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