From 7119d2321c0a83ca9369efe3faaca1f9e954c205 Mon Sep 17 00:00:00 2001 From: AntoninoP Date: Thu, 26 Sep 2024 17:41:40 +0200 Subject: [PATCH] final commit --- src/pages/Payement/Checkout.jsx | 2 +- src/pages/Payement/PaymentForm/PaymentForm.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Payement/Checkout.jsx b/src/pages/Payement/Checkout.jsx index 120c0a6..625c9e3 100644 --- a/src/pages/Payement/Checkout.jsx +++ b/src/pages/Payement/Checkout.jsx @@ -12,7 +12,7 @@ const Checkout = () => { if (session_id) { const fetchSessionStatus = async () => { try { - const response = await fetch(`http://192.168.68.114:3000/get-session-status?session_id=${session_id}`); + const response = await fetch(`https://www.servii.fr/api/get-session-status?session_id=${session_id}`); const data = await response.json(); setSessionStatus(data); } catch (error) { diff --git a/src/pages/Payement/PaymentForm/PaymentForm.jsx b/src/pages/Payement/PaymentForm/PaymentForm.jsx index 628ba22..d2ecc07 100644 --- a/src/pages/Payement/PaymentForm/PaymentForm.jsx +++ b/src/pages/Payement/PaymentForm/PaymentForm.jsx @@ -28,7 +28,7 @@ const CheckoutForm = ({ email }) => { const selectedPackage = queryParams.get('package'); const fetchClientSecret = useCallback(() => { - return fetch('http://192.168.68.114:3000/get-checkout-session', { + return fetch('https://www.servii.fr/api/get-checkout-session', { method: 'GET', headers: { 'Content-Type': 'application/json',