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

企业支付接口 签名不应该加入sign_type #570

Closed
manorsuperman opened this issue May 2, 2018 · 2 comments
Closed

企业支付接口 签名不应该加入sign_type #570

manorsuperman opened this issue May 2, 2018 · 2 comments

Comments

@manorsuperman
Copy link

WxEntPayResult entPay(WxEntPayRequest request) throws WxPayException;
接口存在bug,不应该把sign_type也打包到request去签名。
https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_2 官方文档中
企业付款接口https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers
的请求各个字段没有sign_type字段。经过个人测试,
<err_code></err_code>
<err_code_des></err_code_des>。然后把sign_type去掉后,签名,然后转换xml发送就可以成功。
现在有一个疑问就是没有sign_type,那么官方是怎么分辨这个签名是用的哪一种方式?

@binarywang
Copy link
Owner

看你提供的类名,感觉是老版本的,你是否使用新版本进行过测试?

@manorsuperman
Copy link
Author

对,我用的2.9.0,看到wiki支付那里面用的这个,3.0.0没有问题。谢谢

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

No branches or pull requests

2 participants