1.0.0 • Published 3 years ago

@google-pay/save-button-element v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

Save to Google Pay button web component

This is the web component for the Save to Google Pay button. This component can be used in standard HTML websites as well as websites built with many popular JavaScript frameworks.

Note that React and Angular developers should use the @google-pay/save-button-react and @google-pay/save-button-angular versions of this component.

Installation

npm install @google-pay/save-button-element

Example usage: HTML website

<save-to-google-pay-button jwt="eyJhbGci...7_eD2kT3_IuHxw" height="standard" textsize="large">
</save-to-google-pay-button>

An HTML example can be found in the examples folder of this repository.

Example usage: Vue website

The Vue example is very similar to the HTML version above. An example can be found in the examples folder of this repository.

Other examples

Additional examples included:

Documentation

Properties

Callbacks/events

Visit the Google Pay API for Passes for Web API Reference for more information about integrating the different button properties.

About this package

Note that this folder does not contain a package.json file. The package.json file is generated during the build process using the package-template.json where the version number is read from the package.json file defined in the root of this repository.