private void LogErrorReceiptFailedInfo(CatalogItem catalogItem, PurchaseEventArgs e) { StringBuilder itemDataBuilder = new StringBuilder(); itemDataBuilder.Append("Item Id = "); itemDataBuilder.Append(catalogItem?.ItemId); itemDataBuilder.AppendLine(); itemDataBuilder.Append("Item RM = "); itemDataBuilder.Append(catalogItem?.GetVirtualCurrenyPrice("RM")); itemDataBuilder.AppendLine(); itemDataBuilder.Append("Currency Code = "); itemDataBuilder.Append(e.purchasedProduct.metadata.isoCurrencyCode); itemDataBuilder.AppendLine(); itemDataBuilder.Append("Localized Price = "); itemDataBuilder.Append(e.purchasedProduct.metadata.localizedPrice); itemDataBuilder.AppendLine(); itemDataBuilder.Append("Purchase Price = "); itemDataBuilder.Append(this.GetPurchasePrice(e)); Debug.LogError(itemDataBuilder.ToString()); }