Skip to content

Fix status and notification for failed refunds #4403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

wjrosa
Copy link
Contributor

@wjrosa wjrosa commented Jun 9, 2025

Fixes #4405

Changes proposed in this Pull Request:

Currently, when a refund attempt fails asynchronously, we still send the email notification saying it was successful and keep the "Refunded" order status. That can be confusing for both the merchant and the shopper. This PR fixes that behavior by checking for failures, sending additional notifications, and reverting the "Refunded" order status change.

Testing instructions


  • Covered with tests (or have a good reason not to test in description ☝️)
  • Tested on mobile (or does not apply)

Changelog entry

  • This Pull Request does not require a changelog entry. (Comment required below)
Changelog Entry Comment

Comment

Post merge

@wjrosa wjrosa self-assigned this Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed refunds flagged as successful
1 participant