{"section":"known-issues","requestedLocale":"en","requestedSlug":"giftcard-not-getting-refund-after-transaction-cancellation","locale":"en","slug":"giftcard-not-getting-refund-after-transaction-cancellation","path":"docs/en/known-issues/Payments/giftcard-not-getting-refund-after-transaction-cancellation.md","branch":"main","content":"## Summary\n\nWhen the payment method is a gift card and an error occurs during the order placement process, causing the order to remain incomplete, the gift card balance is not refunded after the transaction is canceled.\n\nThis results in the gift card balance being deducted even though the debit operation technically failed. Since the gift card couldn't be properly debited, the transaction remains incomplete. However, upon reviewing the gift card statement, it's possible to see that the debit was processed successfully, despite the error message displayed in the interactions.\n\nThis occurs because the system utilizes multiple databases to register gift card transactions, which can result in inconsistencies between the user's statement and the data returned by the API.\nThe most common scenario is that the gift card is debited first, and then the transaction is saved. If a failure occurs during this second step, the debit is not rolled back, resulting in the inconsistency\n\n## Simulation\n\nIt's not possible to simulate\n\n## Workaround\n\nRefund manually via the Gift Card UI.\nIn cases where the giftcard has the configuration `Reloadable: No`, the balance cannot be changed using the UI. Therefore, the refund must be made using the GiftCard Transaction API."}