From 6832012bb3a7a694852a4eb453f3ff8fe6a0300b Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Sat, 21 Sep 2024 11:12:35 +0700 Subject: update code --- src/pages/shop/checkout/[status].jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/pages/shop/checkout/[status].jsx b/src/pages/shop/checkout/[status].jsx index 3e390e8d..0d5cffe8 100644 --- a/src/pages/shop/checkout/[status].jsx +++ b/src/pages/shop/checkout/[status].jsx @@ -7,11 +7,11 @@ import Seo from '@/core/components/Seo'; export async function getServerSideProps(context) { const { order_id } = context.query; - // await axios.post( - // `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/finish-checkout?orderName=${order_id}`, - // {}, - // { headers: context.req.headers } - // ) + await axios.post( + `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/finish-checkout?orderName=${order_id}`, + {}, + { headers: context.req.headers } + ); return { props: {} }; } -- cgit v1.2.3