Integration

Email [email protected] for your API key!
npm i @usewinter/checkout
​
OR
​
yarn add @usewinter/checkout
​
Use the component in your React app
import { WinterCheckout } from '@usewinter/checkout';
​
<WinterCheckout
projectId={YOUR_PROJECT_ID}
production={false}
showModal={showWinter}
// pass in a function to be called when a successful purchase happens
onSuccess={() => setParty(true)}
// pass in a function to be called when the modal is closed
onClose={() => setShowWinter(false)}
// Replace with your desired crypto token payment method
// e.g. 'ETH' or 'SOL' or 'MATIC'
paymentMethod={'ETH'}
// This will be the domain of the marketplace you want to pull the orders from
orderSource={'opensea.io'}
// This will be the domain of the marketplace you want the order to be fulfilled on
fillSource={'opensea.io'}
/>