Platforms to show: All Mac Windows Linux Cross-Platform

Back to SKPaymentQueueMBS class.

SKPaymentQueueMBS.addPayment(payment as SKPaymentMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Adds a payment request to the queue.

payment: A payment request.

The payment request must have a product identifier registered with the Apple App Store and a quantity greater than 0. If either property is invalid, addPayment throws an exception.

When a payment request is added to the queue, the payment queue processes that request with the Apple App Store and arranges for payment from the user. When that transaction is complete or if a failure occurs, the payment queue sends the SKPaymentTransaction object that encapsulates the request to all transaction observers.

Some examples using this method:

SKPaymentQueueMBS.cancelDownload(download as SKDownloadMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Cancel one download.

Available in Mac OS X 10.8 and newer.

SKPaymentQueueMBS.cancelDownloads(downloads() as SKDownloadMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Cancel a few downloads.

Available in Mac OS X 10.8 and newer.

SKPaymentQueueMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates a new SKPaymentQueueMBS object.

Please make a subclass of this class to fill code into the events.
And please only have one instance of this class.

SKPaymentQueueMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The destructor.

SKPaymentQueueMBS.finishTransaction(transaction as SKPaymentTransactionMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Completes a pending transaction.

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 SKPaymentTransactionMBS.StatePurchasing state throws an exception.

Some examples using this method:

SKPaymentQueueMBS.pauseDownload(download as SKDownloadMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Pauses one download.

Available in Mac OS X 10.8 and newer.

SKPaymentQueueMBS.pauseDownloads(downloads() as SKDownloadMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Pauses a few downloads.

Available in Mac OS X 10.8 and newer.

SKPaymentQueueMBS.restoreCompletedTransactions

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Asks the payment queue to restore previously completed purchases.

Your application calls this method to restore transactions that were previously finished so that you can process them again. For example, your application would use this to allow a user to unlock previously purchased content onto a new device.

When you create a new product to be sold in your store, you choose whether that product can be restored or not. See the In App Purchase Programming Guide for more information.

The payment queue will deliver a new transaction for each previously completed transaction that can be restored. Each transaction includes a copy of the original transaction.

After the transactions are delivered, the payment queue calls the observer's paymentQueueRestoreCompletedTransactionsFinished event. If an error occurred while restoring transactions, the observer will be notified through its paymentQueue:restoreCompletedTransactionsFailedWithError event.

Some examples using this method:

SKPaymentQueueMBS.restoreCompletedTransactionsWithApplicationUsername(username as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Asks the payment queue to restore previously completed purchases, providing an opaque identifier for the user’s account.

username: An opaque identifier for the user’s account on your system.

SKPaymentQueueMBS.resumeDownload(download as SKDownloadMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Resumes one download.

Available in Mac OS X 10.8 and newer.

SKPaymentQueueMBS.resumeDownloads(downloads() as SKDownloadMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Resumes a few downloads.

Available in Mac OS X 10.8 and newer.

SKPaymentQueueMBS.startDownload(download as SKDownloadMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Start one download.

Available in Mac OS X 10.8 and newer.

SKPaymentQueueMBS.startDownloads(downloads() as SKDownloadMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Starts a few downloads.

Available in Mac OS X 10.8 and newer.

SKPaymentQueueMBS.transactions as SKPaymentTransactionMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns an array of pending transactions.

The value of this property is undefined when there are no observers attached to the payment queue.

Some examples using this method:

The items on this page are in the following plugins: MBS MacCloud Plugin.


The biggest plugin in space...