Types
For developers to implement. Enables developer to provide another verification step before finalizing an order. Also, Purchases can be made outside of app, or finish while app is in background, and may not have completed in a regular ui-flow and requires attention again. show in-app popup, or deliver msg to an inbox, or use an OS notification.
For developers to implement. Enables the ability to verify purchases with your own logic, ensure entitlement was not already granted for this purchaseToken, and grant entitlement to the user.
Respond to the events triggered by the developer's validator. Developers will need to implement this interface if custom validation checks need to be provided before finalizing an order. If the purchase is properly verified, call onSuccess, otherwise call onFailure so the library can appropriately continue the lifecycle of a customer's order.
Functions
Internal use only
Give content to the user. Acknowledge delivery of content. Optionally, mark the item as consumed so that the user can buy the item again. Internal use only
Purchases can be voided for a variety of reasons, such as:
Internal use only
Returns purchases details for currently owned items bought within your app. Only active subscriptions and non-consumed one-time purchases are returned. This method uses a cache of Google Play Store app without initiating a network request. Note: It's recommended for security purposes to go through purchases verification on your backend (if you have one) by calling one of the following APIs: https://developers.google.com/android-publisher/api-ref/purchases/products/get] [https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get
Returns the most recent purchase made by the user for each SKU, even if that purchase is expired, canceled, or consumed.
Internal use only
Start a basic purchase flow
Verify the order(purchase). Check for fraud/abuse.
Properties
Provides a liveData Orderz object for developers to observe and react to on the UI/Main thread. Objects can be passed from the normal purchase flow or when the app is verifying a list of queried purchases.