简体   繁体   English

PayPal在处理用户“贷项”时预先批准的API使用情况

[英]PayPal Preapproved API usage when dealing with user “credits”

Is it possible to use PayPal's preapproved payments api for the following scenario: 是否可以在以下情况下使用PayPal的预付款API:

Online marketplace where users buy fixed amounts of credits. 用户购买固定信用额的在线市场。

They spend the credits on items/services in the marketplace. 他们将积分花费在市场上的商品/服务上。

We detect when the credits run out and based on the billing agreement automatically charge them to renew the amount of credits. 我们会检测信用额度何时用尽,并根据帐单协议自动向其收取费用以更新信用额度。

I have spent quite a while looking around for an answer to this but cannot find my specific problem. 我花了相当长的时间寻找这个问题的答案,但是找不到我的具体问题。

Any help very much appreciated! 任何帮助非常感谢! Thanks. 谢谢。

Yes this is definitely possible. 是的,这绝对是可能的。 I would write a cron job that periodically checks current credits against their billing agreement. 我会写一份Cron作业,根据他们的结算协议定期检查当前信用。 If there is a match, then make a pay request to paypal. 如果匹配,则向Paypal提出付款请求。 Sorry I cannot provide code examples without more knowledge of how your site is structured. 抱歉,如果没有更多关于您网站的结构的知识,我将无法提供代码示例。

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

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