I have a complete solution for purchasing applications, but I am wondering if I handle errors correctly. I handle errors using code similar to Apple's example.
- (void) failedTransaction: (SKPaymentTransaction *)transaction { if (transaction.error.code != SKErrorPaymentCancelled) {
But my question is: WILL Storekit displays the corresponding errors for the user (it is impossible to connect, decline payment, etc.). Or do I always need to handle this? It seems that during testing, when the storekit is working fine, it really handles the errors themselves, so I can silently reset them (well, actually, we register them on another server).
However, when the storekit sandbox is playing, we get random errors indicating a problem and NO notifications from the store itself.
What are you guys doing with the mistakes? Do you always warn the user or will it duplicate warnings that have already been provided by storekit.
Thanks Roger
iphone storekit
Roger
source share