Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

企业付款功能,返回接口字段未映射,怀疑微信api设计问题 #1975

Closed
ztgoto opened this issue Jan 19, 2021 · 1 comment
Closed

Comments

@ztgoto
Copy link

ztgoto commented Jan 19, 2021

简要描述

企业付款失败和成功返回字段不一致,有字段在文档中也没有描述

模块版本情况

  • WxJava 模块名: weixin-java-pay
  • WxJava 版本号: 4.0.0

详细描述

企业付款接口
https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_2
成功返回

<return_code><![CDATA[SUCCESS]]></return_code>
<return_msg><![CDATA[]]></return_msg>
......

失败返回

<return_code><![CDATA[FAIL]]></return_code>
<retmsg><![CDATA[请确认请求参数是否正确param mch_id invalid]]></retmsg>
<retcode><![CDATA[1]]></retcode>

retmsg retcode 并未映射,官方文档也没有描述,导致现有的EntPayResult WxPayException 取不到错误描述

@binarywang
Copy link
Member

欢迎直接提交PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants