> ## 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.

# CrossmintCheckoutPayment

> Flutter Final Class

**Final Class**

Payment configuration for the embedded checkout.

```dart theme={null}
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

```dart theme={null}
const CrossmintCheckoutPayment({
  this.fiat,
  this.crypto,
  this.defaultMethod,
  this.defaultMethodType,
  this.receiptEmail,
})
```

Creates a payment configuration.

## Properties

### fiat

```dart theme={null}
final CrossmintCheckoutFiatPayment? fiat
```

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

### crypto

```dart theme={null}
final CrossmintCheckoutCryptoPayment? crypto
```

Crypto payment configuration — null disables the crypto tab.

### defaultMethod

```dart theme={null}
final String? defaultMethod
```

Raw default payment method string. Prefer `defaultMethodType` for compile-time safety. When both are set, `defaultMethodType` wins.

### defaultMethodType

```dart theme={null}
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

```dart theme={null}
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.
