Search code examples
androidappceleratorin-app-billingappcelerator-titanium

titanium InAppBilling queryInventory return error code -1003 (InAppBilling.IAB_RESULT_VERIFICATION_FAILED)


I'm using ti.inappbilling module for in-app billing on Android. I use titanium sdk 5.1.2

But when I call it's always returning an error:

var InAppBilling = require("ti.inappbilling");
InAppBilling.queryInventory({});
InAppBilling.addEventListener('queryinventorycomplete', function(e) {
if (e.success) {
    purchase = e.inventory.getPurchase(productID);
}else{
    Ti.API.error('queryinventorycomplete: ' + e.responseCode + " - " + responseString(e.responseCode));
    }
});

queryinventorycomplete: -1003 - IAB VERIFICATION FAILED


Solution

  • sorry it's my fault, I set an undefined PUBLIC_KEY in the setup. now it's correctly

    Thank you for your answers