Integrate Xsolla Pay Station for in-game virtual currency purchases

domain: gaming · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. From your backend, call the Pay Station Token API (POST to the merchant token creation endpoint) using Basic Auth of your merchant ID and API key, passing the project ID and purchase/user details
  2. Open the returned token in the Pay Station widget URL (production or sandbox host, matched to your build) on the client to let the player complete payment
  3. Register a webhook/callback URL to receive Xsolla's payment notifications, handling event types such as user_validation and payment
  4. Verify each webhook's authenticity by concatenating the raw JSON body with your secret key, hashing with SHA-1, and comparing it to the signature Xsolla sends in the Authorization header
  5. On a verified 'payment' event, grant the virtual currency or item server-side and record the transaction for reconciliation
  6. Use the separate Refund API if you need to process chargebacks or refunds after the fact

Known gotchas

Related routes

Integrate Unity Gaming Services Economy to manage virtual currency balances and catalog purchases
docs.unity.com · 6 steps · unrated
Purchase catalog items with virtual currency using PlayFab Economy v2 PurchaseInventoryItems
playfab · 5 steps · unrated
Manage multi-currency spending in agent workflows: FX awareness and settlement currency choice
agentic-payments · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans