Compare commits

...

5 Commits

Author SHA1 Message Date
Patrick Fic
3775789e9d Merged in feature/IO-3322-intellipay-refund (pull request #2457)
IO-3332 Add error message to intellipay refund error.

Approved-by: Dave Richer
2025-08-11 17:46:24 +00:00
Patrick Fic
75de177b7b IO-3332 Add error message to intellipay refund error. 2025-08-08 09:11:48 -07:00
Dave Richer
55d242d40d Merged in hotfix/2025-08-07 (pull request #2454)
IO-3322 IntelliPay Refund
2025-08-07 17:58:49 +00:00
Allan Carr
4f99ae40d3 Merged in feature/IO-3322-IntelliPay-Refund (pull request #2453)
IO-3322 IntelliPay Refund

Approved-by: Dave Richer
2025-08-07 17:28:21 +00:00
Allan Carr
790ab0447f IO-3322 IntelliPay Refund
Add logging to capture Response from IntelliPay API on success

Signed-off-by: Allan Carr <allan@imexsystems.ca>
2025-08-06 16:30:56 -07:00
4 changed files with 29 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
<babeledit_project be_version="2.7.1" version="1.2">
<babeledit_project version="1.2" be_version="2.7.1">
<!--
BabelEdit project file
@@ -8472,6 +8472,27 @@
</translation>
</translations>
</concept_node>
<concept_node>
<name>responsibilitycenter</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>templates</name>
<definition_loaded>false</definition_loaded>
@@ -65702,7 +65723,7 @@
<primary_language>en-US</primary_language>
<configuration>
<definitions>.</definitions>
<indent>tab</indent>
<indent>space2</indent>
<format>namespaced-json</format>
<support_arrays>true</support_arrays>
</configuration>

View File

@@ -16,10 +16,10 @@ import { useNotification } from "../../contexts/Notifications/notificationContex
const { confirm } = Modal;
const openNotificationWithIcon = (type, t, notification) => {
const openNotificationWithIcon = (type, t, notification, message) => {
notification[type]({
message: t("job_payments.notifications.error.title"),
description: t("job_payments.notifications.error.description")
description: t("job_payments.notifications.error.description", { message: message || "Unknown error." })
});
};
@@ -99,7 +99,7 @@ const PaymentExpandedRowComponent = ({ record, bodyshop }) => {
});
if (refundResponse.data.status < 0) {
openNotificationWithIcon("error", t, notification);
openNotificationWithIcon("error", t, notification, refundResponse.data.message);
return;
}

View File

@@ -1455,9 +1455,9 @@
},
"notifications": {
"error": {
"description": "Please try again. Make sure the refund amount does not exceeds the payment amount.",
"description": "An error has occurred processing the refund: {{message}}",
"openingip": "Error connecting to IntelliPay service.",
"title": "Error placing refund"
"title": "Error issuing refund"
}
},
"titles": {

View File

@@ -144,6 +144,7 @@ const paymentRefund = async (req, res) => {
logger.log("intellipay-refund-success", "DEBUG", req.user?.email, null, {
requestOptions: options,
response: response?.data,
...logResponseMeta
});