Comments (11)
hi @ncalteen all good now , you 're the issuer account was not properly setup, but once google approved the account all went fine
from rest-samples.
from rest-samples.
Hello,
Apologies for the delay getting back to you on this. My initial thought was that the issue could be related to invalid time intervals for the pass object. In testing, however, I was unable to reproduce the issue.
Would you be able to provide the pass object definition (removing any sensitive data)?
from rest-samples.
Hello again,
After doing some further research, this may be your issuer account being in developer mode. The best course of action would be to contact Google Wallet support to assist.
from rest-samples.
can this repo be used with a google temporary issuer account? I'm getting this same error
from rest-samples.
I'll reopen this issue and test it out. I'll send another response soon!
from rest-samples.
I did some testing and came to the following results:
If I create a temporary issuer account using my regular email, I get a "something went wrong" error when using the JWT creation methods in this repository (testing with the Python create_jwt_save_url
method). This is because the JWT is signed by the service account key used in the auth
method, which does not have permissions to the temporary issuer account.
However, if I create the temporary issuer account using my service account email, I get the same error as you. This is because the temporary issuer accounts are in developer mode (the same issue you faced originally). They are intentionally set up this way, so only email addresses that have permissions to the issuer account are able to save the passes.
One solution that could work in your case would be to create another issuer account that is a "child" of your main issuer account. This way you do not need to populate your main issuer account with test passes. When you create a new issuer account using one that is already approved, it will also be approved automatically. The steps below outline how to do this:
-
Using your service account credentials and your existing issuer account, call
create_issuer_account
to create a new issuer account. Make sure to give it a name and email that identify it as used for testing.new_issuer_id = demo.create_issuer_account(issuer_name="MyCompany - TEST", issuer_email="[email protected]")
-
Next, update the permissions of the issuer account to include any email addresses that need access to create/edit passes.
demo.update_issuer_account_permissions(issuer_id=new_issuer_id, permissions:[ { "emailAddress": "[email protected]", "role": "OWNER" }, # repeat for each email/role ])
After that, you should be able to use this issuer ID for testing purposes.
Please let me know if this helps, and if you have any other questions!
from rest-samples.
Thanks for taking the time to respond.
I tried your suggestion, and the call to create_issuer_account
yields the following error:
{ "error": { "code": 403, "message": "Service account or user must already be shared with a non suspended issuer.", "errors": [ { "message": "Service account or user must already be shared with a non suspended issuer.", "domain": "walletobjects", "reason": "permissionDenied" } ] } }
I get this error for all values of issuer_email
, I tried my google account email, the service account which the temporary issuer account is linked to, and creating a second service account in google cloud console and giving it owner status. Even with a string which is not a valid email, the error is the same.
from rest-samples.
How long ago did you create the temporary issuer account? They are only valid for 7 days.
Also, the create_issuer_account
call must be made with a service account associated with a non-temporary issuer account (one you created in the Google Pay and Wallet Console).
from rest-samples.
sorry about the delay responding, I'm reasonably sure the issuer account wasn't expired at the time (but I might've been wrong), but it would definitely be by now. If create_issuer_account
must be called using a non temporary account, how could this be used to create an issuer account that wasn't in developer mode?
from rest-samples.
Hello,
If the calling issuer account is in developer mode, then any accounts it creates will also be in developer mode. In order to create production issuer accounts, you would first need a production account. To get the first one, you would need to reach out to Google Support. If you go into the Google Pay & Wallet Console, the Contact support option should get you in contact with someone who can help you with getting the main account approved.
I hope this helps!
from rest-samples.
Related Issues (20)
- GITHUB_TOKEN Permissions Actions: write Checks: write Contents: write Deployments: write Discussions: write Issues: write Metadata: read Packages: write Pages: write PullRequests: write RepositoryProjects: write SecurityEvents: write Statuses: write Secret source: Actions Prepare workflow directory Prepare all required actions Getting action download info Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11) Download action repository 'actions/setup-python@v4' (SHA:65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236) Complete job name: update-date
- 0xbB297d8E8bE2D24FC54B2Ef834D9FbE2c373e064
- 18ga7JY5DeQrGxms1k6k4Qh2DDX43ntiZU HOT 3
- Barcode type must be set error since update
- PHP example with ServiceAccountCredentials class vs keyFilePath HOT 8
- Google service "Walletobjects" does not exist or was removed previously HOT 2
- It my HOT 1
- Gw
- how does the google wallet UI handle the hairline (black in first frame, white in second frame) ?
- Generic pass HOT 1
- Creating generic pass with template info using google client library HOT 1
- Problem with generate google passes using .Net C# HOT 2
- @miguelRedit I'm also looking for a way to create a google generic pass using C#, but no results have been found. Have to got anything? Please let me know
- Grateful
- I want Google wallet accessible in Nigeria HOT 1
- Google Wallet Generic Pass Removing Card Title and Custom Font Color HOT 1
- mubashrfrn.md
- Ali AlAli
- https://aljbore.co.uk/
- Getting permission denied while creating passClass HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rest-samples.