Problem with PhonegapIAP plugin

0 favourites
  • 10 posts
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • Hi,

    I have problem with the PhonegapIAP plugin from cranberrygame .

    After exporting via Intel XDK and testing my game on Google Play, payments works well, but the "on product ----- purchase success" condition doesn't trigger. The result is that my testers are charged, but they don't get what they paid for.

    Am I doing something wrong or do I have to find a workaround? (maybe trigger once the "has product" condition?)

    The "on product purchase success" condition is checked every tick, so I guess that's not the problem

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This isn't the same technology, but may have a similar solution:

    https://www.scirra.com/forum/in-app-purchase-issue-ios-cocoonjs_t112489?start=60

    Quoted from that link:

    simply you need to put this events:

    "on product fetch complete > update product list"

    you must update products list to be able to take the varius products's proprerties (such as price, name, description ecc...)

    Basically maybe you need to refresh something before the status shows up?

  • Thanks for the suggestion !

    I added an event "On any purchase success --> request store listing" at the beginning of the event sheet, and will test the result tomorrow.

  • On Start of Layout

    => Add product IDs

    => Request store listing

    It also works fine if you trigger those on menu touch (open shop menu for example).

    On Touch MenuIcon

    => Add product IDs

    => Wait 0.1s

    => Request store listing

    => Open Menu

  • Seems like I just forgot to add product IDs. Thanks a lot !

    Do you know if this PhonegapIAP plugin works the same way on iOS and WP8 builds using intel XDK?

  • Seems like I just forgot to add product IDs. Thanks a lot !

    Do you know if this PhonegapIAP plugin works the same way on iOS and WP8 builds using intel XDK?

    You'll have better luck asking Cranberrygame directly, there's a long thread for his plugins in the Completed Addon forum.

  • After uploading the game to Google play and testing, the purchases are still not taken into account. And after rechecking, I actually already added the product IDs at the start of the level the first time. So the problem is still there...

    Here is how my code goes :

    • at the start of the level --> add product IDs

    (after the combat, 2 minutes or so later)

    • when entering the map --> add product IDs (again ! this time in separate actions, first time it is all in one action, comma separated) (This is the event I added following your message, so it doesn't work if I simply delete it)
    • wait 0.1 second
    • request store listing

    (then, on confirming purchase by touching the "confirm" object)

    (these 2 are checked every thick)

    • on touched object --> purchase product "product1"
    • on product "product1" purchase success --> change the value of a global variable (which is not done)

    In addition, on my title screen I have the following :

    • Add products IDs

    -wait 0.1 seconds

    • request store listing

    -On store listing success -->

    - Has product "product1" --> change the value of the global variable... which is not done either !

    I can confirm the payment options are working, I get paid,but people doesn't receive the content... :-/

    Any idea of what's going on? Maybe cranberrygame can help?

    This is very ennoying, as the game should release next month and my beta testers are currently blocked at the end of the free version.

  • After doing some additional research and testing the purchases in a simple .capx file, it seems that when I set the action "Request store listing", it always fails. The result is that the users can purchase the products but the condition "on purchase success" don't trigger.

    When the store listing fails, I set the action :

    set text to : "Store listing failed !" & PhonegapIAP.ErrorMessage

    The return is just "Store listing failed !" (no error message displayed)

    Here is the capx of my test file, if it could help...

    https://www.dropbox.com/s/34iciejfb0jyr ... .capx?dl=0

    Any idea what I could do to make the store listing successful?

  • Rable

    PMed

    Thanks

  • Thanks cranberrygame for the help provided ! I learned that for purchase-based conditions one should use "is touching object"+"trigger once" instead of "on touched object". But my "store listing failed" problem still apply...

    I posted a topic in the publishing and distribution forum as I believe the problem is probably not directly related to C2.

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