Configuration
data class Configuration @JvmOverloads constructor( val merchantDisplayName: String, val customer: PaymentSheet.CustomerConfiguration? = null, val googlePay: PaymentSheet.GooglePayConfiguration? = null, val primaryButtonColor: ColorStateList? = null, val defaultBillingDetails: PaymentSheet.BillingDetails? = null, val shippingDetails: AddressDetails? = null, val allowsDelayedPaymentMethods: Boolean = false, val appearance: PaymentSheet.Appearance = Appearance()) : Parcelable
Content copied to clipboard
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, shippingDetails: AddressDetails? = null, allowsDelayedPaymentMethods: Boolean = false, appearance: PaymentSheet.Appearance = Appearance())
Content copied to clipboard
Types
Link copied to clipboard
Configuration builder for cleaner object creation from Java.
Functions
Properties
Link copied to clipboard
Link copied to clipboard
🏗 Under construction 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.