In-App Purchases

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

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”