GuybrushThreepwood
GuybrushThreepwood

Reputation: 5616

In App Purchase Problem - Where Am I Going Wrong ? iPhone

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

Answers (1)

Chandan Shetty SP
Chandan Shetty SP

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

Related Questions