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

# Specify Recipient

> Select where purchased items should be delivered in Hosted Checkout

<Snippet file="specify-recipient-common.mdx" />

## Specifying the Recipient

For Hosted Checkout, you specify the recipient by adding a `recipient` object to your checkout component. The recipient can be specified by email, wallet address, or physical address for physical products.

### Recipient by Email

When specifying a recipient by email, Crossmint will automatically create a secure custodial wallet on the fly for that email address:

```jsx React {3-5} theme={null}
<CrossmintProvider apiKey="YOUR_API_KEY">
    <CrossmintHostedCheckout
        recipient={{
            email: "user@example.com",
        }}
        lineItems={{
            collectionLocator: `crossmint:YOUR_COLLECTION_ID`,
            callData: {
                totalPrice: "0.0001",
                quantity: 1,
            },
        }}
        payment={{
            crypto: { enabled: true },
            fiat: { enabled: true },
        }}
    >
        Buy with Crossmint
    </CrossmintHostedCheckout>
</CrossmintProvider>
```

The recipient will be able to access their purchased items by logging into their Crossmint wallet in [staging](https://staging.crossmint.com/user/collection) or [mainnet](https://www.crossmint.com/user/collection).

### Recipient by Wallet Address

To deliver items directly to a specific blockchain wallet address:

```jsx React {3-6} theme={null}
<CrossmintProvider apiKey="YOUR_API_KEY">
    <CrossmintHostedCheckout
        recipient={{
            walletAddress: "0x1234567890abcdef1234567890abcdef12345678", // For EVM chains
            // walletAddress: "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty", // For Solana
        }}
        lineItems={{
            collectionLocator: `crossmint:YOUR_COLLECTION_ID`,
            callData: {
                totalPrice: "0.0001",
                quantity: 1,
            },
        }}
        payment={{
            crypto: { enabled: true },
            fiat: { enabled: true },
        }}
    />
</CrossmintProvider>
```

### Physical Product Recipients

<Snippet file="physical-address-format.mdx" />

When purchasing physical products, you can specify a physical address for delivery:

```jsx React {3-13} theme={null}
<CrossmintProvider apiKey="YOUR_API_KEY">
    <CrossmintHostedCheckout
        recipient={{
            email: "user@example.com",
            physicalAddress: {
                name: "John Doe",
                line1: "123 Main St",
                line2: "Apt 4B", // optional
                city: "San Francisco",
                state: "CA",
                postalCode: "94105",
                country: "US",
            },
        }}
        projectId="YOUR_PROJECT_ID"
        collectionId="YOUR_COLLECTION_ID"
        environment="staging"
        mintConfig={{
            totalPrice: "0.0001",
            quantity: 1,
        }}
    />
</CrossmintProvider>
```
