IO-3395 Postback Payment Date
Signed-off-by: Allan Carr <allan@imexsystems.ca>
This commit is contained in:
@@ -48,7 +48,9 @@ const handleCommentBasedPayment = async (values, decodedComment, logger, logMeta
|
|||||||
payer: "Customer",
|
payer: "Customer",
|
||||||
type: getPaymentType(ipMapping, values.cardtype),
|
type: getPaymentType(ipMapping, values.cardtype),
|
||||||
jobid: p.jobid,
|
jobid: p.jobid,
|
||||||
date: moment(Date.now()).tz(bodyshop.bodyshops_by_pk.timezone || "UTC"),
|
date: moment()
|
||||||
|
.tz(bodyshop.bodyshops_by_pk.timezone || "UTC")
|
||||||
|
.format("YYYY-MM-DD"),
|
||||||
payment_responses: {
|
payment_responses: {
|
||||||
data: {
|
data: {
|
||||||
amount: values.total,
|
amount: values.total,
|
||||||
|
|||||||
@@ -97,7 +97,9 @@ const handleInvoiceBasedPayment = async (values, logger, logMeta, res) => {
|
|||||||
payer: "Customer",
|
payer: "Customer",
|
||||||
type: getPaymentType(ipMapping, values.cardtype),
|
type: getPaymentType(ipMapping, values.cardtype),
|
||||||
jobid: job.id,
|
jobid: job.id,
|
||||||
date: moment(Date.now()).tz(bodyshop.timezone || "UTC")
|
date: moment()
|
||||||
|
.tz(bodyshop.timezone || "UTC")
|
||||||
|
.format("YYYY-MM-DD")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user