[ANDROID] Inapp purchase question - How to consume a product?

Previous topic - Next topic

adaz

Of course everything is set correctly, I said the purchasing works, but I cannot query the price.
In fact I modified the inapp_functions.gbas, but now I restored the original one, and the price is now: "Exception calling method".
So it still doesn't work.

adaz

I had to replace all occurences of "com.ouya.shop" with "com.google.play" in shop.java to make it work. Now it works...

MrPlow

Cool - glad your got it working in the end...my old inapp library worked for checking price without that fix, so good to know for newer version for other users having the same issue.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

adaz

No, still not everything OK. When I make a successful purchase, there's no such variable that indicated the successful purchase.

InAppPurchase_isAvailable returns the same code than before the purchase.
InAppPurchase_Activate returns 0.
INAPP_PURCHASE$ returns the same code than before the purchase.
INAPP_PURCHASES$ returns the same empty string than before the purchase.
JavaCall$("Shop:Activated") returns the same ("request:") than before the purchase.
INAPP_ACTIVATE$ returns the same string (sku) than before the purchase.

How can I check that the payment was successful?

spacefractal

Can you pm your projekt? (Im only need that part for checking). Can been issues, but I'm don't remember I'm actually removed it. Only admob.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

adaz


spacefractal

I'm take a look tomorrow. I'm might have comment something out for some reason.

I'm do might need to have your dev string key from your Google Play, but no access required by now

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

adaz

I intentionally left my developer string in the source code I sent you in the PM.
Of couse I'll send you the google account credentials too, if you need them for testing. (The uploaded APK currently only runs the inapp test code I sent you, the game doesn't work now).

Thank you!

spacefractal

im checking today, when im got more info. howover as im wrote, im gonna go to vaccation (ski vaccation), which im will prefare and is hence first home again monday week efter. Nothing about this issue at all here and trying to help and get it working again (even im stoppde Android, but thing like this should work).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/