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
Type | Name | Description |
---|---|---|
Map<String, Any?> | validationFinishedResult | The validation result (success or failure). |
Returns
void
onInAppPurchaseValidationError
Method signature
void onInAppPurchaseValidationError(Map<String, Any?> validationErrorResult)
Description
Triggered upon failed purchase validation.
Callback parameters
Type | Name | Description |
---|---|---|
Map<String, Any?> | validationErrorResult | The type of error that occurred during validation. |
Returns
void
Updated 6 months ago