Hey everyone,
Looking to set up an in-app purchase for the full version of the iOS game I'm making.
It will be £2.99 probably, but this will appear in dollars or euros etc depending on the country.
Can I have the app check the price that will be charged and enter that into my button for purchase. I think not having the price pre-listed in the button would discourage people from clicking it, even if they technically could to check the price.
Thank you!
Check price of in-app purchase by region?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 10076
- Joined: Fri Feb 19, 2010 10:17 am
Re: Check price of in-app purchase by region?
Does this have something to do with LiveCode?
Re: Check price of in-app purchase by region?
Yes so I wonder if there is some LC code through which I can grab the price that apple will eventually display.
Here https://lessons.livecode.com/m/4069/l/1 ... e-appstore I see commands like "offerPurchasedProduct pProductID", I just wonder if there is some kind of command where I can grab the price that will vary based on region and put it in a field/button
Here https://lessons.livecode.com/m/4069/l/1 ... e-appstore I see commands like "offerPurchasedProduct pProductID", I just wonder if there is some kind of command where I can grab the price that will vary based on region and put it in a field/button
-
- Livecode Staff Member
- Posts: 861
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Check price of in-app purchase by region?
Hello Aduro91,
You can use "mobileStoreRequestProductDetails" - check the dictionary:
Kind regards,
Panos
--
You can use "mobileStoreRequestProductDetails" - check the dictionary:
Hope this helps.This command fetches values for various keys, such as price and description, as specified when creating the in-app items in the vendor's developer console. If a value for a key is not specified, empty is returned for that key. The keys can differ depending on the store you are using. For more details on the keys, see "productDetailsReceived" message.
Kind regards,
Panos
--
Re: Check price of in-app purchase by region?
Thanks Panos!!LiveCode_Panos wrote: ↑Tue Dec 10, 2024 5:36 pmHello Aduro91,
You can use "mobileStoreRequestProductDetails" - check the dictionary:
Hope this helps.This command fetches values for various keys, such as price and description, as specified when creating the in-app items in the vendor's developer console. If a value for a key is not specified, empty is returned for that key. The keys can differ depending on the store you are using. For more details on the keys, see "productDetailsReceived" message.
Kind regards,
Panos
--