In-app purchase Error while retrieving information from server [DF-AA-20] - android

前提是你 提交于 2019-12-24 23:38:16

问题


I am trying to enable in app billing. I've created In-app-products on my google play console and got my license key. When I try to purchase product I get this image error.

in-app purchase error

Here is the code I use to create BillingProcessor.

    bp = new BillingProcessor(getApplicationContext(), 
 getString(R.string.google_licence_key), this);
    bp.initialize(); // binds
    boolean isAvailable = BillingProcessor.isIabServiceAvailable(this);
    if (!isAvailable) {
        // continue
        Toast.makeText(getApplicationContext(), "YESSSSSSSSs", Toast.LENGTH_LONG).show();
    }

    btn_bill.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            Toast.makeText(getApplicationContext(), "CLICKED", 
            Toast.LENGTH_LONG).show();
            // bp.purchase(BillingActivity.this,android.test.purchased");
            bp.subscribe(BillingActivity.this, "xyz"); //, "DEVELOPER PAYLOAD HERE"
        }
    });

回答1:


The possibility of error,

  • Need to upload app on the app store for the beta, alpha or live version at least once.
  • Uploaded app on play store app version and testing app version should be same,
  • Please verify created product id and requesting product id same or not,
  • Also finally verify product are active or Inactive, If Inactive then active it.


来源:https://stackoverflow.com/questions/52361216/in-app-purchase-error-while-retrieving-information-from-server-df-aa-20-andr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!