[ad_1]
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 often known as Google Pay API for Passes, the Google Pockets API enables you to digitize every thing from boarding passes to loyalty applications, and interact your prospects with notifications and real-time updates.
New options in Google Pockets API
Assist for Generic Move Kind
The Google Pay API for Passes supported 7 forms of passes: affords, loyalty playing cards, reward playing cards, occasion tickets, boarding passes, transit tickets and vaccine playing cards. However what if you wish to subject passes or playing cards that don’t match into any of those classes, akin to 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 go objects to adapt to your program traits. The choices are limitless. 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 pliability to manage the look and design of the cardboard itself, by offering a card template that may include as much as 3 rows with 1-3 fields per row. You may as well configure various attributes such because the barcode, QR code, or a hero picture. Take a look at our documentation to study extra about learn how to create generic passes.
Whereas generic passes can be utilized to imitate the looks of any current supported go kind (akin to a loyalty card), we advocate you to proceed to make use of specialised go varieties when accessible. For instance, once you use the boarding go kind for boarding passes your customers obtain flight delay notifications.
Grouping passes and mixing go 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 go, and meals vouchers for a live performance.
In your person’s checklist of passes, your customers see a go tile with a badge displaying 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 displaying one provide and one occasion ticket, blended collectively and sharing the identical groupingId. Later, if it is advisable to add or take away passes to/from the group, you should utilize the REST API to replace the grouping data.
A word about Google Pay API for Passes:
Though we’re introducing the Google Pockets API, all current 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 tips.
Study extra
[ad_2]