In my application I use in app purchases. Within the start of the application I check if the user has purchased for the premium version with following code:
public void onBillingSetupFinished(int billingResponseCode) {
Purchase.PurchasesResult result = billingClient.queryPurchases(INAPP);
List<Purchase> purchasesList = result.getPurchasesList();
isPremiumUnlocked = !purchasesList.isEmpty();
}
This works great but I as developer have the problem that I havn't purchased for the premium version and I can't do it because if I try to I get following message:
The publisher cannot purchase this item
So how can I avoid this problem? Is there some setting in the Play Console I have missed?