IGooglePayLauncher

Interface for mocking/testing purposes

Inheritors

Properties

Link copied to clipboard
abstract var config: GooglePayConfig

Configuration parameters for Google Pay. See GooglePayLauncher for documentation

Link copied to clipboard
abstract val isReady: Boolean

Whether or not Google Pay is ready. See GooglePayLauncher for documentation

Link copied to clipboard

Callback for when Google Pay is ready. See GooglePayLauncher for documentation

Link copied to clipboard

Callback for getting results from the Google Pay flow. See GooglePayLauncher for documentation

Functions

Link copied to clipboard
abstract fun present(amount: Int)
abstract fun present(amount: Int, checkoutStatus: GooglePayCheckoutStatus)
abstract fun present(amount: Int, checkoutStatus: GooglePayCheckoutStatus, totalPriceLabel: String?)
abstract fun present(amount: Int, checkoutStatus: GooglePayCheckoutStatus, totalPriceLabel: String?, lineItems: List<GooglePayLineItem>?)
abstract fun present(amount: Int, checkoutStatus: GooglePayCheckoutStatus, totalPriceLabel: String?, lineItems: List<GooglePayLineItem>?, validateLineItems: Boolean)
abstract fun present(amount: Int, checkoutStatus: GooglePayCheckoutStatus, totalPriceLabel: String?, lineItems: List<GooglePayLineItem>?, validateLineItems: Boolean, transactionId: String?)

Present the Google Pay UI. See GooglePayLauncher for documentation