# Iap purchase successfully or not

**URL:** <https://community.thunkable.com/t/iap-purchase-successfully-or-not/1652246>\
**Category:** In App Purchase\
**Created:** [December 12, 2021, 5:55am UTC](https://community.thunkable.com/t/iap-purchase-successfully-or-not/1652246 "2021-12-12T05:55:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![namitnagar](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@namitnagar](https://community.thunkable.com/u/namitnagar)\
**Post date:** [December 12, 2021, 5:55am UTC](https://community.thunkable.com/t/iap-purchase-successfully-or-not/1652246/1 "2021-12-12T05:55:30Z")

</div>

How can I check if the purchase is successful or not and how can I get previous purchases.

Pls help @jared @wei @jane @muneer @domhnallohanlon

---

<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:** [December 12, 2021, 8:28am UTC](https://community.thunkable.com/t/iap-purchase-successfully-or-not/1652246/2 "2021-12-12T08:28:00Z")

</div>

There is currently **no way** to get the recent purchases for **one time** payment.

The block in the IAP component  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/6/66dc0b4f90e835a9549750e13206c9f6848d0ca9.png)

only works for subscription.

---

<div class="post-metadata">

**Author:** ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)\
**Post date:** [February 26, 2022, 6:46am UTC](https://community.thunkable.com/t/iap-purchase-successfully-or-not/1652246/4 "2022-02-26T06:46:51Z")

</div>

@muneer Can I see your blocks how you do if statement to verify if user has active subscription purchased?

I’m trying to figure out how to use either of these blocks to check if the user has already purchased this IAP subscription.

This is how I used the blocks to see what it returns.

 ![Screen Shot 2022-02-25 at 11.54.39 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/1/d1b27c50a46d348054866004d28c0a0fa38127c1.png)  
 ![Screen Shot 2022-02-25 at 11.55.00 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/a/aaa5cb2344618230ebc2dc07292dbb942fab6d47.png)

What it returned has me confused.

 ![IMG_1794](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/0158a84b6a23860619a192b7df69ae81ad5149e4.jpeg)  
 ![IMG_1793](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/0/20c1d34693678500e2aefc0d64e1afbd98fc32d5.jpeg)

---

<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:** [February 26, 2022, 9:58am UTC](https://community.thunkable.com/t/iap-purchase-successfully-or-not/1652246/5 "2022-02-26T09:58:34Z")

</div>

> [@exploriverse.com](#):
>
> What it returned has me confused.

The `Purchase Info` is a JSON object. You need to convert the object to JSON text if you want to view it in a label.

Use something like this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/a/9a50cce05c7a883ecfa5072663313f25be6fd8ca.png)

---

<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:** [May 27, 2022, 9:59am UTC](https://community.thunkable.com/t/iap-purchase-successfully-or-not/1652246/6 "2022-05-27T09:59:00Z")

</div>

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