Platforms to show: All Mac Windows Linux Cross-Platform

Back to AppReceiptMBS class.

AppReceiptMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The private constructor.

AppReceiptMBS.containsActiveAutoRenewableSubscriptionOfProductIdentifier(productIdentifier as string, d as date) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns whether the receipt contains an active auto-renewable subscription for the given product identifier and for the given date.

productIdentifier: The identifier of the auto-renewable subscription.
date: The date in which the latest auto-renewable subscription should be active. If you are using the current date, you might not want to take it from the device in case the user has changed it.
Returns true if the latest auto-renewable subscription is active for the given date, false otherwise.

Auto-renewable subscription lapses are possible. If you are checking against the current date, you might want to deduct some time as tolerance.
If this method fails Apple recommends to refresh the receipt and try again once.

See also:

AppReceiptMBS.containsActiveAutoRenewableSubscriptionOfProductIdentifier(productIdentifier as string, d as dateTime) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns whether the receipt contains an active auto-renewable subscription for the given product identifier and for the given date.

productIdentifier: The identifier of the auto-renewable subscription.
date: The date in which the latest auto-renewable subscription should be active. If you are using the current date, you might not want to take it from the device in case the user has changed it.
Returns true if the latest auto-renewable subscription is active for the given date, false otherwise.

Auto-renewable subscription lapses are possible. If you are checking against the current date, you might want to deduct some time as tolerance.
If this method fails Apple recommends to refresh the receipt and try again once.

See also:

AppReceiptMBS.containsInAppPurchaseOfProductIdentifier(productIdentifier as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns whether there is an in-app purchase in the receipt for the given product.

productIdentifier: The identifier of the product.
True if there is an in-app purchase for the given product, false otherwise.

AppReceiptMBS.inAppPurchases as AppReceiptIAPMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Array of in-app purchases contained in the receipt.

Some examples using this method:

AppReceiptMBS.verifyReceiptHash as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method StoreKit MBS MacCloud Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns wheter the receipt hash corresponds to the device's GUID by calcuting the expected hash using the GUID, bundleIdentifierData and opaqueValue.

Returns true if the hash contained in the receipt corresponds to the device's GUID, false otherwise.

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


The biggest plugin in space...