title: Why Android IAP initializing but not working?
body: <p>I am using this library to implement in app purchase in my app.</p>
  <p><a href="https://github.com/anjlab/android-inapp-billing-v3" rel="nofollow noreferrer">https://github.com/anjlab/android-inapp-billing-v3</a></p>
  <p>I added this code to my gradle.</p>
  <pre><code>repositories {
    mavenCentral()
  }
  dependencies {
    implementation 'com.anjlab.android.iab.v3:library:1.0.44'
  }
  </code></pre>
  <p>I added the permission.</p>
  <pre><code> &lt;uses-permission android:name=&quot;com.android.vending.BILLING&quot; /&gt;
  </code></pre>
  <p>I declared variable</p>
  <pre><code> BillingProcessor bp;
  </code></pre>
  <p>I used(to test it) bp in onCreate method after setContentView</p>
  <pre><code>   setContentView(R.layout.activity_main);
  
  
  
     bp = new BillingProcessor(this, &quot;x&quot;, null,new BillingProcessor.IBillingHandler() {
              @Override
              public void onProductPurchased(@NonNull String productId, @Nullable TransactionDetails details) {
                  Log.d(&quot;purchase2&quot;,&quot;purchased&quot;);
              }
              @Override
              public void onBillingError(int errorCode, @Nullable Throwable error) {
                  Log.d(&quot;purchase2&quot;,&quot;error&quot;);
              }
              @Override
              public void onBillingInitialized() {
                  Log.d(&quot;purchase2&quot;,&quot;initialized&quot;);
              }
              @Override
              public void onPurchaseHistoryRestored() {
                  Log.d(&quot;purchase2&quot;,&quot;historyrestored&quot;);
              }
          });
  
  
          bp.purchase(this, &quot;y&quot;);
  </code></pre>
  <p>The code does not run onProductPurchased method. It only runs onBillingInitialized method. I looked verbose logcat. There is no line about <strong>purchased</strong> when I can see <strong>initialized</strong> line.</p>
  <p>As a result, how can I solve my problem? Why does not it work?</p>
  <p>X and Y values are correct, I checked them in Google Play Console.</p>