用于 PayPal 订阅管理的基于 php 的优秀工具包或后端软件?

发布于 2024-12-26 13:36:39 字数 145 浏览 3 评论 0原文

有谁知道一个好的“工具包”,一组预构建的类,或者某种类型的 php 软件可以帮助管理 PayPal 的订阅/定期付款?这将适用于用户订阅并按月付费的基于网络的服务。

开源是更好的选择,我真的在寻找可以根据需要从服务器端编辑或自定义的东西。

谢谢

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? This would be for a web-based service that users subscribe to and pay monthly.

Open source is preferable and really I'm looking for something that can be edited or customized from the server side as needed.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

姐不稀罕 2025-01-02 13:36:39

几年前我一直在寻找同样的东西,但我所能找到的只是编写非常糟糕的代码。
我最终根据这些代码示例创建了自己的解决方案(PayPal 的网站上有代码,写得非常差,但可以用作开始)

PayPal 提供了许多不同的 API,其中一些 API 并没有经过深思熟虑。
例如,默认情况下,它提供了一个重定向 API,它将用户重定向到您的网站,并带有一些参数来证明付款已完成。
我以此为起点,发现至少 1/3 的用户不会等待重定向并关闭选项卡(或取消它)->他们都不会执行该代码。

PayPal 提供了一个网站通知 API,该 API 与付款异步工作。
他们的后端将向您注册的 URL 发送一条 IPN 消息,其中包含每次付款(以及所有其他基于交易的事件)所需的所有参数。

在此处查找 IPN API:
https://cms.paypal.com/cgi -bin/marketingweb?cmd=_render-content&content_ID=developer/library_code_ipn_code_samples
它包含 PHP 代码(你不会想使用,你只是想从那些糟糕的代码中学习)

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文