调用B2B支付方法 wx.requestCommonPayment 没有任何反应?
B2B支付调用requestCommonPayment方法,传入官方示例参数,调用后没有任何反应,success/fail 没有输出任何信息呢?
当前微信已经完成了b2b认证。
wx.requestCommonPayment({
signData: JSON.stringify({
mchid: '1234567890',
out_trade_no: 'test1244',
description: '测试测试',
amount: {
order_amount: 1,
currency: 'CNY'
},
attach: 'test_attach',
product_info: {
product_list: [{
spu_id: 'spu123456',
sku_id: 'sku123',
title: 'QQ长鹅',
path: 'pages/index',
head_img: 'https://mp.weixin.qq.com/123',
category: '玩偶',
sku_attr: '50cm',
org_price: 5000,
sale_price: 4000,
quantity: 5
}]
},
delivery_type: 2,
env: 0
}),
paySig: 'd0b8bbccbe109b11549bcfd6602b08711f46600965253a949cd6a2b895152f9d',
signature: 'd0b8bbccbe109b11549bcfd6602b08711f46600965253a949cd6a2b895152f9d',
mode: 'retail_pay_goods',
success(res) {
console.log('requestCommonPayment success', res)
},
fail({ errMsg, errno }) {
console.error(errMsg, errno)
},
})