Configuration

Configuration for PaymentSheet

Constructors

Link copied to clipboard
constructor(merchantDisplayName: String, customer: PaymentSheet.CustomerConfiguration? = ConfigurationDefaults.customer, googlePay: PaymentSheet.GooglePayConfiguration? = ConfigurationDefaults.googlePay, primaryButtonColor: ColorStateList? = ConfigurationDefaults.primaryButtonColor, defaultBillingDetails: PaymentSheet.BillingDetails? = ConfigurationDefaults.billingDetails, shippingDetails: AddressDetails? = ConfigurationDefaults.shippingDetails, allowsDelayedPaymentMethods: Boolean = ConfigurationDefaults.allowsDelayedPaymentMethods, allowsPaymentMethodsRequiringShippingAddress: Boolean = ConfigurationDefaults.allowsPaymentMethodsRequiringShippingAddress, appearance: PaymentSheet.Appearance = ConfigurationDefaults.appearance, primaryButtonLabel: String? = ConfigurationDefaults.primaryButtonLabel, billingDetailsCollectionConfiguration: PaymentSheet.BillingDetailsCollectionConfiguration = ConfigurationDefaults.billingDetailsCollectionConfiguration, preferredNetworks: List<CardBrand> = ConfigurationDefaults.preferredNetworks)

Types

Link copied to clipboard
class Builder(merchantDisplayName: String)

Configuration builder for cleaner object creation from Java.

Properties

Link copied to clipboard

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

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

Link copied to clipboard

Describes the appearance of Payment Sheet.

Link copied to clipboard

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

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

Link copied to clipboard

The billing information for the customer.

Link copied to clipboard

Configuration related to the Stripe Customer making a payment.

Link copied to clipboard

Your customer-facing business name.

Link copied to clipboard

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

The color of the Pay or Add button. Keep in mind the text color is white.

Link copied to clipboard

The label to use for the primary button.

Link copied to clipboard

The shipping information for the customer. If set, PaymentSheet will pre-populate the form fields 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.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)