setup

suspend fun setup(    stripeIntent: StripeIntent,     selectedPaymentDetails: LinkPaymentDetails?,     coroutineScope: CoroutineScope): AccountStatus

Sets up Link to process the given StripeIntent.

This will fetch the user's account if they're already logged in, or lookup the email passed in during instantiation.

Parameters

stripeIntent

the PaymentIntent or SetupIntent.

selectedPaymentDetails

the payment method previously selected by the user, if they are returning to Link. It will be the initially selected value.

coroutineScope

the coroutine scope used to collect the account status flow.