onError

abstract fun onError(@NonNull error: PurchasesError)

Will be called after the purchase has completed with error

Parameters

error

A [PurchasesError] containing the reason for the failure when fetching the [SkuDetails]