From 7e2a214a50759273bc7eb0604d63b39650db85b2 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 20 Mar 2025 12:07:16 -0700 Subject: [PATCH] IO-3176 IntelliPay Payment Mapping Correction Signed-off-by: Allan Carr --- server/intellipay/intellipay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/intellipay/intellipay.js b/server/intellipay/intellipay.js index 498129d7a..49d91a88c 100644 --- a/server/intellipay/intellipay.js +++ b/server/intellipay/intellipay.js @@ -418,7 +418,7 @@ exports.postback = async (req, res) => { amount: p.amount, transactionid: values.authcode, payer: "Customer", - type: ipMapping[(values.cardtype || "").toLowerCase()] || values.cardtype, + type: ipMapping ? ipMapping[(values.cardtype || "").toLowerCase()] || values.cardtype : values.cardtype, jobid: p.jobid, date: moment(Date.now()), payment_responses: { @@ -482,7 +482,7 @@ exports.postback = async (req, res) => { amount: values.total, transactionid: values.authcode, payer: "Customer", - type: ipMapping[(values.cardtype || "").toLowerCase()] || values.cardtype, + type: ipMapping ? ipMapping[(values.cardtype || "").toLowerCase()] || values.cardtype : values.cardtype, jobid: values.invoice, date: moment(Date.now()) }