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 7b0de4e2b..3ad05d758 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 @@ -5759,10 +5759,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid WechatMerchantInfo info = Optional.ofNullable(merchantChannelApplicationManager.getRegister(WxPayMerchantRegister.class)) .map(register -> register.findMerchant(client)) .orElseThrow(() -> new ServerErrorException("No Register found for wechat")); - Element xml = info.getRawResponseXml(); + Element elem = info.getRawResponseXml(); JSONObject object = new JSONObject(); - object.put("response_str", xml); - object.put("apply_status", info.getRawResponse()); + object.put("response_str", info.getRawResponse()); + object.put("apply_status", elem.elementText("result_code")); return object; }