IAP problem
tanert
Member Posts: 35
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
Here you go
http://forums.gamesalad.com/discussion/74468/armellines-in-app-purchase-tutorial-template
@nadir.alkarbi
http://forums.gamesalad.com/discussion/74468/armellines-in-app-purchase-tutorial-template
Yes. But I think this ex behaviour.
Are you triggering the level unlocked based on a saved attribute, or based on the purchase table?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Armelline
based on purchase table
@Armelline
I will try as;
copy table; purchase table to saved table
If the saved table coloumn 5 is purchased;
change game.gamelocked to false
else true.
If game.time > 0 restore all items.
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Thank you soo much @Armelline
@Armelline thank you very much
@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
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
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.
And here images from my game