# In-app purchase dynamic pricing

**URL:** <https://forum.adalo.com/t/in-app-purchase-dynamic-pricing/29276>\
**Category:** Get Help\
**Created:** [July 9, 2022, 4:06pm UTC](https://forum.adalo.com/t/in-app-purchase-dynamic-pricing/29276 "2022-07-09T16:06:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hacker.ben](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@hacker.ben](https://forum.adalo.com/u/hacker.ben)\
**Post date:** [July 9, 2022, 4:06pm UTC](https://forum.adalo.com/t/in-app-purchase-dynamic-pricing/29276/1 "2022-07-09T16:06:11Z")

</div>

Hi - has anyone worked out a way to use the digital purchases component for in-app purchases but to display the price in a dynamic way based on the users location. i.e. when a user is America sees the $ amount (that matches Apples pricing) and someone in the UK sees the £ amount (that matches Apple’s pricing).

Any help would be great as currently I have one price hardcoded.

---

<div class="post-metadata">

**Author:** ![barrettnash](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/barrettnash/32/12951_2.png) [@barrettnash](https://forum.adalo.com/u/barrettnash)\
**Post date:** [July 9, 2022, 5:26pm UTC](https://forum.adalo.com/t/in-app-purchase-dynamic-pricing/29276/2 "2022-07-09T17:26:04Z")

</div>

Hi Ben,

I haven’t done this yet but I’m assuming prices are stored in a database in a set currency, say USD.

I would guess you would have another database or a custom action with a list of recent currency exchange rates.

Then you could use geolocation or user preferences to choose location (and location can tie to currency).

Then shown price would just be USD set rate x forex rate for local currency.

You might want some more database fields in there to keep track of sale exchange rate, sold currency and sold rate.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [July 10, 2022, 9:26pm UTC](https://forum.adalo.com/t/in-app-purchase-dynamic-pricing/29276/3 "2022-07-10T21:26:57Z")

</div>

Just adding a API ( you can search more API’s ) beside for the great post by Barrett that I found which may help here!

> **[REST Countries](https://restcountries.com/#api-endpoints-v3-name)**
>
> Get information about countries via a RESTful API

This API returns the currency symbol that you can run this as a custom action after signup on another screen and creating a property on the users collection and store the symbol there and then in the text component you can add that property and then add the price without currency formatting.

You can use the Location features to get the user’s location and then you can access that location \> country and you can add that value in the custom action.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [July 20, 2022, 9:28pm UTC](https://forum.adalo.com/t/in-app-purchase-dynamic-pricing/29276/4 "2022-07-20T21:28:00Z")

</div>

Closed on July 20, 2022, 9:28pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
