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

Wallet API error #2557

Closed
pws2016 opened this issue Jan 31, 2024 · 2 comments
Closed

Wallet API error #2557

pws2016 opened this issue Jan 31, 2024 · 2 comments

Comments

@pws2016
Copy link

pws2016 commented Jan 31, 2024

Hello,
i try using the API Wallet and i creqte the API key in console with domain restriction.
But the code return me an error:
[{"message":"Login Required.","domain":"global","reason":"required","location":"Authorization","locationType":"header"}]

I use the PHP library and i write this code:
$client = new Google\Client(); $client->setApplicationName('Wallet Objects App'); $client->setDeveloperKey(GOOGLE_WALLET_API_KEY);

How i can fix this?

Thanks

@bshaffer
Copy link
Contributor

bshaffer commented Jul 3, 2024

Hello @pws2016 !

The code you've provided looks correct to me - could you provide the rest of your code as well so we can help you debug better?

@Hectorhammett
Copy link
Contributor

Closing the issue due inactivity.

Please let us know if we can help you further with a code example @pws2016 :)

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