In app purchases.
Posted: Tue Nov 01, 2011 5:46 pm
Has anyone made an in app purchase with LC 5 yet?
Questions and answers about the LiveCode platform.
https://www.forums.livecode.com/
Code: Select all
//enable purchase updates to be pushed to the phone
mobileEnablePurchaseUpdates
//checks to see if purchases can be made
mobileCanMakePurchase
return it
//create a purchase
mobilePurchaseCreate newprod
//send a purchase request
mobilePurchaseSendRequest newprod
//check the status of the purchase
mobilePurchaseState(newprod)
//check for an update to the purchase request
purchaseStateUpdate newprod
return it
//return content delivery confirmation to appstore
mobilePurchaseConfirmDelivery newprod
return it
mobileDisablePurchaseUpdates
This lesson seems to cover it well, but I have a question that I hope someone can help me with.bn wrote:Hi Kaubs,
you might have a look at:
[link to in app purchase lesson]
Kind regards
Bernd
Code: Select all
If extra features not purchased then
connect to remote host and query purchase
update purchase history
end if