Skip to content

Use Currencies In-Game

This how-to lists a game's Currencies and retrieves a Currency's Denominations from your game.

Prerequisites

List Currencies

LootLockerSDKManager.ListCurrencies((response) =>
{
if (!response.success)
{
Debug.Log("error: " + response.errorData.message);
Debug.Log("request ID: " + response.errorData.request_id);
return;
}
});

See the Reference Documentation for the full response.

Get Currency Denominations

string currencyID = "";
LootLockerSDKManager.GetCurrencyDenominationsByCode(currencyID, (response) =>
{
if(!response.success)
{
Debug.Log("error: " + response.errorData.message);
Debug.Log("request ID: " + response.errorData.request_id);
return;
}
});

See the Reference Documentation for the full response.

Conclusion

You've listed a game's Currencies and retrieved a Currency's Denominations from your game. Next, learn how to use Wallets in your game to credit and debit these balances.