Track Purchase Event
Track Purchase Event
This function logs a purchase event with the specified order ID, purchase amount, currency, and optional additional parameters. It is used to track purchase transactions within an application.
Method Signature:
Parameters:
orderId
(String?): The unique identifier for the order. This parameter is optional and can be null.purchaseAmount
(Double): The total amount of the purchase.currency
(String?): The currency of the purchase amount. This parameter is optional and can be null.parameters
(Bundle?, optional): ABundle
containing key-value pairs of additional data to be logged with the purchase event. This parameter is optional and can be null.
Example Usage:
Last updated