final commit

This commit is contained in:
AntoninoP 2024-09-26 17:41:40 +02:00
parent 8e5ffcd6e4
commit 7119d2321c
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ const Checkout = () => {
if (session_id) { if (session_id) {
const fetchSessionStatus = async () => { const fetchSessionStatus = async () => {
try { 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(); const data = await response.json();
setSessionStatus(data); setSessionStatus(data);
} catch (error) { } catch (error) {

View File

@ -28,7 +28,7 @@ const CheckoutForm = ({ email }) => {
const selectedPackage = queryParams.get('package'); const selectedPackage = queryParams.get('package');
const fetchClientSecret = useCallback(() => { 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', method: 'GET',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',