Platforms to show: All Mac Windows Linux Cross-Platform

Back to AppReceiptMBS class.

AppReceiptMBS.appVersion as String

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

// show value
MsgBox r.appVersion

This corresponds to the value of CFBundleVersion (in iOS) or CFBundleShortVersionString (in OS X) in the Info.plist.
(Read only property)

AppReceiptMBS.bundleIdentifier as String

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

// show value
MsgBox r.bundleIdentifier

This corresponds to the value of CFBundleIdentifier in the Info.plist file.
(Read only property)

AppReceiptMBS.bundleIdentifierData as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The bundle identifier as data.

The bundle identifier as data, as contained in the receipt. Used to verifiy the receipt's hash.
(Read only property)

Some examples using this property:

AppReceiptMBS.creationDate as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The creation date of the receipt.

(Read only property)

AppReceiptMBS.creationDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The creation date of the receipt.

(Read only property)

AppReceiptMBS.expirationDate 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 that the app receipt expires.

Only for apps purchased through the Volume Purchase Program. If nil, the receipt does not expire. When validating a receipt, compare this date to the current date to determine whether the receipt is expired. Do not try to use this date to calculate any other information, such as the time remaining before expiration.
(Read only property)

AppReceiptMBS.expirationDateTime 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 that the app receipt expires.

Only for apps purchased through the Volume Purchase Program. If nil, the receipt does not expire. When validating a receipt, compare this date to the current date to determine whether the receipt is expired. Do not try to use this date to calculate any other information, such as the time remaining before expiration.
(Read only property)

AppReceiptMBS.opaqueValue as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
An opaque value used as part of the SHA-1 hash.

(Read only property)

Some examples using this property:

AppReceiptMBS.originalAppVersion as String

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

// show value
MsgBox r.originalAppVersion

This corresponds to the value of CFBundleVersion (in iOS) or CFBundleShortVersionString (in OS X) in the Info.plist file when the purchase was originally made. In the sandbox environment, the value of this field is always "1.0".
(Read only property)

Some examples using this property:

AppReceiptMBS.purchaseDate as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Another date.

Digging in a receipt we found this field and assume it is the original purchase date.
(Read only property)

AppReceiptMBS.purchaseDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Another date.

Digging in a receipt we found this field and assume it is the original purchase date.
(Read only property)

AppReceiptMBS.receiptHash as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
A SHA-1 hash, used to validate the receipt.

(Read only property)

Some examples using this property:

AppReceiptMBS.transactionDate as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Another date.

Digging in a receipt we found this field and assume it is the transaction date.
(Read only property)

AppReceiptMBS.transactionDateTime as DateTime

Type Topic Plugin Version macOS Windows Linux iOS Targets
property StoreKit MBS MacCloud Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Another date.

Digging in a receipt we found this field and assume it is the transaction date.
(Read only property)

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


The biggest plugin in space...