Builder

class Builder

Functions

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>
Link copied to clipboard
Link copied to clipboard
fun cardBrandAcceptance(cardBrandAcceptance: PaymentSheet.CardBrandAcceptance): <Error class: unknown class>

By default, CustomerSheet will accept all supported cards by Stripe. You can specify card brands CustomerSheet should block or allow payment 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 defaultBillingDetails(details: PaymentSheet.BillingDetails): <Error class: unknown class>
Link copied to clipboard
fun googlePayEnabled(googlePayEnabled: Boolean): <Error class: unknown class>
Link copied to clipboard
fun headerTextForSelectionScreen(headerTextForSelectionScreen: String?): <Error class: unknown class>
Link copied to clipboard

By default, CustomerSheet 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 in PaymentSheet with a list of payment method types.

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