CrossmintCheckoutConfig class final
Configuration for CrossmintEmbeddedCheckout.
Constructors
- CrossmintCheckoutConfig({required CrossmintCheckoutOrder order, required CrossmintCheckoutPayment payment, CrossmintCheckoutAppearance? appearance, String? jwt})
-
Creates a checkout config.
const
Properties
- appearance → CrossmintCheckoutAppearance?
-
Optional appearance customization — CSS variables, rules, fonts.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- jwt → String?
-
Optional JWT for authenticated checkouts — attaches the user's
Crossmint session to the hosted page so the experience is signed-in
when the user lands. Pass
client.auth.state.session?.jwtwhen you want the checkout to inherit the current app session.final - order → CrossmintCheckoutOrder
-
Order to check out — either a CrossmintCheckoutNewOrder built from
line items, or a CrossmintCheckoutExistingOrder referencing an
already-created order by id.
final
- payment → CrossmintCheckoutPayment
-
Payment method configuration — fiat, crypto, and default method.
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
-
toQueryParams(
) → Map< String, String> - Serializes to query parameters for the checkout URL.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited