ch("/checkout-session?id=" + id)
        .then((response) => response.json())
        .then((session) => {
          // formatting the JSON we want back:
          sessionData.innerText = JSON.stringify(session, null, 2);
        })
        .catch((error) => {
          console.error("Error:", error);
        });

      var btn = document.getElementById("home-btn");
      var domain = "http://localhost:3000";
      btn.addEventListener("click", function (e) {
        e.preventDefault();

        location.hr