I implemented an in-app purchase based on this tutorial. The problem I am experiencing is that I cannot detect when the Cancel button is clicked in the Confirm In-App Purchase alert, which is part of the StoreKit structure.
Some sources suggest that it -(void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactionsis called when Cancel is clicked, but in my case it never starts. My setup is a ViewController that imports the IAPManager: NSObject class, which corresponds to SKProductRequestDelegate and SKPaymentTransactionObserver. The product is successfully requested, but the transaction observer never calls paymentQueue.
How can I make it work so that I can detect the Cancel button?
source
share