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

How do you validate a Google Pay token for a sandbox? #279

Open
xiaolibuzai-ovo opened this issue May 16, 2024 · 5 comments
Open

How do you validate a Google Pay token for a sandbox? #279

xiaolibuzai-ovo opened this issue May 16, 2024 · 5 comments
Labels

Comments

@xiaolibuzai-ovo
Copy link

as the title

@xiaolibuzai-ovo
Copy link
Author

xiaolibuzai-ovo commented May 16, 2024

I got a token from the sandbox environment for server-side validation, but got the following error

googleapi: Error 400: Invalid Value, invalid

I use the VerifySubscriptionV2 api

Is it because of the sandbox?

@richzw
Copy link
Collaborator

richzw commented May 16, 2024

I got a token from the sandbox environment for server-side validation, but got the following error

googleapi: Error 400: Invalid Value, invalid

I use the VerifySubscriptionV2 api

Is it because of the sandbox?

No, it is no realted to sandbox. Both the sandbox and production receipt could be verified through VerifySubscriptionV2 API.

@xiaolibuzai-ovo
Copy link
Author

I got a token from the sandbox environment for server-side validation, but got the following error

googleapi: Error 400: Invalid Value, invalid

I use the VerifySubscriptionV2 api
Is it because of the sandbox?

No, it is no realted to sandbox. Both the sandbox and production receipt could be verified through VerifySubscriptionV2 API.

Thanks for you reply!

What could possibly be causing that? I make sure that packageName exists and that the service account has api access

@richzw
Copy link
Collaborator

richzw commented May 16, 2024

I got a token from the sandbox environment for server-side validation, but got the following error

googleapi: Error 400: Invalid Value, invalid

I use the VerifySubscriptionV2 api
Is it because of the sandbox?

No, it is no realted to sandbox. Both the sandbox and production receipt could be verified through VerifySubscriptionV2 API.

Thanks for you reply!

What could possibly be causing that? I make sure that packageName exists and that the service account has api access

First of all, please make sure the purchase token is correct. Maybe you could find something useful from this link https://stackoverflow.com/questions/46055214/google-play-developer-api-400-invalid-value-inapppurchases.

@LofiSu
Copy link

LofiSu commented Oct 30, 2024

You speak English so well

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

No branches or pull requests

3 participants