Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 'Failed to validate purchase' on all my receipt data for Android #347

Open
famictech2000 opened this issue Jul 14, 2021 · 5 comments

Comments

@famictech2000
Copy link

I am able to get the proper validation for Apple IAP but I can not get a single one for Android.

I get the following
Screen Shot 2021-07-13 at 9 21 11 PM

Can anyone please let me know if I am doing something wrong!!

@lelzd3
Copy link

lelzd3 commented Jul 30, 2021

Hello, @famictech2000,

Have you found any solution yet, currently I am facing the same issue?

@famictech2000
Copy link
Author

@lelzd3 I have not... I am looking to possibly do other receipt validation, which is a shame cause it works for iOS. I will keep you posted on any progress, please do the same if you find a solution.

@lexmihaylov
Copy link

@famictech2000 @lelzd3
This is an issue with google play services. Resetting the client secret and tokens should fix the issue.

@famictech2000
Copy link
Author

@lexmihaylov sorry im new to Android and their Play store, how does one reset the secret and token?

@lexmihaylov
Copy link

@famictech2000 you can follow this guide https://developers.google.com/android-publisher/authorization, but instead of creating a new project you should select your project from the Google Play Console. You will be redirected to the Google Cloud Console where you should find the clientID that you are using it and click on it. A management page will popup for this clientID. At the very top you should see a "Reset Key" button. After resetting the key follow the steps from the guide listed under "Generating a refresh token" to get a new refresh token and access token. Lastly just update the client secret (client key), refresh token and access token in your application's configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants