setup
suspend fun setup( stripeIntent: StripeIntent, completePayment: Boolean, selectedPaymentDetails: LinkPaymentDetails?, coroutineScope: CoroutineScope): AccountStatus
Content copied to clipboard
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.
completePayment
whether the payment should be completed, or the selected payment method should be returned as a result.
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.