PaymentErrorCode

Error conditions that arise during payments. Like other categories of error codes, these are separated between "usage errors" which a careful developer could and should have avoided, and regular errors which cannot be prevented during normal operation. For example, NOT_AUTHORIZED is not a usage error, because user might be force-logged out during payment process and server will then return error 401. However, developers should be checking that Mobile Payments SDK has been authorized and, if not, disabling the controls that lead to a call to PaymentManager.startPaymentActivity; TIMEOUT is a regular, non-usage error because network conditions are unpredictable and might be severed in the middle of a transaction; even with the best of developers' care, timeouts sometimes just happen.

Entries

Link copied to clipboard

Payment canceled.

Link copied to clipboard

Payment attempted before authorization.

Link copied to clipboard

The contactless and chip reader timed out.

Link copied to clipboard

Locations services are turned off.

Link copied to clipboard

The device clock is skewed and not matching the server time.

Link copied to clipboard

PaymentManager.startPaymentActivity was used in an unexpected or unsupported way. See the debug code and debug message for more information.

Properties

Link copied to clipboard

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

Link copied to clipboard
open override val isUsageError: Boolean

Returns true if the error is a usage error, false otherwise.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

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