requestPurchaseWithQuantityIOS method

Future requestPurchaseWithQuantityIOS(
  1. String sku,
  2. int quantity
)

Buy product with quantity

@returns {Future} will receive result from purchaseUpdated listener.

Implementation

Future requestPurchaseWithQuantityIOS(
  String sku,
  int quantity,
) async {
  if (_platform.isIOS) {
    return await _channel
        .invokeMethod('requestProductWithQuantityIOS', <String, dynamic>{
      'sku': sku,
      'quantity': quantity.toString(),
    });
  }
  throw PlatformException(
      code: _platform.operatingSystem, message: "platform not supported");
}