Skip to content

feat(organizer): update bank details (#47) - #95

Merged
manoahLinks merged 1 commit into
mainfrom
feat/organizer-dashboard
Jun 14, 2026
Merged

feat(organizer): update bank details (#47)#95
manoahLinks merged 1 commit into
mainfrom
feat/organizer-dashboard

Conversation

@manoahLinks

Copy link
Copy Markdown
Contributor

Add PUT /api/organizer/bank-details (ORGANIZER). Re-verifies the account via Paystack (account name taken from the resolve, never the client), looks up the bank display name, and persists onto OrganizerProfile with bankVerified=true. Blocked with 400 while a payout is PROCESSING; 403 for non-organizers; account number masked in the response (012****789).

  • New PaystackService.getBankName(code): cached, best-effort bank-list lookup (returns null on failure so the verified account still saves).
  • Reuses verifyBankAccount so the dev SKIP_BANK_VERIFICATION bypass works.

NOTE: under split settlement the live settlement bank lives on the provider subaccount; propagating this change to the Paystack/Monnify subaccount is a deliberate follow-up, not handled here.

5 tests cover the happy path (mask + Paystack-sourced name), the PROCESSING-payout block, non-organizer 403, and bank-name fallback.

closes #47

Add PUT /api/organizer/bank-details (ORGANIZER). Re-verifies the account
via Paystack (account name taken from the resolve, never the client),
looks up the bank display name, and persists onto OrganizerProfile with
bankVerified=true. Blocked with 400 while a payout is PROCESSING; 403 for
non-organizers; account number masked in the response (012****789).

- New PaystackService.getBankName(code): cached, best-effort bank-list
  lookup (returns null on failure so the verified account still saves).
- Reuses verifyBankAccount so the dev SKIP_BANK_VERIFICATION bypass works.

NOTE: under split settlement the live settlement bank lives on the
provider subaccount; propagating this change to the Paystack/Monnify
subaccount is a deliberate follow-up, not handled here.

5 tests cover the happy path (mask + Paystack-sourced name), the
PROCESSING-payout block, non-organizer 403, and bank-name fallback.
@manoahLinks
manoahLinks merged commit 4903f7f into main Jun 14, 2026
3 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.

Organizer: Update bank details

1 participant