IO-3176 IntelliPay Payment Mapping Correction
Signed-off-by: Allan Carr <allan.carr@thinkimex.com>
This commit is contained in:
@@ -418,7 +418,7 @@ exports.postback = async (req, res) => {
|
|||||||
amount: p.amount,
|
amount: p.amount,
|
||||||
transactionid: values.authcode,
|
transactionid: values.authcode,
|
||||||
payer: "Customer",
|
payer: "Customer",
|
||||||
type: ipMapping[(values.cardtype || "").toLowerCase()] || values.cardtype,
|
type: ipMapping ? ipMapping[(values.cardtype || "").toLowerCase()] || values.cardtype : values.cardtype,
|
||||||
jobid: p.jobid,
|
jobid: p.jobid,
|
||||||
date: moment(Date.now()),
|
date: moment(Date.now()),
|
||||||
payment_responses: {
|
payment_responses: {
|
||||||
@@ -482,7 +482,7 @@ exports.postback = async (req, res) => {
|
|||||||
amount: values.total,
|
amount: values.total,
|
||||||
transactionid: values.authcode,
|
transactionid: values.authcode,
|
||||||
payer: "Customer",
|
payer: "Customer",
|
||||||
type: ipMapping[(values.cardtype || "").toLowerCase()] || values.cardtype,
|
type: ipMapping ? ipMapping[(values.cardtype || "").toLowerCase()] || values.cardtype : values.cardtype,
|
||||||
jobid: values.invoice,
|
jobid: values.invoice,
|
||||||
date: moment(Date.now())
|
date: moment(Date.now())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user