PaymentSheetConfiguration

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

Everything Inttegro needs to prepare one native Checkout presentation.

Pass either the public Order ID returned by your backend after finalization, or a Purchase Intent backed by a customer-selected amount price. This type intentionally has no merchant API key, amount, currency, or merchant identity fields: Checkout remains authoritative for those values.

Throws

when a value fails synchronous validation.

Constructors

Link copied to clipboard
constructor(orderId: String? = null, purchaseIntentId: String? = null, 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)

Restrained visual overrides applied to the native sheet.

Link copied to clipboard
object Companion

Validation patterns shared by configuration construction.

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)

Host-owned diagnostic and distributed-tracing options.

Properties

Link copied to clipboard

Restrained native appearance overrides.

Link copied to clipboard

Optional content and post-payment actions.

Link copied to clipboard

Public identifier of the finalized Order.

Link copied to clipboard

Public Buy link identifier whose amount the payer chooses before Checkout creates the Order.

Link copied to clipboard

Application URL used after a provider handoff.

Link copied to clipboard

Host-owned diagnostics and trace-context options.