微信支付APP返回-1怎么解决
开发文档上面-1“可能的原因:签名错误、未注册APPID、项目设置APPID不正确、注册的APPID与设置的不匹配、其他异常等。”,但是我检查过没问题,APP用DEMO测试可以支付,但是服务端发送给APP就不行
统一支付测试过也是好的
["result"] => array(9) {
["return_code"] => string(7) "SUCCESS"
["return_msg"] => string(2) "OK"
["appid"] => string(18) "******" //绑定支付的APPID
["mch_id"] => string(10) "******" //商户号
["nonce_str"] => string(16) "OCTmjzp0A8v7UnbD"
["sign"] => string(32) "9F50899D68ABE30F7E311D477D6C0383"
["result_code"] => string(7) "SUCCESS"
["prepay_id"] => string(36) "wx201507301633164e148bfddb0142377854"
["trade_type"] => string(3) "APP"
}
发送给APP的值是:
{
appid = ******; //绑定支付的APPID
noncestr = fdcb60638d9e6e54cb702f5d5b67a4d7;
package = "Sign=WXPay";
partnerid = ******; //商户号
prepayid = wx20150730151416e2a37094d20267969653;
sign = 835340F9670051D37BDE95A44E8138DF;
timestamp = 1438240456;
}
点击支付跳到微信里,然后马上返回到APP里了