onNewPurchase

abstract fun onNewPurchase(productId: String, purchase: PurchaseResult)

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.