BASIC

Author Topic: [ANDROID] Inapp purchase question - How to consume a product?  (Read 1617 times)

Offline adaz

  • Mc. Print
  • *
  • Posts: 48
    • View Profile
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.

Offline adaz

  • Mc. Print
  • *
  • Posts: 48
    • View Profile
I had to replace all occurences of "com.ouya.shop" with "com.google.play" in shop.java to make it work. Now it works...

Online MrPlow

  • Prof. Inline
  • *****
  • Posts: 1356
    • View Profile
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

Offline adaz

  • Mc. Print
  • *
  • Posts: 48
    • View Profile
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?

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3513
    • View Profile
    • Space Fractal
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.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline adaz

  • Mc. Print
  • *
  • Posts: 48
    • View Profile
It's very kind of you, I'll PM it asap.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3513
    • View Profile
    • Space Fractal
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

Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline adaz

  • Mc. Print
  • *
  • Posts: 48
    • View Profile
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!

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3513
    • View Profile
    • Space Fractal
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).
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.