无法调起微信支付,且没有报错
gswy opened this issue · comments
我的代码如下,我的这一段代码封装在provider中
/// 调起微信进行支付
Stream<BaseResp> baseResp = Wechat.instance.respStream();
await Wechat.instance.pay(
appId: res['appid'],
partnerId: res['partnerId'],
prepayId: res['prepayId'],
package: res['packageValue'],
nonceStr: res['noncestr'],
timeStamp: res['timestamp'],
sign: res['sign'],
);
baseResp.listen((event) {
print('信息 ${event.errorCode}');
}, onError: (e) {
print('错误: $e');
});