Quantcast
Channel: Questions in topic: "iap"
Viewing all articles
Browse latest Browse all 595

IAP purchase check with hasReceipt not working

$
0
0
I am trying to check purchase of nonconsumable with a call to the following custom function in IAP script. For some reason it is not working. ... .. public void checkpurchase() //check for purchase receipt { InitializePurchasing(); Product product2 = m_StoreController.products.WithID(purchasegame); if (product2 != null && product2.hasReceipt) //check for receipt { //if receipt verified DO THIS STUFF BELOW buythisgamebutton = GameObject.Find("Button3"); //select purchase game button buythisgamebutton.SetActive(false); //hide purchase game button } }

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>