Add escrow payment mode for proposed events #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
When a non-admin user proposes an event, ticket payments currently go directly to the proposer's wallet. For events by new or unverified organizers, an admin may want payments to go to an admin/organization wallet first and be released to the organizer after the event concludes successfully.
Proposed design
Add a
payment_modefield to the Event model:direct(default) — ticket payments go to the event organizer's wallet (current behavior)escrow— ticket payments go to an admin-designated wallet, released to the organizer after the eventEscrow flow
payment_mode: escrowand specifies anescrow_wallet(admin wallet that holds funds)API changes
PUT /events/{id}/approve— accept optionalpayment_modeandescrow_walletfieldsPUT /events/{id}/release— admin releases escrowed funds to organizer walletpayment_mode(direct/escrow) andescrow_wallet(optional wallet ID)Considerations
Depends on