有谁知道一个好的“工具包”、一组预建类或其他某种类型的 php 软件,可以帮助管理 paypal 的订阅/定期付款?这将适用于用户订阅并按月付费的基于 Web 的服务。
开源更可取,实际上我正在寻找可以根据需要从服务器端编辑或定制的东西。
谢谢
有谁知道一个好的“工具包”、一组预建类或其他某种类型的 php 软件,可以帮助管理 paypal 的订阅/定期付款?这将适用于用户订阅并按月付费的基于 Web 的服务。
开源更可取,实际上我正在寻找可以根据需要从服务器端编辑或定制的东西。
谢谢
I was looking for the same some years ago and all I could find was very poorly written code. I ended creating my own solution based on those code examples (PayPal has code on its website, extremely poor written but can be used as a start)
PayPal offers many different APIs and some of them are not really well thought through. For example, by default, it offers a redirection API which will redirect the user to your website with a few parameters to proof the payment was done. I used that as a start and found that at least 1/3 of the users do not wait for the redirection and close the tab (or cancel it) -> all of them will not execute that code.
PayPal offers a website notification API which works asynchronous to to the payment. Their backend will send a IPN message to your registered URL with all parameters required for each payment (and all other transaction based events).
Look here for the IPN API: https://cms.paypal.com/cgi-bin/marketingweb?cmd=_render-content&content_ID=developer/library_code_ipn_code_samples it includes PHP code (you'll not want to use, you just want to learn from that poor code)
这些是您正在寻找的东西吗?
http://codecanyon.net/item/membership-manager-pro/91421 http://www.withinweb.com/phpsecurearea/index.php