Skip to content

Instantly share code, notes, and snippets.

@dmulvi
Created February 9, 2024 20:19
Show Gist options
  • Save dmulvi/265d4d2b024839adc9d5c34806497f56 to your computer and use it in GitHub Desktop.
Save dmulvi/265d4d2b024839adc9d5c34806497f56 to your computer and use it in GitHub Desktop.
Example of Crossmint hosted NFT checkout code
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