如何使用 ActiveMerchant 作废 Authorize.net 网关中的授权交易

发布于 2024-08-04 05:05:30 字数 408 浏览 3 评论 0原文

目标:只有成功的购买才会出现在客户的帐单上。我不希望拒绝的授权在其账单上显示为待处理(如在线银行系统中所示)。例如,客户经常会意外地输入错误的帐单地址,然后输入正确的帐单地址。两次尝试一起,一次成功,一次失败,都在结算前的账单上显示为待处理。这可能会吓到客户,因为看起来他们可能会被收取两次费用。

详细信息:当我执行 AUTH_CAPTURE(通过 ActiveMerchant 的购买)或 AUTH(通过 ActiveMerchant 的授权)时,该授权被拒绝,并且随后想要作废该授权(通过 ActiveMerchant 的作废),以免其在客户的账单上显示为待处理(即使它会在几天后解决),网关无法使用从网关上的授权或捕获方法调用返回的授权代码找到要作废的交易。

这是特定于authorize.net AIM 网关的。

请指教。

谢谢!

Goal: Only have successful purchases show up on a customer's billing statement. I don't want declined authorizations showing up on their billing statement (as seen in an online banking system) as pending. A customer often will accidentally input an incorrect billing address, for example, followed by a correct one. Together, the two attempts, one successful and one not both show up on their billing statement as pending prior to settlement. This can scare the customer as it looks potentially like they will be charged twice.

Details: When I do an AUTH_CAPTURE (via ActiveMerchant's purchase) or an AUTH (via ActiveMerchant's authorize) which is declined and subsequently want to void that authorization (via ActiveMerchant's void) so as not to have it appear on a customer's billing statement as pending (even though it will settle out after a few days), the gateway can't find the transaction to void using the authorization code returned from the authorization or capture method calls on the gateway.

This is specific to the authorize.net AIM gateway.

Please advise.

Thanks!

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

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

发布评论

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

评论(1

牛↙奶布丁 2024-08-11 05:05:30

如果我正确理解你的问题,我不确定是否有办法做你想做的事。

这是网关/商家帐户系统的限制。

上周末我刚刚住在一家酒店,当我办理入住时,有人警告我,我的卡上会出现“授权费用”,然后就消失了。酒店的情况和你遇到的情况类似,我认为没有办法解决。加油站、餐馆、酒店等都这样做。

这种情况很常见,我不担心顾客会惊慌。您可能会在付款单上添加一份声明,说明有关授权费用的信息 - 我过去在项目中就这样做过。

对于 auth.net 的具体细节 - 我很确定你不能取消身份验证,因此你会得到错误。如果需要,稍后将使用返回的授权码来捕获金额。

If I understand your question correctly, I'm not sure there is a way to do what you want.

This is a limitation of the gateway / merchant account system.

I just stayed at a hotel this past weekend, and when I checked in I was warned that an 'authorization charge' would appear on my card and then go away. The hotel situation is similar to what you are dealing with, and I don't think there is a way around it. Gas stations do it, restaurants, hotels, etc.

It's so common that I wouldn't worry about customers being alarmed. You might put a statement on your payment form saying something about an authorization charge - I've done that in the past on projects.

And for the auth.net specifics - I'm pretty sure you cannot void an auth, thus the error you are getting. The auth code returned is used later on to capture the amount, if needed.

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