Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while retrieving information from server [DF-AA-20] [closed]

Receiving error while doing in-app purchase in my app in android. Error while retrieving information from server [DF-AA-20]

like image 246
S. Shaikh Avatar asked Dec 12 '17 09:12

S. Shaikh


People also ask

Why my Play Store is showing error retrieving information from server?

If you still see the 'Error retrieving information from server [RPC:S-7:AEC-0]' error try removing your Google account. You will have to re-enter the account before being able to download from the Play Store though. 1. Navigate to Settings, Accounts and then Google.


4 Answers

Make sure you have followed the below steps:

  1. Login to the Play Console with your developer account.

  2. Copy the application's public key (a base-64 string). You can find this in the "Services & APIs" section under "Development tools" and replace in your code.

  3. Make signed apk and upload (not publish) in ALPHA, and add your test account (the one you will use to test purchases) to the "testers" section of your app. Your test account CANNOT BE THE SAME AS THE PUBLISHER ACCOUNT.

  4. Click Settings > Account details, then in the License Testing section, add the Google email addresses for your tester accounts.

  5. Under In-app Products, create your product and make active.

  6. Use your product id in code and make a signed build and Publish in the Alpha channel wait until the status change to "Published".

  7. Test the app in tester account enabled device.

like image 181
Deven Avatar answered Oct 13 '22 23:10

Deven


ProductID is invalid! maybe have space char or other chars!

like image 44
ZeroYang Avatar answered Oct 13 '22 21:10

ZeroYang


Make sure that you are using the right ProductID and check if you have that ProductID set to "active" in "In-app products" in your Google Play Console.

You can also add a new ProductID and try if you get the same error.

like image 4
Parodius Avatar answered Oct 13 '22 23:10

Parodius


I had the same Issue, but as @Parodius says you need to change your product's SKU, I solved using:

 Bundle buyIntentBundle = mService.getBuyIntent(3, getActivity().getPackageName(),
                                        "remover_publicidad", "inapp", "DFOSYwWKWv");

Where "remover_publicidad" is my SKU. Also, If you wanna see the dialog with the button to proceed the purchase you must use an Android Device with a different Google Account than your developer account email.

like image 1
Eduardo Corona Avatar answered Oct 13 '22 21:10

Eduardo Corona