// NOTE: // only for Android // @param productName The name of the product purchased. // @param productId The id of the product purchased. // @param quantity The number of products purchased. // @param price The price of the the products purchased in the given currency. // @param currency The currency for the price argument. // @param transactionId A unique identifier for the transaction used to make the purchase. // @param parameters A {@code Map<String, String>} of the parameters which should be submitted with this event. // @example: logPayment("candy", "yummy_candy", 1, 2.99, "USD", "123456789", params) public static void LogPayment(string productName, string productId, int quantity, double price, string currency, string transactionId = null, Dictionary <string, string> parameters = null) { #if UNITY_EDITOR #elif UNITY_ANDROID if (string.IsNullOrEmpty(transactionId)) { transactionId = System.DateTime.Now.ToString("yyyyMMddTHHmmss"); } if (parameters == null) { parameters = new Dictionary <string, string>(); } FlurryAndroid.LogPayment(productName, productId, quantity, price, currency, transactionId, parameters); #elif UNITY_IOS #endif }