PaymentSheetConfiguration

data class PaymentSheetConfiguration(val orderId: String, val returnUrl: String? = null, val appearance: PaymentSheetConfiguration.Appearance = Appearance(), val telemetry: PaymentSheetConfiguration.Telemetry = Telemetry(), val features: PaymentSheetConfiguration.Features = Features())

Constructors

Link copied to clipboard
constructor(orderId: String, returnUrl: String? = null, appearance: PaymentSheetConfiguration.Appearance = Appearance(), telemetry: PaymentSheetConfiguration.Telemetry = Telemetry(), features: PaymentSheetConfiguration.Features = Features())

Types

Link copied to clipboard
data class Appearance(val primaryColor: String? = null, val backgroundColor: String? = null, val textColor: String? = null, val cornerRadius: Float? = null)
Link copied to clipboard
object Companion
Link copied to clipboard
data class Features(val showLineItems: Boolean = false, val showInvoiceDownload: Boolean = false, val showReceiptDownload: Boolean = false, val allowPaymentMethodChange: Boolean = true)

Optional content and actions exposed by the payment sheet.

Link copied to clipboard
data class Telemetry(val enabled: Boolean = true, val traceParent: String? = null, val traceState: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard