- 受理关系不存在
goPay(){ // 小程序代码 wx.cloud.callFunction({ name: 'demoPay', // data: { // // ... // }, success: res => { console.log('获取支付参数成功',res) const payment = res.result.payment wx.requestPayment({ ...payment, success (res) { console.log('pay success', res) }, fail (res) { console.error('pay fail', err) } }) }, fail: console.error, }) }, // 云函数代码 const cloud = require('wx-server-sdk') cloud.init({ env: cloud.DYNAMIC_CURRENT_ENV }) exports.main = async (event, context) => { const res = await cloud.cloudPay.unifiedOrder({ "body" : "尚狐网站测试支付001", "outTradeNo" : "11111111122222222233333333344444", "spbillCreateIp" : "127.0.0.1", "subMchId" : "1287651501", "totalFee" : 2, "envId": "wxxcxsf", "functionName":'echo' }) return res } {errMsg: "cloud.callFunction:ok", result: {…}, requestID: "66c2674d-bc2f-11ea-941e-525400f4c87f"} errMsg: "cloud.callFunction:ok" requestID: "66c2674d-bc2f-11ea-941e-525400f4c87f" result: errCode: 0 errMsg: "cloudPay.unifiedOrder:ok" payment: {timeStamp: "1593672236", nonceStr: "", package: "prepay_id=", signType: "MD5", paySign: "5040A7C5DF5C92A77662845550FAE3A4"} returnCode: "FAIL" returnMsg: "受理关系不存在" __proto__: Object __proto__: Object
2020-07-02 - 受理关系不存在 怎么办?
受理关系不存在 怎么办?
2020-07-02 - 受理关系不存在,同一个主体下的支付商家叫绑定微信,为什么是这个情况?
[图片]
2020-07-02