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.New>

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>, prefilledNewCardParams: PaymentMethodCreateParams? = null)

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

Link copied to clipboard
suspend fun setup(stripeIntent: StripeIntent, 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 inline in PaymentSheet, 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.