LinkPaymentLauncher

Launcher for an Activity that will confirm a payment using Link.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun attachNewCardToAccount(paymentMethodCreateParams: PaymentMethodCreateParams): Result<LinkPaymentDetails>

Attach a new Card to the currently signed in Link account.

Link copied to clipboard
open override fun fallbackInitialize(arg: Unit): Nothing
Link copied to clipboard
fun present(activityResultLauncher: ActivityResultLauncher<LinkActivityContract.Args>)

Launch the Link UI to process the Stripe Intent sent in setup.

Link copied to clipboard
suspend fun setup(    stripeIntent: StripeIntent,     selectedPaymentDetails: LinkPaymentDetails?,     coroutineScope: CoroutineScope): AccountStatus

Sets up Link to process the given StripeIntent.

Link copied to clipboard
suspend fun signInWithUserInput(userInput: UserInput): Result<Boolean>

Trigger Link sign in with the input collected from the user, whether it's a new or existing account.

Properties

Link copied to clipboard
lateinit var accountStatus: StateFlow<AccountStatus>

Publicly visible account status, used by PaymentSheet to display the correct UI.