PaymentHandle

interface PaymentHandle

Representation of a payment process available immediately from PaymentManager.startPaymentActivity. Provides a way to interact with an ongoing payment, e.g. cancel it or select additionalPaymentMethods.

Types

Link copied to clipboard

Properties

Link copied to clipboard

Provides access to non-cardreader payment methods.

Link copied to clipboard

Provides access to the PaymentParameters passed to PaymentManager.startPaymentActivity for this payment.

Link copied to clipboard

Provides access to the total amount, including tip and a proposed card surcharge, if applicable. If the merchant sets a card surcharge for this location and the buyer pays with a card subject to surcharge, this will be the total amount authorized. This value can be used to display the amount with surcharge on a custom payment prompt screen. If tax is applied to the surcharge, this value also includes that tax. This value will be null if a card surcharge is not applicable. Example:

Functions

Link copied to clipboard

Cancels a pending payment, if one exists and can be canceled. In this case, the method returns CancelResult.CANCELED and the payment callbacks will be called with PaymentErrorCode.CANCELED to indicate the cancellation.

Link copied to clipboard

Searches for a specific additional payment method by its type.