logPayment static method
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;
}