Android 需要进行身份验证。您需要在phonegap中登录您的Google帐户
我集成在应用程序中购买我收到这些错误 这是我的配置文件Android 需要进行身份验证。您需要在phonegap中登录您的Google帐户,android,cordova,in-app-purchase,phonegap-plugins,Android,Cordova,In App Purchase,Phonegap Plugins,我集成在应用程序中购买我收到这些错误 这是我的配置文件 <gap:plugin name="com.smartmobilesoftware.inappbilling"> <param name="BILLING_KEY" value="MIIBIjANBgkqhkiG9w0BAQE****/></gap:plugin> 在我的例子中,我没有在play上发布应用程序,它是在草稿中发布的,然后我在alpha测试中发布它,并使用我的tester Gmail帐户
<gap:plugin name="com.smartmobilesoftware.inappbilling">
<param name="BILLING_KEY" value="MIIBIjANBgkqhkiG9w0BAQE****/></gap:plugin>
在我的例子中,我没有在play上发布应用程序,它是在草稿中发布的,然后我在alpha测试中发布它,并使用我的tester Gmail帐户(与开发者帐户不同的帐户)创建测试用户,并将其添加到某个google组中,然后单击“成为测试人员”按钮,按照本博客上的说明通过测试人员链接选择加入。经过2、3个小时的出版,一切正常
请按照本博客上的说明进行操作:
你必须使用谷歌ID登录你的设备,如果你想从那里下载一些东西,你可以这样做。我添加了我的帐户。当我测试一些play store应用程序时,它工作正常。但是当我测试开发的应用程序时,它显示错误。你好,Gowrishankar Reddy Jinka,我使用同一个插件,我遇到了和你过去一样的问题。。如果你有什么解决办法,请告诉我我也面临同样的问题。
<!DOCTYPE HTML>
<html>
<head>
<title>In App Billing</title>
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" charset="utf-8" src="inappbilling.js"></script>
<script type="text/javascript" charset="utf-8">
function successHandler (result) {
var strResult = "";
if(typeof result === 'object') {
strResult = JSON.stringify(result);
} else {
strResult = result;
}
alert("SUCCESS: \r\n"+strResult );
}
function errorHandler (error) {
alert("ERROR: \r\n"+error );
}
// Click on init button
function init(){
// Initialize the billing plugin
inappbilling.init(successHandler, errorHandler, {showLog:true};
}
// Click on purchase button
function buy(){
// make the purchase
inappbilling.buy(successHandler, errorHandler,"gas");
}
// Click on ownedProducts button
function ownedProducts(){
// Initialize the billing plugin
inappbilling.getPurchases(successHandler, errorHandler);
}
// Click on Consume purchase button
function consumePurchase(){
inappbilling.consumePurchase(successHandler, errorHandler, "gas");
}
// Click on subscribe button
function subscribe(){
// make the purchase
inappbilling.subscribe(successHandler, errorHandler,"infinite_gas");
}
// Click on Query Details button
function getDetails(){
// Query the store for the product details
inappbilling.getProductDetails(successHandler, errorHandler, ["gas","infinite_gas"]);
}
// Click on Get Available Products button
function getAvailable(){
// Get the products available for purchase.
inappbilling.getAvailableProducts(successHandler, errorHandler);
}
</script>
</head>
<body>
<h1>Hello World</h1>
<button onclick="init();">Initalize the billing plugin</button>
<button onclick="buy();">Purchase</button>
<button onclick="ownedProducts();">Owned products</button>
<button onclick="consumePurchase();">Consume purchase</button>
<button onclick="subscribe();">Subscribe</button>
<button onclick="getDetails();">Query Details</button>
<button onclick="getAvailable();">Get Available Products</button>
</body>
</html>