// It may take a second to get a response from the backend. Use this to ensure everything is loaded.
await Monetization.OnLoad();
// Check if a player owns the game pass.
if ( Monetization.Has( gamePass ) )
{
// Do things...
}
// Prompts the player to purchase the game pass.
// True if the game pass was bought.
// A game pass can be bought multiple times.
if ( await Monetization.Purchase( gamePass ) )
{
// Do things...
}