Core Flow
Stash Webshop integration has three main steps. Each step defines how players connect, view offers, and complete transactions.1
Account linking
Players link their in-game account with Apple, Google, Facebook, or a custom JWT/OIDC login provider.
2
Catalog presentation
Players see offers from either managed catalog or real-time catalog.
3
Event Processing
The webshop sends real-time notifications to your game server through webhooks for item granting and analytics.
Failsafe purchase flow
When your game server grants items throughConfirmPayment, players are only charged after your server confirms delivery.
Stash authorizes the payment and holds the funds, then calls ConfirmPayment on your server and waits. It captures the charge only once your server returns success. If your server declines, or the call fails, Stash does not capture the payment.
Shops that grant from the PURCHASE_SUCCEEDED webhook instead do not have this gate: that event is sent after Stash requests the capture. For the full sequence, and for the checks only your backend can enforce, see Real-time Catalog Payment Flow.