
🎮 Gaming · Flowchart
How an in-game purchase is completed safely: store purchase, receipt validation on the server, granting items and handling refunds.
Drawing diagram…
In-app purchase flowchart: the player taps a bundle, the game client starts the purchase with the platform store (App Store / Google Play), the store handles payment and returns a receipt, the client sends the receipt to the game backend, which validates it with the store's server API and checks it wasn't used before. Valid receipts grant items to the inventory and the purchase is acknowledged; invalid ones are rejected. Store refund notifications revoke the items.
flowchart TD
A[Player taps bundle] --> B[Client starts store purchase]
B --> C[Store handles payment]
C -->|Cancelled| X[No change]
C -->|Paid| D[Client sends receipt to backend]
D --> E[Validate with store server API]
E --> F{Valid and not used before?}
F -->|No| G[Reject, log possible fraud]
F -->|Yes| H[Grant items to inventory]
H --> I[Acknowledge purchase to store]
I --> J[Show items to player]
K[Store refund notification] --> L[Revoke items]The backend for an online multiplayer game: player accounts, matchmaking, dedicated game servers, leaderboards and in-game purchases.
How a player gets into a match: joining the queue, skill-based matching, server allocation and connecting to the game server.
The states of an online match on a game server: lobby, loading, in progress, pauses, reconnects and results.
How match results turn into leaderboards and rankings: result events, anti-cheat checks, rating updates and cached leaderboards.
How an online game runs servers close to players worldwide: regional fleets, a global matchmaker, and central account and store services.
Tables for an online game: players, characters, items, inventories, currencies, purchases and match history.