支付验证签名失败
开发公众号支付功能时,在微信内H5调起支付,有如下错误
看原因“支付验证签名失败“我估计是签名算法有问题,但一直检查未果,贴出如下代码,望各位坛友帮忙看看是不是我的签名算法有问题
String appId = "wx8888888888888888" ; String timeStamp = "1414561699" ; String nonceStr = "5K8264ILTKCH16CQ2502SI8ZNMTM67VS" ; String _package = "prepay_id=123456789" ; String signType = "MD5" ; String key = "192006250b4c09247ec02edce69f6a2d" ; StringBuilder sb = new StringBuilder(); sb.append( "appId=" +appId); sb.append( "&nonceStr=" +nonceStr); sb.append( "&package=" +_package); sb.append( "&signType=" +signType); sb.append( "&timeStamp=" +timeStamp); sb.append( "&key=" +key); |
我算出来的"paySign"值为:8A3A413762B52090DB0DA024FF5CC378