Posted by Petra Cross, Engineer, Google Pockets and Jose Ugia, Google Developer Relations Engineer
Google Pay API for Passes is now known as Google Pockets API
Previously generally known as Google Pay API for Passes, the Google Pockets API helps you to digitize every little thing from boarding passes to loyalty applications, and have interaction your prospects with notifications and real-time updates.
New options in Google Pockets API
Assist for Generic Cross Sort
The Google Pay API for Passes supported 7 kinds of passes: provides, loyalty playing cards, present playing cards, occasion tickets, boarding passes, transit tickets and vaccine playing cards. However what if you wish to challenge passes or playing cards that don’t match into any of those classes, resembling membership playing cards, or insurance coverage playing cards?
We’re thrilled to announce assist for generic passes to the Google Pockets API so you’ll be able to customise your move objects to adapt to your program traits. The choices are infinite. If it’s a card and has some textual content, a barcode or a QR code, it may be saved as a generic card.
You now have the flexibleness to regulate the look and design of the cardboard itself, by offering a card template that may comprise as much as 3 rows with 1-3 fields per row. It’s also possible to configure quite a few attributes such because the barcode, QR code, or a hero picture. Try our documentation to be taught extra about create generic passes.
Whereas generic passes can be utilized to imitate the looks of any present supported move kind (resembling a loyalty card), we suggest you to proceed to make use of specialised move varieties when accessible. For instance, once you use the boarding move kind for boarding passes your customers obtain flight delay notifications.
Grouping passes and mixing move varieties
With the brand new Google Pockets API, you can too group passes to supply a greater expertise to your customers when a number of passes are wanted. For instance, you’ll be able to group the entry ticket, a parking move, and meals vouchers for a live performance.
In your person’s checklist of passes, your customers see a move tile with a badge exhibiting the variety of objects within the group. Once they faucet on this tile, a carousel with all passes seems, permitting them to simply swipe between all passes within the group.
Right here is an instance JSON Internet Token payload exhibiting one supply and one occasion ticket, combined collectively and sharing the identical groupingId. Later, if it is advisable add or take away passes to/from the group, you should use the REST API to replace the grouping info.
A observe about Google Pay API for Passes:
Though we’re introducing the Google Pockets API, all present developer integrations with the earlier Google Pay Passes API will proceed to work. When the Google Pockets app is launched in just some weeks, ensure that to make use of the brand new “Add to Google Pockets” button within the up to date button pointers.