omnipay-unionpay icon indicating copy to clipboard operation
omnipay-unionpay copied to clipboard

测试了无跳转支付,查询订单没有问题,但是发起消费请求提示签名错误

Open fasthold opened this issue 6 years ago • 3 comments

查询是可以,说明证书配置、签名都无误(用的5.1的证书)

但是发起消费请求银联端就提示 交易失败 11[9100004]Signature verification failed

fasthold avatar Dec 07 '17 07:12 fasthold

@fasthold 请看一下以下自检内容,是不是金额小于1毛导致的?

https://open.unionpay.com/ajweb/help/faq/list?id=39&level=0&from=0&keyword=9100004

https://open.unionpay.com/ajweb/help/faq/list?id=40&level=0&from=0&keyword=9100004

lokielse avatar Dec 07 '17 07:12 lokielse

是用的银联测试环境,金额都是200-10000分之间

fasthold avatar Dec 07 '17 08:12 fasthold

trId设置了吗?你在下面这一行后面把$data打印一下,看看参数对不对(和银联提供的demo所构建的参数对比一下)

https://github.com/lokielse/omnipay-unionpay/blob/d96570bc47c471c9d8b7cb7b00428de795c0d964/src/Message/WtzConsumeRequest.php#L45

lokielse avatar Dec 07 '17 08:12 lokielse