onNewPurchase
Called when a new purchase is completed and acknowledged. Use this to track purchase count and purchase time.
Parameters
productId
The product ID that was purchased.
purchase
The purchase result containing order details, quantity, and timestamp.