requestProductWithOfferIOS method

Future requestProductWithOfferIOS(
  1. String sku,
  2. String forUser,
  3. Map<String, dynamic> withOffer
)

Buy product with offer

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

Implementation

Future requestProductWithOfferIOS(
  String sku,
  String forUser,
  Map<String, dynamic> withOffer,
) async {
  if (_platform.isIOS) {
    return await _channel
        .invokeMethod('requestProductWithOfferIOS', <String, dynamic>{
      'sku': sku,
      'forUser': forUser,
      'withOffer': withOffer,
    });
  }
  throw PlatformException(
      code: _platform.operatingSystem, message: "platform not supported");
}