google-pay/google-pay-button
关于
Google Pay button - React, Angular, and custom element
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文The Google Pay button
The Google Pay API enables fast, simple checkout on your website. This provides convenient access to hundreds of millions of cards that are saved to Google Accounts worldwide.
See Google Pay in action:
This repository contains Google Pay button implementations compatible with several popular frameworks.
Web
This is a bare bones, plain vanilla JavaScript implementation of the Google Pay button.
Web component
The Google Pay web component button makes it easy to integrate Google Pay into your website using standards based custom elements. Web components can be used directly in a standard HTML web application as is, and is also compatible with many popular web frameworks.
npm install @google-pay/button-element
Find out more about the Google Pay web component button.
React
Web components are more difficult to consume in a React application due to the extra work involved in binding to web component properties with React.
A separate Google Pay React button has been created to make it easy to integrate Google Pay into your React website.
npm install @google-pay/button-react
Find out more about the Google Pay React button.
Angular
An Angular version of the Google Pay button has been created to make it easier to integrate Google Pay
into your Angular website. The advantage of using the Angular version of the Google Pay button over the web component is
that it eliminates the need to register CUSTOM_ELEMENTS_SCHEMA.
npm install @google-pay/button-angular
Compatibility
| Angular Version | @google-pay/button-angular Version |
|---|---|
| 12 – 20 | v3.x |
| 21 – 22+ | v4.x |
Find out more about the Google Pay Angular button.
Other frameworks
The intention is for the web component to support other web frameworks. Support for additional framework specific libraries will be considered based on demand.
Have any questions?
Ask it on the discussions section of the Google Pay button project.
探索相关项目
加载中…