titanium InAppBilling queryInventory 返回错误代码 -1003 (InAppBilling.IAB_RESULT_IFICATION_FAILED)[英] titanium InAppBilling queryInventory return error code -1003 (InAppBilling.IAB_RESULT_VERIFICATION_FAILED)

本文是小编为大家收集整理的关于titanium InAppBilling queryInventory 返回错误代码 -1003 (InAppBilling.IAB_RESULT_IFICATION_FAILED)的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我正在使用ti.inappbilling模块在Android上进行应用内计费.我使用titanium sdk 5.1.2

但是当我打电话时,它总是返回错误:

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验证失败

推荐答案

对不起,这是我的错,我在设置中设置了一个未定义的public_key.现在正确

谢谢您的回答

其他推荐答案

确保完成以下操作.

1.该应用程序已发布.

2.您用来测试的帐户在Beta测试器列表中列出.

3.您接受该帐户中的测试仪.

4.创建的产品活跃.

添加产品之后,需要一段时间才能生效.就我而言,尽管它活跃了两天.

本文地址:https://www.itbaoku.cn/post/1938224.html

问题描述

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

推荐答案

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

Thank you for your answers

其他推荐答案

Make sure the following things are done.

1.The app is published.

2.The account your are using to test is listed in beta tester list.

3.You accept to be tester in that account.

4.Created product is active.

Also after adding the product it takes a while to take effect. In my case it took two days although it was active.