# How to use In app purchase Function?

**URL:** <https://community.thunkable.com/t/how-to-use-in-app-purchase-function/1666535>\
**Category:** Questions about Thunkable X\
**Created:** [January 6, 2022, 2:13am UTC](https://community.thunkable.com/t/how-to-use-in-app-purchase-function/1666535 "2022-01-06T02:13:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven\_dau](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@steven\_dau](https://community.thunkable.com/u/steven_dau)\
**Post date:** [January 6, 2022, 2:13am UTC](https://community.thunkable.com/t/how-to-use-in-app-purchase-function/1666535/1 "2022-01-06T02:13:36Z")

</div>

I want to use In app purchase Function in my apps, I tried to find how to use it clearly, but I couldn’t find anythings. Please help me to find the best and clearest way to do it.

 ![Ảnh chụp Màn hình 2022-01-06 lúc 08.56.51](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/f/cf4b40d6769ca974bdc96aa43b42bcaa1de0e312.jpeg)

1. How can I get “empty string” in Android item and IOS item. Please guild me Clearly!

 ![Ảnh chụp Màn hình 2022-01-06 lúc 08.57.52](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/e/3e84b5aaa3e3253788c22e9dec14c2ca64cc774b.png)  
2. How to call in app purchase? Please give me simple code or simple project!

I’m looking forward to hearing from you.

---

<div class="post-metadata">

**Author:** ![ant\_1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ant_1/32/183393_2.png) [@ant\_1](https://community.thunkable.com/u/ant_1)\
**Post date:** [January 6, 2022, 4:08am UTC](https://community.thunkable.com/t/how-to-use-in-app-purchase-function/1666535/2 "2022-01-06T04:08:23Z")

</div>

Are you using DnD or StP?

---

<div class="post-metadata">

**Author:** ![ant\_1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ant_1/32/183393_2.png) [@ant\_1](https://community.thunkable.com/u/ant_1)\
**Post date:** [January 6, 2022, 4:13am UTC](https://community.thunkable.com/t/how-to-use-in-app-purchase-function/1666535/3 "2022-01-06T04:13:51Z")

</div>

Check the docs,

> **[In-App Purchase](https://docs.thunkable.com/in-app-purchase)**

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 6, 2022, 7:30am UTC](https://community.thunkable.com/t/how-to-use-in-app-purchase-function/1666535/4 "2022-01-06T07:30:16Z")

</div>

Check this. I gave detailed explanation

> [@In App Purchase help](https://community.thunkable.com/t/in-app-purchase-help/1651334/8):
>
> The first step is to add your charging items in the Google development console In this example I am using one time payment not subscription. I am using a donation example here The main important info is the Product ID. In your Thunkable app, enter the same product ID in the IAP component. [image] In your code (using a button or any kind of option) you will have to first inquire about the list (this is mandatory for Android) I’m here using Alert component for testing pur…

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 11, 2022, 3:55pm UTC](https://community.thunkable.com/t/how-to-use-in-app-purchase-function/1666535/5 "2022-01-11T15:55:49Z")

</div>

For Google Play to recognize that your app has `In-App Purchase` feature, you have to upload AAB file that has the `In-App Purchase` component.

Prior to doing this you need to go to your Google Developer Console and add your **products** that you want to sell.

Even if you only charge **one time purchase** , you still need to use the **Product** category and add a product such as “One Dollar Donation”.

---

<div class="post-metadata">

**Author:** ![steven\_dau](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@steven\_dau](https://community.thunkable.com/u/steven_dau)\
**Post date:** [January 12, 2022, 9:36am UTC](https://community.thunkable.com/t/how-to-use-in-app-purchase-function/1666535/6 "2022-01-12T09:36:28Z")

</div>

Thanks you so much Mr. Muneer, I got it ^^

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [April 12, 2022, 9:37am UTC](https://community.thunkable.com/t/how-to-use-in-app-purchase-function/1666535/7 "2022-04-12T09:37:17Z")

</div>

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