logPurchaseWithJSON

fun logPurchaseWithJSON(productId: String?, price: String, currencyCode: String?, quantity: String, propertiesJSON: String?)

Logs a purchase event with the specified product, price, currency, quantity, and optional JSON-encoded properties.

Parameters

productId

The product identifier.

price

The price as a string representation of a decimal number.

currencyCode

The ISO 4217 currency code.

quantity

The quantity purchased as a string representation of an integer.

propertiesJSON

Optional JSON string of purchase properties.