present

open override fun present(currencyCode: String, amount: Int, transactionId: String?)

Present the Google Pay UI. If isReady is false then this method is a no-op

Parameters

currencyCode

The ISO-4217 alphabetic currency code (e.g. USD, EUR). Default is "USD"

amount

The amount intended to be collected. It should be a positive integer representing how much to charge in the smallest currency unit (e.g. 100 cents to charge $1.00). If the amount is not yet known, use 0

transactionId

A unique ID that identifies a transaction attempt. Merchants may use an existing ID or generate a specific one for Google Pay transaction attempts. This field is required when sending callbacks to the Google Transaction Events API


open override fun present(currencyCode: String, amount: Int)

Present the Google Pay UI. If isReady is false then this method is a no-op

Parameters

currencyCode

The ISO-4217 alphabetic currency code (e.g. USD, EUR). Default is "USD"

amount

The amount intended to be collected. It should be a positive integer representing how much to charge in the smallest currency unit (e.g. 100 cents to charge $1.00). If the amount is not yet known, use 0


open override fun present(currencyCode: String)

Present the Google Pay UI. If isReady is false then this method is a no-op

Parameters

currencyCode

The ISO-4217 alphabetic currency code (e.g. USD, EUR). Default is "USD"


open override fun present()

Present the Google Pay UI. If isReady is false then this method is a no-op