@google-pay/save-button-element
v1.0.0
Published
Web component for the Save to Google Pay button
Downloads
61
Maintainers
Readme
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.