doubi5127 2013-03-04 20:56
浏览 102
已采纳

在没有CVV的情况下提交Authorize.net付款

I am trying to submit a payment without the CVV number using the AIM API. I am able to submit the payment, but when the charge occurs, it says the CVV number does not match ("No Match") in the Merchant Interface even though I am not submitting a value other than NULL. If I submit the same payment through Authorize.net's Merchant Interface, it will say "Not Applicable". Is there away to accomplish this through the API?

Thanks

Method 1:

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

Method 2:

$payment->setTransaction($credit_card_number, $expiration, $total, NULL, $invoice, $tax);
  • 写回答

1条回答 默认 最新

  • douwen5690 2013-03-04 21:17
    关注

    I can tell from that code snippet that you are using the AuthnetAIM class that I wrote. To make it so this class never sends over the CVV parameter when it is null change this line:

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

    to this:

    if (!is_null($cvv))
    {
        $this->params['x_card_code'] = str_pad((int) $cvv, 3, "0", STR_PAD_LEFT);
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 关于#VijeoCitect#的问题,如何解决?(标签-ar|关键词-数据类型)
  • ¥30 数字信号处理实验报告
  • ¥15 一个矿井排水监控系统的plc梯形图,求各程序段都是什么意思
  • ¥15 ensp路由器启动不了一直报#
  • ¥50 安卓10如何在没有root权限的情况下设置开机自动启动指定app?
  • ¥15 ats2837 spi2从机的代码
  • ¥200 wsl2 vllm qwen1.5部署问题
  • ¥100 有偿求数字经济对经贸的影响机制的一个数学模型,弄不出来已经快要碎掉了
  • ¥15 数学建模数学建模需要
  • ¥15 已知许多点位,想通过高斯分布来随机选择固定数量的点位怎么改