Wallet and Payments
This flow explains how customers use internal wallet balance, gift cards, and payment history.
What customers can do
- View available and frozen balances
- Redeem valid gift cards into wallet
- Pay eligible orders from available balance
- View balance change history for audit and support
Balance model
- Available balance: spendable for order payment
- Frozen balance: temporarily locked and not spendable
Both are shown as part of one wallet account per user.
Gift card redemption
- User enters gift card code.
- System validates card status (exists, unused, unexpired).
- Value is deposited into available balance.
- Card is marked redeemed and cannot be reused.
Paying orders with wallet
- User selects wallet payment.
- System checks available balance.
- Amount is deducted and order moves to paid status in one transaction.
- Payment record appears in balance history.
Balance history
History is used for:
- customer transparency
- support troubleshooting
- finance reconciliation
Each record contains amount change, change type, reason, and timestamp.
What customers cannot do
- Spend frozen balance
- Redeem an expired or already-used gift card
- Partially bypass payment rules with insufficient available balance
- Directly edit or delete wallet history records