observePurchaseResult

fun observePurchaseResult(billingResult: BillingResult, purchases: List<Purchase>)(source)

Convenience method to observe successful purchases.

Call this method when a purchase completes successfully to track the completion in Superwall's analytics. This will trigger tracking of the Transaction Success event.

Parameters

billingResult

The BillingResult from Google Play Billing containing the purchase response

purchases

List of completed Purchase objects from the transaction