Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  

Validate.CheckReceipt

Validates the receipt.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Validate 2.2 Yes No Yes, macOS only No No

MBS( "Validate.CheckReceipt"; ReceiptPath; BundleVersion; BundleID )

Parameters

Parameter Description Example value
ReceiptPath The path to your application. MBS( "Validate.FindReceipt" )
BundleVersion The bundle Version of your application. "1.0"
BundleID The bundle ID for your application. "de.monkeybreadsoftware.test"

Result

Returns OK or error code 173.

Description

Validates the receipt.
If you upload your application the Mac App Store, Apple will deliver it with a receipt file included. It is your job to validate this receipt file to avoid unlimited copies of your application. You can pass the path to Apples sample receipt and bundle version "1.0.2" and bundle identifier "com.example.SampleApp" to test with the sample receipt.

Examples

Exist if the receipt is not valid:

MBS( "Validate.Exit"; MBS( "Validate.CheckReceipt"; MBS( "Validate.FindReceipt" ); "1.0"; "de.monkeybreadsoftware.test" ) )

See also

Example Databases


UserNotification.scheduledNotifications   -   Validate.Exit

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins