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',