📍 Page Location
URL: /dashboard/authenticated
📸 Visual Representation of the Page
Step 7: Act as Buyer - Release Payment
TRADER🔔 Notifications
My Contracts (Dual Role)
| Contract ID | My Role | Product | Status | Actions |
|---|---|---|---|---|
| contract-001 | BUYER | Wheat | PENDING DEPOSIT | |
| contract-002 | SUPPLIER | Rice | PENDING CONFIRMATION |
🎨 Detailed Visual Description
Same payment release interface. Trader releases payment as buyer would.
Key Visual Elements:
- Payment release
- Final payment
- Contract completion
⚙️ Backend Process
API Endpoint: POST /api/contracts/:contractId/release-payment
Process Flow:
1. Validates trader is buyerEmail
2. Releases payment to supplier
3. Completes contractDatabase Operations:
- Table:
database.contracts, database.wallets - Action: Release payment as buyer
➡️ Next Action
Payment released, contract completed