在开发字节跳动小程序支付时,使用的是微信支付,能够拉起微信支付进行支付,成功扣款,但是点击返回之后code =9;具体代码如下:
uni.requestPayment({
provider: 'wxpay',
orderInfo: orderinfo,
service: 3,
success(se) {
console.log(se) //se.code = 9
}
})
orderInfo={
alipay_url: ""
app_id: "800594486315"
body: "配音会员充值"
currency: "CNY"
merchant_id: "1900059448"
notify_url: "https://douge.club/peiyin/anonymous/dyOrder/callBack"
out_order_no: "1626518859Ls3SjsKWCL7YSz76XILBgM"
payment_type: "direct"
product_code: "pay"
risk_info: "{"ip":"58.62.93.126", "device_id":"122333"}"
sign: "8fc15df2371c653f8161e6d3d70b9622"
sign_type: "MD5"
subject: "配音充值"
timestamp: "1626518860"
total_amount: "2900"
trade_time: "1626518860"
trade_type: "H5"
uid: "BdzHgZr2HKxUTBA9"
valid_time: "3600"
version: "2.0"
wx_type: "MWEB"
wx_url: "https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?
prepay_id=wx1718474000088940ddd86f2bfda4b10000&package=891391297"
}
3 个回复
douge (作者) - 80后IT男
请问是什么问题
DCloud_UNI_LXH
字节跳动小程序支付
亿人一家
字节跳动微信支付请大神指导一下