How to check if an app has already been purchased - CodenameOne
My application can buy an in-app product which I have configured on the google developer account. The product is a buy-once product. I would like to know how to check if this item has already been bought (in codenameone) and handle it based on result of query. Here is a code extract: if(p.isManagedPaymentSupported()) { if(p.wasPurchased(id)){ boolUpdate = true; Form f = (Form)createContainer(resPath,"Search"); beforeSearch(f); f.show(); }else{ Display.getInstance().callSerially(new Runnable() { public void run() { Boolean confirmAction = Dialog.show("Buy Product?","","Yes","No"); if