Resolution: Needs more info
Affects Version/s: None
Component/s: Appcelerator Modules
Ti.Storekit version: 4.3.0
- It's only possible to reproduce on production, since it's not possible to add a credit card on sandbox environment.
When the user doesn't have credit card on apple acount, when he click's on purchase inside the app, he is redirected to appstore to add a new card. At this moment, Storekit module fire's TRANSACTION_STATE_FAILED event with cancelled 'true'. When the user finish the credit card addition and confirm the purchase, purchased event is fired, but my app is not listenning to this event anymore, because the purchased was 'cancelled'.
To reproduce this issue, use the example of storekit module:
But it's only possible to reproduce on production, since it's not possible to add a credit card on sandbox environment.
Sometimes when the user goes to add a new credit card, the app is restarted. In this case, TRANSACTION_STATE_PURCHASED is never called, but the purchase is completed.