const res = await cloud.cloudPay.unifiedOrder({
"body" : "***",
"outTradeNo" : _id,
"spbillCreateIp":"127.5.100.1",
"subMchId":"*****",
"totalFee":10,
"envId":"cc-dingzhi",
"functionName":"pcallback",
"nonceStr":_nonceStr,
"tradeType":"JSAPI"
})
支付成功,但设置的回调函数就是没有反应
你好,检查下环境,应该是 cc-dingzhi-8gxvz0f70375accc ?
你好,提供下环境ID和requestID
环境ID:cc-dingzhi
返回结果
{"appid":"wxd2d16a504f24665e","sign":"ECF2BFD50306597C69B88FB33502ECE3","payment":{"appId":"wx1c903ce159e16e7b","timeStamp":"1614735287","nonceStr":"goJo1XyhvJA7R1tV","package":"prepay_id=wx0309344739726764273eb73ac311f50000","signType":"MD5","paySign":"5B09DB7255C453630B331170F9EBC942"},"returnCode":"SUCCESS","returnMsg":"OK","mchId":"1800008281","subAppid":"wx1c903ce159e16e7b","subMchId":"1218987301","nonceStr":"goJo1XyhvJA7R1tV","resultCode":"SUCCESS","tradeType":"JSAPI","prepayId":"wx0309344739726764273eb73ac311f50000","errCode":0,"errMsg":"cloudPay.unifiedOrder:ok","orderInfo":{"delivery_info":{"cityName":"太原市","countyName":"小店区","detailInfo":"平阳路亲贤街口飞云国际6层基点商贸","provinceName":"山西省","telNumber":"13333437743","userName":"杨佳霖"},"fee":{"JIF_Amount":0,"YHQ_Amount":0,"delivery_Fee":0,"product_Amount":7086718,"total_Amount":7086718},"invoice":{},"kt_info":{"fingerSize":"10号","fontFamily":"","gsmh":"DRGC00208","kezi":"","material":"18K金","pic":"cloud://cc-dingzhi-8gxvz0f70375accc.6363-cc-dingzhi-8gxvz0f70375accc-1304899810/1612335105888.png","title":"闪亮◆钻石戒指"},"status":0,"userInfo":{"appId":"wx1c903ce159e16e7b","openId":"oJ4gs5CeJbPAFfT5RzTYYaRemzoI"},"zs_info":{"DELIVERY_TIME":"30天","GSMH":"DRGC00208","JD":"IF","JINYS":"白","QIEG":"3EX","QIEGE":"经典","RN":1,"SHL":2,"SHOUJ":7086718,"YOUX":"","YS":"D","ZHENGS":"GIA","ZHUSLX":"白钻","ZHUSQG":"3EX","ZHUSXZ":"圆形","ZHUSZ":5.18},"createTime":{"date":"2021-03-03T01:34:47.066Z","timeStamp":"1614735287066","dateLocalStr":"2021-03-03 09:34:47"},"orderId":"20210303013447","_id":"79550af2603ee7b708006e894702b0f6"}}