1

안녕하세요. inapp 구매를 테스트하고 있습니다. 나는 상인 계정을 만들고 테스터들의 알파 그룹을 만들었습니다. 그러나 내 기기에서 앱에 대한 결제를 시도 할 때 다음 오류가 발생합니다. 내가 다른 애플 리케이션을 다운로드 할 수 있지만, 나는 2 개의 다른 장치에 이것을 테스트하고 나는 같은 오류가 발생합니다.Google Play 결제 흐름 인증 오류

오류 인증이 필요합니다. Google 계정에 로그인해야합니다.

도와주세요

mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() { 
     public void onIabSetupFinished(IabResult result) { 
      Log.d(TAG, "Setup finished."); 

      if (!result.isSuccess()) { 
       // Oh noes, there was a problem. 
       complain("Problem setting up in-app billing: " + result); 
       return; 
      } 

      // Have we been disposed of in the meantime? If so, quit. 
      if (mHelper == null) return; 

      // IAB is fully set up. Now, let's get an inventory of stuff we own. 
      Log.d(TAG, "Setup successful. Querying inventory."); 
      try { 
       mHelper.queryInventoryAsync(mGotInventoryListener); 
      } catch (IabHelper.IabAsyncInProgressException e) { 
       complain("Error querying inventory. Another async operation in progress."); 
      } 
     } 
    }); 

    //Querying for Items Available for Purchase 
    IabHelper.QueryInventoryFinishedListener mGotInventoryListener = new IabHelper.QueryInventoryFinishedListener() { 
    public void onQueryInventoryFinished(IabResult result, Inventory inventory) { 
     Purchase gasPurchase = inventory.getPurchase(SKU_GAS); 
     if (gasPurchase != null && verifyDeveloperPayload(gasPurchase)) { 
      Log.d(TAG, "We have gas. Consuming it."); 
      try { 
       mHelper.consumeAsync(inventory.getPurchase(SKU_GAS), mConsumeFinishedListener); 
      } catch (IabHelper.IabAsyncInProgressException e) { 
       complain("Error consuming gas. Another async operation in progress."); 
      } 
      return; 
     } 

     //updateUi(); 
     //setWaitScreen(false); 
     Log.d(TAG, "Initial inventory query finished; enabling main UI."); 
    } 
    }; 

    // User clicked the "Buy Gas" button 
    public void onBuyCoinButtonClicked(View arg0) { 
    Log.d(TAG, "Buy coin button clicked."); 

    Log.d(TAG, "Launching purchase flow for coins."); 

    String payload = ""; 

    try { 
     mHelper.launchPurchaseFlow(this, SKU_GAS, RC_REQUEST, 
       mPurchaseFinishedListener, payload); 
    } catch (IabHelper.IabAsyncInProgressException e) { 
     complain("Error launching purchase flow. Another async operation in progress."); 
     //setWaitScreen(false); 
    } 
} 

내 소스는 1 단계 https://developer.android.com/training/in-app-billing/preparing-iab-app.html

+0

BASE64APP ID를 확인하십시오. –

+0

안녕하세요 감사합니다 base64app ID가 잘못되었지만 오류가 여전히 발생하지만 수정했습니다. –

+0

여기에 오류 로그를 넣을 수 있습니까? ?? –

답변

2

사소한 드라이브 샘플에서이다 : 체크 기지 64 키

2 단계 : 확인 당신의 SKU

static final String SKU_GAS = "android.test.purchased"; 
+0

덕분에 참으로 매력적이었습니다. –

+0

welcome dude !! –

관련 문제