Bug Issue: Still problem with IAP on Android


Pages: 1

RulezTeam

  • Subscriber - Stencyl Studio
  • *
March 19, 2019, 06:06:10 am
Hi,
I'm still having problem with unmanaged purchase as last year : http://community.stencyl.com/index.php?issue=1200.0

I'm on 10310, and when I try to buy again my item, I've this error :

Code: [Select]
03-19 13:48:40.351: E/IabHelper(4511): In-app billing error: Unable to buy item, Error response: 7:Item Already Owned
03-19 13:48:40.351: I/Purchase(4511): Failed to buy IabResult: Unable to buy item (response: 7:Item Already Owned)

I've tried to move free unmanaged block from "before I buy the item" (as suggest on stencylpedia) to "after I've bought it" without any success.

I've tried to write the item ID in a global variable, in temp variable and directly on the block, but nothing; the problem persist.

If I try to use test server from Google, the fake purchase works.

What's going on with this new 4 version ?


rob1221

  • Master Stencyler
  • *
March 19, 2019, 06:58:47 am
Did you use the "use product with ID" block?  I believe that's the one that tells Google to consume the purchase.
  • Status changed from New to Need Info
« Last Edit: March 19, 2019, 06:59:19 am by rob1221 »


RulezTeam

  • Subscriber - Stencyl Studio
  • *
March 19, 2019, 02:57:39 pm
Hi rob,
yes I use that block after I use buy block.
I'm updating a game that it had already implemented the purchase, and now, after I've compiled it with 10310 (for publish), if I try to buy item, I have this error.


svintaj

  • Subscriber - Stencyl Studio
  • *
March 20, 2019, 08:51:08 am
You might need to publish your latest APK first, at least for internal testing, before everything works as expected.
I had that problem recently and as I remember that's how I fixed it. I guess Google Play needs to 'be in sync' with the same AKP version.


RulezTeam

  • Subscriber - Stencyl Studio
  • *
March 22, 2019, 03:32:54 am
Hi svintaj,
thank you for your cooperation, but if I try to buy an item that it isn't consumable, I can but it even if I haven't published my apk on Google. So I don't think that the problem is that I haven't update my apk on Google server. I think that there is a problem when Stencyl send info about to "free" item from your account inventory on Google server; this is the error that I have, and that it does not allow me to buy it again.
The


svintaj

  • Subscriber - Stencyl Studio
  • *
March 22, 2019, 04:18:01 am
Maybe your old APK uses in app billing v.2 and now you're using in app billing v.3? You did't have to consume your consumables in v.2 but you have to now in v.3, the other things works in the old same way. That was my problem and it works now.
« Last Edit: March 22, 2019, 05:45:16 am by svintaj »


RulezTeam

  • Subscriber - Stencyl Studio
  • *
March 22, 2019, 12:38:15 pm
Hi svintaj,
my app was published last year, and I think that billing v3 was already implemented.
From which version v3 is been implemented ?


RulezTeam

  • Subscriber - Stencyl Studio
  • *
March 27, 2019, 12:28:35 pm
Bump.


svintaj

  • Subscriber - Stencyl Studio
  • *
March 27, 2019, 12:51:45 pm
It was implemented in Stencyl 3.3 according to: http://www.stencyl.com/features/whatsnew/
Still, have you tried to uppload the new APK for internal testing on Google Play? The problem may just be that the internal version number differ?

I got it working with Stencyl 4.0.1 stable, I can consume and *re*-puchase the same items over and over.


Pages: 1

Details

  • Reported
    March 19, 2019, 06:06:10 am
  • Updated
    March 27, 2019, 12:51:45 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Need Info
  • Priority
    Normal
  • Version
    Stencyl 3.5
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags