CrossmintEmbeddedCheckout constructor
const
CrossmintEmbeddedCheckout({
- Key? key,
- required String apiKey,
- required CrossmintCheckoutConfig config,
- CrossmintCheckoutPayer? payer,
- CrossmintCheckoutController? checkoutController,
- void onOrderUpdated()?,
- void onOrderCreationFailed(
- String errorMessage
- void onDiagnostic(
- CrossmintCheckoutDiagnostic diagnostic
- CrossmintCheckoutLoadingBuilder? loadingBuilder,
- double defaultHeight = 400,
Implementation
const CrossmintEmbeddedCheckout({
super.key,
required this.apiKey,
required this.config,
this.payer,
this.checkoutController,
this.onOrderUpdated,
this.onOrderCreationFailed,
this.onDiagnostic,
this.loadingBuilder,
this.defaultHeight = 400,
});