Reputation: 5616
I am trying to test my in app purchase (in sandbox) and have the following problem :
The problem is that the content is then not downloaded and that the following method doesn't seem to be called :
- (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];
break;
case SKPaymentTransactionStateRestored:
[self restoreTransaction:transaction];
default:
break;
}
}
}
Can anyone help ?
Upvotes: 0
Views: 704
Reputation: 5117
Check whether you added transaction observer
[[SKPaymentQueue defaultQueue]addTransactionObserver:mObserverObject];
Where mObserverObject is the object of class where you have implemented updatedTransactions method.
Upvotes: 1