Unity · Arazzo Workflow
Unity Economy Virtual Purchase
Version 1.0.0
Check a player's currency balances, make a virtual purchase, then confirm the resulting inventory.
View Spec
View on GitHub
Game DevelopmentReal-Time 3DMultiplayerGame ServicesCloud GamingArazzoWorkflows
Provider
Workflows
economy-virtual-purchase
Verify balances, purchase a virtual item, and confirm inventory.
Reads the player's currency balances, makes a virtual purchase by its configuration id, and reads the player inventory to confirm the purchased items were granted.
1
getBalances
getPlayerCurrencyBalances
Read all of the player's currency balances before the purchase so the caller can confirm the player can afford the cost.
2
purchase
makeVirtualPurchase
Execute the virtual purchase, spending the player's currency or items and granting the purchase rewards.
3
confirmInventory
getPlayerInventory
Read the player's inventory after the purchase to confirm the granted items are present.