CrossmintCheckoutPayment constructor

const CrossmintCheckoutPayment({
  1. CrossmintCheckoutFiatPayment? fiat,
  2. CrossmintCheckoutCryptoPayment? crypto,
  3. String? defaultMethod,
  4. CrossmintCheckoutDefaultMethod? defaultMethodType,
  5. String? receiptEmail,
})

Creates a payment configuration.

Use defaultMethodType for compile-time-safe default method selection. The raw defaultMethod string remains for forward compatibility — when both are set, defaultMethodType takes precedence.

Implementation

const CrossmintCheckoutPayment({
  this.fiat,
  this.crypto,
  this.defaultMethod,
  this.defaultMethodType,
  this.receiptEmail,
});