Gathering detailed insights and metrics for @google-pay/save-button-element
Gathering detailed insights and metrics for @google-pay/save-button-element
Gathering detailed insights and metrics for @google-pay/save-button-element
Gathering detailed insights and metrics for @google-pay/save-button-element
Save to Google Pay button - React, Angular, and custom element
npm install @google-pay/save-button-element
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (73.98%)
JavaScript (13.53%)
Shell (12.49%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
13 Stars
27 Commits
5 Forks
8 Watchers
63 Branches
3 Contributors
Updated on Jun 18, 2025
Latest Version
1.0.0
Package Id
@google-pay/save-button-element@1.0.0
Unpacked Size
68.25 kB
Size
14.58 kB
File Count
9
NPM Version
6.14.11
Node Version
12.21.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
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.
1npm install @google-pay/save-button-element
1<save-to-google-pay-button jwt="eyJhbGci...7_eD2kT3_IuHxw" height="standard" textsize="large"> 2</save-to-google-pay-button>
An HTML example can be found in the examples folder of this repository.
The Vue example is very similar to the HTML version above. An example can be found in the examples folder of this repository.
Additional examples included:
Property | Type | Remarks |
---|---|---|
jwt |
|
Required. Google Pay API for Passes Json Web Token (JWT) used to save the loyalty pass to Google Pay. A JWT can be generated by following the instructions at the Save passes to Google Pay page. |
height |
|
Optional. Height of button to display. Possible values are: Default value |
size |
|
Optional. Width of button to display. You can set Default value |
textsize |
|
Optional. When Default value |
theme |
|
Optional. Theme of button to display. Possible values are: Default value |
Callback | Remarks |
---|---|
onSuccess |
A callback function that is invoked when the user successfully saves the pass to their account. Also raised as event |
onFailure |
A callback that is invoked when an error occurs in the process of saving the pass. The first paramemer is a Also raised as event |
onProvideJwt |
A callback function that can be used to intercept and potentially manipulate the JWT before the pass is saved to Google Pay. This function must return a |
Visit the Google Pay API for Passes for Web API Reference for more information about integrating the different button properties.
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.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 0/21 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
103 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More