Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Wallet Codelab

Overview

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:

  1. Create a new issuer account in development mode
  2. Create a service account for issuing passes
  3. Create a new Generic pass class
  4. Create a new pass object
  5. Create an "Add to Google Wallet" button to save a pass
  6. Display the button in your Web application

Code Files

Directory Description
web/ The sample app that you will customize
web_complete/ The same sample app with all steps completed

web_complete/ Directory Contents

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 definitions
    • createPassObject() 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

Key Features Implemented

  • 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

Support

For any questions or issues, please submit an issue on this repository.

About

Sample code used for the Google Wallet Web Codelab

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages