Page 1 of 1

In-App Purchases

Posted: Thu Dec 31, 2015 4:44 am
by maxs
I have a button that permits in-app purchases. The code looks like this:

mobileStoreMakePurchase "com.UnderdogEducational.spellinggadget.nonconsumable", "1", "This belongs to me"
mobileStoreSetProductType "com.UnderdogEducational.spellinggadget.noconsum", "inapp"

After the purchase goes through, I would like the script to hide that button.

How can I setup the "Hide this button" script to run only if the purchase went through?

Thank you.