Collect additional data in orders
parent
5644a3a5af
commit
48b4963dfe
|
@ -77,6 +77,8 @@ router.post('/checkout_action', async (req, res, next) => {
|
||||||
orderPaymentGateway: 'Adyen',
|
orderPaymentGateway: 'Adyen',
|
||||||
orderPaymentMessage: response.refusalReason,
|
orderPaymentMessage: response.refusalReason,
|
||||||
orderTotal: req.session.totalCartAmount,
|
orderTotal: req.session.totalCartAmount,
|
||||||
|
orderItemCount: req.session.totalCartItems,
|
||||||
|
orderProductCount: req.session.totalCartProducts,
|
||||||
orderEmail: req.session.customerEmail,
|
orderEmail: req.session.customerEmail,
|
||||||
orderFirstname: req.session.customerFirstname,
|
orderFirstname: req.session.customerFirstname,
|
||||||
orderLastname: req.session.customerLastname,
|
orderLastname: req.session.customerLastname,
|
||||||
|
|
|
@ -60,6 +60,8 @@ router.post('/checkout_action', (req, res, next) => {
|
||||||
orderPaymentGateway: 'AuthorizeNet',
|
orderPaymentGateway: 'AuthorizeNet',
|
||||||
orderPaymentMessage: 'Your payment was successfully completed',
|
orderPaymentMessage: 'Your payment was successfully completed',
|
||||||
orderTotal: req.session.totalCartAmount,
|
orderTotal: req.session.totalCartAmount,
|
||||||
|
orderItemCount: req.session.totalCartItems,
|
||||||
|
orderProductCount: req.session.totalCartProducts,
|
||||||
orderEmail: req.session.customerEmail,
|
orderEmail: req.session.customerEmail,
|
||||||
orderFirstname: req.session.customerFirstname,
|
orderFirstname: req.session.customerFirstname,
|
||||||
orderLastname: req.session.customerLastname,
|
orderLastname: req.session.customerLastname,
|
||||||
|
|
|
@ -164,6 +164,8 @@ router.post('/checkout_action', (req, res, next) => {
|
||||||
orderPaymentId: payment.id,
|
orderPaymentId: payment.id,
|
||||||
orderPaymentGateway: 'Paypal',
|
orderPaymentGateway: 'Paypal',
|
||||||
orderTotal: req.session.totalCartAmount,
|
orderTotal: req.session.totalCartAmount,
|
||||||
|
orderItemCount: req.session.totalCartItems,
|
||||||
|
orderProductCount: req.session.totalCartProducts,
|
||||||
orderEmail: req.session.customerEmail,
|
orderEmail: req.session.customerEmail,
|
||||||
orderFirstname: req.session.customerFirstname,
|
orderFirstname: req.session.customerFirstname,
|
||||||
orderLastname: req.session.customerLastname,
|
orderLastname: req.session.customerLastname,
|
||||||
|
|
|
@ -53,6 +53,8 @@ router.post('/checkout_action', (req, res, next) => {
|
||||||
orderPaymentGateway: 'Stripe',
|
orderPaymentGateway: 'Stripe',
|
||||||
orderPaymentMessage: charge.outcome.seller_message,
|
orderPaymentMessage: charge.outcome.seller_message,
|
||||||
orderTotal: req.session.totalCartAmount,
|
orderTotal: req.session.totalCartAmount,
|
||||||
|
orderItemCount: req.session.totalCartItems,
|
||||||
|
orderProductCount: req.session.totalCartProducts,
|
||||||
orderEmail: req.session.customerEmail,
|
orderEmail: req.session.customerEmail,
|
||||||
orderFirstname: req.session.customerFirstname,
|
orderFirstname: req.session.customerFirstname,
|
||||||
orderLastname: req.session.customerLastname,
|
orderLastname: req.session.customerLastname,
|
||||||
|
@ -229,6 +231,8 @@ router.post('/checkout_action_subscription', async (req, res, next) => {
|
||||||
orderPaymentGateway: 'Stripe',
|
orderPaymentGateway: 'Stripe',
|
||||||
orderPaymentMessage: subscription.collection_method,
|
orderPaymentMessage: subscription.collection_method,
|
||||||
orderTotal: req.session.totalCartAmount,
|
orderTotal: req.session.totalCartAmount,
|
||||||
|
orderItemCount: req.session.totalCartItems,
|
||||||
|
orderProductCount: req.session.totalCartProducts,
|
||||||
orderEmail: req.session.customerEmail,
|
orderEmail: req.session.customerEmail,
|
||||||
orderFirstname: req.session.customerFirstname,
|
orderFirstname: req.session.customerFirstname,
|
||||||
orderLastname: req.session.customerLastname,
|
orderLastname: req.session.customerLastname,
|
||||||
|
|
Loading…
Reference in New Issue