Page 1 of 1

Check price of in-app purchase by region?

Posted: Fri Dec 06, 2024 9:49 pm
by Aduro91
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!

Re: Check price of in-app purchase by region?

Posted: Fri Dec 06, 2024 11:27 pm
by richmond62
Does this have something to do with LiveCode?

Re: Check price of in-app purchase by region?

Posted: Fri Dec 06, 2024 11:41 pm
by Aduro91
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

Re: Check price of in-app purchase by region?

Posted: Tue Dec 10, 2024 5:36 pm
by LiveCode_Panos
Hello Aduro91,

You can use "mobileStoreRequestProductDetails" - check the dictionary:
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.
Hope this helps.

Kind regards,
Panos
--

Re: Check price of in-app purchase by region?

Posted: Tue Dec 10, 2024 6:47 pm
by Aduro91
LiveCode_Panos wrote:
Tue Dec 10, 2024 5:36 pm
Hello Aduro91,

You can use "mobileStoreRequestProductDetails" - check the dictionary:
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.
Hope this helps.

Kind regards,
Panos
--
Thanks Panos!!