Platforms to show: All Mac Windows Linux Cross-Platform

Back to AppReceiptIAPMBS class.

AppReceiptIAPMBS.cancellationDate as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
For a transaction that was canceled by Apple customer support, the date of the cancellation.

(Read only property)

Some examples using this property:

AppReceiptIAPMBS.cancellationDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
For a transaction that was canceled by Apple customer support, the date of the cancellation.

(Read only property)

AppReceiptIAPMBS.originalPurchaseDate as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
For a transaction that restores a previous transaction, the date of the original transaction.

This value corresponds to the original transaction's transactionDate property.
In an auto-renewable subscription receipt, this indicates the beginning of the subscription period, even if the subscription has been renewed.
(Read only property)

Some examples using this property:

AppReceiptIAPMBS.originalPurchaseDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
For a transaction that restores a previous transaction, the date of the original transaction.

This value corresponds to the original transaction's transactionDate property.
In an auto-renewable subscription receipt, this indicates the beginning of the subscription period, even if the subscription has been renewed.
(Read only property)

AppReceiptIAPMBS.originalTransactionIdentifier as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
For a transaction that restores a previous transaction, the transaction identifier of the original transaction.

Otherwise, identical to the transaction identifier.
This value corresponds to the original transaction's transactionIdentifier property.
All receipts in a chain of renewals for an auto-renewable subscription have the same value for this field.
(Read only property)

Some examples using this property:

AppReceiptIAPMBS.productIdentifier as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The product identifier of the item that was purchased.
Example
// open a receipt
dim f as FolderItem = SpecialFolder.Desktop.Child("receipt")
dim r as AppReceiptMBS = AppReceiptMBS.receiptForFile(f)

// show purchases
dim inAppPurchases() as AppReceiptIAPMBS = r.inAppPurchases
for each p as AppReceiptIAPMBS in inAppPurchases
MsgBox str(p.quantity)+"x "+p.productIdentifier+" "+p.purchaseDate.AbbreviatedDate
next

This value corresponds to the productIdentifier property of the SKPayment object stored in the transaction’s payment property.
(Read only property)

AppReceiptIAPMBS.purchaseDate as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The date and time that the item was purchased.

This value corresponds to the transaction’s transactionDate property.

For a transaction that restores a previous transaction, the purchase date is the date of the restoration. Use originalPurchaseDate to get the date of the original transaction.

In an auto-renewable subscription receipt, this is always the date when the subscription was purchased or renewed, regardles of whether the transaction has been restored.
(Read only property)

AppReceiptIAPMBS.purchaseDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The date and time that the item was purchased.

(Read only property)

AppReceiptIAPMBS.quantity as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The number of items purchased.
Example
// open a receipt
dim f as FolderItem = SpecialFolder.Desktop.Child("receipt")
dim r as AppReceiptMBS = AppReceiptMBS.receiptForFile(f)

// show purchases
dim inAppPurchases() as AppReceiptIAPMBS = r.inAppPurchases
for each p as AppReceiptIAPMBS in inAppPurchases
MsgBox str(p.quantity)+"x "+p.productIdentifier+" "+p.purchaseDate.AbbreviatedDate
next

This value corresponds to the quantity property of the SKPayment object stored in the transaction’s payment property.
(Read only property)

AppReceiptIAPMBS.subscriptionExpirationDate as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The expiration date for the subscription.

Only present for auto-renewable subscription receipts.
(Read only property)

Some examples using this property:

AppReceiptIAPMBS.subscriptionExpirationDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The expiration date for the subscription.

Only present for auto-renewable subscription receipts.
(Read only property)

AppReceiptIAPMBS.transactionIdentifier as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The transaction identifier of the item that was purchased.

This value corresponds to the transaction's transactionIdentifier property.
(Read only property)

AppReceiptIAPMBS.webOrderLineItemID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The primary key for identifying subscription purchases.

(Read only property)

Some examples using this property:

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


The biggest plugin in space...