setup

suspend fun setup(stripeIntent: StripeIntent, 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.

coroutineScope

the coroutine scope used to collect the account status flow.