Builder

class Builder(merchantDisplayName: String)

Constructors

Link copied to clipboard
constructor(merchantDisplayName: String)

Functions

Link copied to clipboard
fun allowsDelayedPaymentMethods(allowsDelayedPaymentMethods: Boolean): <Error class: unknown class>

If true, allows payment methods that do not move money at the end of the checkout. Defaults to false.

fun allowsPaymentMethodsRequiringShippingAddress(allowsPaymentMethodsRequiringShippingAddress: Boolean): <Error class: unknown class>

If true, allows payment methods that require a shipping address, like Afterpay and Affirm. Defaults to false.

Link copied to clipboard
fun allowsRemovalOfLastSavedPaymentMethod(allowsRemovalOfLastSavedPaymentMethod: Boolean): <Error class: unknown class>
Link copied to clipboard
fun appearance(appearance: PaymentSheet.Appearance): <Error class: unknown class>

Describes the appearance of the embedded payment element.

Link copied to clipboard
fun billingDetailsCollectionConfiguration(    billingDetailsCollectionConfiguration: PaymentSheet.BillingDetailsCollectionConfiguration): <Error class: unknown class>

Describes how billing details should be collected. All values default to automatic. If never is used for a required field for the Payment Method used during checkout, you must provide an appropriate value as part of defaultBillingDetails.

Link copied to clipboard
Link copied to clipboard
fun cardBrandAcceptance(cardBrandAcceptance: PaymentSheet.CardBrandAcceptance): <Error class: unknown class>

By default, the payment element will accept all supported cards by Stripe. You can specify card brands that should block or allow payments for by providing a list of those card brands. Note: This is only a client-side solution. Note: Card brand filtering is not currently supported in Link.

Link copied to clipboard
fun customer(customer: PaymentSheet.CustomerConfiguration?): <Error class: unknown class>

If set, the customer can select a previously saved payment method.

Link copied to clipboard
fun defaultBillingDetails(defaultBillingDetails: PaymentSheet.BillingDetails?): <Error class: unknown class>

The billing information for the customer.

Link copied to clipboard
fun embeddedViewDisplaysMandateText(embeddedViewDisplaysMandateText: Boolean): <Error class: unknown class>

Controls whether the view displays mandate text at the bottom for payment methods that require it.

Link copied to clipboard

External payment methods to display.

Link copied to clipboard
fun googlePay(googlePay: PaymentSheet.GooglePayConfiguration?): <Error class: unknown class>

Configuration related to the Stripe Customer making a payment.

Link copied to clipboard
Link copied to clipboard

By default, Stripe will use a dynamic ordering that optimizes payment method display for the customer. You can override the default order in which payment methods are displayed with a list of payment method types.

Link copied to clipboard
fun preferredNetworks(preferredNetworks: List<CardBrand>): <Error class: unknown class>

A list of preferred networks that should be used to process payments made with a co-branded card if your user hasn't selected a network themselves.

Link copied to clipboard
fun primaryButtonLabel(primaryButtonLabel: String): <Error class: unknown class>

The label to use for the primary button.

Link copied to clipboard
fun shippingDetails(shippingDetails: AddressDetails?): <Error class: unknown class>

The shipping information for the customer. If set, form fields will be pre populated with the values provided. This is used to display a "Billing address is same as shipping" checkbox if defaultBillingDetails is not provided. If name and line1 are populated, it's also attached to the PaymentIntent during payment.