Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during Refund #21

Closed
RomanovM opened this issue Sep 8, 2020 · 2 comments
Closed

Error during Refund #21

RomanovM opened this issue Sep 8, 2020 · 2 comments
Assignees

Comments

@RomanovM
Copy link
Contributor

RomanovM commented Sep 8, 2020

Authorize/Capture works as expected, however Refund throws an error about the expirationDate exceeding maxLength.
The plugin code matches their code sample, and "XXXX" is sent instead of the real expirationDate

var creditCard = new creditCardType
{
    cardNumber = lastFourDigitsCardNumber,
     expirationDate = "XXXX"
};

It worked fine in Dev/Sandbox, but fails in Prod.
Plugin API credentials are correct.
Nothing in the plugin code modifies the expirationDate after it is set to "XXXX", and it's unclear how "XXXXXXXXXXXXX..." is being sent, but maxLength == 4:

expirationDate   Required.
The card's expiration date, masked for refunds.
  
String, four characters.

For refunds, use XXXX instead of the card expiration date

Source: https://www.nopcommerce.com/en/boards/topic/87096/authorizenet-plugin-error-during-refund

@ted-phillips
Copy link

Please disregard, I finally traced the error to some customization and not your code.

@skoshelev
Copy link
Contributor

Hi @ted-phillips. Thank you for telling us

Closed #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants