商户是普通直连商户
微信云开发微信支付调用统一下单API CloudPay.unifiedOrder() 报“受理关系不存在”要怎么配置?
请求:
请求:
res = await cloud.cloudPay.unifiedOrder({
"body": "活动费用",
"outTradeNo": tradeNo,
"spbillCreateIp": "127.0.0.1",
"subMchId": "1589937461",
"totalFee": event.activity_amt,
"envId": cloud.DYNAMIC_CURRENT_ENV,
"functionName": "wechatNotice"
})
响应:
{"payment":{"timeStamp":"1591006435","nonceStr":"","package":"prepay_id=","signType":"MD5","paySign":"4354568EC879797517096FC53C28AA32"},"returnCode":"FAIL","returnMsg":"受理关系不存在","errCode":0,"errMsg":"cloudPay.unifiedOrder:ok"}