In-App Purchases

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 419
Joined: Sat Jun 24, 2006 12:02 am

In-App Purchases

Post by maxs » Thu Dec 31, 2015 4:44 am

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.

Post Reply

Return to “iOS Deployment”