uni-app中支付宝支付遇到的报错问题{"errMsg":"requestPayment:fail:[payment支付宝:62009]未知错误"}
解决方案:正在解决中
uni.requestPayment({ provider:payment1,//支付方式alipay orderInfo: orderInfo.alipay ,//该数据是后台返回的url字符串用于在支付宝接口https://openapi.alipay.com/gateway.do请求参数 success: (res) => { console.log('success:',res); uni.navigateTo({ url: './pay-success?order_id=' + this.order_id + '&addressId=' + this.addressId }); }, fail: (err) => { console.log('fail:',err); uni.navigateTo({ url: './order-mange?page=1' }); } });
注:orderInfor参数形式:
"meta": {
"alipay": "app_id=20190823442166381196&format=JSON&charset=utf-8&sign_type=RSA2&version=1.0&return_url=https%3A%2F%2Fwww.17hejiu.com%2Fnotify%2Fsync_alipay¬ify_url=https%3A%2F%2Fwww.157he55554jiu.com%2Fnotify%2Falipay×tamp=2019-08-22+15%3A44%3A12&biz_content=%7B%22out_trade_no%22%3A%22A2459365896483020800001%22%2C%22total_amount%22%3A1%2C%22subject%22%3A%22%5Cu81fb%5Cu54c1%5Cu5c0a%5Cu4eab+-+%5Cu8ba2%5Cu5355%5Cu53f7%5Cuff1a+A2459365gd89648302080%22%2C%22passback_params%22%3A%22order%22%2C%22product_code%22%3A%222QUICK_MSECURITY_PAY%22%7D&method=alipay.trade.app.pay&sign=ECNyGYg1rsKzIZb6d7zEeyL1VqYYSwsnWYPJtV6UW43WdL0Hsb48HrEcKg0KaDLF5z2tMguS0NATxZ54FJ4Fp6hDzL318vB%2FWA3UJr9GW8OaWO3LDyMdCN4K4F0TActnocE5nswCCv31sdBP8HrGcNWmcTt%2F9vXcXV0KhUpduQL1QrWn43nhwpdz6gOcoNBFe5yGKU7z%2FKw9%2BJNNcAeRVnuMMpyXzeTvR3Sl766QXLKAARXSTKM7dquhkCEKavetM7DPchbJlDtKHhkmel4CiNgmKdDTBX%2FscPhT9MhW1K9FwlTuXXRA6Nrba%2B43SfpjzfP3LFnmWQbOkrptcMKhuvqRig%3D%3D"
}