當我購買我的應用程序以前購買的「自動再生訂閱」,它說恢復訂閱購買了自動再生訂閱
You're currently subscribed to this...
當我點擊確定,在支付的委託隊列..
- (void) paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
{
for (SKPaymentTransaction * transaction in transactions)
{
switch (transaction.transactionState)
{
case SKPaymentTransactionStatePurchased:
[self completeTransaction:transaction];
break;
case SKPaymentTransactionStateFailed:
[self failedTransaction:transaction]; // Why this is called?
break;
case SKPaymentTransactionStateRestored:
[self restoreTransaction:transaction];
default:
break;
}
}
}
的transaction.transactionState返回是SKPaymentTransactionStateFailed instea d的SKPaymentTransactionStateRestored,這是正常的嗎?
那麼我該如何正確處理?