Winter - Sell NFTs via credit card
  • Get started
    • Get Started
      • Project Testing
      • Push to Production
    • Marketplaces
    • How do I get paid?
    • Payment methods & locations
      • Foreign Currencies
      • Apple Pay
    • Whitelists/Allowlists
  • Marketplace integrations
    • Intro
    • Implementation strategy
      • Directly with smart contracts
      • Aggregation APIs
      • APIs to build a transaction
      • Build and submit a transaction
  • Primary Mint Smart Contracts
    • 🚨Requirements
    • ETH, Polygon, and EVM
      • Multi-contract
      • Drop types we support
    • Solana
    • Crypto pricing
  • Front End Integration
    • Customization
    • Pre-fill (email, wallet, etc)
    • React
    • React (Marketplace)
    • Plain HTML
    • Post-purchase
    • CSS customization
  • Platform API
    • Intro (read this first!)
    • testmode -> livemode
    • /createProject
    • /updateProject
    • /deleteProject
    • /updateWhitelist
    • /getProjects
  • Wallet API Docs
    • Intro
    • /getNFTs
    • /transferNFT
  • NFT Claim API
    • Intro
    • /mintNFT
    • /mintFreeNFT
    • /transferNFT
  • Cross-chain payments
    • Intro
    • Integration
Powered by GitBook
On this page
  1. Front End Integration

Pre-fill (email, wallet, etc)

PreviousCustomizationNextReact

Last updated 2 years ago

Need to pass in parameters to prefill email or wallet address? We support that!

Use the optional walletAddress to pre-fill the wallet address

Use the optional email to pre-fill the email

Example:

  <WinterCheckout
    // Your projectId, will be the same in sandbox/production
    projectId={20}
    // When false we use tesntet & when true we use mainnet
    production={false}
    // This is a boolean that opens the widget when true
    showModal={showWinter}
    // Can pass in the customer's wallet address if you have it
    walletAddress='0x64EE4e11E0992D18C5986bA99F2d7DF8fc7A3dC3'
    // Can pass in the customer's email if you have it
    email="laila@usewinter.com"
    // Can pass in the mint quantity if the quantity is chosen before our modal is opened
    mintQuantity={5}
  />

If you've embedded the iframe directly, this example applies:

https://checkout.usewinter.com/?projectId=1&walletAddress=0xabcdefg&email=sean@awesome.com