Yes of course. It’s just a quick and simple exemple in test mode. So the product id is automatically set to android.test.purchased.
Btw, i already tested with true product id and get the same result.
I certainly do something wrong…
I’ll upload much more developped blocks.
So, first test with published app :
second test :
I think there’s something wrong with autoacknowledgement/Isacknowledged…
Even if I managed to purchase successfully the sub (with HandleNonConsumable), how to determine if the subscription has not expired when i restart the app ?
GetPurchaseDetails won’t help me cause it needs “purchase” info.
Maybe store purchasedtime and orderId and compare with the last ordrerId (gotpurchaseshistory) and delay of subscription… ??
EDIT : gotpurchaseshistory return empty lists (ordersID/productsID) when the subscription has expired. Will it be the solution !
Lanny
Sam problem My app on play store but one product buy and again buying error
My product not purchase again how to Set up block
Try to add HandleConsumable method in GotPurchase event.
After that, you normally will be able to purchase again your product.
1 Like
Taifun
September 3, 2022, 7:45pm
92
as far as I can see: yes
before being able to buy again, you first have to consume the product
Taifun
2 Likes
oseamiya
(Oseamiya)
September 4, 2022, 7:40am
93
Thanks to my friend Nirnaya, who have updated this extension to the newer version of billing sdk 5.0.0 .
You can check the repo and download the latest extension.
This extension helps you to connect Google's in-app billing service in your AppInventor application.
I will soon test the extension and update the extension. You can ask any doubts here aswell.
[Edit]
According to Nirnaya,
The extension have QueryPurchases block to investigate about all purchases made by user till. Thanks to him !!
1 Like
oseamiya
(Oseamiya)
September 4, 2022, 7:46am
94
Yeah purchases can be handled as consumable (can be purchased again) or can be acknowledged.
An updated version ? it would be awesome.
I tried the extension by Nirnaya… I have the following runtime errors with the LaunchPurchases method :
with a string for productdetails : string cannot be cast to com.android.billingclient.api.ProductDetails ;
with a list for productdetails : util.YailList cannot be cast to …
If it can help…
Taifun
September 5, 2022, 7:09pm
96
@oseamiya please update the documentation accordingly..
it might be easier to start a new thread with version 5…
thank you…
Taifun
Lily
(Lily)
September 7, 2022, 8:17pm
97
Kindly I need help for subscription blocks someone help me
Taifun
September 7, 2022, 8:49pm
98
Use the methods and events together with this skuType
Taifun
1 Like
Lily
(Lily)
September 7, 2022, 8:58pm
99
I wish you could have shown the full blocks if you would have time to help
Lily
(Lily)
September 7, 2022, 9:09pm
100
For example with your old aix I have been using only these two and evrything was done
1 Like
Afreen_Khan
(Afreen Khan)
September 10, 2022, 8:04am
101
My App is getting closed while I try to make a purchase. Kindly anyone provide blocks please.
oseamiya
(Oseamiya)
September 12, 2022, 8:54am
104
The extension has been officially upgraded to sdk 5.0.0.
Documentation of the extension is updated. Thankyou!
oseamiya
(Oseamiya)
September 12, 2022, 9:02am
105
productDetails is the object you get from QueryProductDetails
. It can be something like this :
1 Like
Team_DIY
(Team DIY)
September 14, 2022, 11:56am
106
Hi.. im following the same methode. but some of my users getting message that - item already owned from google play.
yashsrv
(Yash Srivastava)
September 14, 2022, 11:59am
107
did you consume the product after purchase?
1 Like