- Primary Sales
- Marketplaces
Pass a quantity attribute to the
mintConfig indicating the total number of NFTs and update the totalPrice accordingly.The price on the mintConfig 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.For EVM contracts, ensure the attribute name matches the parameter name in your mint function. For example: If your mint function has the signature:
mintTo(address _to, uint256 _amount) then the attribute you set in the mintConfig must be _amount instead of quantity.Make sure that all NFTs belong to the same collectionId and blockchain.
See example
See example
The following examples are for the hosted checkout button. For the embedded checkout, you may adjust the
mintConfig analogously.FAQ
What happens if some of the transactions fail?
What happens if some of the transactions fail?
Fiat purchases
When a user submits an order, Crossmint puts a hold on their credit card and attempts the purchase of the NFTs. If the transaction fails, the funds are released instantly (though it may take some time to be reflected on the bank statement) so the customer is never charged.If an order results in a mix of successful and failed purchase attempts, Crossmint will only charge for the transactions that went through and return the rest instantly. Users will receive an email receipt with the final transaction amount.
Crypto purchases
If a transaction fails, Crossmint will return the full amount to the buyer. Any gas fees incurred will be subsidized by Crossmint.
When a user submits an order, Crossmint puts a hold on their credit card and attempts the purchase of the NFTs. If the transaction fails, the funds are released instantly (though it may take some time to be reflected on the bank statement) so the customer is never charged.If an order results in a mix of successful and failed purchase attempts, Crossmint will only charge for the transactions that went through and return the rest instantly. Users will receive an email receipt with the final transaction amount.
Crypto purchases
If a transaction fails, Crossmint will return the full amount to the buyer. Any gas fees incurred will be subsidized by Crossmint.
Do all NFTs must be on the same blockchain?
Do all NFTs must be on the same blockchain?
Yes, all NFTs in a single order must be on the same blockchain.

