Код: Выделить всё
Future buyNonConsumableProduct(PurchaseParam purchaseParam) async {
try {
if (!(await _iap.isAvailable())) {
throw Exception('In-app purchases are not available.');
}
return await _iap.buyNonConsumable(purchaseParam: purchaseParam);
} catch (e) {
rethrow;
}
}
Код: Выделить всё
in_app_purchase_storekit: ^0.4.6+2
in_app_purchase: ^3.2.3
Подробнее здесь: https://stackoverflow.com/questions/798 ... testflight
Мобильная версия