SKPaymentTransactionObserver
A set of methods that process transactions, unlock purchased functionality, and continue promoted Apple In-App Purchases.
Declaration
protocol SKPaymentTransactionObserver : NSObjectProtocolMentioned in
- Testing Apple In-App Purchases in Xcode
- Promoting Apple In-App Purchases
- Processing a transaction
- Setting up the transaction observer for the payment queue
- Testing transaction observer code
- Choosing a receipt validation technique
- Supporting Family Sharing in your app
- Testing resubscribing from the subscriptions page
Overview
Observers of SKPaymentQueue objects implement the methods of this protocol.
The system calls an observer when the queue updates or removes transactions. An observer needs to process all successful transactions, unlock the functionality the user purchases, and then finish the transaction by calling the payment queue’s finishTransaction(_:) method.
Topics
Handling transactions
Restoring transactions
paymentQueue(_:restoreCompletedTransactionsFailedWithError:)paymentQueueRestoreCompletedTransactionsFinished(_:)