Menu
Feedback
Start here

Known issues

Known issues
Error when processing the second refund of the same value as the first: Gift card has been already refunded
Payments
ID: 1118560
Scheduled
Published on10/16/2024
Last updated on10/16/2024
1 min read

Summary

When requesting a second partial refund of the same value as the first, the gateway returns the following message:

Message: Gift card has been already refunded.

Although this is logged in the interaction, the second refund is not actually processed. This scenario is much more common for the second refund of the same value, but it can also occur in subsequent refunds, as long as the requested amount equals the sum of the already processed refunds.

Simulation

  1. Make a purchase exclusively with a Gift Card (GC);
  2. Finish the transaction;
  3. Issue a partial refund for an amount less than half of the total payment;
  4. Request another refund for the same amount as the first.

Workaround

A feature flag was created where added accounts ignore the part that introduces this bug. https://github.com/vtex/configs/blob/main/src/configs/payment-gateway/flags/gch-refund-condition.jsonnet

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback