LinkPaymentLauncher
Launcher for an Activity that will confirm a payment using Link.
Types
Link copied to clipboard
Link copied to clipboard
data class Configuration( val stripeIntent: StripeIntent, val merchantName: String, val customerEmail: String?, val customerPhone: String?, val customerName: String?, val shippingValues: Map<IdentifierSpec, String?>?) : Parcelable
Content copied to clipboard
Functions
Link copied to clipboard
suspend fun attachNewCardToAccount(paymentMethodCreateParams: PaymentMethodCreateParams): Result<LinkPaymentDetails.New>
Content copied to clipboard
Attach a new Card to the currently signed in Link account.
Link copied to clipboard
Link copied to clipboard
fun present(activityResultLauncher: ActivityResultLauncher<LinkActivityContract.Args>, prefilledNewCardParams: PaymentMethodCreateParams? = null)
Content copied to clipboard
Launch the Link UI to process the Stripe Intent sent in setup.
Link copied to clipboard
suspend fun setup(configuration: LinkPaymentLauncher.Configuration, coroutineScope: CoroutineScope): AccountStatus
Content copied to clipboard
Sets up Link to process the given Configuration.stripeIntent.
Link copied to clipboard
Trigger Link sign in with the input collected from the user inline in PaymentSheet, whether it's a new or existing account.