StoreKit: Catch failed restore?

后端 未结 3 1537
星月不相逢
星月不相逢 2021-01-04 18:59

I\'m implementing In-App purchase feature with Restore button.

I have a brand new test user set up, without any payments made.

3条回答
  •  再見小時候
    2021-01-04 19:31

    You can use following delegate method for Restore Transaction.

     -(void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error{
    NSLog(@"Error when purchasing: %@",error);
    
    }
    

提交回复
热议问题