Create and add a Google certificate for Brevo Wallet

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:
  • 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. 

💡 Good to know
When you first create your issuer account, it operates in demo mode. In demo mode, only test users you configure in the Google Pay & Wallet Console can add the passes you create.

To create a Google Wallet API issuer account: 

  1. Open the Google Pay & Wallet Console.
  2. Follow the on-screen instructions to create an issuer account.
  3. Select Google Wallet API.
  4. Confirm that you agree to the terms of service and privacy policy.
  5. Copy the Issuer ID value and save it for later.
  6. Under the Manage tab, select Set up test accounts.
  7. 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

  1. Sign into the Google Cloud Console.
  2. Create a new Google Cloud project or select an existing one. To learn more, check Google Developer's official documentation.
  3. Enable the Google Wallet API page for your project.

Create a service account

First, create a service account:

  1. In the Google Cloud Console, go to Service accounts.
  2. Enter a name, an ID, and a description for your service account.
  3. Click Create and continue.
  4. Click OK.

Create a service account key

Then, create a key for that service account:

  1. Click on the service account you just created.
  2. Select the Keys tab.
  3. Click Add key, then select Create new key.
  4. Select JSON as the key type.
  5. Click Create. The JSON key file downloads automatically to your computer.

    ❗️ Important
    Keep 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.

  1. Open the Google Pay & Wallet Console.
  2. Select Users.
  3. Select Invite a user.
  4. Enter the email address of your service account. It follows this format: service-account-name@project-id.iam.gserviceaccount.com.
  5. Select Developer or Administrator from the Access level dropdown menu.
  6. Select Invite.

Step 3: Add the Google certificate to Brevo

💡 Good to know
You can only add one Google certificate per Brevo account.

Once your Google configuration is complete, upload the JSON key file to Brevo to connect your Google Wallet account:

  1. From your Brevo account, click the account drop-down and go to Settings > Marketing > Wallet credentials.
  2. Click Add credentials.
    wallet_add-credentials_en-us.png
  3. Under Application, choose Google Wallet.
    wallet_add-google-credentials_en-us.png
  4. Enter a name for your Google certificate that will help you identify it in the list.
  5. Paste the Issuer ID value you saved when signing up for a Google Wallet API issuer account.
  6. Upload the JSON credentials file you downloaded from the Google Cloud Console.
  7. 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?

🤔 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.

💬 Was this article helpful?

0 out of 0 found this helpful