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

# CheckoutPayment

> Swift Structure

**Structure**

The payment settings for `CrossmintEmbeddedCheckout`.

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

At least one of `crypto` and `fiat` must be enabled. The checkout shows a tab for each enabled method.

## Initializers

### init(crypto:fiat:receiptEmail:defaultMethod:)

Creates the payment settings.

```swift theme={null}
init(crypto: CheckoutCryptoPayment, fiat: CheckoutFiatPayment, receiptEmail: String? = nil, defaultMethod: Method? = nil)
```

### init(from:)

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

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

## Instance Properties

| Property        | Type                    | Description                                    |
| --------------- | ----------------------- | ---------------------------------------------- |
| `crypto`        | `CheckoutCryptoPayment` | The settings for payment with crypto.          |
| `defaultMethod` | `Method?`               | The payment method the checkout selects first. |
| `fiat`          | `CheckoutFiatPayment`   | The settings for payment with fiat currency.   |
| `receiptEmail`  | `String?`               | The email address that receives the receipt.   |

## Enumerations

### CheckoutPayment.Method

A payment method.

```swift theme={null}
enum Method
```
