简体   繁体   English

PHP贝宝计费协议

[英]PHP paypal billing agreement

This is very general question. 这是一个非常普遍的问题。
I want my user to sign a Paypal billing agreement with me and bill his PayPal account in the end of the month by usage. 我希望我的用户与我签署Paypal计费协议,并在月底按使用量向其PayPal帐户计费。
All the code examples I had encountered are using predefined packages, while I need to bill the user by the usage which changed from month to month. 我遇到的所有代码示例都使用预定义的程序包,而我需要按月使用的用法向用户收费。

Does anyone knows a PHP code example for this? 有谁知道一个PHP代码示例吗? Or do you have any link with good How To / code example? 还是您有任何带有良好的“如何” /“代码示例”的链接?

Thanks! 谢谢!

For variable amounts you'll need to use Reference Transactions or Preapproved Payments . 对于可变金额,您需要使用参考交易预付款

Since you're using PHP I'd recommend taking a look at my class library for PayPal . 由于您使用的是PHP,因此建议您查看我的PayPal类库 It will make this very simple for you, and comes with samples as well as empty templates you just have to fill in. 这将使您的工作变得非常简单,并随附示例以及您只需要填写的空模板。

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

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