문제

I am using Authorize.NET PHP SDK. I have added following code to verify CVV code

$auth = new AuthorizeNetAIM;
$auth->amount = $amount;
$auth->card_num = $cc;
$auth->exp_date = $expiry_date;
$auth->x_card_code = $cc;

but now I am getting following exception:

Error: Uncaught exception 'AuthorizeNetException' with message 'Error: no field x_card_code exists in the AIM API.

How do I verify CVV?

도움이 되었습니까?

해결책

I was using wrong field name it's card_code not x_card_code.

$auth = new AuthorizeNetAIM;
$auth->amount = $amount;
$auth->card_num = $cc;
$auth->exp_date = $expiry_date;
$auth->card_code = $cc;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top