In-App Billing test: android.test.purchased already owned

后端 未结 16 1425
情深已故
情深已故 2020-12-07 08:09

I am currently testing In-App Billing for a future app, and after I successfully \"bought\" the test item \"android.test.purchased\" the first time, I now receive the respon

16条回答
  •  悲&欢浪女
    2020-12-07 08:48

    In-app version 3:

    IabHelper.QueryInventoryFinishedListener mGotInventoryListener = new IabHelper.QueryInventoryFinishedListener() {
    
        public void onQueryInventoryFinished(IabResult result, Inventory inventory) {
    
            .....................
    
            if (inventory.hasPurchase(SKU_CONTENT)) {
    
                mHelper.consumeAsync(inventory.getPurchase(SKU_CONTENT), null);
            }
        }
    };
    

提交回复
热议问题