"This product is not sold" Billing



  • "This product won't be sold" when the purchase button comes, what's wrong? The key added, the key added, the application in the release now she's on the mark, but the button still doesn't work what to do.

    APK Zalit in a release, you can find the name of the ATM
    ID purchases are controlled by Google, the name is buy_gold

        public class Vip extends AppCompatActivity implements View.OnClickListener, BillingProcessor.IBillingHandler{
        BillingProcessor bp;
        String KEY="";
        String SKU="buy_gold";
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.vip);
        ((TextView)toolbar.findViewById(R.id.tb_textView)).setText("");
        ((ImageView)toolbar.findViewById(R.id.tb_imageView)).setOnClickListener(this);
        bp = new BillingProcessor(this, KEY, this);
    }
    
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.tb_imageView:
                bp.purchase(Vip.this,SKU);
                break;
        }
    }
    
    @Override
    public void onProductPurchased(String s, TransactionDetails transactionDetails) {
        Log.e("asd",s+"  "+transactionDetails.toString());
    }
    
    @Override
    public void onPurchaseHistoryRestored() {
    
    }
    
    @Override
    public void onBillingError(int i, Throwable throwable) {
    
    }
    
    @Override
    public void onBillingInitialized() {
    
    }
    

    }

    In the Manifeste, he wrote Billing, in the middle of the hall,



  • A successful test purchase requires:

    1. The app on the mark in the beta version.
    2. Produced for purchase
    3. A list of test men in consoles.
    4. These test-users should take part in the beta test by switching from the console.
    5. The annex shall be signed by a key, identical to the one signed at the mark.
    6. The version of the application on the pageversionCode Total build.gradle() Shall coincide with the version of the annex published in the mark.

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2