IGooglePayContext

interface IGooglePayContext

Interface for mocking/testing purposes

Types

Defaults
Link copied to clipboard
object Defaults

Default values for constructor parameters

Properties

isReady
Link copied to clipboard
abstract val isReady: Boolean

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

readyCallback
Link copied to clipboard
abstract var readyCallback: ReadyCallback?

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

resultCallback
Link copied to clipboard
abstract var resultCallback: ResultCallback?

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

Functions

present
Link copied to clipboard
abstract fun present()
abstract fun present(currencyCode: String = defaultCurrency)
abstract fun present(currencyCode: String = defaultCurrency, amount: Int = defaultAmount)
abstract fun present(currencyCode: String = defaultCurrency, amount: Int = defaultAmount, transactionId: String? = defaultTransactionId)

Present the Google Pay UI. See GooglePayContext for documentation

Inheritors

GooglePayContext
Link copied to clipboard