Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

iOSApp.ReadReceipt

Reads and parses App Store receipt.

Component Version macOS Windows Linux Server iOS SDK
iOSApp 10.4 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "iOSApp.ReadReceipt" { ; Path } )   More

Parameters

Parameter Description Example Flags
Path The file path of the receipt to read.
If empty, we read the receipt of current file.
mbs("iOSApp.ReadReceipt"; "/Applications/Test.app/Contents/_MASReceipt/receipt") Optional

Result

Returns JSON or error.

Description

Reads and parses App Store receipt.
Works for macOS and iOS receipt.
Call without path in an iOS app from the iOS App Store.
Or pass a path to test with an existing receipt.

Examples

Read receipt of a macOS app:

MBS("iOSApp.ReadReceipt"; "/Applications/Test.app/Contents/_MASReceipt/receipt")

Example result:
{ "expirationDate" : null, "inAppPurchases" : [ ], "bundleIdentifier" : "com.test.test", "appVersion" : "16.0", "opaqueValue" : "JZ1gFXm34qI+cdiUV0jVow==", "originalAppVersion" : "13.1", "receiptHash" : "Xm1\/u8I3vf45PTt6UR7p1U0Q15M=", "purchaseDate" : "2020-04-16 13:44:32 +0000", "bundleIdentifierData" : "Y29tLnRlc3QudGVzdA==", "creationDate" : "2020-08-22 08:39:20 +0000", "transactionDate" : "2020-08-22 08:39:20 +0000" }

Release notes

Blog Entries

This function checks for a license.

Created 31st August 2020, last changed 31st August 2020


iOSApp.LastURL - iOSApp.SetDidBecomeActiveEvaluate