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

# CheckoutCryptoPayment

> Swift Structure

**Structure**

The settings for payment with crypto.

```swift theme={null}
struct CheckoutCryptoPayment
```

## Initializers

### init(enabled:defaultChain:defaultCurrency:)

Creates the crypto payment settings.

```swift theme={null}
init(enabled: Bool, defaultChain: String? = nil, defaultCurrency: String? = nil)
```

### init(from:)

Inherited from `Decodable.init(from:)`.

```swift theme={null}
init(from decoder: any Decoder) throws
```

## Instance Properties

| Property          | Type      | Description                                                                    |
| ----------------- | --------- | ------------------------------------------------------------------------------ |
| `defaultChain`    | `String?` | The blockchain the checkout selects first, for example `"base"` or `"solana"`. |
| `defaultCurrency` | `String?` | The currency the checkout selects first, for example `"usdc"`.                 |
| `enabled`         | `Bool`    | A Boolean value that shows whether the buyer can pay with crypto.              |
