AppsFlyerInAppPurchaseValidationCallback

Overview

Implement the AppsFlyerInAppPurchaseValidationCallback interface to handle purchase validation success and failure.

Interface declaration

interface AppsFlyerInAppPurchaseValidationCallback {
    void onInAppPurchaseValidationFinished(validationResult: Map<String, Any?>)
    void onInAppPurchaseValidationError(validationError: Map<String, Any?>)
}

Methods

onInAppPurchaseValidationFinished

Method signature

void onInAppPurchaseValidationFinished(Map<String, Any?> validationResult)

Description
Invoked when the in-app purchase validation is completed successfully, providing the validation result (success or failure) and a JSON object with the details of the validation success or failure. The object

Callback parameters

TypeNameDescription
Map<String, Any?>validationFinishedResultThe validation result (success or failure).

Returns
void

onInAppPurchaseValidationError

Method signature

void onInAppPurchaseValidationError(Map<String, Any?> validationErrorResult)

Description
Triggered upon failed purchase validation.

Callback parameters

TypeNameDescription
Map<String, Any?>validationErrorResultThe type of error that occurred during validation.

Returns
void