简体   繁体   English

现场活动自动进行贝宝付款

[英]Automated PayPal payments on site event

I'm making payments in my site that give you in site money. 我正在我的网站上付款,使您获得网站收益。 So a user can choose how much money he wants to transfer to his site account. 因此,用户可以选择要转移到其网站帐户的金额。

I'd like to have the option when a user has less than for example 20USD automaticly to initiate a transfer from his account to my and refill his credit in my website. 当用户的余额少于(例如)20USD时,我想选择自动启动从他的帐户到我的转账并在我的网站上重新充值。 Is that possible and how it can be done? 那有可能吗?如何做到? I'd like to make that with paypal. 我想用贝宝来做。 Thanks 谢谢

You can use the reference transaction concept in the PayPal where you will get the consent of the buyer by agreeing a billing agreement with them once and then you can charge them at any time my using the Billing agreement Id . 您可以在贝宝(PayPal)中使用参考交易概念,在这种情况下,您只需与买方达成一次结算协议即可征得买方的同意,然后您可以在任何时候使用结算协议ID向他们收取费用。

Regarding automatically transfer of the money from their account to your site account , you can set the cron job which will monitor the amount of the user's site account and will trigger a call to PayPal reference transaction API to transfer the amount from their PayPal account using the billing agreement . 关于自动将资金从他们的帐户转移到您的网站帐户,您可以设置cron作业,该作业将监视用户的网站帐户的金额并触发对PayPal参考交易API的调用,以使用计费协议。

You can find the documents related to reference transaction here . 您可以在此处找到与参考交易有关的凭证。

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

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