confirmSetupIntent

fun confirmSetupIntent(activity: ComponentActivity, confirmSetupIntentParams: ConfirmSetupIntentParams, stripeAccountId: String? = this.stripeAccountId)

Confirm and, if necessary, authenticate a SetupIntent.

For confirmation attempts that require 3DS1 authentication, if the return_url in the confirmation request is not set (i.e. set to null), then the following logic will be used:

  • Use Custom Tabs if they are supported on the device.

  • If Custom Tabs are not supported, use Chrome if it is available on the device.

  • Otherwise, use a WebView.

If a custom return_url value is set, a WebView will always be used.

No return_urlCustom TabsChromeWebView
Custom return_urlWebViewWebViewWebView

Parameters

activity

the Activity that is launching the payment authentication flow

confirmSetupIntentParams

a set of params with which to confirm the Setup Intent

stripeAccountId

Optional, the Connect account to associate with this request. By default, will use the Connect account that was used to instantiate the Stripe object, if specified.


fun confirmSetupIntent(fragment: Fragment, confirmSetupIntentParams: ConfirmSetupIntentParams, stripeAccountId: String? = this.stripeAccountId)

Confirm and, if necessary, authenticate a SetupIntent.

For confirmation attempts that require 3DS1 authentication, if the return_url in the confirmation request is not set (i.e. set to null), then the following logic will be used:

  • Use Custom Tabs if they are supported on the device.

  • If Custom Tabs are not supported, use Chrome if it is available on the device.

  • Otherwise, use a WebView.

If a custom return_url value is set, a WebView will always be used.

No return_urlCustom TabsChromeWebView
Custom return_urlWebViewWebViewWebView

Parameters

fragment

the Fragment that is launching the payment authentication flow

confirmSetupIntentParams

a set of params with which to confirm the Setup Intent

stripeAccountId

Optional, the Connect account to associate with this request. By default, will use the Connect account that was used to instantiate the Stripe object, if specified.