We are developing an integration for a client, and have encountered a strange situation that it appears there is no built-in solution for. A customer pays for their order using a Shopify Gift Card, and then the Gift Card is DISABLED (for whatever reason). If you attempt to REFUND the order, the items on the order are returned to inventory, but the gift card gateway responds with an error. At that point, the order is in limbo, as there is no way to reactivate the gift card, and the order provides no alternative method to refund the money to (such as issue new Gift Card) which leaves the order in a PAID state.
Is this a gap that has not been thought of? I would have thought that in the event that the Gift Card failed to be REFUNDED, the process of refunding the order would fail with some alternate actions, such as issuing a new gift card in its place.
What is the proper procedure in this situation?