【问题标题】:Submit Authorize.net payment without the CVV在没有 CVV 的情况下提交 Authorize.net 付款
【发布时间】:2013-02-19 02:18:29
【问题描述】:

我正在尝试使用 AIM API 提交没有 CVV 编号的付款。我可以提交付款,但是当发生收费时,即使我没有提交 NULL 以外的值,它也会在商户界面中显示 CVV 编号不匹配(“不匹配”)。如果我通过 Authorize.net 的商户界面提交相同的付款,它会显示“不适用”。是否可以通过 API 来实现这一点?

谢谢

方法一:

$payment->setTransaction($credit_card_number, $expiration, $total);

方法二:

$payment->setTransaction($credit_card_number, $expiration, $total, NULL, $invoice, $tax);

【问题讨论】:

  • 你能发布一个示例有效载荷吗?
  • 不要发送任何东西,有一段时间没用过这个api,但如果你不发送它,你甚至不会在xml中引用它。
  • @JohnConde 我刚刚更新了我的原始帖子

标签: php api authorize.net merchant-account


【解决方案1】:

我可以从该代码 sn-p 看出您正在使用AuthnetAIM class that I wrote。为了让这个类在 null 时永远不会发送 CVV 参数,请更改此行:

$this->params['x_card_code'] = str_pad((int) $cvv, 3, "0", STR_PAD_LEFT);

到这里:

if (!is_null($cvv))
{
    $this->params['x_card_code'] = str_pad((int) $cvv, 3, "0", STR_PAD_LEFT);
}

【讨论】:

    猜你喜欢
    • 2019-10-24
    • 2014-05-30
    • 2010-11-22
    • 2023-04-10
    • 2013-04-10
    • 2017-04-15
    • 2023-03-27
    • 2011-02-10
    • 1970-01-01
    相关资源
    最近更新 更多