- 小程序调用云支付返回参数成功但不出现扫码支付画面?
我的小程序商城尝试调用云函数cloudpay.unifiedOrder()进行微信支付,我输入参数如下,返回的结果并没有错误信息,但开发工具里并没有跳出扫码支付界面,真机也没有发生任何实际支付。请问这是为什么?返回代码在下面 "body" : "XXX", "outTradeNo" : "20150806125346", "spbillCreateIp" : "127.0.0.1", "subMchId" : "XXXXXX", "totalFee" : 100, "envId": "XXX-XXX", "functionName": "payback", "nonceStr" : "5K8264ILTKCH16CQ2502SI8ZNMTM67VS", "tradeType" : "JSAPI" -------------------------------------------- errMsg: "cloud.callFunction:ok" requestID: "a60bd67a-b8b5-11xxxxxxxxxxxxxxx" result: appid: "wxd2d16axxxxxxxxx" errCode: 0 errMsg: "cloudPay.unifiedOrder:ok" mchId: "1800xxxxxx" nonceStr: "aK7Wo90oOLPnw6UI" payment: appId: "wx1afxxxxxxxx" nonceStr: "aK7Wo90oOLPnw6UI" package: "prepay_id=wx28043451441857dc87bxxxxxxxxxxxx" paySign: "FF558C87A702083D70E4009A282991CA" signType: "MD5" timeStamp: "1593290091" __proto__: Object prepayId: "wx28043451441857dc87bxxxxxxxxxxxxx" resultCode: "SUCCESS" returnCode: "SUCCESS" returnMsg: "OK" sign: "270C3BBE6B5A19A135E744EA1D722423" subAppid: "wx1af3fxxxxxxxx" subMchId: "1xxxxxxxx" tradeType: "JSAPI"
2020-06-28 - 特约商户小程序商城想调用云开发申请退款cloudpay.refund()但没有子商户号?
我已经在云开发控制台里绑定并授权了退款api权限,但想调用cloudpay.refund()时返回参数还是报错“受理机构必须传入sub_mch_id”,这里我填的就是商户mch_id, 我没有子商户。作为普通商户到底应该如何调用这个云函数?是不是支付也必须通过云函数调用才可以申请云函数退款?我支付是通过小程序自身实现的。还有就是,是不是申请退款的nonce_str必须跟支付时的一样?一下子问了好几个问题,谢谢各位大佬不吝赐教 [图片] result: errCode: 0 errMsg: "cloudPay.refund:ok" returnCode: "FAIL" returnMsg: "受理机构必须传入sub_mch_id"
2020-06-27 - 小程序商城调用云开发退款功能必须要有子商户号吗?
我是普通商户,想调用云开发的退款功能CloudPay.refund()。但参数说明必须用“微信支付分配的子商户号”。我尝试填商户mch_id,结果报错。请问是必须微信服务商用户才能是用这个云开发退款功能吗?普通商户该怎么调用呢?谢谢 errCode: 0 errMsg: "cloudPay.refund:ok" returnCode: "FAIL" returnMsg: "受理机构必须传入sub_mch_id"
2020-06-25