Instance Method

finishTransaction:

Completes a pending transaction.

Declaration

- (void)finishTransaction:(SKPaymentTransaction *)transaction;

Parameters

transaction

The transaction to finish.

Discussion

Your application should call this method from a transaction observer that received a notification from the payment queue. Calling finishTransaction: on a transaction removes it from the queue. Your application should call finishTransaction: only after it has successfully processed the transaction and unlocked the functionality purchased by the user.

Calling finishTransaction: on a transaction that is in the SKPaymentTransactionStatePurchasing state throws an exception.

See Also

Managing Transactions

delegate

A delegate that provides information needed to complete transactions.

transactions

Returns an array of pending transactions.

- addPayment:

Adds a payment request to the queue.