GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hjkws/vue-google-pay: Simple Vue wrapper for Google Pay

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
dist
dist
 
 
src
src
 
 
.babelrc
.babelrc
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 
webpack.config.js
webpack.config.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Vue Google Pay

A simple Vue wrapper for Google Pay

Please note that at the moment it doesn't support shipping and dynamic price update

Installation

npm install vue-google-pay

or

yarn add vue-google-pay

Usage

  1. Import the component
import { GooglePayButton } from 'vue-google-pay'
  1. Add the component
<GooglePayButton
  id="google-pay-btn"
  :options="options"
  @payed="processPayment($event)"
  @cancel="handleCancel"
/>
  1. Add options and methods
data () {
   return {
      environment: 'TEST',
      buttonColor: 'white',
      allowedCardNetworks: [
         'AMEX',
         'DISCOVER',
         'INTERAC',
         'JCB',
         'MASTERCARD',
         'VISA'
      ],
      allowedCardAuthMethods: ['PAN_ONLY', 'CRYPTOGRAM_3DS'],
      merchantInfo: {
         merchantName: 'Example Merchant',
         merchantId: '0123456789'
      },
      transactionInfo: {
         totalPriceStatus: 'FINAL',
         totalPrice: '1.00',
         currencyCode: 'USD',
         countryCode: 'US'
      },
      tokenizationSpecification: {
         type: 'PAYMENT_GATEWAY',
         parameters: {
            gateway: 'example',
            gatewayMerchantId: 'exampleGatewayMerchantId'
         }
      }
   }
},
methods: {
   payed (paymentData) {
      // process payment
   },
   cancelled () {
      // handle cancel event
   }
}

About

Simple Vue wrapper for Google Pay

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.