Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

SKPaymentTransactionMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class StoreKit MBS MacCloud Plugin 11.2 Yes No No Yes, macOS only No
Function: The SKPaymentTransactionMBS class defines objects residing in the payment queue.
A payment transaction is created whenever a payment is added to the payment queue. Transactions are delivered to your application when the App Store has finished processing the payment. Completed transactions provide a receipt and transaction identifier that your application can use to save a permanent record of the processed payment.

Please also check the documentation from Apple for the SKPaymentTransaction class.
Available in Mac OS X v10.7 and later.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections

Transaction State Constants

Constant Value Description
StateDeferred 4 Transaction is neither purchased nor failed, yet.
StateFailed 2 The transaction failed. Check the error property to determine what happened.
StatePurchased 1 The App Store successfully processed payment. Your application should provide the content the user purchased.
StatePurchasing 0 The transaction is being processed by the App Store.
StateRestored 3 This transaction restores content previously purchased by the user. Read the originalTransaction property to obtain information about the original purchase.

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some events for this class:

Some examples which use this class:

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

SKPaymentQueueMBS   -   SKProductDiscountMBS

MBS Xojo blog