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 customerName: String?, val customerEmail: String?, val customerPhone: String?, val customerBillingCountryCode: String?, val shippingValues: Map<IdentifierSpec, String?>?) : Parcelable
Content copied to clipboard
Arguments for launching LinkActivity to confirm a payment with Link.
Functions
Link copied to clipboard
suspend fun attachNewCardToAccount(configuration: LinkPaymentLauncher.Configuration, 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 getAccountStatusFlow(configuration: LinkPaymentLauncher.Configuration): Flow<AccountStatus>
Content copied to clipboard
Fetch the customer's account status, initializing the dependencies if they haven't been initialized yet.
Link copied to clipboard
fun present( configuration: LinkPaymentLauncher.Configuration, activityResultLauncher: ActivityResultLauncher<LinkActivityContract.Args>, prefilledNewCardParams: PaymentMethodCreateParams? = null)
Content copied to clipboard
Launch the Link UI to process a payment.
Link copied to clipboard
suspend fun signInWithUserInput(configuration: LinkPaymentLauncher.Configuration, userInput: UserInput): Result<Boolean>
Content 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.