To enable Google Wallet passes for your contacts, you need to create a Google certificate and connect it to your Brevo account.
Before you start
- Ensure you have a Google account with an access to the Google Cloud Console
- Ensure you have installed on your computer:
- Android Studio
- Git
- Node.js (version 10 or above)
- You can only add one Google certificate per Brevo account. A certificate cannot be deleted because it is linked to contacts who used it to add their wallet card. If the certificate is removed, those contacts will no longer receive notifications or updates associated with cards created under that certificate.
Step 1: Sign up for a Google Wallet API issuer account
An issuer account is required to create and distribute passes for Google Wallet.
To create a Google Wallet API issuer account:
- Open the Google Pay & Wallet Console.
- Follow the on-screen instructions to create an issuer account.
- Select Google Wallet API.
- Confirm that you agree to the terms of service and privacy policy.
- Copy the Issuer ID value and save it for later.
- Under the Manage tab, select Set up test accounts.
- Add any email addresses you will use in this codelab.
Step 2: Create a service account and key
A service account and its associated key are required to call the Google Wallet API. The key file you generate in this step is the certificate you will upload to Brevo.
Enable the Google Wallet API
- Sign into the Google Cloud Console.
- Create a new Google Cloud project or select an existing one. To learn more, check Google Developer's official documentation.
- Enable the Google Wallet API page for your project.
Create a service account
First, create a service account:
- In the Google Cloud Console, go to Service accounts.
- Enter a name, an ID, and a description for your service account.
- Click Create and continue.
- Click OK.
Create a service account key
Then, create a key for that service account:
- Click on the service account you just created.
- Select the Keys tab.
- Click Add key, then select Create new key.
- Select JSON as the key type.
-
Click Create. The JSON key file downloads automatically to your computer.
❗️ ImportantKeep this JSON key file secure. It contains a private key that identifies your application. Do not share it or store it in a public location.
Authorize the service account
After downloading the key file, you have to authorize the service account so it can manage Google Wallet passes in your issuer account.
- Open the Google Pay & Wallet Console.
- Select Users.
- Select Invite a user.
- Enter the email address of your service account. It follows this format:
service-account-name@project-id.iam.gserviceaccount.com. - Select Developer or Administrator from the Access level dropdown menu.
- Select Invite.
Step 3: Add the Google certificate to Brevo
Once your Google configuration is complete, upload the JSON key file to Brevo to connect your Google Wallet account:
- From your Brevo account, click the account drop-down and go to Settings > Marketing > Wallet credentials.
- Click Add credentials.
- Under Application, choose Google Wallet.
- Enter a name for your Google certificate that will help you identify it in the list.
- Paste the Issuer ID value you saved when signing up for a Google Wallet API issuer account.
- Upload the JSON credentials file you downloaded from the Google Cloud Console.
- Click Save credentials.
❓When should I renew my certificate?
If your certificate is compromised, you need to renew it while keeping the same issuer ID. To do so, retrieve the issuer ID you saved when signing up for a Google Wallet API issuer account, then recreate a service account key.
⏭️ What's next?
- Create, add, or extend an Apple certificate for Brevo Wallet
- Create a wallet campaign
- Set up an automation to notify wallet contacts and/or move them to another pass
- Send geofencing notifications to wallet pass holders
🤔 Have a question?
If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.
If you’re looking for help with a project using Brevo, we can match you with the right certified Brevo Agency partner.