# CancelResult

enum CancelResult : Enum<PaymentHandle.CancelResult>

Return values from PaymentHandle.cancel.

## Entries

NO_PAYMENT_IN_PROGRESS
Link copied to clipboard
NO_PAYMENT_IN_PROGRESS

Error result when no payment exists to be canceled.

CANCELED
Link copied to clipboard
CANCELED

Successfully canceled the payment that was in progress.

NOT_CANCELABLE
Link copied to clipboard
NOT_CANCELABLE

A payment is still in progress, but is too far along for cancellation. It is only possible to cancel a payment while waiting for input to a card reader.

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<PaymentHandle.CancelResult>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): PaymentHandle.CancelResult

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values
Link copied to clipboard
fun values(): Array<PaymentHandle.CancelResult>

Returns an array containing the constants of this enum type, in the order they're declared.