• Stars
    star
    250
  • Rank 161,683 (Top 4 %)
  • Language
    TypeScript
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated 5 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Google Pay button - React, Angular, and custom element

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 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

npm version

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

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.

More Repositories

1

android-quickstart

Google Pay API sample application for Android
Kotlin
367
star
2

flutter-plugin

Dart
141
star
3

wallet-samples

Samples for the Google Wallet REST APIs
C#
137
star
4

passes-rest-samples

Server-side samples for the Google Pay API for Passes
C#
96
star
5

pass-converter

Tool to convert passes for different wallet apps from one format to another
JavaScript
78
star
6

pay-server-demos

Google Pay with various Payments Service Providers (PSPs)
JavaScript
40
star
7

react-store

Example shop/store built with React
TypeScript
29
star
8

payment-data-cryptography-dotnet

Sample implementation of Google Pay Payment Data Cryptography in C#
C#
29
star
9

compose-pay-button

An Android library that provides a Jetpack Compose wrapper on top of the Google Pay Button API.
Kotlin
27
star
10

wallet-web-codelab

Sample code used for the Google Wallet Codelab
JavaScript
21
star
11

s2gp-quickstart-android

Save to Google Pay Quickstart
Java
21
star
12

react-native-make-payment

React Native library for making native payments
Kotlin
17
star
13

tink-jni-examples

Sample codes for using Tink via JNI
C#
16
star
14

firebase-extension

JavaScript
10
star
15

gpay-live-demo

Live demonstration buttons for https://developers.google.com/pay/api/web/guides/resources/demos
HTML
9
star
16

littlebear-web-push-provisioning

Sample code demonstrating how to call the Google Pay Web Push Provisioning API.
JavaScript
8
star
17

walletobjects-utils

A tool to help you get an OAuth 2.0 bearer token.
8
star
18

save-to-google-pay-button

Save to Google Pay button - React, Angular, and custom element
TypeScript
7
star
19

smart-tap-sample-app

Java
7
star
20

angular-store

Example store built with Angular
TypeScript
7
star
21

gpay-loyaltyapi-demo

Google Loyalty API demo application and code sample
JavaScript
6
star
22

gsp-pgp-java

Google Standard Payments PGP Java lib
Java
4
star
23

loyalty-api-kotlin

Code example for integrating with the Google Pay Passes API for Loyalty
Kotlin
2
star
24

wallet-android-codelab

JavaScript
2
star