Android
The following method is used to check a user's existing purchased products.
Obtain the current valid orders
Description:
The following method is used to check a user's existing valid orders, including valid subscription and unconsumed INAPP products.
- Java
- Kotlin
UserOrderManager.getProvider().getOrders()
UserOrderManager.getProvider().orders
Obtain current subscription
Description:
This method is used to obtain a user's existing valid subscription. If there is no valid subscription, an empty result will be returned.
- Java
- Kotlin
SubsPurchase recentSubsPurchase = UserOrderManager.getProvider().getRecentSubsPurchase();
val recentSubsPurchase = UserOrderManager.getProvider().recentSubsPurchase