import 'apple_pay_platform_interface.dart'; class ApplePay { Future getPlatformVersion() { return ApplePayPlatform.instance.getPlatformVersion(); } Future> purchase({ required String productId, String? appAccountToken, }) { return ApplePayPlatform.instance.purchase( productId: productId, appAccountToken: appAccountToken, ); } Future> restore() { return ApplePayPlatform.instance.restore(); } Future check(String appleId) { return ApplePayPlatform.instance.check(appleId); } }