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); } }