setup

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

completePayment

whether the payment should be completed, or the selected payment method should be returned as a result.