CrossmintCheckoutPayment class final

Payment configuration for the embedded checkout.

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({CrossmintCheckoutFiatPayment? fiat, CrossmintCheckoutCryptoPayment? crypto, String? defaultMethod, CrossmintCheckoutDefaultMethod? defaultMethodType, String? receiptEmail})
Creates a payment configuration.
const

Properties

crypto CrossmintCheckoutCryptoPayment?
Crypto payment configuration — null disables the crypto tab.
final
defaultMethod String?
Raw default payment method string. Prefer defaultMethodType for compile-time safety. When both are set, defaultMethodType wins.
final
defaultMethodType CrossmintCheckoutDefaultMethod?
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.
final
fiat CrossmintCheckoutFiatPayment?
Fiat (card, Apple Pay, Google Pay) configuration — null disables the fiat tab entirely.
final
hashCode int
The hash code for this object.
no setterinherited
receiptEmail String?
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.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited