confirmPayment

fun confirmPayment(activity: ComponentActivity, confirmPaymentIntentParams: ConfirmPaymentIntentParams, stripeAccountId: String? = this.stripeAccountId)

Confirm and, if necessary, authenticate a PaymentIntent. Used for automatic confirmation flow.

For confirmation attempts that require 3DS1 authentication, the following logic will be used:

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

  • Otherwise, use the device browser.

Parameters

activity

the Activity that is launching the payment authentication flow

confirmPaymentIntentParams
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 confirmPayment(fragment: Fragment, confirmPaymentIntentParams: ConfirmPaymentIntentParams, stripeAccountId: String? = this.stripeAccountId)

Confirm and, if necessary, authenticate a PaymentIntent. Used for automatic confirmation flow.

Parameters

fragment

the Fragment that is launching the payment authentication flow

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