Instance Method


Adds an observer to the payment queue.


- (void)addTransactionObserver:(id<SKPaymentTransactionObserver>)observer;



The observer to add to the queue.


Your application should add an observer to the payment queue during application initialization. If there are no observers attached to the queue, the payment queue does not synchronize its list of pending transactions with the Apple App Store, because there is no observer to respond to updated transactions.

If an application quits when transactions are still being processed, those transactions are not lost. The next time the application launches, the payment queue resumes processing the transactions. Your application should always expect to be notified of completed transactions.

If more than one transaction observer is attached to the payment queue, no guarantees are made as to the order which they will be called. It is safe for multiple observers to call finishTransaction:, but not recommended. It is recommended that you use a single observer to process and finish the transaction.

See Also

Adding and Removing the Observer

- removeTransactionObserver:

Removes an observer from the payment 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