Virtual Store #
A virtual store is a way for players to spend hard currency and/or soft currency to obtain consumables, collectables, or other items relevant in your gameplay. Hard currency can also be used to purchase soft currency.
The virtual store is defined in the GDK using a JSON file and can be configured to support a variety of purchase types, including single purchases and subscriptions. Offers can be configured to be available for a limited time, and can be configured to be available to players who have completed a specific level or have reached a specific score.
See the customization parameters for your virtual store items here.
Purchase “intents” have been added to the server to allow you to disambiguate on a hard currency purchase between what the user wanted to buy if two store items share the same SKU code (possible with LiveOps configured for the game).
Listing store items #
You can list available store items.
|
|
Refreshing the store #
You can refresh the economy system’s store data.
|
|
You can also specify the StoreType
.
|
|
Making a purchase intent #
You can make a purchase intent for a user, which is useful to differentiate product purchases that use the same SKU code.
|
|
Alternatively you can specify a store item id and SKU code.
|
|
Purchasing a store item #
You can purchase a store item for a user.
|
|
Getting the active store type #
You can get the active store type.
|
|