Skip to content

feat(stripe): handle refund webhook events#2218

Merged
dragosp1011 merged 8 commits into
mainfrom
dragos/int1-669-stripe-refund
Jul 13, 2026
Merged

feat(stripe): handle refund webhook events#2218
dragosp1011 merged 8 commits into
mainfrom
dragos/int1-669-stripe-refund

Conversation

@dragosp1011

@dragosp1011 dragosp1011 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Context

Changes

  • Add Stripe refund webhook handling
    • On refund.created / refund.updated with status: succeeded: verify original payment exists, validate wallet/currency/balance, reverse GateHub (user → settlement), insert OUTGOING COMPLETED tx
    • Log only for refund.failed and charge.refunded; terminal failures log + return 200 (no Stripe retry)

@github-actions github-actions Bot added package: wallet/backend Wallet backend implementations type: test Improvements or additions to tests type: source Source changes labels Jun 30, 2026
Comment thread packages/wallet/backend/src/stripe-integration/service.ts Outdated
Comment thread packages/wallet/backend/src/stripe-integration/service.ts Outdated
@dragosp1011 dragosp1011 merged commit 9722b51 into main Jul 13, 2026
13 checks passed
@dragosp1011 dragosp1011 deleted the dragos/int1-669-stripe-refund branch July 13, 2026 10:29
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: wallet/backend Wallet backend implementations released type: source Source changes type: test Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants