Platforms to show: All Mac Windows Linux Cross-Platform
SKPaymentTransactionMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | StoreKit | MBS MacCloud Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
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.
- 8 properties
- property error as NSErrorMBS
- property Handle as Integer
- property originalTransaction as SKPaymentTransactionMBS
- property payment as SKPaymentMBS
- property transactionDate as date
- property transactionDateTime as DateTime
- property transactionIdentifier as string
- property transactionState as Integer
- 2 methods
- method Constructor Private
- method downloads as SKDownloadMBS()
- 5 constants
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:
- SKPaymentQueueMBS.finishTransaction(transaction as SKPaymentTransactionMBS)
- SKPaymentQueueMBS.transactions as SKPaymentTransactionMBS()
Some properties using for this class:
- SKDownloadMBS.Transaction as SKPaymentTransactionMBS
- SKPaymentTransactionMBS.originalTransaction as SKPaymentTransactionMBS
Some events using this class:
- SKPaymentQueueMBS.removedTransactions(transactions() as SKPaymentTransactionMBS)
- SKPaymentQueueMBS.updatedTransactions(transactions() as SKPaymentTransactionMBS)
Some examples using this class:
The items on this page are in the following plugins: MBS MacCloud Plugin.
SKPaymentQueueMBS - SKProductDiscountMBS