我正在实施inapp购买... 我已经按照谷歌指南,将我的应用程序在线测试,订阅了我的电子邮件到测试版。 该应用程序正确回应我的inapp的价格...但当我点击按钮购买,它回应我:无法购买文章。 (错误代码IAB-LPD)。
Logcat错误:
10:16:58.142 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
07-09 10:17:44.212 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
07-09 10:17:45.392 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
07-09 10:17:47.582 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
07-09 10:17:51.792 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
07-09 10:17:52.922 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
07-09 10:17:55.112 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
07-09 10:17:56.252 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
07-09 10:17:59.362 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
07-09 10:18:01.462 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
07-09 10:18:43.212 8220-8262/? E/Finsky﹕ [1428] FileBasedKeyValueStore.delete: Attempt to delete 'paramsUW0_kyxyYoEe83-zfLm9KQ' failed!
07-09 10:18:43.332 8220-8246/? E/Volley﹕ [1413] BasicNetwork.performRequest: Unexpected response code 500 for https://android.clients.google.com/fdfe/preparePurchase
07-09 10:18:43.582 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
07-09 10:18:46.682 751-1791/? E/qcom_sensors_hal﹕ hal_process_report_ind: Bad item quality: 11
以及调用inapp的代码:
mHelper.launchPurchaseFlow(Funzioni_aggiuntive.this, sku, 10001, mPurchaseFinishedListener, key);
IabHelper.OnIabPurchaseFinishedListener mPurchaseFinishedListener = new IabHelper.OnIabPurchaseFinishedListener() {
public void onIabPurchaseFinished(IabResult result, Purchase purchase){
if (result.isFailure()) {
Log.e("Errore", "Error purchasing: " + result);
mParse.alert("Attenzione!","Errore nell'acquisto, si prega di riprovare.");
}else if (purchase.getSku().equals(sku)) {
Log.e("IN APP", "FUNZIONI OK");
findViewById(R.id.loading).setVisibility(View.VISIBLE);
findViewById(R.id.loading_back).setVisibility(View.VISIBLE);
acquistaFA();
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run() {
mParse.controlloUser();
Intent intent = new Intent(context, context.getClass());
intent.putExtra("faccio", "0");
startActivity(intent);
finish();
}
}, 500);
}else{
mParse.alert("Attenzione!", "Errore nell'acquisto, si prega di riprovare.");
}
}
};
我没有显示错误或崩溃,因为手机仍然显示inapp屏幕上的“google alert”,显示上面的错误。
感谢所有