Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

SKPaymentQueueMBS.addPayment(payment as SKPaymentMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 11.2 Yes No No Yes, macOS only No
Function: Adds a payment request to the queue.
Notes:
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.

Feedback, Comments & Corrections

SKPaymentQueueMBS.cancelDownload(download as SKDownloadMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 12.3 Yes No No Yes, macOS only No
Function: Cancel one download.
Notes: Available in Mac OS X 10.8 and newer.

Feedback, Comments & Corrections

SKPaymentQueueMBS.cancelDownloads(downloads() as SKDownloadMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 12.3 Yes No No Yes, macOS only No
Function: Cancel a few downloads.
Notes: Available in Mac OS X 10.8 and newer.

Feedback, Comments & Corrections

SKPaymentQueueMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 11.2 Yes No No Yes, macOS only No
Function: Creates a new SKPaymentQueueMBS object.
Notes:
Please make a subclass of this class to fill code into the events.
And please only have one instance of this class.

Feedback, Comments & Corrections

SKPaymentQueueMBS.Destructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 18.1 Yes No No Yes, macOS only No
Function: The destructor.

Feedback, Comments & Corrections

SKPaymentQueueMBS.finishTransaction(transaction as SKPaymentTransactionMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 11.2 Yes No No Yes, macOS only No
Function: Completes a pending transaction.
Notes:
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.

Feedback, Comments & Corrections

SKPaymentQueueMBS.pauseDownload(download as SKDownloadMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 12.3 Yes No No Yes, macOS only No
Function: Pauses one download.
Notes: Available in Mac OS X 10.8 and newer.

Feedback, Comments & Corrections

SKPaymentQueueMBS.pauseDownloads(downloads() as SKDownloadMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 12.3 Yes No No Yes, macOS only No
Function: Pauses a few downloads.
Notes: Available in Mac OS X 10.8 and newer.

Feedback, Comments & Corrections

SKPaymentQueueMBS.restoreCompletedTransactions
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 11.2 Yes No No Yes, macOS only No
Function: Asks the payment queue to restore previously completed purchases.
Notes:
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.

Feedback, Comments & Corrections

SKPaymentQueueMBS.resumeDownload(download as SKDownloadMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 12.3 Yes No No Yes, macOS only No
Function: Resumes one download.
Notes: Available in Mac OS X 10.8 and newer.

Feedback, Comments & Corrections

SKPaymentQueueMBS.resumeDownloads(downloads() as SKDownloadMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 12.3 Yes No No Yes, macOS only No
Function: Resumes a few downloads.
Notes: Available in Mac OS X 10.8 and newer.

Feedback, Comments & Corrections

SKPaymentQueueMBS.startDownload(download as SKDownloadMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 12.3 Yes No No Yes, macOS only No
Function: Start one download.
Notes: Available in Mac OS X 10.8 and newer.

Feedback, Comments & Corrections

SKPaymentQueueMBS.startDownloads(downloads() as SKDownloadMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 12.3 Yes No No Yes, macOS only No
Function: Starts a few downloads.
Notes: Available in Mac OS X 10.8 and newer.

Feedback, Comments & Corrections

SKPaymentQueueMBS.transactions as SKPaymentTransactionMBS()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method StoreKit MBS MacCloud Plugin 11.2 Yes No No Yes, macOS only No
Function: Returns an array of pending transactions.
Notes: The value of this property is undefined when there are no observers attached to the payment queue.

Feedback, Comments & Corrections

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




Links
MBS Xojo PDF Plugins