Virtual Transactions
Overview
A Virtual Transaction manages the exchange of specific in-game items and/or currencies for other items and/or currencies. As the heart of your Game Economy, virtual transactions can be extremely useful for a crafting system, for example, or to use currency to purchase items. Game play can decide when a transaction is executed and the appropriate costs are consumed and payouts received. Each Virtual Transaction is a catalog item dedicated to purchases using virtual currencies and counterparts.
This type of transaction has 2 specifics fields:
Costs
: it describes the inputs from the transaction, the list of items and currencies the player needs to consume when processing this transaction.Payouts
: it describes the outcome from the transaction, the list of items and currencies the player receives when processing this transaction.
The process of consuming the costs, and generating the payouts is done by the Transaction Manager.
Editor Overview
Open the Transaction window by going to Window → Game Foundation → Transaction. The Transaction window will let you configure both Virtual Transactions and IAP Transactions.
The interface is similar to the other catalog items editor.
(1) The Costs section shows a list of currencies and item definitions. Those are the input of the transaction. The amounts next to each entry are the number of those items the transaction will consume in order to produce the payouts.
(2) The Payouts section shows a list of currencies and item definitions. Those are the output of the transaction. The amounts next to each entry are the number of those items the player will get from the transaction.