summaryrefslogtreecommitdiff
path: root/src/pages/shop/checkout
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-09-21 11:12:35 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-09-21 11:12:35 +0700
commit6832012bb3a7a694852a4eb453f3ff8fe6a0300b (patch)
tree1bdf694f95cd007862c89d4aebceee8402030837 /src/pages/shop/checkout
parentec69b6f0131939ebfbff1d5082b1229f7b58799b (diff)
<iman> update code
Diffstat (limited to 'src/pages/shop/checkout')
-rw-r--r--src/pages/shop/checkout/[status].jsx10
1 files changed, 5 insertions, 5 deletions
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: {} };
}