buy static method

Future<IaphubTransaction> buy(
  1. String sku, {
  2. bool crossPlatformConflict = true,
  3. String? prorationMode,
})

Buy product

Implementation

static Future<IaphubTransaction> buy(String sku,
    {bool crossPlatformConflict = true, String? prorationMode}) async {
  final data =
      await _invokeMethodAndParseResult<Map<String, dynamic>>('buy', {
    "sku": sku,
    "crossPlatformConflict": crossPlatformConflict,
    "prorationMode": prorationMode
  });

  return IaphubTransaction.fromJson(data);
}