wallet-samples icon indicating copy to clipboard operation
wallet-samples copied to clipboard

Samples for the Google Wallet REST APIs

Google Wallet Samples

This project contains samples for using the Google Wallet REST APIs in the following languages:

  • Java
  • C#
  • JavaScript (Node.js)
  • PHP
  • Python
  • Go

Within each language's directory, you'll find standalone samples for each of the pass types supported by the Google Wallet APIs.

Each sample demonstrates the following:

  • Authenticating using a Google Cloud service account
  • Creating, updating, and patching a pass class
  • Adding messages to a pass class
  • Creating, updating, and patching a pass object
  • Adding messages to a pass object
  • Expiring a pass object
  • Creating a signed JWT and a "Add to Google Wallet" URL
  • Performing batch API calls to improve performance