uni配置
"payment" : {
"alipay" : {
"platform" : [ "ios", "android" ]
},
"weixin" : {
"platform" : [ "ios", "android" ],
"appid" : "wx0f1481016a49c4c4",
"UniversalLinks" : "https://api.tiejingang.top/ioslink/"
}
},
uni.requestPayment({
provider:"wxpay",
orderInfo:{
"appId": "wx0f1481016a49c4c4",
"partnerid": "1604119225",
"prepayid": "wx111239536519107c4e0d5af3da87d10000",
"package": "Sign=WXPay",
"nonceStr": "d44e0040822311ebbb3b8f342c0a1176",
"timeStamp": "1615437596",
"sign": "EA36F7B0C22C937BD09AF19CDA84DF1A"
}
complete(r){
console.log(r);
}
})
一直返回错误
{
"errMsg": "requestPayment:fail [payment微信:-1]General errors",
"errCode": -100,
"code": -100
}
实在不知道哪出的问题.微信开放平台的截图也有.手机上获取签名的截图也在.都能对上号.
只有翅膀 (作者)
使用dcloud官方测试的也一样.https://demo.dcloud.net.cn/payment/wxpayv3.HBuilder/?total=1
2021-03-11 16:32
3***@qq.com
回复 只有翅膀: 首先确定appid,包名,应用签名正确。然后就是基座的原因,
2021-06-29 14:18