ErrorType

An enum representing types of Google Pay Errors

Some errors are thrown by GooglePayLauncher.present if the Google Pay Sheet cannot be displayed. These are documented as Configuration errors.

Other errors occur after the Google Pay sheet has been displayed and represent an error while trying to generate a PaymentData instance. These errors are generated by Google and are documented as Google errors

Entries

Link copied to clipboard

Generic internal error. (Google)

Link copied to clipboard

The application is misconfigured (Google)

Link copied to clipboard

Error executing a network call (Google)

Link copied to clipboard

The Google Pay flow was initiated before it was ready (Configuration)

Link copied to clipboard

The company name is empty (Configuration)

Link copied to clipboard

The company country code is not 2 characters (Configuration)

Link copied to clipboard

The line items sum total does not equal the total price (Configuration)

Link copied to clipboard

The company country code is not 3 characters (Configuration)

Link copied to clipboard

The total amount is negative (Configuration)

Properties

Link copied to clipboard

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

Functions

Link copied to clipboard
fun valueOf(value: String): ErrorType

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.