updateButton

fun updateButton(theme: GooglePayButtonTheme, type: GooglePayButtonType, cornerRadiusPx: Int)

Update the button with new options

Important:

Because Google does not provide a way to update button options after initialization, this method removes the current PayButton instance from this view and then creates and attaches a new instance.

Parameters

theme

The visual theme for the button

type

The type of the button

cornerRadiusPx

The corner radius, in pixels, for the rounded corners of the button