This project contains sample code used for the Google Wallet codelab for Web. This codelab demonstrates how to perform the following tasks:
This repository contains the resources used in the Create passes on Android using the Google Wallet API codelab. This codelab demonstrates how to perform the following tasks:
- Create a new issuer account in development mode
- Create a service account for issuing passes
- Create a new Generic pass class
- Create a new pass object
- Create an "Add to Google Wallet" button to save a pass
- Display the button in your Web application
| Directory | Description |
|---|---|
| web/ | The sample app that you will customize |
| web_complete/ | The same sample app with all steps completed |
The web_complete/ directory contains the fully implemented Google Wallet web application with the following key files:
- app.js - Express.js server with complete Google Wallet API integration
createPassClass()function for creating event ticket class definitionscreatePassObject()function for generating individual pass objects with JWT tokens- Express routes handling form submissions and pass creation
- package.json - Node.js dependencies including Express, Google Auth Library, and JWT
- public/ - Frontend assets including HTML forms and static files
- CLAUDE.md - Detailed documentation for development and architecture
- Google Wallet API authentication using service account credentials
- Event ticket pass class and object creation
- JWT token generation for secure pass delivery
- Express.js web server with form handling
- Integration with Google Wallet "Add to Wallet" functionality
- Transit object management capabilities:
- Read and list transit objects
- View detailed transit object information
- Update existing transit objects
For any questions or issues, please submit an issue on this repository.