fromPurchase

open fun fromPurchase(@NonNull purchase: Purchase): PurchaseResult

Creates a PurchaseResult from a Google Play Purchase object.

Return

A new PurchaseResult with all available details.

Parameters

purchase

The Purchase object from Google Play Billing.