[Resolved] IAP asking to bought multiple times in Sandbox

Hello all. When I click the button to buy my app and put it my test user name and password everything goes threw perfectly but then 5 seconds later the popup comes up to purchase the IAP again. This could happen multiple time. Has any experienced this before.

Thanks Alberto [import]uid: 34105 topic_id: 32056 reply_id: 332056[/import]

What is your code for the button? Are you using a touch or tap event? If a touch event are specifying the event phase in the function to prevent it from being called twice? [import]uid: 52491 topic_id: 32056 reply_id: 127872[/import]

What is your code for the button? Are you using a touch or tap event? If a touch event are specifying the event phase in the function to prevent it from being called twice? [import]uid: 52491 topic_id: 32056 reply_id: 127872[/import]

I am using a touch event with the event phase specified as “ended”

I think My problem was that I had store.purchase in two spots. Once in my button and once in the transaction callback. [import]uid: 34105 topic_id: 32056 reply_id: 128156[/import]

I am using a touch event with the event phase specified as “ended”

I think My problem was that I had store.purchase in two spots. Once in my button and once in the transaction callback. [import]uid: 34105 topic_id: 32056 reply_id: 128156[/import]