presentForSetupIntent

fun presentForSetupIntent(clientSecret: String, currencyCode: String)

Present Google Pay to collect customer payment details and use it to confirm the SetupIntent represented by clientSecret.

The Google Pay API requires a currencyCode. currencyCode is required even though the SetupIntent API does not require it.

Parameters

clientSecret

the SetupIntent's client secret

currencyCode

The ISO 4217 alphabetic currency code.