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. Platform API

testmode -> livemode

You can test Winter based on your testmode contract and push that to production with your mainnet contract.

PreviousIntro (read this first!)Next/createProject

Last updated 2 years ago

Winter allows you to create sandbox checkouts minting on your testnet smart contract to ensure that the integration is working smoothly.

Once that is working, you can create a corresponding livemode checkout for that project.

Let's say your test contract is deployed to Mumbai under the address 0xTestContract.

You'll create a sandbox Winter checkout as follows:

/createProject({
    sandbox: true, // NOTE! This param tells us this is a sandbox project. 
    contractAddress: 0xTestContract,
    ...
    // corresponding test contract info 
})

Let's say you get back project ID 10 for this sandbox checkout. You can then test the sandbox checkout via the following URL:

Let's say that all works (fingers crossed!) and you go ahead and deploy your contract to Polygon Mainnet under the address 0xMainnetContract.

You'll then create a livemode Winter project by calling

/createProject({
    projectId: 10 // Send Winter the project ID you got in sandbox
    sandbox: false, // NOTE! This param tells us this is a mainnet project. 
    contractAddress: 0xMainnetContract,
    ...
    // corresponding mainnet contract info 
})

Congrats on getting a live, mainnet Winter checkout up and running via API!

Voila! Now you can use that same project ID in livemode as follows:

https://sandbox-winter-checkout.onrender.com/?projectId={PROJECT_ID}
https://checkout.usewinter.com/?projectId={PROJECT_ID}