logPayment static method

Future<EventRecordStatus> logPayment(
  1. String productName,
  2. String productId,
  3. int quantity,
  4. double price,
  5. String currency,
  6. String transactionId,
  7. Map<String, String> parameters,
)

Logs a payment.

Logs a transaction event with maximum of 10 parameters to specify the characteristics of the payment. Returns the event recording status of the logged event.

Implementation

static Future<EventRecordStatus> logPayment(
    String productName,
    String productId,
    int quantity,
    double price,
    String currency,
    String transactionId,
    Map<String, String> parameters) async {
  if (flurryAgent != null) {
    int eventRecordStatus = await flurryAgent!.logPayment(productName,
        productId, quantity, price, currency, transactionId, parameters);
    return EventRecordStatus.values[eventRecordStatus];
  }

  return EventRecordStatus.eventRecorded;
}