Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Error when processing the second refund of the same value as the first: Gift card has been already refunded
Error when processing the second refund of the same value as the first: Gift card has been already refunded
ID: 1118560
Scheduled
Published on 10/16/2024
Last update on 10/16/2024

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
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 support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedbackSite Map