Completes a pending transaction.
- iOS 3.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.2+Beta
The transaction to finish.
Your application should call this method from a transaction observer that received a notification from the payment queue. Calling
finish on a transaction removes it from the queue. Your application should call
finish only after it has successfully processed the transaction and unlocked the functionality purchased by the user.
finish on a transaction that is in the
SKPayment state throws an exception.