To associate a user’s session with their potential purchases (and corresponding revenue), you must send the transaction via a dedicated API. For each transaction, we send:
- Price (
- Currency (
- Transaction ID (
The plugin defines a
TransactionItem type to prevent potential typing errors.
CurrencySection titled Currency
The currency is conforming to the ISO 4217 standard. Although the currency can be passed as “alphanumeric code”, you should always prefer using the plugin’s CurrencyCode object values. If you have to pass the ISO code as a string, note that capitalization is not a factor (
"usd" will all be treated as the US Dollar).
If the currency passed doesn’t match our supported currencies, the SDK will send a currency value of “-1”. It will be processed as the default currency of the project.