Created
February 9, 2024 20:19
-
-
Save dmulvi/265d4d2b024839adc9d5c34806497f56 to your computer and use it in GitHub Desktop.
Example of Crossmint hosted NFT checkout code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CrossmintPayButton } from "@crossmint/client-sdk-react-ui"; | |
// Add this component next to your minting button | |
<CrossmintPayButton | |
projectId="YOUR_PROJECT_ID" | |
collectionId="YOUR_COLLECTION_ID" | |
environment="ENVIRONMENT" | |
mintConfig={{ | |
type: "erc-721", | |
totalPrice: "0.001", | |
quantity: 1, | |
}} | |
/>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment