winter-marketplace-checkout
v1.1.20
Published
Winter's checkout for marketplaces!
Downloads
12
Readme
marketplace-npm-package
🚀🚀 React package to integrate Winter checkout 🚀🚀
🚨Note: Depending on your marketplace's smart contracts, this integration may differ. Please contact us at [email protected] and we can help you!
Installation
npm i winter-marketplace-checkout
OR
yarn add winter-marketplace-checkout
Usage in your react app
import WinterCheckout from 'winter-marketplace-checkout/lib/WinterCheckout'
<WinterCheckout
showModal={showWinterModal}
contractAddress={"0xef2d92168835eb485d79733a0274fc5866025c17"}
tokenId={"134"}
production={true}
language={'chinese'}
// Will only source orders from this marketplace - Don't pass in this var if you are an aggregator
orderSource={'{{MARKETPLACE_URL}}'}
// For analytics purposes this will show us which marketplace the purchase came through
fillSource={'{{MARKETPLACE_URL}}'}
onClose={() => {
setShowWinterModal(false);
}}
/>