Instance Method


Completes a pending transaction.


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



The transaction to finish.


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


A delegate that provides information needed to complete transactions.


Returns an array of pending transactions.

- addPayment:

Adds a payment request to the queue.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software