|
|
@@ -18,6 +18,7 @@ import '../../data/bean/wechat_payment_sign_bean.dart';
|
|
|
import '../../data/consts/constants.dart';
|
|
|
import '../../data/consts/error_code.dart';
|
|
|
import '../../dialog/loading_dialog.dart';
|
|
|
+import '../../sdk/pay/assist/product_type.dart';
|
|
|
import '../../sdk/pay/listener/agile_pay_state.dart';
|
|
|
import '../../sdk/pay/wxpay/wechat_pay_info.dart';
|
|
|
|
|
|
@@ -98,7 +99,12 @@ class StoreController extends BaseController {
|
|
|
sign: bean.sign);
|
|
|
}
|
|
|
} else if (payPlatform == PayPlatform.ios) {
|
|
|
- // payInfo = ApplePayInfo();
|
|
|
+ payInfo = ApplePayInfo(
|
|
|
+ storeItem.appleGoodsId,
|
|
|
+ storeItem.subscribable == 1
|
|
|
+ ? ProductType.nonConsumable
|
|
|
+ : ProductType.consumable,
|
|
|
+ response.appAccountToken);
|
|
|
}
|
|
|
AgilePay.startPay(payInfo, success: (String? result) {
|
|
|
ToastUtil.showToast('支付成功');
|