/google-pay-button

Google Pay button - React component and custom element

Primary LanguageTypeScriptApache License 2.0Apache-2.0

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:

Buy with Google Pay

This repository contains Google Pay button implementations for compatible with popular website frameworks even easier.

Web component

npm version

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

npm version

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 as been created to make it just as easy to integrate Google Pay into your React website.

npm install @google-pay/button-react

Find out more about the Google Pay React 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.