Skip to content

feat: add wallet and payment HTTP endpoints#456

Merged
Hydrax117 merged 2 commits into
Arenax-gaming:mainfrom
iyanumajekodunmi756:No-wallet-or-payment-endpoints
Jun 2, 2026
Merged

feat: add wallet and payment HTTP endpoints#456
Hydrax117 merged 2 commits into
Arenax-gaming:mainfrom
iyanumajekodunmi756:No-wallet-or-payment-endpoints

Conversation

@iyanumajekodunmi756

Copy link
Copy Markdown
Contributor
  • Created src/http/wallet.rs with wallet endpoints:
    • GET /api/wallet - get authenticated user's wallet balances
    • GET /api/wallet/transactions - paginated transaction history
    • POST /api/wallet/deposit - initiate a fiat deposit via Paystack/Flutterwave
    • POST /api/wallet/deposit/verify - verify deposit payment
    • POST /api/wallet/withdraw - initiate a withdrawal
  • Added wallet module to http/mod.rs
  • Registered wallet routes in main.rs

Summary

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor / cleanup
  • Docs / config only

Related issues

Closes #

Changes

Testing

  • Unit tests pass (cargo test / npm test)
  • Contracts tests pass (cargo test in contracts/)
  • Manually tested locally
  • Migration tested against a fresh DB

Checklist

  • Code follows project conventions
  • No secrets or PII committed
  • Migrations are reversible (.down.sql exists)
  • Contract changes are backward-compatible or versioned
  • CI passes

closes #446

- Created src/http/wallet.rs with wallet endpoints:
  - GET /api/wallet - get authenticated user's wallet balances
  - GET /api/wallet/transactions - paginated transaction history
  - POST /api/wallet/deposit - initiate a fiat deposit via Paystack/Flutterwave
  - POST /api/wallet/deposit/verify - verify deposit payment
  - POST /api/wallet/withdraw - initiate a withdrawal
- Added wallet module to http/mod.rs
- Registered wallet routes in main.rs
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

@iyanumajekodunmi756 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

drips-wave Bot commented Jun 1, 2026

Copy link
Copy Markdown

@iyanumajekodunmi756 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

@Hydrax117 Hydrax117 merged commit 5b509c6 into Arenax-gaming:main Jun 2, 2026
0 of 5 checks passed
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] - No wallet or payment endpoints

2 participants