@usewinter/checkout
Advanced tools
Comparing version 0.1.37 to 0.1.38
@@ -15,2 +15,3 @@ import React = require("react"); | ||
production?: boolean; | ||
dev?: boolean; | ||
fillSource?: string; | ||
@@ -17,0 +18,0 @@ orderSource?: string; |
@@ -27,2 +27,3 @@ "use strict"; | ||
production, | ||
dev, | ||
language, | ||
@@ -115,3 +116,12 @@ appearance, | ||
} | ||
const url = production ? "https://checkout.usewinter.com/?" + queryString : "https://sandbox-winter-checkout.onrender.com/?" + queryString; | ||
var url; | ||
if (production) { | ||
url = "https://checkout.usewinter.com/?" + queryString; | ||
} else { | ||
if (dev) { | ||
url = "https://dev-checkout.onrender.com/?" + queryString; | ||
} else { | ||
url = "https://sandbox-winter-checkout.onrender.com/?" + queryString; | ||
} | ||
} | ||
setProjectUrl(url); | ||
@@ -118,0 +128,0 @@ }, [onSuccess, onClose, projectId, showModal, walletAddress, email, mintQuantity, erc1155Video, title, brandImage, extraMintParams, priceFunctionParams, production, language, appearance, gentkId, assetId]); |
{ | ||
"name": "@usewinter/checkout", | ||
"version": "0.1.37", | ||
"version": "0.1.38", | ||
"description": "Integrate Winter's NFT checkout with this React component", | ||
@@ -5,0 +5,0 @@ "author": "Evan Fisher", |
9659
172