- Android Phone w/ Android Pay set up
- Make sure you have 11.4+ of Google Play Services
- Chrome M61 for Android
- Enable the following flag: chrome://flags/#pay-with-google-v1
The following examples show how to use the Google Payment API with PaymentRequest.
hosted on androidpayweb.firebaseapp.com
simple.html Demo
- Sample checkout page that supports Pay with Google and other payment methods
- Returns either a gateway tokenized form of payment from user's Google Account or a card stored in Chrome
button.html Demo
- Sample checkout page that shows a Pay with Google button
- Google is the only supported payment method
- Returns a gateway tokenized form of payment from the user's Google Account
button-direct.html Demo
- Sample checkout page that shows a Pay with Google button
- Google is the only supported payment method
- Returns a card or token details directly (not a gateway token) from the user's Google Account
- Reference iframe hosted androidpayweb.firebaseapp.com used by iframe examples (below)
- Returns a gateway tokenized form of payment from the user's Google Account
hosted on androidpayiframe.firebaseapp.com
Platform.html Demo
- Shows how a 1:many platform can use a hosted iframe to call the Google Payment API from multiple domains
- Calls iframe.html (above) which returns a gateway tokenized form of payment from the user's Google Account
AMP.html Demo
- Call Pay with Google from within an AMP page
- Calls iframe.html (above) which returns a gateway tokenized form of payment from the user's Google Account