我正在尝试在我的phonegap / cordova应用中实现应用内结算并使用此插件:https://github.com/poiuytrez/AndroidInAppBilling
代码:
function successBy (data) {
alert("by success")
alert(data)
}
function failBy (data) {
alert("by error")
alert(data)
}
if ("inappbilling" in window) {
inappbilling.init(function (data) {
alert("init success")
alert(data)
inappbilling.buy(successBy, failBy, "android.test.purchased")
}, function (err) {
alert("init error")
alert(err)
});
}
confix.xml:
<gap:plugin name="com.smartmobilesoftware.inappbilling">
<param name="BILLING_KEY" value="Here is my billing key..." />
</gap:plugin>
当我启动应用程序时,我收到带文本的初始错误提示
Failed to query inventory: labResult: Error refreshing inventory (querying owned
items). (response: -1003: Purchase signature verification failed)
我做错了什么,如何解决?