Post-purchase
Know when your customer finishes checking out with Winter.
The Winter widget emits events that tell you when your customer finishes purchasing an NFT. You can listen for these events and use the information as needed in your application - for instance, to redirect the user to a post-purchase page.
Message events we emit:
"successfulWinterCheckout" - emitted when a successful purchase has been completed and the user is on the order confirmation screen
With a successful checkout, we also emit details of the purchase, such as transaction hash and email (see example below)
"closeWinterCheckoutModal" - emitted when a user closes the Winter checkout
successfulWinterCheckout
This event emits information from the checkout including:
transactionHash - the transaction hash on the blockchain. You can use this to query etherscan, polygonscan or solscan for the mint transaction.
transferHash - the transfer hash on the blockchain if there is one. You can use this to query etherscan, polygonscan, solscan, and tzkt for the transfer transaction.
email - in case you need it.
nftQuantity - the number of NFTs purchased
amountUSD - the price of the purchase in cents
nftTokenIds - the token ids of each nft purchased
nftUrls - the url for the image of each NFT
openseaUrls - the opensea url for each NFT purchased
Last updated