i deployed a backend server on render and it only redirects to stripe checkout on a desktop not a mobile after doing some research i can see i am fetching from localhost4000 which is for my backend however this is on local host what do i enter to fetch it from render.com i have entered my server URL but its still not working
const checkout = async (e) => {
e.preventDefault();
await fetch("http://localhost:4000/checkout", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({ items: cart.items }),
})
.then((response) => {
return response.json();
})
.then((response) => {
if (response.url) {
window.location.assign(response.url); // Forwarding user to Stripe
}
});
};```