Skip to content

asieke/pwg_samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Payment API Reference

Getting Started

The following examples show how to use the Google Payment API with PaymentRequest.

Sample Implementations

pwg-main

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

iframe.html

  • Reference iframe hosted androidpayweb.firebaseapp.com used by iframe examples (below)
  • Returns a gateway tokenized form of payment from the user's Google Account

pwg-iframe

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

About

Pay with Google Samples (2017)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages