Skip to main content
Question

PurchaseInvalidError - Android


Forum|alt.badge.img+1

Hello,

I am testing in app subscriptions in my app. Actually it’s been working really fine till today. I cancel and restart muy subscription many times to test the features. Today when i try to subscribe to app i have this message below;

PurchasesError(code=PurchaseInvalidError, underlyingErrorMessage=Error updating purchases. DebugMessage: Expired Product details. Please fetch product details again and use it to retry the call.. ErrorCode: DEVELOPER_ERROR., message='One or more of the arguments provided are invalid.')

 

I am fetching product informations correctly (like price ...etc). What should i do?

11 replies

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • 382 replies
  • April 21, 2023

Hey @ugursnr ,

 

The error that you are seeing usually indicates one of the provided arguments for the purchase was invalid, including the payment method.

The problems that will trigger this on Android:

To resolve this, we recommend that you ensure the device payment method is valid and all arguments passed in are correct.


Forum|alt.badge.img+3
  • New Member
  • 1 reply
  • December 15, 2023

I'm getting the same problem but I'm on sandbox, so what should I do?


alvish0407
Forum|alt.badge.img
  • Member
  • 8 replies
  • January 6, 2025
bkr-b1c91c wrote:

I'm getting the same problem but I'm on sandbox, so what should I do?

Same issue. have you found the solution ?


Forum|alt.badge.img+8
  • RevenueCat Staff
  • 539 replies
  • January 6, 2025

Hi ​@alvish0407, I found a similar case where a developer had added their test user to the closed test track in Google Play Console, but hadn't added them as a license tester. Could that be the case here as well? I recommend making sure everything in your configuration and your testing setup is correct by double-checking our guide here: www.revenuecat.com/docs/test-and-launch/sandbox/google-play-store#create-a-test-user-and-configure-licensing-testing 


alvish0407
Forum|alt.badge.img
  • Member
  • 8 replies
  • January 7, 2025

Hello ​@Haley Pace,

Thank you for your response. I have verified that the email address has consistently been present in the license tester. I have been using this email address for the past two months.

I suspect that the issue may be related to the “Multiple users” feature on my Moto phone. I had been experimenting with this feature to create new users, but I eventually disabled it, leaving only one user active. However, after disabling the feature, I was able to confirm that I am still logged in using the same email address on my device account as before, both on my phone and on the Google Play Store.


alvish0407
Forum|alt.badge.img
  • Member
  • 8 replies
  • January 8, 2025
alvish0407 wrote:

Hello ​@Haley Pace,

Thank you for your response. I have verified that the email address has consistently been present in the license tester. I have been using this email address for the past two months.

I suspect that the issue may be related to the “Multiple users” feature on my Moto phone. I had been experimenting with this feature to create new users, but I eventually disabled it, leaving only one user active. However, after disabling the feature, I was able to confirm that I am still logged in using the same email address on my device account as before, both on my phone and on the Google Play Store.

Logging out of the Play Store and then re-logging in resolved the issue.


Forum|alt.badge.img+6
  • Dedicated Member
  • 29 replies
  • February 6, 2025

This error may happen in case the user (or the developer acting like a user to test the app) changes the device date and time on Android to a future date and then interacts with the Google Play purchases system.

This makes Google Play regard the subscription as expired until the device reaches that future date again.

Hopefully I had done this test increasing just one day to the devices date and time, so after one day it started working well again.

Another option that you can try, in case you have made this change to the device date and time, is to clear the Google Play app cache and then restart the Android device.

I am not sure if clearing the cache is necessary or if I had just wait a bit more the error would be gone too. But the fact is that I experienced this error for at least 8 hours from yesterday night until today morning. It was still not working today, and started working again after I cleared Google Play app cache and restarted my Android device.

You can also try logging out from the Google Play and logging back in, or to switch accounts if you have multiple Google Accounts registered on your device.

In summary, this error might be related with Google Play cached state, which you can try resetting by doing one of the things I sugested above.


Forum|alt.badge.img
  • Member
  • 8 replies
  • February 14, 2025
Haley Pace wrote:

Hi ​@alvish0407, I found a similar case where a developer had added their test user to the closed test track in Google Play Console, but hadn't added them as a license tester. Could that be the case here as well? I recommend making sure everything in your configuration and your testing setup is correct by double-checking our guide here: www.revenuecat.com/docs/test-and-launch/sandbox/google-play-store#create-a-test-user-and-configure-licensing-testing 

Hi ​@Haley Pace, I think that this is exactly the error that I made. I didn’t realize that I had to add my email to the list of the license testers, so when I tested the sdk I made a real purchase. I canceled it, and in between I discovered this list of license testers. I added my email there, but now when I try to purchase the package on my phone, I get this error in a drawer opened by android:

error retrieving information from server revenuecat. PG-GEMF-01

with a button “Got it”.

What’s the procedure to reset my account in a clean state here? I tried switching to another Google account in Google Play but the problem persists.
 


Forum|alt.badge.img
  • Member
  • 8 replies
  • February 14, 2025

I managed to fix the bug by signing out of all my google accounts in the Android settings, deleting the app, and rebooting my phone.


Forum|alt.badge.img+8
  • RevenueCat Staff
  • 539 replies
  • February 14, 2025

Hi ​@MagUnsafe sometimes having multiple Google accounts on a device can interfere with testing. The best thing to do is just be logged in with one licensed tester Google account at a time.

In regards to the PG-GEMF-01 error, we do not normally see this but it is an error from Google and it looks like it's most likely caused by something on the device’s end. Here's some things to check:

  • A temporary technical glitch in the phone (check network connection)
  • Google Play Store is disabled on the device
  • Google Play Store cache or application data is corrupted
  • Outdated or incompatible version of the Play Store
  • Outdated or incompatible version of the Android OS
  • Issues with the user's Google account
    • (for example, I saw one user on Reddit mention that they had two different Google accounts and was trying to use the wrong one for Google Play)
  • Issues with the user's payment information 

 
Some additional links that may be helpful, a user's tutorial on how they solved the issue themselves: https://www.tolaris.com/2011/12/18/android-market-error-while-retrieving-information-from-server/#solution
And a bug report on Google's Issue tracker that has unfortunately been open since 2012 (different error code but same message): https://issuetracker.google.com/issues/36952161


Forum|alt.badge.img
  • Member
  • 8 replies
  • February 15, 2025

Thank you! Yeah, it seems a little difficult to know what is exactly going on. Those error codes seem to be internal codes for Google employees. In any case, doing what I did did reset everything correctly.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings