With Google Play Billing Library v3.0+ we have a new purchase flow and everything is perfectly explained here:
[Google Play Billing](https://developer.android.com/google/play/billing/integrate)

On older versions of the library we would restore something like this:

```
bp = new BillingProcessor(this, MERCHANT_ID, new BillingProcessor.IBillingHandler() {
        @Override
        public void onProductPurchased(@NonNull String productId, @Nullable TransactionDetails details) {
            String orderId = details.purchaseInfo.purchaseData.productId;
  // we then compare the orderID with the SKU and see if the user purchased the item,
  // however in the new version of the library there is nothing about restore

```

However, there is nothing in the documentation about restoring purchases ?

Eg, we have a use case you have a valid subscription and one IAP product that you purchased. You delete the app and reinstall it. How do you restore the subscription and that IAP product ?