setAmount

open override fun setAmount(amount: Amount): GooglePayConfiguration.Builder

Sets the amount of the transaction.

Default is 0 USD.

Check the totalPrice field in the Google Pay docs for more details.

Not applicable for the sessions flow. Check out the Sessions API documentation on how to set this value.

Parameters

amount

Amount of the transaction.