React (Marketplace)
Insert this typescript component
Install our React component for marketplaces by copying our file https://github.com/winter-crypto/marketplace-checkout-package/blob/main/src/components/WinterCheckout.tsx​
🚨Note: Depending on your marketplace's smart contracts, this integration may differ. Please contact us at [email protected] and we can help you!
Then pass in the contract address and token ID! Copy the code snippet below!
<WinterCheckout
showModal={showWinterModal}
walletAddress={account.isConnected ? account.address : undefined}
contractAddress={clickedContractAddress}
tokenId={clickedTokenId}
production={process.env.WINTER_ENV == 'production' ? true : false }
onClose={() => {
setShowWinterModal(false)
}}
/>
Copy link