Skip to content

m1ga/ti.googlepay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Pay

Add Google Pay to your app:

Events

  • available
  • success
  • canceled
  • error
  • ready

Methods

  • setupPaymentGateway: name, apiKey
  • createPaymentRequest: environment, price, countryCode, currencyCode, merchantName, supportedNetworks
  • doPayment: show the payment screen

Constants

Gateways:

  • PAYMENT_GATEWAY_STRIPE

Environment:

  • ENVIRONMENT_PRODUCTION
  • ENVIRONMENT_TEST

Networks:

  • PAYMENT_GATEWAY_STRIPE
  • PAYMENT_NETWORK_VISA
  • PAYMENT_NETWORK_MASTERCARD
  • PAYMENT_NETWORK_DISCOVER
  • PAYMENT_NETWORK_AMEX
  • PAYMENT_NETWORK_INTERAC
  • PAYMENT_NETWORK_MIR
  • PAYMENT_NETWORK_JCB

Example

see example/app.js