Feat/26 withdrawal modal - #52
Merged
Merged
Conversation
- Create WithdrawModal component with amount, bank selection, and account number fields - Implement account resolution via Paystack API - Add bank list endpoint from Paystack - Add withdrawal submission endpoint with balance validation - Create wallet page with withdraw button - Add wallet layout for consistent styling Closes arflexx#26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request: Withdrawal Modal with Paystack Integration
Issue: #26
Summary
Implements a complete withdrawal flow allowing users to withdraw their fiat balance to Nigerian bank accounts via Paystack.
Changes
Frontend
Created
frontend/app/wallet/WithdrawModal.tsxCreated
frontend/app/wallet/page.tsxCreated
frontend/app/wallet/layout.tsxBackend
server/src/routes/wallet.tsGET /api/wallet/banksendpoint to fetch Nigerian banks from PaystackGET /api/wallet/resolve-accountendpoint to resolve account number to account name via PaystackPOST /api/wallet/withdrawendpoint to process withdrawal requests with balance validationAcceptance Criteria Met
Testing
To test this feature:
PAYSTACK_SECRET_KEYis configured in.env/walletpageNotes
Branch
feat/26-withdrawal-modalCommit Message