Feed Buzzard
  • General
  • Tech
  • World Tech
  • World Tech Code
  • Wearable Tech
  • Pokemon
  • About Us
    • Terms & Conditions
    • Privacy Policy
  • Contact
No Result
View All Result
  • General
  • Tech
  • World Tech
  • World Tech Code
  • Wearable Tech
  • Pokemon
  • About Us
    • Terms & Conditions
    • Privacy Policy
  • Contact
No Result
View All Result
Feed Buzzard
No Result
View All Result
Home World Tech

in-app billing android return authentication is required when try to subscribe to product –

Gordon James by Gordon James
January 9, 2021
in World Tech
0
0
SHARES
2
VIEWS
Share on FacebookShare on Twitter

Development issue/problem:

This is the first time I’ve dealt with internal invoicing in Android
1) I use the API v3
2) I downloaded the alpha version of my application to test it.

3) I have created a subscription product

4) This is my code to subscribe to the product.

mSubscribeButton.setOnClickListener(new OnClickListener() {)

@General invalid
opClisk(View v) {

Try

PendingIntentBundle = mService.getBuyIntent(3, getPackageName(), my_product_id, sub, bGoa+V7g/yqDXvKRq+JTFn4uQZbPiQJo4pf9RzJ) ;
PendingIntent = subscriptionIntentBundle.getParcelable(BUY_INTENT) ;

if (subscriptionIntentBundle.getInt(RESPONSE_CODE) == 0) {

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

5) I get the following error

Can somebody help us?

How can I solve this problem?

Solution 1:

I already have the same problem. Go to the Google Developer Console and make sure your application is MANDATORIAL for each version (alpha, beta or prod). Then, the purchase of the in-app

Solution 2:

I have the same problem with the awful message:

Authentication is required. You need to sign in to your Google Account.

I’ve had two problems:

  1. I tried to buy a product in my code with the identifier com.argonnetech.wordswriting.noads, but in the application, the product configured in the Google Play Developer Console (GPD) was simply called noads.
  2. After I changed the name of the product in the application in the GPD console, I had to put it into active mode.

It worked. The error message is misleading, it is better if the type of error is not present in the application element.

Solution 3:

Android developers testing a purchase account built into the application should follow these tests.

Base64EncodedPublicKey

// Base64EncodedPublicKey check

Publicly available static end String base64EncodedPublicKey = MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCg +
KCAQEAhNe2XQ70DceAwE6uyYYYYGK1dIBbZcPdlER/9EEzylr6RDU6tnGj0Tk7kceN03GKvRf/ucT+ERLL3O +
aHR22PXRXLZ17NZ81x6oS2vGmLyXBnjrU/I+asl8cNuLGySaoCdXPAV+A9g6OG13dk+KY9i0O1roGpFH +
fsAFyKCgSqR0PMJZ1bS+wFFBYf3M4IxgBcxuZKDmR+MztCgm5N4zc6wFZn3mXeDoTg15mWDU3sZO +
WeRwFeynhV+FCYdDp8DpAkLk1b5IiXYFQ53wxCh/GxiKqBB6uQMmAixFjAcZV1QWfcBABae9vxiV5 +
VAEJvOOnhPxnaT9HYadW0pQ/UbJwIDAQAB ;

And bought an item with a key, like this one.

POINT_PINTS

// Test ITEM_PURCHASED

public static end string ITEM_PURCHASED = android.test.purchased ;

And start setting this code to initialize the IabHelper class to purchase
in the application,

IabHelper helper = new IabHelper (this, Constants.base64EncodedPublicKey);
helper.startSetup(new IabHelper.OnIabSetupFinishedListener() {
public void onIabSetupFinished(IabResult result) {
if((! result.isSuccess())) {
Log.d(#InAppStartSetup#, internal billing configuration failed: + result);
} other {
Log.d(#InAppStartSetup#, internal billing configuration successful.);
}
}
})

And finally, I took the time to make this coded pen here,

helper.launchPurchaseFlow(YOUR_ACTIVITY, Constants.ITEM_PURCHASED,
YOUR_REQUEST_CODE, mPurchase FinishedListener, ) ;

Thanks, guys…

Solution 4:

The documentation on developer.android.com seems outdated.

If you want to test the application’s internal billing without making it public, you need to create a Google group and add an alphabetical list of testers. See here:
https://support.google.com/googleplay/android-developer/answer/3131213?hl=en

FIXED

From mid 2015 this will no longer be necessary. They have new testing capabilities in the Google Game Developers Console.

Solution No 5:

Most of the above solutions work, but for those who still have this problem, try this:

  • In Android Studio, sign your application with the license key (this creates a signed file app-release.apk ).
  • Then ENSURE that you install on your physical device using the installation path adb/to/your/app-release.apk (NOT via Alpha/Beta).

Solution No 6:

In my case, the versionCode, versionName and applicationId were not synchronized with the current version of the application on the developer’s console. I modified this in the build.gradle file. They were different because I rewrote the application in Eclipse’s android studio. After that the invoicing was triggered in the application.

Solution No 7:

This is what works for me:

  • Download a preliminary version of the application in alpha or beta with version code.
  • Log in to your device with an account that has an active subscription.
  • Install a signed application on your device with the same version as the alpha/beta version.

Good luck!

Related Tags:

in-app purchase android free,android get subscription expiration date,google play in-app purchase fee,android in-app billing v3 library,in-app purchase android tutorial androidhive,android in-app billing subscription sample,querypurchasehistoryasync,android in-app billing tutorial,onbillingservicedisconnected,queryskudetailsasync returns empty list,google play in-app purchase error,in-app purchase android tutorial,google play balance not showing in game,can't make in app purchases iphone,payment unsuccessful google play,play store password open,1 tap buy google play not working,1 tap buy meaning,google pay fingerprint authentication,google play refund forum,how to see google account password in mobile,revenuecat android github,subscriptions 101,android app licensing tutorial,in-app purchase subscription tutorial android,in-app purchase android tutorial 2020,in-app purchase android example github,in-app purchase in android programmatically,android in-app purchase server verification,in-app purchase not working android,how to enable in-app purchases android,device restriction settings android,brawl stars in-app purchases,wrong google play balance,google defaults to wrong account,wrong google account,pokemon go change google play account,google pay wrong payment,how to buy in-app purchases on google play,android in-app billing subscription sample github,restore in-app purchase android programmatically,google play billing library

Total
0
Shares
Share 0
Tweet 0
Pin it 0
Share 0
Gordon James

Gordon James

James Gordon is a content manager for the website Feedbuzzard. He loves spending time in nature, and his favorite pastime is watching dogs play. He also enjoys watching sunsets, as the colors are always so soothing to him. James loves learning about new technology, and he is excited to be working on a website that covers this topic.

Related Posts

Blockchain Conference in Poland Showcases New Solutions to Problems in Enterprise Logistics
World Tech

Blockchain Conference in Poland Showcases New Solutions to Problems in Enterprise Logistics

December 15, 2022
World Tech

Rockstar Games Brings GTA to The Metaverse

October 20, 2022
World Tech

Ways Technology Is Changing The World Of Education

September 21, 2022
Next Post

Google Play Services Missing in Emulator (Android 4.4.2) –

6 Facebook marketing tools to level up your business strategies

How to animate floating action button using android activity transition? –

No Result
View All Result

Recommended

3 Types of Facial Implants You Should Know About

3 Types of Facial Implants You Should Know About

12 hours ago
Myths and Misconceptions About Joint Pain

Myths and Misconceptions About Joint Pain

4 days ago
The Spider Veins Facts that Every Individual Ought to Know

The Spider Veins Facts that Every Individual Ought to Know

4 days ago

5 Benefits of Telehealth That You Should Understand

4 days ago

Categories

  • Fitness Trackers
  • General
  • Latest
  • Pokemon
  • Tech
  • Technology and Computing
  • Wearable Tech
  • World Tech
  • World Tech Code

Recent Posts

  • 3 Types of Facial Implants You Should Know About February 2, 2023
  • Myths and Misconceptions About Joint Pain January 30, 2023
  • The Spider Veins Facts that Every Individual Ought to Know January 30, 2023
  • 5 Benefits of Telehealth That You Should Understand January 30, 2023

Categories

  • Fitness Trackers
  • General
  • Latest
  • Pokemon
  • Tech
  • Technology and Computing
  • Wearable Tech
  • World Tech
  • World Tech Code

© 2022 FeedBuzzard.com

No Result
View All Result
  • General
  • Tech
  • World Tech
  • World Tech Code
  • Wearable Tech
  • Pokemon
  • About Us
    • Terms & Conditions
    • Privacy Policy
  • Contact

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT