Unidy Docs

Google Wallet

Connect a Google Wallet issuer so customers can save tickets and subscriptions as native Google Wallet passes.

The Google Wallet plugin creates native Google Wallet passes for tickets and subscriptions. When a customer chooses Add to Google Wallet, Unidy creates or updates the pass at Google and sends the customer to Google's save page. Unidy keeps saved passes up to date and switches them off when their ticket or subscription is deleted.

For the differences to Apple Wallet and the pass content, see Wallet passes.

Web pages only

Customers save Google Wallet passes on the Unidy customer web pages. The SDK HTTP API and the REST API v2 do not offer a Google Wallet export yet.

Before you start

You need:

  • A Google Wallet issuer account in the Google Pay & Wallet Console and its Issuer ID (digits only). New issuers start in demo mode.
  • The service account email from your Unidy contact. Unidy signs in to Google with this account and enters its key for you.
  • Ticket and subscription categories with a logo.

Choose the brand scope before the first pass is saved. Once passes exist, the Issuer ID and the brand of the plugin can no longer be changed, because every pass at Google carries the Issuer ID.

Set up Google Wallet

  1. In the Pay & Wallet Console, open Users and invite the service account email as Developer.
  2. Unidy adds the Google Wallet plugin under Integrations → Add plugin with your Issuer ID and the Service account key (JSON), and runs Test connection. The plugin starts disabled.
  3. Switch on Enable wallet export on the ticket and subscription categories and configure their Wallet Pass settings. Add a Wallet export hero image and a Background colour if you want them.
  4. Unidy creates the first pass class for your issuer. Google requires one before it grants publishing access.
  5. In the Pay & Wallet Console, choose Request publishing access and wait for Google's approval.
  6. Enable the plugin on its settings page. The Add to Google Wallet badge then appears for exportable tickets and subscriptions.
  7. Save a sample pass on an Android phone. Change the ticket, for example its title, and check that the saved pass updates.

Demo mode

Until Google approves publishing access, passes show "[TEST ONLY]" and only users and test accounts of your issuer can save them. Ask your issuer administrator to add test devices' Google accounts as Developer.

Hosted ticket export options showing Add to Google Wallet and PDF Download.

Pass types

The style in the record's wallet_export chooses the Google pass type:

styleGoogle pass type
generic or missingGeneric pass
eventTicketEvent ticket
storeCardLoyalty card

The type is fixed when a customer first saves the pass. Google cannot change the type of a saved pass, so a later style change only applies to passes saved afterwards.

Event tickets of the same category and start time are stacked as one event in the customer's wallet. Subscriptions exported as event tickets are stacked by category.

What the pass shows

PartSource
Name at the toplogo_text from wallet_export, otherwise the brand's display name.
TitleThe primary field, otherwise the ticket or subscription title.
LogoThe category logo, placed in a padded square so Google's round crop keeps a margin.
BannerThe category's Wallet export hero image, scaled to fit 1032 × 812 px without cropping. Keep important content away from the top and bottom edges.
BackgroundThe category's Background colour. Google chooses the text colour. Without a colour, Google uses the main colour of the banner or logo.
Card fieldsThree rows of three fields: header, secondary and auxiliary. Further fields appear in the pass details.
QR codeqr_code from wallet_export, also printed as text below the code.
Valid untilTickets: end time plus the category's Ticket grace period after end time (hours), otherwise start time plus one day. Subscriptions: end time.
StateInactive records show as expired. Passive tickets show as inactive. Everything else is active.

On event tickets, the primary field's label appears as the ticket type in the pass details. Google sets the heading of that entry itself, and it cannot be changed.

Updates

Unidy updates saved passes when:

  • The ticket or subscription changes.
  • The category's Background colour, Logo or Wallet export hero image changes, or a ticket category's grace period.
  • A customer profile field or custom attribute shown on a version 2 pass changes.

Google updates the phone in the background. Updates only run while the plugin is enabled. A ticket or subscription whose wallet_export is cleared switches its pass off until the data returns.

Some changes do not reach saved passes until the next update or the next time the customer saves the pass. These include removing the hero image and changing the customer's language.

Disable or delete the plugin

  • Disable: the badge disappears and updates pause. Saved passes stay as they are.
  • Delete: the plugin is disabled and its deletion is scheduled for 24 hours later. Until then, the plugin's Danger Zone shows the scheduled time and Cancel deletion. Cancelling or enabling the plugin stops the deletion. After 24 hours, Unidy switches every saved pass off at Google and then removes the plugin. This can take a while for a large number of passes.

Google passes cannot be deleted, only switched off. Enable wallet export stays on the categories after the plugin is deleted.

Troubleshooting

SymptomNext check
Test connection failsCheck the Issuer ID and that the service account was invited as Developer on that issuer.
No Add to Google Wallet badgeCheck that the plugin is enabled, the category has Enable wallet export and the record has a qr_code.
The customer returns to the list with an errorGoogle refused the pass or was unreachable. Try again later. Contact Unidy if it persists.
The pass shows "[TEST ONLY]"The issuer is in demo mode. Request publishing access.
A saved pass does not updateCheck that the plugin is enabled. See Updates for the changes that update saved passes.
A loyalty card cannot be savedGoogle requires a logo for loyalty cards. Check the category logo.

Was this page helpful?