Clarify payments: auto-grant instead of mock

This commit is contained in:
achmad
2026-05-29 16:00:10 +07:00
parent e01f3dc176
commit 641a6d9bce
@@ -328,12 +328,12 @@ All under `/api/`. The catch-all route looks at the URL path and HTTP method to
| POST | `/api/game` | Save game result |
| GET | `/api/game/:id/players` | Get match participants |
### Payments (`/api/payments`) — auto-accept mock
### Payments (`/api/payments`) — auto-grant (no actual payment)
| Method | Path | Purpose |
|--------|------|---------|
| POST | `/api/payments/robokassa/link` | Returns mock success, grants shards |
| POST | `/api/payments/bundles/link` | Instantly unlocks bundle |
| GET | `/api/payments/deals?steamId=` | Returns mock deal catalog |
| POST | `/api/payments/robokassa/link` | Instantly grants purchased currency to player balance, writes to DB |
| POST | `/api/payments/bundles/link` | Instantly grants bundle items/writes purchase to DB |
| GET | `/api/payments/deals?steamId=` | Returns deal catalog (deals purchasable with in-game currency) |
### Leaderboard (`/api/leaderboard`)
| Method | Path | Purpose |