如何在Android inApp结算中将试用购买模式更改为实际购买?

问题描述 投票:0回答:1

我有我的应用程序与InApp Billing并且我在计费模式中使用Android In-App Billing v3计费很好,但我不知道如何进入生产模式并进行实际购买。

我的代码如下:

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    bp = new BillingProcessor(this, getResources().getString(R.string.pubKey), this); //R.string.pubKey contain my license key from play.console
    bp.initialize();
    purchaseBtn = findViewById(R.id.btn_purchaseItem);
    purchaseBtn.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            bp.purchase(MainActivity.this, "get_10_coins", getResources().getString(R.string.pubKey));//This product id is registered and active in the play console.
            bp.consumePurchase("get_10_coins"); 
        }
    });
}

当我在我的应用程序中点击购买时,会出现以下内容:enter image description here

但我无法进行真正的购买,如何从试用模式切换到生产模式?

android in-app-purchase in-app-billing android-billing
1个回答
1
投票

在Google Play控制台>>设置>>管理测试人员中删除您的电子邮件

© www.soinside.com 2019 - 2024. All rights reserved.