Merged in feature/IO-3395-Postback-Payment-Date (pull request #2614)
IO-3395 Postback Payment Date Approved-by: Dave Richer
This commit is contained in:
@@ -2901,6 +2901,7 @@ exports.GET_BODYSHOP_BY_ID = `
|
||||
intellipay_config
|
||||
state
|
||||
notification_followers
|
||||
timezone
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -2992,6 +2993,7 @@ query GET_JOBID_BY_MERCHANTID_RONUMBER($merchantID: String!, $roNumber: String!)
|
||||
id
|
||||
intellipay_config
|
||||
email
|
||||
timezone
|
||||
}
|
||||
}
|
||||
}`;
|
||||
@@ -3001,6 +3003,7 @@ query GET_BODYSHOP_BY_MERCHANTID($merchantID: String!) {
|
||||
bodyshops(where: {intellipay_merchant_id: {_eq: $merchantID}}) {
|
||||
id
|
||||
email
|
||||
timezone
|
||||
}
|
||||
}`;
|
||||
|
||||
|
||||
@@ -48,7 +48,9 @@ const handleCommentBasedPayment = async (values, decodedComment, logger, logMeta
|
||||
payer: "Customer",
|
||||
type: getPaymentType(ipMapping, values.cardtype),
|
||||
jobid: p.jobid,
|
||||
date: moment(Date.now()),
|
||||
date: moment()
|
||||
.tz(bodyshop?.bodyshops_by_pk?.timezone ?? "UTC")
|
||||
.format("YYYY-MM-DD"),
|
||||
payment_responses: {
|
||||
data: {
|
||||
amount: values.total,
|
||||
|
||||
@@ -97,7 +97,9 @@ const handleInvoiceBasedPayment = async (values, logger, logMeta, res) => {
|
||||
payer: "Customer",
|
||||
type: getPaymentType(ipMapping, values.cardtype),
|
||||
jobid: job.id,
|
||||
date: moment(Date.now())
|
||||
date: moment()
|
||||
.tz(bodyshop?.timezone ?? "UTC")
|
||||
.format("YYYY-MM-DD")
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user