Configuration

data class Configuration @JvmOverloads constructor(merchantDisplayName: String, customer: PaymentSheet.CustomerConfiguration?, googlePay: PaymentSheet.GooglePayConfiguration?, primaryButtonColor: ColorStateList?, defaultBillingDetails: PaymentSheet.BillingDetails?, allowsDelayedPaymentMethods: Boolean) : Parcelable

Configuration for PaymentSheet

Constructors

Link copied to clipboard
fun Configuration(merchantDisplayName: String, customer: PaymentSheet.CustomerConfiguration? = null, googlePay: PaymentSheet.GooglePayConfiguration? = null, primaryButtonColor: ColorStateList? = null, defaultBillingDetails: PaymentSheet.BillingDetails? = null, allowsDelayedPaymentMethods: Boolean = false)

Types

Link copied to clipboard
class Builder(merchantDisplayName: String)

Configuration builder for cleaner object creation from Java.

Functions

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

Properties

Link copied to clipboard
val allowsDelayedPaymentMethods: Boolean = false

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

Link copied to clipboard
val customer: PaymentSheet.CustomerConfiguration? = null

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

Link copied to clipboard
val defaultBillingDetails: PaymentSheet.BillingDetails? = null

The billing information for the customer.

Link copied to clipboard
val googlePay: PaymentSheet.GooglePayConfiguration? = null

Configuration related to the Stripe Customer making a payment.

Link copied to clipboard
val merchantDisplayName: String

Your customer-facing business name.

Link copied to clipboard
val primaryButtonColor: ColorStateList? = null

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