简体   繁体   English

Authorize.Net 中的定期计费

[英]Recurring billing in Authorize.Net

I am using the below feature to create recurring ARB at Authorize.Net我正在使用以下功能在 Authorize.Net 上创建经常性 ARB

https://developer.authorize.net/api/reference/index.html#recurring-billing-create-a-subscription https://developer.authorize.net/api/reference/index.html#recurring-billing-create-a-subscription

We have implemented it in PHP but it is also accepting the test credit card details at time of ARB creation in live mode.我们在 PHP 中实现了它,但它也在实时模式下创建 ARB 时接受测试信用卡详细信息。 It is not validating the credit card at time of ARB creation.它不会在 ARB 创建时验证信用卡。

So is there anyway to validate the card at time of ARB creation not at time of amount deduction.那么无论如何在创建ARB时而不是在扣除金额时验证卡。 I know it will validate when the first amount will deduct but I want validation at time of ARB creation.我知道它将验证何时扣除第一笔金额,但我希望在创建 ARB 时进行验证。

Please suggest some solution if someone faced it before or anyone have any idea how to do it.如果有人以前遇到过或有人知道如何做,请提出一些解决方案。

You can validate the card at the time of subscription payment by doing a $0.00 or $0.01 AUTH_ONLY transaction before you create the subscription.您可以在订阅付款时验证卡,方法是在创建订阅之前执行 0.00 美元或 0.01 美元的 AUTH_ONLY 交易。 If the card is approved you can be sure the card is valid.如果该卡被批准,您可以确定该卡是有效的。

Keep in this mind that this does not validate that the card will be valid at the time the first subscription payment is processed or that the funds will be available (ie the transaction will be approved) as there is no way to know this until the card is actually processed at that time.请记住,这并不能验证卡在处理第一次订阅付款时有效或资金可用(即交易将被批准),因为在卡之前无法知道这一点实际是在那个时候处理的。 But this will validate the credit card is otherwise valid.但这将验证信用卡是否有效。

Assuming you want to charge the credit card immediately and then have a recurring payment afterwards, you should do an AUTH_CAPTURE for the first payment and then future payments should be done using the ARB API.假设您想立即从信用卡中扣款,然后再进行定期付款,您应该对第一次付款进行 AUTH_CAPTURE,然后以后的付款应使用 ARB API 完成。 That way you are sure to capture your first payment, and validate the card, before you create the subscription.这样,您可以确保在创建订阅之前捕获您的第一笔付款并验证卡。

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

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