InAppPurchasesValidationManager.ValidateInAppPurchaseReceipt

Syntax:

ValidateInAppPurchaseReceipt(<Receipt>, <VerificationKey>, <ReceiptFields>)

Parameters:

<Receipt> (required)

Type: InAppPurchaseReceipt.
A receipt to be verified.

<VerificationKey> (optional)

Type: String.
Key to verify the receipt.
Public key of the Google Play application to verify the receipt on Android. Or, "secret key" to verify receipts on iOS.

<ReceiptFields> (optional)

Type: Map.
Receipt fields.

Returned value:

Type: Boolean.
The returned value shows the receipt authenticity with regard to the platform.
Additionally, the method returns extracted values of the receipt fields which facilitates its further verification.

Description:

Performs verification of the receipt:
  • on Android - with the help of the transferred verification key verifies receipt's digital signature,
  • on iOS - sends a request to the receipt verification service. The request is sent to the address https://buy.itunes.apple.com/verifyReceipt (at the test stage - https://sandbox.itunes.apple.com/verifyReceipt).

Availability:

Thin client, server, thick client, external connection.

    

1C:Enterprise Developer's Community