capabilities.work

Economy Virtual Purchase

A 3-step recipe with Unity. We can help you get access.

Recipe · 3 steps

Economy Virtual Purchase

with Unity

Verify balances, purchase a virtual item, and confirm inventory.

  1. Read all of the player's currency balances before the purchase so the caller can confirm the player can afford the cost.
  2. Execute the virtual purchase, spending the player's currency or items and granting the purchase rewards.
  3. Read the player's inventory after the purchase to confirm the granted items are present.
What you'll need to have ready
  • accessToken: Bearer JWT for the player or service account.
  • projectId: The Unity project identifier.
  • environmentId: The Unity environment identifier.
  • playerId: The player making the purchase.
  • purchaseId: The virtual purchase configuration id to execute.
For your developer

Arazzo workflow unity:economy-virtual-purchase, 3 operations: getPlayerCurrencyBalances → makeVirtualPurchase → getPlayerInventory. Specs on APIs.io.