How to detect a sign in a cancel event during recovery?

When I call up a [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]dialog box asking for a password for a memorable user. I want to determine when the user clicks cancel from this dialog box. How can i do this?

+4
source share
1 answer

My previous answer was wrong, you can try the following, although I did not test it, but could help you.

- (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error{

if (error.code == SKErrorPaymentCancelled){
   //Handle Cancel
}

}
+1
source

Source: https://habr.com/ru/post/1534639/


All Articles