Reply
Highlighted
Member
Posts: 8
Registered: ‎06-17-2020

E00013 Expiration Date is invalid

We are getting lots of error when expiry date month is in single digit 'M/YYYY'. Is this due to incorrect expiry date or wrong format?

Highlighted
Posts: 459
Topics: 0
Kudos: 91
Blog Posts: 0
Ideas: 0
Solutions: 36
Registered: ‎04-28-2017

Re: E00013 Expiration Date is invalid

Hello,

 

 

Are you using one of the SDKs? If so, which one.

Powered by NexWebSites.com -
Certified Authorize.net developers
Highlighted
Member
Posts: 8
Registered: ‎06-17-2020

Re: E00013 Expiration Date is invalid

We are using C# sdk v1.9.5

Highlighted
Member
Posts: 8
Registered: ‎06-17-2020

Re: E00013 Expiration Date is invalid

When adding a payment profile, if user puts in the incorrect expiry date, would we still get E00013 or this error is only for incorrect formatting?

Highlighted
Posts: 459
Topics: 0
Kudos: 91
Blog Posts: 0
Ideas: 0
Solutions: 36
Registered: ‎04-28-2017

Re: E00013 Expiration Date is invalid

[ Edited ]

With the C# SDK, try using the following format for the expiration date:

expirationDate = "0622"

 

Powered by NexWebSites.com -
Certified Authorize.net developers
Highlighted
Member
Posts: 8
Registered: ‎06-17-2020

Re: E00013 Expiration Date is invalid

I can try that, as per documentation we switched to yyyy-MM from M/yy or M/yyyy format, but we were still getting that error, any thoughts on the previous question?

 


@piyush-at-tusk wrote:

When adding a payment profile, if user puts in the incorrect expiry date, would we still get E00013 or this error is only for incorrect formatting?


 

Highlighted
Posts: 459
Topics: 0
Kudos: 91
Blog Posts: 0
Ideas: 0
Solutions: 36
Registered: ‎04-28-2017

Re: E00013 Expiration Date is invalid

You could check to see the actual value that is being passed for the expirationDate.

Powered by NexWebSites.com -
Certified Authorize.net developers
Highlighted
Member
Posts: 8
Registered: ‎06-17-2020

Re: E00013 Expiration Date is invalid

[ Edited ]

yeah, we looked at it and 4/2022 failed. but after formatting it to 2022-04 it was still failing. so wondering if incorrect date can also cause this issue or not

Highlighted
Administrator
Posts: 141
Registered: ‎11-29-2017

Re: E00013 Expiration Date is invalid

Use XML gYearMonth (YYYY-MM) formatting. This is the only supported format.

 

Does 2022-04 fail due to the same error? It looks correct. I tried it in the sandbox and it worked.

 

<creditCard> <cardNumber>4111111111111111</cardNumber> <expirationDate>2022-04</expirationDate> </creditCard>

 

https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-payment-p...

Highlighted
Posts: 459
Topics: 0
Kudos: 91
Blog Posts: 0
Ideas: 0
Solutions: 36
Registered: ‎04-28-2017

Re: E00013 Expiration Date is invalid

Maybe that is the preferred, documented format. But an alternate format works and is what is used in the C# SDK : https://github.com/AuthorizeNet/sample-code-csharp/blob/master/CustomerProfiles/UpdateCustomerPaymen...

 

And where the OP is having an issue with the format ...

 

https://nexwebhost.com/authorizenet/tmp/authPayment.jpg

https://nexwebhost.com/authorizenet/tmp/authCPaymentProfile.jpg

 

 

Powered by NexWebSites.com -
Certified Authorize.net developers