IO-3395 Postback Payment Date
Signed-off-by: Allan Carr <allan@imexsystems.ca>
This commit is contained in:
@@ -2859,6 +2859,7 @@ exports.GET_BODYSHOP_BY_ID = `
|
|||||||
intellipay_config
|
intellipay_config
|
||||||
state
|
state
|
||||||
notification_followers
|
notification_followers
|
||||||
|
timezone
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -2950,6 +2951,7 @@ query GET_JOBID_BY_MERCHANTID_RONUMBER($merchantID: String!, $roNumber: String!)
|
|||||||
id
|
id
|
||||||
intellipay_config
|
intellipay_config
|
||||||
email
|
email
|
||||||
|
timezone
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}`;
|
}`;
|
||||||
@@ -2959,6 +2961,7 @@ query GET_BODYSHOP_BY_MERCHANTID($merchantID: String!) {
|
|||||||
bodyshops(where: {intellipay_merchant_id: {_eq: $merchantID}}) {
|
bodyshops(where: {intellipay_merchant_id: {_eq: $merchantID}}) {
|
||||||
id
|
id
|
||||||
email
|
email
|
||||||
|
timezone
|
||||||
}
|
}
|
||||||
}`;
|
}`;
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ 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()),
|
date: moment(Date.now()).tz(bodyshop.bodyshops_by_pk.timezone || "UTC"),
|
||||||
payment_responses: {
|
payment_responses: {
|
||||||
data: {
|
data: {
|
||||||
amount: values.total,
|
amount: values.total,
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ 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())
|
date: moment(Date.now()).tz(bodyshop.timezone || "UTC")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user