Skip to content

Implement real Paystack and Flutterwave payment verification for tournament registration#464

Open
mohadon0 wants to merge 1 commit into
Arenax-gaming:mainfrom
mohadon0:feat/real-payment-verification
Open

Implement real Paystack and Flutterwave payment verification for tournament registration#464
mohadon0 wants to merge 1 commit into
Arenax-gaming:mainfrom
mohadon0:feat/real-payment-verification

Conversation

@mohadon0
Copy link
Copy Markdown

@mohadon0 mohadon0 commented Jun 2, 2026

Closes #374


This PR replaces placeholder payment verification logic with secure provider-side verification for Paystack and Flutterwave.

Key changes:

  • Implement real HTTP verification calls from the backend wallet service.
  • Validate Paystack transaction status, amount, refund/reversal state, and gateway response.
  • Validate Flutterwave transaction status, amount, currency, refund/reversal state, and gateway response.
  • Reject invalid, missing, failed, refunded, reversed, duplicate, or mismatched transactions.
  • Keep client-supplied payment data untrusted and rely only on provider responses.
  • Preserve existing wallet transaction patterns and error handling.

…nament registration

This PR replaces placeholder payment verification logic with secure provider-side verification for Paystack and Flutterwave.

Key changes:
- Implement real HTTP verification calls from the backend wallet service.
- Validate Paystack transaction status, amount, refund/reversal state, and gateway response.
- Validate Flutterwave transaction status, amount, currency, refund/reversal state, and gateway response.
- Reject invalid, missing, failed, refunded, reversed, duplicate, or mismatched transactions.
- Keep client-supplied payment data untrusted and rely only on provider responses.
- Preserve existing wallet transaction patterns and error handling.

A detailed PR description and tests will be added after verifying the branch push status.
@mohadon0 mohadon0 requested a review from anonfedora as a code owner June 2, 2026 10:32
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

@mohadon0 is attempting to deploy a commit to the paul joseph's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 2, 2026

@mohadon0 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.

[BACKEND] Payment verification is hardcoded to always return true

1 participant