onPurchaseFailure

abstract fun onPurchaseFailure(error: AdaptyError, product: AdaptyPaywallProduct, context: Context)

This callback is invoked when the purchase process fails.

Parameters

error

An AdaptyError object representing the error.

product

An AdaptyPaywallProduct of the purchase.

context

A UI Context within which the event occurred.