If you are using our previous version of embedded checkout, please refer to the old multiple NFT purchases guide

You can enable users to purchase multiple NFTs in a single transaction using either CrossmintEmbeddedCheckout or CrossmintPayButton:

<CrossmintPayButton
    projectId="_YOUR_PROJECT_ID_"
    collectionId="_YOUR_COLLECTION_ID_"
    environment="staging"
    mintConfig={{
        totalPrice: "0.002",
        _quantity: 2, // matches your contract's parameter name
    }}
/>
The price on the mintConfig property must match the price on the contract. For example, if you are selling 2 NFTs for 1 ETH each, the totalPrice should be 2 ETH.

FAQ