handleNextActionForPayment

fun handleNextActionForPayment(activity: ComponentActivity, clientSecret: String, stripeAccountId: String? = this.stripeAccountId)

Handle the next_action for a previously confirmed PaymentIntent.

Used for manual confirmation flow.

Parameters

activity

the Activity that is launching the payment authentication flow

clientSecret

the client_secret property of a confirmed PaymentIntent object

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

Handle the next_action for a previously confirmed PaymentIntent.

Used for manual confirmation flow.

Parameters

fragment

the Fragment that is launching the payment authentication flow

clientSecret

the client_secret property of a confirmed PaymentIntent object

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.