简体   繁体   English

良好的基于​​PHP的工具包或用于Paypal订阅管理的后端软件?

[英]good php-based toolkit or backend software for paypal subscription management?

Does anyone know of a good "toolkit", set of pre-built classes, or otherwise some type of php software that can help manage subscriptions/recurringpayments for paypal? 有谁知道一个好的“工具包”,一组预构建的类或其他可以帮助管理Paypal订阅/定期付款的php软件? This would be for a web-based service that users subscribe to and pay monthly. 这将用于用户订阅并每月付款的基于Web的服务。

Open source is preferable and really I'm looking for something that can be edited or customized from the server side as needed. 开源是可取的,实际上我正在寻找可以根据需要从服务器端进行编辑或自定义的东西。

Thanks 谢谢

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在其网站上有代码,编写得很差,但是可以用作开始)

PayPal offers many different APIs and some of them are not really well thought through. PayPal提供了许多不同的API,但其中一些并不是经过深思熟虑的。 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. 例如,默认情况下,它提供了重定向API,它将使用一些参数将用户重定向到您的网站,以证明付款已完成。 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. 我以此为起点,发现至少有1/3的用户不等待重定向并关闭选项卡(或取消它)->所有这些用户都不会执行该代码。

PayPal offers a website notification API which works asynchronous to to the payment. PayPal提供了一个网站通知API,该API与付款异步。 Their backend will send a IPN message to your registered URL with all parameters required for each payment (and all other transaction based events). 他们的后端将向您的注册URL发送IPN消息,其中包含每次付款(以及所有其他基于交易的事件)所需的所有参数。

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) 在此处查找IPN API: https : //cms.paypal.com/cgi-bin/marketingweb? cmd = _render-content & content_ID = developer/ library_code_ipn_code_samples它包含PHP代码(您不想使用,只想学习从那可怜的代码)

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

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