title: Testing with In app billing "Payment options"
body: <p>I want to integrate In app billing in my android app. I am using version 3 apis. So for this I have created one managed product. </p>
  
  <p>I am following this <a href="http://developer.android.com/training/in-app-billing/preparing-iab-app.html#GetSample" rel="nofollow">tutorial</a>. Given below is my code.</p>
  
  <pre><code>IabHelper mHelper;
  final String BONUS_BUDGET = "bonus_budget";
  
  Button purchaseButton;
  String applePrice, skuID;
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.fantasy_login);
  
      purchaseButton = (Button) findViewById(R.id.login_button);
  
      String base64EncodedPublicKey = "MY BASE64 KEY";
  
      MyLog.e(TAG, "onCreate");
  
      mHelper = new IabHelper(this, base64EncodedPublicKey);
  
      final IabHelper.QueryInventoryFinishedListener mQueryFinishedListener = new IabHelper.QueryInventoryFinishedListener() {
          public void onQueryInventoryFinished(IabResult result,
                  Inventory inventory) {
              if (result.isFailure()) {
                  // handle error
                  return;
              } else {
                  Log.e(TAG,
                          "result : " + result.getResponse()
                                  + result.getMessage());
              }
  
              try {
                  if (inventory == null) {
                      Toast.makeText(FC_FantasyCricketLoginActivity.this,
                              "Inventory is null", Toast.LENGTH_LONG).show();
                  } else {
                      Toast.makeText(
                              FC_FantasyCricketLoginActivity.this,
                              inventory.getSkuDetails(BONUS_BUDGET)
                                      .getPrice().toString(),
                              Toast.LENGTH_LONG).show();
                  }
              } catch (Exception e) {
                  Toast.makeText(FC_FantasyCricketLoginActivity.this,
                          "inventory catch block", Toast.LENGTH_LONG).show();
              }
  
              // Toast.makeText(FC_FantasyCricketLoginActivity.this, "",
              // duration)
              // Log.e(TAG,
              // "Inventory :" + inventory.getSkuDetails(BONUS_BUDGET).);
              //
              // applePrice =
              // inventory.getSkuDetails(BONUS_BUDGET).getPrice();
              // skuID = inventory.getSkuDetails(BONUS_BUDGET).getSku();
  
              // update the UI
          }
      };
  
      mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() {
  
          @Override
          public void onIabSetupFinished(IabResult result) {
  
              if (result.isSuccess()) {
                  Log.e(TAG, "Successfully set up in app billing");
  
                  List&lt;String&gt; additionalSkuList = new ArrayList&lt;String&gt;();
                  additionalSkuList.add(BONUS_BUDGET);
  
                  Log.e(TAG, "Size of list"
                          + additionalSkuList.get(0).toString());
  
                  mHelper.queryInventoryAsync(true, additionalSkuList,
                          mQueryFinishedListener);
  
              } else {
                  Log.e(TAG,
                          "Problem in setting of in app billing "
                                  + result.toString());
              }
  
          }
      });
  
      final IabHelper.OnIabPurchaseFinishedListener mPurchaseFinishedListener = new IabHelper.OnIabPurchaseFinishedListener() {
          public void onIabPurchaseFinished(IabResult result,
                  Purchase purchase) {
              if (result.isFailure()) {
                  Log.d(TAG, "Error purchasing: " + result);
                  return;
              } else if (purchase.getSku().equals(skuID)) {
  
                  Log.e(TAG,
                          "Purchase done time:"
                                  + String.valueOf(purchase.getPurchaseTime())
                                  + "SKU id : " + purchase.getSku());
              }
          }
      };
  
      purchaseButton.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
  
              mHelper.launchPurchaseFlow(FC_FantasyCricketLoginActivity.this,
                      skuID, 10001, mPurchaseFinishedListener,
                      "bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ");
  
          }
      });
  
  }
  </code></pre>
  
  <p>It displays product and it's displaying that it's in test mode. But after that it displays <code>Payment Options</code>. Do I need to add my actual account this or is there a way to test without adding an actual account ?</p>