Ask about MobileIAP on purchase success bug?

0 favourites
  • 13 posts
From the Asset Store
You think you can guess the character’s name?! Then let’s see how smart you are!
  • What is best way to do IAP purchase?

    i'm doing like this image, the problem is

    when the game first install, and i try to purchase the IAP, but in the process i minimize the game, wait a while and get back to the game, cancel the payment process, but the on purchase success seems already triggered, my code is run which is add fire function.

    but when i try for second time, the bug not appear again, always happen when on fresh install.

    anyone know how to solve this issue?

    The product is set as consumable.

    Github

    https://github.com/Scirra/Construct-bugs/issues/8084

    Video

    https://drive.google.com/file/d/1OP9QhjbfpqCD0gQcbMFpIGA-BIfOeF9K/view?usp=sharing

    Solved ?

    So apparently using on product owned event will return null using this exploit, so i will using this event instead on purchase success event.

    have no problem with purchasing normally also.

  • Hi. You'd make a good tester! I think you found a bug.

    I just checked that on two devices I always get a purchase without paying))))

    I need to try it with other developers' games from the market (winks.).

  • igortyhon let me know if you found a way to resolve the issue, or do you know where i need to report this plugin bug?

  • igortyhon let me know if you found a way to resolve the issue, or do you know where i need to report this plugin bug?

    Reports here.

    construct.net/en/forum/construct-3/general-discussion-7/report-bugs-amp-post-128538

  • I don't plan on fixing that at this time. But later when I will prepare updates for games in the store I will try to apply one of these flags to check purchases.(on the screen)

    You can try to create a control variable and after returning from the background activate it and make a purchase not immediately but only after checking the state of the background protection variable.

    But I hope after your report it will be corrected.

  • Ah thank you for your suggestion i will try that also.

    and i already post the bug on github, hope C3 dev team will look at that.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I have a related issue where “on product owned” DOES’NT trigger when a promo code is used for an IAP so I’m also periodically checking “has product”. I wonder if you can do something similar as a working - i.e. ignore “on product owned” and just check “has product”.

    Also just noticed that you’re using “on purchase success” (not “in price owned”). I think you could still apply the above but also maybe try replacing “on purchase success” with “on product owned”?

  • i will testing using all mobileIAP plugin method see which work, i already tried using has product in on start layout event but not working, maybe i will put it on every x second event

  • i will testing using all mobileIAP plugin method see which work, i already tried using has product in on start layout event but not working, maybe i will put it on every x second event

    Make sure you've registered the product first - from the manual:

    When making IAP events, the first thing you need to do is to complete the plugin's registration stage. You won't be able to make any purchases or check if a user owns a product until this is done.

  • already regis the product at start, and also tried restore purchase

    of all of the method only return purchase success when canceling the purchase for first time after fresh install.

    i can't using on suspended, cause the payment modal is also suspending the game, so in the meantime we can't detect if user canceled or not, it will still return purchase success

    i'm recording the bug here

    https://drive.google.com/file/d/1OP9QhjbfpqCD0gQcbMFpIGA-BIfOeF9K/view?usp=sharing

  • Solved ?

    So apparently using on product owned event will return null using this exploit, so i will using this event instead on purchase success event.

    have no problem with purchasing normally also.

  • Solved ?

    So apparently using on product owned event will return null using this exploit, so i will using this event instead on purchase success event.

    have no problem with purchasing normally also.

    Is there any example of how you do it, I couldn't find anything here in the track and on github, only discussions.

  • i'm doing like this.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)