Implement a virtual currency ledger with fraud detection using PlayFab Economy v2

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

Steps

  1. Define virtual currencies as catalog items of type 'Currency' in the Economy v2 catalog, each with a unique friendly ID
  2. Grant currency server-side only via AddInventoryItems or as part of bundle/store grants; never trust client-reported amounts
  3. Implement a server-authoritative spend flow: validate player balance with GetInventoryItems, then call PurchaseInventoryItems or SubtractInventoryItems with an IdempotencyId to prevent double-spends on retry
  4. Enable PlayFab's fraud prevention rules in the Economy settings to flag anomalous grant rates or balance thresholds
  5. Audit all currency mutations via PlayFab's transaction history (GetTransactionHistory) to detect unusual patterns

Known gotchas

Related routes

Purchase catalog items with virtual currency using PlayFab Economy v2 PurchaseInventoryItems
playfab · 5 steps · unrated
Build a Lithic virtual card program with per-transaction spend controls and real-time authorization webhooks
ledger/Lithic · 6 steps · unrated
Redeem Google Play in-app purchases via PlayFab Economy v2 RedeemGooglePlayInventoryItems
playfab · 5 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