美文网首页
百度小程序调支付报202错误

百度小程序调支付报202错误

作者: 高阳刘 | 来源:发表于2018-11-26 11:09 被阅读0次
swan.requestPolymerPayment({
              orderInfo: {
                      "dealId": "470193086",
                      "appKey": "MMMabc",
                      "totalAmount": "1",
                      "tpOrderId": "3028903626",
                      "dealTitle": "智能小程序Demo支付测试",
                      "rsaSign": '',
                      "bizInfo": ''  //不能传空字符串或者null,如果后台没有返,改为“{}”
                  },
                  success: function (res) {
                      swan.showToast({
                          title: '支付成功',
                          icon: 'success'
                      });
                      that.setData({
                        hidden: 'block',
                        reward_success: false,
                        passWord: true,
                        Initialization: true
                      })
                  },
                  fail: function (err) {
                      swan.showToast({
                          title: JSON.stringify(err)
                      });
                      console.log('pay fail', err);
                  }
                }); 

相关文章

网友评论

      本文标题:百度小程序调支付报202错误

      本文链接:https://www.haomeiwen.com/subject/aefjfqtx.html