TransactionInfo

constructor(currencyCode: String, totalPriceStatus: GooglePayJsonFactory.TransactionInfo.TotalPriceStatus, countryCode: String? = null, transactionId: String? = null, totalPrice: Int? = null, totalPriceLabel: String? = null, checkoutOption: GooglePayJsonFactory.TransactionInfo.CheckoutOption? = null)

TransactionInfo

Parameters

currencyCode

ISO 4217 alphabetic currency code.

totalPriceStatus

The status of the total price used.

countryCode

ISO 3166-1 alpha-2 country code where the transaction is processed. This is required for merchants based in European Economic Area (EEA) countries.

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 you send callbacks to the Google Transaction Events API.

totalPrice

Total monetary value of the transaction. This field is required unless totalPriceStatus is set to TotalPriceStatus.NotCurrentlyKnown. The value of this field is represented in the smallest currency unit. For example, when currencyCode is "USD", a value of 100 represents 100 cents ($1.00).

totalPriceLabel

Custom label for the total price within the display items.

checkoutOption

Affects the submit button text displayed in the Google Pay payment sheet.