BigCommerce Checkout Redirect
This article provides the necessary steps to establish the BigCommerce Checkout Redirect
External Checkout (Direct API) Configuration
const urlParams = new URLSearchParams(location.search);
if (urlParams.has("products")){
const urlProducts = urlParams.get("products").split(";");
for(const product of urlProducts){
const pos = product.indexOf(".");
const splitChar = pos > 0 && pos < product.indexOf(":") ? "." : ":";
const productData = product.split(splitChar);
myCart[productData[0]] = productData[1];
}
sessionStorage.setItem("myCart",JSON.stringify(myCart));
}Redirect Checkout

Last updated