setAmount
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.