Card number is required- authorize.net -


i trying integrate authorize.net payment gateway in website. code works fine in testing mode when switch live mode gives me following error:

[errorcode:net\authorize\api\contract\v1\transactionresponsetype\errorsatype\erroratype:private] => 33                             [errortext:net\authorize\api\contract\v1\transactionresponsetype\errorsatype\erroratype:private] => expiration date required. 

i double check card info , correct still receive same error response. means card number passed not caught endpoint of api. here code passing card info:

   $creditcard = new anetapi\creditcardtype();         $creditcard->setcardnumber("16 digit card number");         $creditcard->setexpirationdate("2019-7");         $paymentone = new anetapi\paymenttype();         $paymentone->setcreditcard($creditcard);  

for security hide card number. idea overcome error appreciated. in advance.

the customer’s credit card expiration date format must 1 of following:

mmyy, mm/yy, mm-yy, mmyyyy, mm/yyyy, mm-yyyy

reference: https://developer.authorize.net/api/reference/#payment-transactions-charge-a-credit-card


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -