I’m adding in-app purchase on my application.
I have a view that displays information about the product and one button for purchasing the product.
My question was how can I stop the user to tap again the buy button so that the StoreManager will only call my Buy method once? Because sometimes I had tapped it twice that’s why two alertView shows up asking about the purchase. Should I set the button “enabled property” to no after I tap. Any suggestions that would be good about this…
thanks in advance.
When you start the purchase (after pressing the button) disable the button.
Then you can use the call backs from the store kit API to know when a transaction has completed, failed or otherwise and re-enable the button or change its state to show the fact that the product has been purchased.