Receiving error while doing in-app purchase in my app in android. Error while retrieving information from server [DF-AA-20]
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.
Make sure you have followed the below steps:
Login to the Play Console with your developer account.
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.
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.
Click Settings > Account details, then in the License Testing section, add the Google email addresses for your tester accounts.
Under In-app Products, create your product and make active.
Use your product id in code and make a signed build and Publish in the Alpha channel wait until the status change to "Published".
Test the app in tester account enabled device.
ProductID is invalid! maybe have space char or other chars!
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With