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.