Cookbook
Short, task-oriented recipes for common QuotaStack patterns. Each is a focused how-to you can read in 5 minutes.
All Recipes
TWO-STEP CREDIT OP · DEBIT + GRANT
Plan Purchase as a Usage Event
Buy plans by debiting wallet credits and granting time-limited plan credits — a two-step credit operation with deterministic idempotency.
Read recipe → MULTIPLE BLOCKS · AUTO-BURN-DOWN
Stacking Multiple Credit Packs
How credit blocks from multiple purchases coexist and burn in deterministic priority order — no merging, no special handling.
Read recipe → PROMOTIONAL GRANTS · DETERMINISTIC KEYS
Granting Free Credits on Signup or Action
Patterns for signup bonuses, per-action grants, and time-limited trials using deterministic idempotency keys.
Read recipe → ENTITLEMENT GATE · AUTO-RENEW FROM WALLET
Auto-Purchasing Plans When Credits Run Out
Automatically buy the next plan from the user's wallet when plan credits are exhausted — zero friction, no paywall interruption.
Read recipe →