diff --git a/pom.xml b/pom.xml
index 9246a3a01..6d12444c0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
4.0.0
manage
- 1.3.95
+ 1.3.96
UTF-8
1.8.0
diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java
index aee9245cc..8814fd540 100644
--- a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java
+++ b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java
@@ -2684,6 +2684,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
checkOrgPermission(manager, client);
JSONObject params = new JSONObject();
params.put("client_id", client.getIntValue("client_id"));
+ JSONObject mchConfig = merchantInfoProvider.getMchExtParams(client.getIntValue("client_id"));
+ if (mchConfig.getBooleanValue("hide_mch_device")) {
+ return new JSONObject();
+ }
if (remark != null) {
params.put("remark", remark);
}
@@ -2707,6 +2711,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
throw new InvalidShortIdException();
}
checkOrgPermission(null, client);
+ JSONObject mchConfig = merchantInfoProvider.getMchExtParams(client.getIntValue("client_id"));
+ if (mchConfig.getBooleanValue("hide_mch_device")) {
+ return new JSONObject();
+ }
JSONObject params = new JSONObject();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
sdf.setTimeZone(TimeZone.getTimeZone(client.getString("timezone") != null ? client.getString("timezone") : "Australia/Melbourne"));