# Help with Consumable IAP and Quantity Selection in Thunkable

**URL:** <https://community.thunkable.com/t/help-with-consumable-iap-and-quantity-selection-in-thunkable/3421293>\
**Category:** In App Purchase\
**Created:** [December 17, 2024, 7:17pm UTC](https://community.thunkable.com/t/help-with-consumable-iap-and-quantity-selection-in-thunkable/3421293 "2024-12-17T19:17:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![caokyhieu253txrg6o](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@caokyhieu253txrg6o](https://community.thunkable.com/u/caokyhieu253txrg6o)\
**Post date:** [December 17, 2024, 7:17pm UTC](https://community.thunkable.com/t/help-with-consumable-iap-and-quantity-selection-in-thunkable/3421293/1 "2024-12-17T19:17:21Z")

</div>

Hi, I just created an app with in-app purchase products on Android, and I am using the “Buy in app purchase package” block.

I have successfully set up the connection with RevenueCat and can retrieve both the offerings and package details. However, I would like to ask for clarification regarding the structure of the purchase object returned by the “Buy in app purchase package” block.

Specifically, I want to parse the quantity of the product in that purchase. Could someone please clarify:

1. What fields are included in the purchase object?
2. How can I access the quantity of the product purchased?

Any guidance or examples would be greatly appreciated!

Thank you!

 ![Screenshot 2024-12-17 at 19.10.44](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/f/3f0f9eca66ec7cf6354c0d35adeb16f02af43807.png)

---

<div class="post-metadata">

**Author:** ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)\
**Post date:** [December 17, 2024, 8:05pm UTC](https://community.thunkable.com/t/help-with-consumable-iap-and-quantity-selection-in-thunkable/3421293/2 "2024-12-17T20:05:49Z")

</div>

Hi caokyhieu253txrg6o, welcome to Thunkable! 🎉

Be sure to check out [How to ask Great Questions v2.0](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983/1), the [Community Guidelines](https://community.thunkable.com/t/community-guidelines/78/8), and our [Getting Started Guide](https://docs.thunkable.com/getting-started/get-started) to make the best of your Thunkable Community experience!

You will need to use [these combinations of block](https://docs.thunkable.com/blocks/app-features/in-app-purchase-blocks-with-revenuecat#sample-block-combination-1). The offerings block will give you all available items for purchase and stored within the offerings object. All items will be put into a list under “availablePackages”. From there, you need to identify the index of the list of products you want.

Upon a successful purchase, the green purchase block will contain information similar to the ones in [“Customer Info”](https://docs.thunkable.com/blocks/app-features/in-app-purchase-blocks-with-revenuecat#block-in-app-purchase-customer-info). It will contain information on all the items purchased. If you want to access the quantity of the product purchased, it will depend on what kind of product it is. I would look into the example JSON for the part of the object that would be most useful for you. I would default to allPurchasedProductldentifiers or allPurchaseDates.
