Skip to content

feat: implement transaction chargeback handling API (issue #124)#134

Open
Kenisank wants to merge 1 commit into
Pidoko257:mainfrom
Kenisank:kenisank_#124
Open

feat: implement transaction chargeback handling API (issue #124)#134
Kenisank wants to merge 1 commit into
Pidoko257:mainfrom
Kenisank:kenisank_#124

Conversation

@Kenisank

Copy link
Copy Markdown

##Closes #124

  • Add ChargedBack status to TransactionStatus enum
  • Add chargeback_reason, chargeback_reference, chargeback_at columns
  • Create chargebacks tracking table
  • Add database migration (20260630_add_chargeback_support.sql)
  • Create ChargebackService with atomic ledger reversal
  • Add POST /callbacks/chargeback endpoint with Zod validation
  • Register route in index.ts
  • Add transaction.chargeback WebhookEvent type
  • Notify organization via webhook and email on chargeback

Description

Brief description of changes.

Related Issue

Fixes #(issue number)

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Code refactoring
  • Performance improvement

Changes Made

Testing

How did you test these changes?

Checklist

  • Code follows project style
  • Self-reviewed my code
  • Commented complex code
  • Updated documentation
  • No new warnings
  • Added tests (if applicable)

Screenshots (if applicable)

Additional Notes

)

- Add ChargedBack status to TransactionStatus enum
- Add chargeback_reason, chargeback_reference, chargeback_at columns
- Create chargebacks tracking table
- Add database migration (20260630_add_chargeback_support.sql)
- Create ChargebackService with atomic ledger reversal
- Add POST /callbacks/chargeback endpoint with Zod validation
- Register route in index.ts
- Add transaction.chargeback WebhookEvent type
- Notify organization via webhook and email on chargeback
@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@Kenisank Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Create Transaction Chargeback Handling API

1 participant