IAP problem

Hey,

when I tested the IAP (Unlock the levels) behaviour during the ALPHA test for Android. Payment was done. but after that, sometimes, unlocked level rules works sometimes did not work.

Is anyone one that; IAP application to rules and conditions???

Comments

  • ArmellineArmelline Member, PRO Posts: 5,407

    Are you triggering the level unlocked based on a saved attribute, or based on the purchase table?

  • tanerttanert Member Posts: 35

    @Armelline

    based on purchase table

  • tanerttanert Member Posts: 35

    @Armelline

    I will try as;

    1. If the purchase table column 5 is purchased;
      copy table; purchase table to saved table
    2. If the saved table coloumn 5 is purchased;
      change game.gamelocked to false
      else true.

    3. If game.time > 0 restore all items.

  • ArmellineArmelline Member, PRO Posts: 5,407

    You cannot rely on the purchase table to be accurate, as it relies on an internet connection. When a purchase is completed the first time, save it to an attribute or a separate table.

  • nadir.alkarbinadir.alkarbi Member, PRO Posts: 94

    @Armelline i have question do i need to put this if I'm using a Consumable id

  • ArmellineArmelline Member, PRO Posts: 5,407

    @nadir.alkarbi said:
    @Armelline i have question do i need to put this if I'm using a Consumable id

    If you want it to keep trying to fill the table after a failed attempt, then yes. Otherwise your IAP will not work until the table is filled, which will require a scene or app relaunch.

  • nadir.alkarbinadir.alkarbi Member, PRO Posts: 94

    Thank you soo much @Armelline :)

  • tanerttanert Member Posts: 35

    @Armelline thank you very much

  • nadir.alkarbinadir.alkarbi Member, PRO Posts: 94
    edited November 2015

    @Armelline said:

    @nadir.alkarbi said:
    @Armelline i have question do i need to put this if I'm using a Consumable id

    If you want it to keep trying to fill the table after a failed attempt, then yes. Otherwise your IAP will not work until the table is filled, which will require a scene or app relaunch.

    @Armelline i have problem now i have 3 buy button one is 0.99$ when i press that button 3 windows show up for all 3 buttons idk whats the problem even when i cancel its keep showing up for 5 sec then disappeared.

  • ArmellineArmelline Member, PRO Posts: 5,407

    @nadir.alkarbi said:
    @Armelline i have problem now i have 3 buy button one is 0.99$ when i press that button 3 windows show up for all 3 buttons idk whats the problem even when i cancel its keep showing up for 5 sec then disappeared.

    I'm afraid you'll need to go into way more detail and provide screen shots before I can even begin to help you there :D

  • nadir.alkarbinadir.alkarbi Member, PRO Posts: 94
    edited November 2015

    @Armelline said:

    @nadir.alkarbi said:
    @Armelline i have problem now i have 3 buy button one is 0.99$ when i press that button 3 windows show up for all 3 buttons idk whats the problem even when i cancel its keep showing up for 5 sec then disappeared.

    I'm afraid you'll need to go into way more detail and provide screen shots before I can even begin to help you there :D

    I think my problem was because the iAP request multiple times so thats why its double window pop up when i click buy but i change my code look at this images and tell me if I'm doing everything right please


    and i put this code in manager actor inside the scene but invisible

    and i test it on my game now and works fine but i didn't test iAP yet my credit card rejected by google idk whats wrong.

  • nadir.alkarbinadir.alkarbi Member, PRO Posts: 94

    And here images from my game


Sign In or Register to comment.