All applications that access a Google API must be registered through the
API Console. The result of this registration process is a set of values that are known
only to Google and your application (client ID, email address, and private key). To register your
for Google Pay API for Passes access. If you have already done this, you may skip this step.
Click the Create Project button or select Create a Project
from the dropdown located at the top of the page. The New project page appears.
Enter a project name.
Click Create. When configuration is complete, a notification appears in the
top right corner. Click on this notification to navigate to the project's home page.
Click Go to APIs overview. Then, click ENABLE APIS AND SERVICES.
Search for Google Pay Passes API, and click Enable.
Click Credentials in left-hand menu.
Click the Create Credentials button then select
Service Account Key.
Create your service account key on the page, where you may need to create a service account as
well. No additional roles are needed for this service account. Choose json as the key type
and then click Create.
A new Service Account has been added to your list of accounts and a private key is downloaded
to your local file system. This is the only copy of this key, and you are responsible for
keeping this key file in a secure location. You will use this key later.
Copy the Service Account Email of the key, which is found by clicking Manage service
accounts from the Credentials tab. You will use this address later.
Warning: Your private key must be stored and managed securely by you for
both the developer and the production environments. Google only stores a copy of the public key.
More information on managing your service account private key can be found
2. Tie your service account to your Google Pay API for Passes account
Your Google Pay API for Passes account should have been created for you by your Google point of
contact. The Google Pay API for Passes Merchant Center is a web site you can use to manage your
account and all your associated classes and objects. Follow these steps to tie your service account
to the Google Pay API for Passes Merchant Center: