summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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: {} };
}