diff --git a/frontend/components/stripe.vue b/frontend/components/stripe.vue index 5652720..a6178c4 100644 --- a/frontend/components/stripe.vue +++ b/frontend/components/stripe.vue @@ -58,7 +58,11 @@ export default { }) }, makeIntent() { - fetch('/api/stripe/create-payment-intent', { + let url = '/api/stripe/create-payment-intent'; + if (window.location.href.includes('localhost')) + url = 'http://localhost:30010'.concat(url) + + fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json'