diff --git a/routes/payments/adyen.js b/routes/payments/adyen.js index a055244..b15c855 100644 --- a/routes/payments/adyen.js +++ b/routes/payments/adyen.js @@ -77,6 +77,8 @@ router.post('/checkout_action', async (req, res, next) => { orderPaymentGateway: 'Adyen', orderPaymentMessage: response.refusalReason, orderTotal: req.session.totalCartAmount, + orderItemCount: req.session.totalCartItems, + orderProductCount: req.session.totalCartProducts, orderEmail: req.session.customerEmail, orderFirstname: req.session.customerFirstname, orderLastname: req.session.customerLastname, diff --git a/routes/payments/authorizenet.js b/routes/payments/authorizenet.js index 6462868..3e1725a 100644 --- a/routes/payments/authorizenet.js +++ b/routes/payments/authorizenet.js @@ -60,6 +60,8 @@ router.post('/checkout_action', (req, res, next) => { orderPaymentGateway: 'AuthorizeNet', orderPaymentMessage: 'Your payment was successfully completed', orderTotal: req.session.totalCartAmount, + orderItemCount: req.session.totalCartItems, + orderProductCount: req.session.totalCartProducts, orderEmail: req.session.customerEmail, orderFirstname: req.session.customerFirstname, orderLastname: req.session.customerLastname, diff --git a/routes/payments/paypal.js b/routes/payments/paypal.js index 9c6cdab..ed9ffe1 100644 --- a/routes/payments/paypal.js +++ b/routes/payments/paypal.js @@ -164,6 +164,8 @@ router.post('/checkout_action', (req, res, next) => { orderPaymentId: payment.id, orderPaymentGateway: 'Paypal', orderTotal: req.session.totalCartAmount, + orderItemCount: req.session.totalCartItems, + orderProductCount: req.session.totalCartProducts, orderEmail: req.session.customerEmail, orderFirstname: req.session.customerFirstname, orderLastname: req.session.customerLastname, diff --git a/routes/payments/stripe.js b/routes/payments/stripe.js index 5cbc62c..b7eea31 100644 --- a/routes/payments/stripe.js +++ b/routes/payments/stripe.js @@ -53,6 +53,8 @@ router.post('/checkout_action', (req, res, next) => { orderPaymentGateway: 'Stripe', orderPaymentMessage: charge.outcome.seller_message, orderTotal: req.session.totalCartAmount, + orderItemCount: req.session.totalCartItems, + orderProductCount: req.session.totalCartProducts, orderEmail: req.session.customerEmail, orderFirstname: req.session.customerFirstname, orderLastname: req.session.customerLastname, @@ -229,6 +231,8 @@ router.post('/checkout_action_subscription', async (req, res, next) => { orderPaymentGateway: 'Stripe', orderPaymentMessage: subscription.collection_method, orderTotal: req.session.totalCartAmount, + orderItemCount: req.session.totalCartItems, + orderProductCount: req.session.totalCartProducts, orderEmail: req.session.customerEmail, orderFirstname: req.session.customerFirstname, orderLastname: req.session.customerLastname,