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
- Make a purchase exclusively with a Gift Card (GC);
- Finish the transaction;
- Issue a partial refund for an amount less than half of the total payment;
- 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