connectionPP method
单独使用支付等
Implementation
Future connectionPP(String? payId, String? price, {back}) {
if (!showLoading) {
showLoading = true;
delegate.showLoadingDialog();
return RechargeDao.rechargeOrder(payId).then((res) {
popDialog();
if (res.result) {
orderId = res.data.id;
payPrice = price;
delegate.logEvent('发起paypal支付');
back?.call(true);
delegate.navigatorPushWebView(res.data.url).then((value) {
back?.call(false);
});
} else {
delegate.showErrorToast(res);
}
});
} else {
return Future(() {});
}
}