Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1    Statistic    FMM    Blog  

iOSApp.ReadReceipt

Reads and parses App Store receipt.

Component Version macOS Windows Linux Server FileMaker 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"
}

Blog Entries

Release notes

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


iOSApp.LastURL   -   iOSApp.SetDidBecomeActiveEvaluate

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins

Start Chat