Skip to content

fix(remittances): stop failing a completed payment when notification … - #2341

Open
Michealshodipo56 wants to merge 1 commit into
LabsCrypt:mainfrom
Michealshodipo56:fix/2230-remittance-notification-status
Open

Michealshodipo56 wants to merge 1 commit into
LabsCrypt:mainfrom
Michealshodipo56:fix/2230-remittance-notification-status

Conversation

@Michealshodipo56

Copy link
Copy Markdown

…dispatch breaks (#2230)

Notification delivery now runs in its own try/catch after the completion write, so a notification-service outage no longer reaches the failure path that flipped the remittance to failed. The failed transition also takes an fromStatus guard in the service, so it only lands while the row is still processing and can never overwrite a confirmed payment.

Pull Request Checklist

closes #2230
Please ensure your PR follows these steps, mirroring our CONTRIBUTING.md guidelines.

  • I have read the CONTRIBUTING.md document.
  • My code follows the code style of this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation accordingly.
  • I have verified the changes locally.

…dispatch breaks (LabsCrypt#2230)

Notification delivery now runs in its own try/catch after the completion
write, so a notification-service outage no longer reaches the failure path
that flipped the remittance to `failed`. The `failed` transition also takes
an `fromStatus` guard in the service, so it only lands while the row is
still `processing` and can never overwrite a confirmed payment.

This branch has not been deployed

No deployments
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.

[quality] Stop flipping completed remittances to failed when post-completion notification throws

1 participant