Platforms to show: All Mac Windows Linux Cross-Platform
Back to SKPaymentQueueMBS class.
SKPaymentQueueMBS.paymentQueueRestoreCompletedTransactionsFinished
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | StoreKit | MBS MacCloud Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
This method is called after all restorable transactions have been processed by the payment queue. Your application is not required to do anything in this method.
SKPaymentQueueMBS.removedTransactions(transactions() as SKPaymentTransactionMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | StoreKit | MBS MacCloud Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
transactions: An array of the transactions that were removed.
Your application does not typically need to implement this event but might implement it to update its own user interface to reflect that a transaction has been completed.
SKPaymentQueueMBS.restoreCompletedTransactionsFailedWithError(Error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | StoreKit | MBS MacCloud Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Some examples using this event:
SKPaymentQueueMBS.updatedDownloads(downloads() as SKDownloadMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | StoreKit | MBS MacCloud Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Available in Mac OS X 10.8 and newer.
SKPaymentQueueMBS.updatedTransactions(transactions() as SKPaymentTransactionMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | StoreKit | MBS MacCloud Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
transactions: An array of the transactions that were updated.
The application should process each transaction by examining the transaction's transactionState property. If transactionState is SKPaymentTransactionStatePurchased, payment was successfully received for the desired functionality. The application should make the functionality available to the user. If transactionState is SKPaymentTransactionStateFailed, the application can read the transaction's error property to return a meaningful error to the user.
Once a transaction is processed, it should be removed from the payment queue by calling the payment queue's finishTransaction: method, passing the transaction as a parameter.
Important: Once the transaction is finished, Store Kit can not tell you that this item is already purchased. It is important that applications process the transaction completely before calling finishTransaction:.
Some examples using this event:
The items on this page are in the following plugins: MBS MacCloud Plugin.