定期计费可变金额,无需存储信用卡信息
我使用 PayPal Standard、PayPal Website Pro、PayPal Express 和 Authorize.Net 实现了一些支付网站。
现在我正在实现一个需要定期计费的网站。我唯一的问题是金额可变,因为我不存储信用卡信息,并且每个周期金额不固定。
我的项目可以使用 PayPal 或 Authorize.Net 吗?如果没有,您能否推荐任何可靠的支付网关(支付美元,请位于美国的网关)?
I have implemented few payment websites using PayPal Standard, PayPal Website Pro, PayPal Express and Authorize.Net.
Now I'm implementing a website which requires recurring billing. My only problem is variable amount, since I do not store credit card information, and amount is not fixed in each cycle.
Can we use either PayPal or Authorize.Net for my project? If not, could you please recommend any reliable payment gateway ($US for payment, and gateway located in US please) for that matter?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以使用Authorize.Net 的客户信息管理器 (CIM) 等服务来存储信用卡以及您的账单信息,然后您创建自己的调度引擎,该引擎根据您使用 CIM 为他们存储的付款方式收费。 CIM 还允许您随时进行周期外付款。
You can use a service like Authorize.Net's Customer Information Manager (CIM) to store the credit card and billing information for you and then you create your own scheduling engine that charges against the payment method you have stored for them using CIM. CIM also allows you to make off-cycle payments at any time as well.
如果您可以将代码中使用的任何公式放在一起,那么可变的账单金额应该不是问题。但是,如果您没有存储实际的信用卡信息(我可以理解为什么),那么我不知道您如何每月向客户收费。通常您需要信用卡或银行信息才能进行直接转账。
如果您绝对无法存储信息,那么我唯一能想到的就是建立一个自动计算和通知系统,该系统可以向客户发送一封带有链接的电子邮件,将他们带到一个表格,以便他们可以尽可能简单地输入信息。否则,您需要将他们的信用卡信息保存在安全的地方,然后每月向他们收取费用,这并不罕见。
Well the variable amount to bill shouldn't be a problem if you can put together whatever formula would be used in code. However if you aren't storing the actual credit card info (and I can understand why), then I don't see how you'd be able to charge the customer every month. Normally you need a credit card or bank information to do a direct transfer.
If you absolutely cannot store the information, then the only thing I can imagine is putting together an automated calculation and notification system that can send the customer an email with a link that brings them to a form so they can enter the information as simply as possible. Otherwise you'll need to save their credit card info somewhere secure and simply bill them every month, which isn't uncommon.
您研究过 PayPal 的 IPN 变量吗?
https://www.paypal.com/cgi -bin/webscr?cmd=p/acc/ipn-subscriptions-outside
通常,您必须取消然后重新批准新的订阅...但也许您可以使用变量来以编程方式执行此操作。
Have you looked into PayPal's IPN variables?
https://www.paypal.com/cgi-bin/webscr?cmd=p/acc/ipn-subscriptions-outside
Typically you have to cancel then reapprove a new subscription... but perhaps you can use the variables some how to do that programmatically.
我找到了解决方案。 PayPal 调用 ProcessReferencePayment。
首先,我需要使用DoDirectPayment向信用卡收费,并存储成功的交易号码。
之后,我只需调用 DoReferenceTransaction 以及 OrderTotal 和 ReferenceID(之前的交易编号)。
DoReferenceTransactionRequestDetailsType
DoReferenceTransactionReq
I found a solution. PayPal calls ProcessReferencePayment.
At first, I need to charge the credit card using DoDirectPayment, and store the successful transaction number.
After that, I just call DoReferenceTransaction along with OrderTotal and ReferenceID (the previous transaction number).
DoReferenceTransactionRequestDetailsType
DoReferenceTransactionReq