import 'package:tobias/tobias.dart' as tobias; ///支付宝支付 class AliPayUtil{ ///orderCode 为后端返回支付Code字符串 ///返回true表示支付成功,false表示支付失败 static Future toPay(String orderCode)async{ Map result= await tobias.aliPay(orderCode); if(result!=null&&result['resultStatus']!=null&&result['resultStatus'].toString()=="9000"){ print("支付宝支付结果"); print(result); return true; }else{ return false; } } ///检查是否安装了支付宝 static Future isInstallAliPay() async { return await tobias.isAliPayInstalled(); } }