在应用程序时尝试订阅产品计费Android的回报认证是必需的 [英] in-app billing android return authentication is required when try to subscribe to product

查看:201
本文介绍了在应用程序时尝试订阅产品计费Android的回报认证是必需的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次来处理应用内结算的机器人 1)我使用的API第3版 2)我已经上传我的应用程序的alpha版本才能够测试然后

This is my first time to deal with In-App Billing in android 1) I am using API v3 2) I have upload alpha version of my app to be able to test then

3)我创建了一个订阅产品

3) I have created a subscribe product

4)这是我的code认购该产品

4) This is my code to subscribe in the product

mSubscribeButton.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {

            try {

                Bundle subscribeIntentBundle = mService.getBuyIntent(3, getPackageName(), "my_product_id", "subs", "bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ");
                PendingIntent pendingIntent = subscribeIntentBundle.getParcelable("BUY_INTENT");

                if (subscribeIntentBundle.getInt("RESPONSE_CODE") == 0) {

                    startIntentSenderForResult(pendingIntent.getIntentSender(), 4002, new Intent(), Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0));
                } else {
                    Toast.makeText(MainActivity.this, "Error Code: " + subscribeIntentBundle.getInt("RESPONSE_CODE"), Toast.LENGTH_SHORT).show();
                }
            } catch (RemoteException e) {
                e.printStackTrace();
            } catch (SendIntentException e) {
                e.printStackTrace();
            }
        }
    });

5)我收到以下错误

5) I am getting the following error

  • 我曾尝试使用不同的设备,并都具​​有相同的错误,我也记录在我的谷歌帐户,并可以打开谷歌Play商店和浏览我的应用程序

  • I have tried to use different devices and all have the same error, I am also logged in with my Google account and can open Google Play Store and view my apps

我试图也明确谷歌的数据从应用程序管理器Play商店

I have tried also to clear data of Google Play Store from app manager

谁能帮助请?

推荐答案

我有同样的问题previously。转到您的谷歌开发者控制台,并确保您的应用程序是出版以任何版本(α,β,督促)。然后,在应用程序内购买将工作:)

I have the same issue previously. Go to your google developer console and make sure your app is PUBLISHED to any version(alpha, beta or prod). Then, the In app purchase will work :)

这篇关于在应用程序时尝试订阅产品计费Android的回报认证是必需的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆