in-app Billing 内置收费问题

pangailing 2013-01-07 05:10:52
用google的demo
提示:The Market billing
service is not available at this time. You can continue to use this app but you
won\'t be able to make purchases.
测试都通不过。


Bundle request = makeRequestBundle("CHECK_BILLING_SUPPORTED");
Bundle response = mService.sendBillingRequest(request);
int responseCode = response.getInt(Consts.BILLING_RESPONSE_RESPONSE_CODE);
if (Consts.DEBUG) {
Log.i(TAG, "CheckBillingSupported response code: " +
ResponseCode.valueOf(responseCode));
}
Log.i("cheshi", "CheckBillingSupported response code: " + ResponseCode.valueOf(responseCode));
Log.i("cheshi", responseCode+"<----->"+ResponseCode.RESULT_OK.ordinal());
boolean billingSupported = (responseCode == ResponseCode.RESULT_OK.ordinal());
// billingSupported=true;
ResponseHandler.checkBillingSupportedResponse(billingSupported);
return Consts.BILLING_RESPONSE_INVALID_REQUEST_ID;
经过打印输出,发现responseCode 返回的是3.官方解释是:Indicates that In-app Billing is not available because the API_VERSION that you specified is not recognized by the Google Play application or the user is ineligible for in-app billing (for example, the user resides in a country that prohibits in-app purchases).


请问那个大侠弄过google内置收费的帮我解决一下。谢谢了
...全文
1179 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
十月yumian 2013-05-15
  • 打赏
  • 举报
回复
官方的那个实例您调试通过了嘛?
pangailing 2013-01-08
  • 打赏
  • 举报
回复
再问问,购买成功的返回值在那里点接收?购买成功后是还要向google play发个消息。那个消息发送成功后会在那里
pangailing 2013-01-08
  • 打赏
  • 举报
回复
找到原因了,我用的是api2 那个vpn那边出问题了访问google play 打不开,现在可以了 谢谢各位了
流星叶雨 2013-01-08
  • 打赏
  • 举报
回复
引用 2 楼 pangailing 的回复:
开始已经测试成功,第二天来就又能不行了,就包上面的错。
这是因为关机或者重启等操作会还原运营商信息,重复1楼的步骤就可以了
流星叶雨 2013-01-08
  • 打赏
  • 举报
回复
引用 4 楼 greenboy123456789 的回复:
顺便问下:在google支付的版本3里面,无法拿到signature?不知道你遇到过没有?
这是你的安装的应用版本号大于上传至google play的apk版本导致的
greenboy123456789 2013-01-08
  • 打赏
  • 举报
回复
针对你的问题 你可以使用VPN试试
greenboy123456789 2013-01-08
  • 打赏
  • 举报
回复
顺便问下:在google支付的版本3里面,无法拿到signature?不知道你遇到过没有?
greenboy123456789 2013-01-08
  • 打赏
  • 举报
回复
楼主好 请问你使用google支付在返回值里面拿到签名了吗?
pangailing 2013-01-08
  • 打赏
  • 举报
回复
开始已经测试成功,第二天来就又能不行了,就包上面的错。

80,349

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧