Skip to content

RN wrapper around Google's pay client to add wallet passes

License

Notifications You must be signed in to change notification settings

CoinCircle/rn-google-wallet-pass

Repository files navigation

rn-google-wallet-pass

A minimal wrapper around Google's pay client that allows to save google wallet passes to an android device

Installation

note: this is a native module for Android only (not supported with expo managed workflow)

npm install rn-google-wallet-pass

Usage

import { isSupported, addWalletPass, addWalletPassJWT } from 'rn-google-wallet-pass';

// ...

/* Must call isSupported first as it fetches the client */
if (await isSupported()) addWalletPass(jsonStringObject);
/* or for passing in jwt */
if (await isSupported()) addWalletPassJWT(jwtJsonStringObject);
// note: isSupported is async as it requires fetching the google pay client

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Helpful resources:

PayClient api (This is the Android SDK API) Google IO Reveal (helpful intro)

License

MIT


Made with create-react-native-library

About

RN wrapper around Google's pay client to add wallet passes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published