logPurchaseWithProperties method

  1. @Deprecated('Use logPurchase(productId, currencyCode, price, quantity, properties: properties) instead.')
void logPurchaseWithProperties(
  1. String productId,
  2. String currencyCode,
  3. double price,
  4. int quantity,
  5. Map<String, dynamic> properties,
)

Logs a purchase event to Braze.

Implementation

@Deprecated(
    'Use logPurchase(productId, currencyCode, price, quantity, properties: properties) instead.')
void logPurchaseWithProperties(String productId, String currencyCode,
    double price, int quantity, Map<String, dynamic> properties) {
  final Map<String, dynamic> params = <String, dynamic>{
    "productId": productId,
    "currencyCode": currencyCode,
    "price": price,
    "quantity": quantity,
    "properties": properties
  };
  _channel.invokeMethod('logPurchase', params);
}