我在谷歌播放中使用了beta测试..我在谷歌播放中集成了应用程序..它的响应就像“付款成功...”坚果它不回复购买数据和数据签名?所以你能帮我在这里调试朋友吗?
产品编号:
private static final String PRO_MONTH_SKU =“zoomlee_family_y”;
RSA密钥:
String rsa_key = getString(R.string.rsa_key);
billingHelper = new IabHelper(this,rsa_key);
billingHelper.startSetup(本);
@Override
protected void onResume() {
super.onResume();
Log.d("whichfirst","resume");
EventBus.getDefault().register(this);
applySubscriptionState();
billingApi.billingTypes(zoomleeKey, getTrialsCallback);
}
private void disposeBillingHelper() {
if (billingHelper != null) {
billingHelper.dispose();
}
billingHelper = null;
}
public void onIabSetupFinished(IabResult result) {
if (result.isSuccess()) {
Log.d("Loadsuccess", "success");
isSetuped = true;
loadPrices();
}
}
billingHelper.launchPurchaseFlow(this,PRO_MONTH_SKU,RequestCodes.PAY_SUBS,this);
public void launchPurchaseFlow(Activity act,String sku,int requestCode,OnIabPurchaseFinishedListener listener){launchPurchaseFlow(act,sku,requestCode,listener,“”); }
public void launchPurchaseFlow(Activity act,String sku,int requestCode,OnIabPurchaseFinishedListener listener,String extraData){checkSetupDone(“launchPurchaseFlow”);
flagStartAsync( “launchPurchaseFlow”); IabResult结果;
try {
logDebug(“构建购买意图”sku); Bundle buyIntentBundle = mService.getBuyIntent(3,mContext.getPackageName(),sku,ITEM_TYPE_INAPP,extraData); int response = getResponseCodeFromBundle(buyIntentBundle);
if(response!= BILLING_RESPONSE_RESULT_OK){logError(“无法购买项目,错误响应:”getResponseDesc(响应));
结果=新的IabResult(回复,“无法购买项目”);
if(listener!= null){listener.onIabPurchaseFinished(result,null);} return; PendingIntent pendingIntent = buyIntentBundle.getParcelable(RESPONSE_BUY_INTENT); logDebug(“为”sku“启动购买意图 . 请求代码:”requestCode“; mRequestCode = requestCode;