Test

Google suggests the criteria in the following tables to determine if your transit passes are ready for public release.

All UI testing should be done with the use of the Google Pay app on Android-based devices.

General

This section lists criteria for general functional tests.

Test Expected result
Call the customer service phone numbers provided with the transit passes, if applicable. Customer service department is accessible with the provided phone number.

Classes and objects

This section lists criteria for tests that exercise classes or objects functionality.

Test Expected result
Use the REST API to add a message to the class. The message appears at the top of the list of messages in the expanded view of the transit pass on the Google Pay app.*
Set the first object.ticketLeg.departureDateTime on your transit pass to a time in the near future. Notification received three hours prior to object.ticketLeg.departureDateTime.
Classes have a reviewStatus of Approved. N/A

*If you plan to send messages to individual users, be sure to also use the REST API to test messages to individual objects.

User interface

This section lists criteria for tests that exercise general elements of the user interface.

Test Expected result
Ensure that the logo image describes the transit operator. N/A
Ensure that all required fields of your template are populated with correct information. N/A
Ensure that your images adhere to all image guidelines in the Brand guidelines. N/A
Ensure that your string values adhere to all headings guidelines in the Brand guidelines. N/A
Ensure that the transit pass renders correctly on device. N/A
Click the website link in the expanded view of a transit pass on the Google Pay app. Website link loads the correct web page.

Redemption testing

This section lists criteria for tests to be carried out at redemption locations.

Test Expected result
Test the barcode (object.barcode.value) scanning at a redemption location with the Google Pay app. Barcode scans and the transit pass is validated.
The transit operator’s service personnel are trained to handle transit pass scanning. N/A

Button tests

This section lists criteria for tests that exercise the Save to Google Pay button.

Test Expected result
Test the button in Chrome browser. Button renders and functions correctly on the partner's webpage in Chrome.
Test the button in Firefox browser. Button renders and functions correctly on the partner's webpage in Firefox.
Test the button in Safari browser Button renders and functions correctly on the partner's webpage in Safari.
Test the button in Internet Explorer 9 browser. Button renders and functions correctly on the partner's webpage in Internet Explorer 9, Citrix.
Test the button at different browser zoom levels. Button renders properly at various browser zoom levels
Test the button's rendering speed. A single button renders in no more than one second.

If you've designed your website so that the Save to Google Pay button disappears after a transit pass was saved:

  1. Click the Google Pay API for Passes button on your website.
  2. Remove the saved pass from Google Pay.
The Save to Google Pay button reappears on your website.
If you've designed your website so that the Save to Google Pay button disappears after a transit pass was saved: A string appears to indicate that the pass has been saved.

Save a pass

This section lists criteria for tests that exercise clicking the Save to Google Pay button.

Test Expected result
Click the Save to Google Pay button on your website. The JWT that's created contains all valid domains for button (https and http, not www).
Click the Save to Google Pay button on your website. The correct transit pass is saved to Google Pay.
Click the Save to Google Pay button on your website. The transit pass is saved and you cannot press the button again.
Click the Save to Google Pay button on your website. The JWT that's created references an approved class.

Brand guidelines

This section lists criteria to check the brand guidelines of the Save to Google Pay button.

Test Expected result
Ensure that your button adheres to the Save to Google Pay button placement section of the Brand guidelines. N/A
Ensure that your button adheres to the Save to Google Pay button design section of the Brand guidelines. N/A

Send feedback about...

Google Pay for Passes