简体   繁体   English

库/插件/工具包,用于PHP的定期计费

[英]Library/Plugin/toolkit for recurring billing in PHP

I'm developing a software as a service web app, and one of the things I need to implement is automatic recurring billing. 我正在开发一个软件即服务的Web应用程序,我需要实现的功能之一是自动重复计费。

I have three design goals: 我有三个设计目标:

  1. Use a real payment processor (authorize.net or similar, not paypal). 使用真实的付款处理器(authorize.net或类似的产品,而不是paypal)。
  2. Be able to do monthly charges, with the total charge able to vary month by month (for usage based billing) 能够按月收取费用,总费用每月可能会有所不同(针对基于使用情况的结算)
  3. Not store Credit Card or other sensitive financial data on my server. 不要在我的服务器上存储信用卡或其他敏感财务数据。 I could encrypt it, but I'd rather leave securing that sort of stuff to a third party. 我可以对其进行加密,但我宁愿将此类内容保留给第三方。

Is there a PHP library that can do most of the work for me? 是否有一个PHP库可以为我完成大部分工作? Money is tight, but we are willing to pay for a good solution. 资金紧张,但我们愿意为好的解决方案付费。

It's not the PHP library that would cost you money. 并不是您会花钱的PHP库。 It's the merchant account/payment gateway that will incur you fees. 这是商家帐户/付款网关,需要支付费用。

If you are based in the US you can get a merchant account and use Authorize.Net as your payment gateway. 如果您位于美国,则可以获取一个商家帐户,并使用Authorize.Net作为您的付款网关。 Then you can use their Customer Information Manager (CIM) API to handle your recurring billing. 然后,您可以使用他们的客户信息管理器(CIM)API来处理您的定期账单。 Basically CIM would allow you to store credit card information (as a payment profile) that you can then charge against whenever and for how much you want and reduce your PCI compliance issues in the process. 基本上,CIM允许您存储信用卡信息(作为付款资料),然后您可以随时根据需要收取多少费用,并在此过程中减少PCI合规性问题。

Libraries for using CIM are free and readily available. 使用CIM的库是免费的,并且随时可用。 Authorize.Net offers their own PHP SDK and there are other free solutions as well (I offer Authnet XML for free and is open source). Authorize.Net提供了自己的PHP SDK ,还有其他免费解决方案(我免费提供Authnet XML ,并且是开源的)。

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

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