Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity product.hasreceipt

Product product = storeController.products.WithID(productId);
if (product != null && product.hasReceipt)
{
    // Owned Non Consumables and Subscriptions should always have receipts.
    // So here the Non Consumable product has already been bought.
    itemBought = true;
}
Source by gamedev.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #unity
ADD COMMENT
Topic
Name
3+3 =