Google Billing Wrapper
Constructors
Builds a wrapper with its own product cache and billing connection. The SDK builds its wrapper through the internal constructor, from DependencyContainer.
Properties
Functions
Gets the StoreProduct(s) for the given list of product ids for all types.
Get the latest transaction from the purchaseResults flow.
Fetches the Play Store's com.android.billingclient.api.BillingConfig to learn the country of the user's Play Store account. Waits for the billing client to connect if it hasn't yet; resolves to null if billing is unavailable or the fetch fails.
Every purchase Play returns, or a failure when Play couldn't be asked (billing not ready, a query timed out or its retries ran out). Unlike queryAllPurchases, a failed read is never mistaken for "no purchases".
Fails when Play can't be asked, so a failure is never mistaken for "no subscriptions".