Identify and delete a refund when an async refund failure occurs #2285
Labels
category: core
WC Payments core related issues, where it’s obvious.
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
size: medium
The issue is sized medium.
type: bug
The issue is a confirmed bug.
Currently, when refunds fail asynchronously, the WC refund is still present in the Order Details page. We should try to delete the WC refund so it's not present on the order after a refund has failed.
I looked into this briefly, and I'm pretty sure we'll need to add some meta data to either the main
WC_Order
or theWC_Order_Refund
so we can identify the refund we should be deleting.Reproduction steps
4000 0000 0000 5126
testing cardThe text was updated successfully, but these errors were encountered: