From cadd27a4528c5ca9004ff796f76dedcf888b74b5 Mon Sep 17 00:00:00 2001 From: tai Date: Sat, 5 Nov 2022 10:53:28 +0700 Subject: [PATCH] #106 backend --- .../src/v1/user_api/services/payment.service/payment.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/v1/user_api/services/payment.service/payment.service.js b/backend/src/v1/user_api/services/payment.service/payment.service.js index 7c5e7ac..dd39855 100644 --- a/backend/src/v1/user_api/services/payment.service/payment.service.js +++ b/backend/src/v1/user_api/services/payment.service/payment.service.js @@ -231,7 +231,7 @@ module.exports = { // success_url: `${req.protocol}://${req.get("host")}/api/payment/stripe/success/{CHECKOUT_SESSION_ID}/${UserId._id}`, // cancel_url: `${req.protocol}://${req.get("host")}/api/payment/cancel`, - success_url: `http://localhost:3000/payment/success/{CHECKOUT_SESSION_ID}`, + success_url: `http://localhost:3000/payment/stripe/success/{CHECKOUT_SESSION_ID}`, cancel_url: `http://localhost:3000/cart`, }; // Create Checkout Sessions from body params.