Authorize.net: E00013: Expiration Date is invalid

Created on 16 March 2021, over 4 years ago
Updated 14 August 2025, 14 days ago

Problem/Motivation

The expiration dates in AcceptJs.php are not formatted according to the documentation which can result in an error from Authorize.net:
https://developer.authorize.net/api/reference/index.html

The documentation for refunds states this:

For refunds, use XXXX instead of the card expiration date.

The documentation for updating payment profiles states this:

Use XML gYearMonth (YYYY-MM) formatting.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States daniel korte Brooklyn, NY

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡·Costa Rica estebanvalerio.h

    We use this patch in a project and it is working as expected.

    The patch is only changes what's necessary to meet API requirements and it is consistent, each method now uses the format specified by Authorize.net for that operation. The patch is well-structured and appropriate.

    I don't have any suggestion for patch improvements, just confirming that it works

Production build 0.71.5 2024