当前位置: 代码迷 >> Android >> in-app Billing 内置收费有关问题
  详细解决方案

in-app Billing 内置收费有关问题

热度:39   发布时间:2016-05-01 12:01:37.0
in-app Billing 内置收费问题
用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内置收费的帮我解决一下。谢谢了
google api in-app?Billing android内置收费

------解决方案--------------------
google在天朝不支持内购,需要进行特殊处理。首先机器必须是root过的,然后下一个运行商伪造,设置值为310260,保存~然后清空google play的数据(设置——应用程序——google play——清除数据),再重新进入google play,如果能看到收费app,则表示成功,接下来就可以测试内购了。~
------解决方案--------------------
针对你的问题 你可以使用VPN试试