PurchaseResult

sealed class PurchaseResult(source)

An enum that defines the possible outcomes of attempting to purchase a product.

When implementing the PurchaseController.purchase(product: SkuDetails) function, all cases should be considered.

Inheritors

Types

Link copied to clipboard

The purchase was cancelled.

Link copied to clipboard
data class Failed(val errorMessage: String) : PurchaseResult

The purchase failed for a reason other than the user cancelling or the payment pending.

Link copied to clipboard

The purchase is pending and requires action from the developer.

Link copied to clipboard

The product was purchased.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean