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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -