Merged in feature/IO-3176-IntelliPay-Payment-Mapping (pull request #2219)

IO-3176 IntelliPay Payment Mapping Correction

Approved-by: Dave Richer
This commit is contained in:
Allan Carr
2025-03-24 16:40:19 +00:00
committed by Dave Richer

View File

@@ -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())
}