Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt

Use this file to discover all available pages before exploring further.

Final Class Payment configuration for the embedded checkout.
final class CrossmintCheckoutPayment
At least one of fiat or crypto must be enabled. When both are configured, defaultMethodType (or defaultMethod) controls which method the checkout opens on first.

Constructors

CrossmintCheckoutPayment

const CrossmintCheckoutPayment({
  this.fiat,
  this.crypto,
  this.defaultMethod,
  this.defaultMethodType,
  this.receiptEmail,
})
Creates a payment configuration.

Properties

fiat

final CrossmintCheckoutFiatPayment? fiat
Fiat (card, Apple Pay, Google Pay) configuration — null disables the fiat tab entirely.

crypto

final CrossmintCheckoutCryptoPayment? crypto
Crypto payment configuration — null disables the crypto tab.

defaultMethod

final String? defaultMethod
Raw default payment method string. Prefer defaultMethodType for compile-time safety. When both are set, defaultMethodType wins.

defaultMethodType

final CrossmintCheckoutDefaultMethod? defaultMethodType
Typed default payment method — one of CrossmintCheckoutDefaultMethod: fiat (open on credit card / Apple Pay / Google Pay) or crypto (open on on-chain payment). Takes precedence over defaultMethod.

receiptEmail

final String? receiptEmail
Email to receive the order receipt. Leave null to use the recipient email (for CrossmintCheckoutEmailRecipient) or rely on the user entering an email inside the hosted page.