A minimal wrapper around Google's pay client that allows to save google wallet passes to an android device
npm install rn-google-wallet-pass
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
See the contributing guide to learn how to contribute to the repository and the development workflow.
PayClient api (This is the Android SDK API) Google IO Reveal (helpful intro)
MIT
Made with create-react-native-library