onError
abstract fun onError(@NonNull error: PurchasesError, userCancelled: Boolean)
Content copied to clipboard
Will be called after the product change has completed with error
Parameters
error
A [PurchasesError] containing the reason for the failure when making the product change
userCancelled
A boolean indicating if the user cancelled the purchase. In that case the error will also be [PurchasesErrorCode.PurchaseCancelledError]