Check price of in-app purchase by region?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Aduro91
Posts: 56
Joined: Sat Jul 22, 2023 8:49 pm

Check price of in-app purchase by region?

Post by Aduro91 » Fri Dec 06, 2024 9:49 pm

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!

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

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

Post by richmond62 » Fri Dec 06, 2024 11:27 pm

Does this have something to do with LiveCode?

Aduro91
Posts: 56
Joined: Sat Jul 22, 2023 8:49 pm

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

Post by Aduro91 » Fri Dec 06, 2024 11:41 pm

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

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 861
Joined: Fri Feb 06, 2015 4:03 pm

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

Post by LiveCode_Panos » 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
--

Aduro91
Posts: 56
Joined: Sat Jul 22, 2023 8:49 pm

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

Post by Aduro91 » Tue Dec 10, 2024 6:47 pm

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!!

Post Reply