【发布时间】:2016-01-16 09:54:12
【问题描述】:
我正在尝试在我的网站中集成 authorize.net 支付网关。我的代码在测试模式下工作正常,但是当我切换到实时模式时,它给了我以下错误:
[errorCode:net\authorize\api\contract\v1\TransactionResponseType\ErrorsAType\ErrorAType:private] => 33
[errorText:net\authorize\api\contract\v1\TransactionResponseType\ErrorsAType\ErrorAType:private] => Expiration date is required.
我仔细检查了我的卡信息,它是正确的,但仍然收到相同的错误响应。这意味着我传递的卡号没有被api的端点捕获。这是我传递卡信息的代码:
$creditCard = new AnetAPI\CreditCardType();
$creditCard->setCardNumber("16 DIGIT CARD NUMBER");
$creditCard->setExpirationDate("2019-7");
$paymentOne = new AnetAPI\PaymentType();
$paymentOne->setCreditCard($creditCard);
为了安全起见,我隐藏了我的卡号。任何克服此错误的想法表示赞赏。提前致谢。
【问题讨论】:
-
检查过期日期的格式:developer.authorize.net/api/reference/…
-
过期日期格式我修改了但没有解决问题?
-
试试
2019-07..
标签: authorize.net