Builder

class Builder(merchantDisplayName: String)

Configuration builder for cleaner object creation from Java.

Constructors

Link copied to clipboard
constructor(merchantDisplayName: String)

Functions

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

By default, PaymentSheet will accept all supported cards by Stripe. You can specify card brands PaymentSheet 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 customer(customer: PaymentSheet.CustomerConfiguration?): <Error class: unknown class>
Link copied to clipboard
fun customPaymentMethods(customPaymentMethods: List<PaymentSheet.CustomPaymentMethod>): <Error class: unknown class>

Configuration related to custom payment methods.

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

External payment methods to display in PaymentSheet.

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

Google Places API key to support autocomplete when collecting billing details

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

The layout of payment methods in PaymentSheet. Defaults to PaymentSheet.PaymentMethodLayout.Horizontal.

Link copied to clipboard

By default, PaymentSheet 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>
Link copied to clipboard
fun primaryButtonColor(primaryButtonColor: ColorStateList?): <Error class: unknown class>
Link copied to clipboard
fun primaryButtonLabel(primaryButtonLabel: String): <Error class: unknown class>
Link copied to clipboard
fun shippingDetails(shippingDetails: AddressDetails?): <Error class: unknown class>
Link copied to clipboard
fun shopPayConfiguration(shopPayConfiguration: PaymentSheet.ShopPayConfiguration): <Error class: unknown class>

Configuration related to ShopPay

Link copied to clipboard
fun termsDisplay(termsDisplay: Map<PaymentMethod.Type, PaymentSheet.TermsDisplay>): <Error class: unknown class>

A map for specifying when legal agreements are displayed for each payment method type. If the payment method is not specified in the list, the TermsDisplay value will default to automatic.

Link copied to clipboard
fun walletButtons(walletButtons: PaymentSheet.WalletButtonsConfiguration): <Error class: unknown class>

Configuration related to WalletButtons