From 97dc06aaafc69ad62d7daf3f48991ce8863cac91 Mon Sep 17 00:00:00 2001 From: ehsang Date: Sun, 29 Sep 2024 18:16:05 +0330 Subject: [PATCH] cart verify route exclusion --- src/features/payment/payment.controller.ts | 2 +- src/features/payment/payment.module.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/payment/payment.controller.ts b/src/features/payment/payment.controller.ts index 393cf4eb4..d385deafb 100644 --- a/src/features/payment/payment.controller.ts +++ b/src/features/payment/payment.controller.ts @@ -117,7 +117,7 @@ export class PaymentController { }; try { // create flask payment - const { data } = await axios.put( + const { data } = await axios.post( 'https://api.sayapp.company/api/v2/mycart/payment', { donation: Number(body.donation), diff --git a/src/features/payment/payment.module.ts b/src/features/payment/payment.module.ts index 282ed40a9..8edce455e 100644 --- a/src/features/payment/payment.module.ts +++ b/src/features/payment/payment.module.ts @@ -63,6 +63,7 @@ export class PaymentModule implements NestModule { consumer .apply(PaymentMiddleware) .exclude({ path: 'payment/verify', method: RequestMethod.GET }) + .exclude({ path: 'payment/verify/cart', method: RequestMethod.GET }) .forRoutes(PaymentController); } }