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内置收费的帮我解决一下。谢谢了