gpt4 book ai didi

ruby-on-rails - 活跃商家 : How to authorise cards when using gateways that do not support the void operation?

转载 作者:数据小太阳 更新时间:2023-10-29 07:07:23 26 4
gpt4 key购买 nike

我正在使用 ActiveMerchant 开发 Ruby on Rails 应用程序的计费组件。我们选择的支付网关是PaymentExpress .

我看到的代码示例如下所示,使用 authorize()void() 来测试卡的有效性:

def test_card!
auth_response = gateway.authorize(100, card)
gateway.void(auth_response.authorization) if auth_response.success?
raise AuthorizationFailed.new(auth_response) unless auth_response.success?
end

但是PaymentExpress不支持void Action 。考虑到 PaymentExpress 等网关在 7 天后过期授权请求,是否有其他方法来执行此授权操作,或者是否可以省略 void 操作?

我在文档或 Google 中找不到任何关于void授权的提及,也找不到任何表明它有多重要的迹象。

有帮助吗?

最佳答案

一些银行卡处理商会将此类交易标记为潜在欺诈。他们不喜欢看到小的测试交易之后是大交易。 American Express 在这方面尤其激进,因为当您返回并尝试支付实际金额时,他们往往会拒绝交易。

如果您计划向客户收取金额 x 的费用,那么您应该授权客户支付金额 x 以验证卡。然后您可以使用之前的授权并进行捕获或强制发布以完成收费。这样,客户只会在他们的对帐单上看到正确的待处理和结算金额。

关于ruby-on-rails - 活跃商家 : How to authorise cards when using gateways that do not support the void operation?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/472083/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com