Steps in this flowchart
- User taps Buy
- Fetch product from app store
- Store purchase sheet
- User confirms?
- Cancelled
- Payment succeeds?
- Show store error
- Receipt returned to app
- Send receipt to backend
- Validate with store server API
- Valid & not already used?
- Flag fraud & deny
- Grant entitlement
- Finish transaction on device
- Unlock content
- Purchase complete
- Store server notifications
- Refund or revoke?
- Remove entitlement
How to use this flowchart template
- Click Open in the editor. The flowchart opens on a new page in FlowDiagram — nothing is uploaded and there is no sign-up.
- Rename, add or delete shapes and drag them where you want; connectors stay attached as things move.
- Drop in vendor logos from the library — 1,160 of them, including every AWS, Azure and Google Cloud service icon — or restyle it with the colour and theme controls.
- Prefer text? Edit the Mermaid source below and paste it in through ☰ → Import diagram (see the Mermaid editor); it imports as an editable diagram.
- Export to PNG, SVG or PDF, or press Ctrl+L for a link that carries the whole diagram.
Mermaid source
The whole template is the text below. Paste it into FlowDiagram, keep it in Git next to the code it describes, or hand it to an AI assistant to extend.
flowchart TD
A((User taps Buy)) --> B[Fetch product from app store]
B --> C[Store purchase sheet]
C --> D{User confirms?}
D -->|No| E((Cancelled))
D -->|Yes| F{Payment succeeds?}
F -->|No| G[Show store error]
G --> E
F -->|Yes| H[Receipt returned to app]
H --> I[Send receipt to backend]
I --> J[Validate with store server API]
J --> K{Valid & not already used?}
K -->|No| L[Flag fraud & deny]
K -->|Yes| M[(Grant entitlement)]
M --> N[Finish transaction on device]
N --> O[Unlock content]
O --> P((Purchase complete))
J --> Q[Store server notifications]
Q --> R{Refund or revoke?}
R -->|Yes| S[Remove entitlement]
Related: Mermaid editor · All product & app ux flows templates · All 521 templates