0.1.2 • Published 5 months ago

softspace_rn v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

tap_pay_razer_rn

Enable contactless payments on react native

Installation

npm install softspace_rn

Usage

import {
  initFasstapMPOSSDK,
  refreshToken,
  startEMVProcessing,
} from 'softspace_rn';

// initialise the library with your creds
React.useEffect(() => {
  // add your configurations here
  const config = {
    attestationHost: '',
    libSecretKey: '',
    attestationCertPinning: '',
    libGooglePlayProjNum: '',
    libAccessKey: '',
    uniqueID: '',
    developerID: '',
    environment: '',
  };
  initFasstapMPOSSDK(config);
  refreshToken();
}, []);

// to start the payment call this method with the amount
startEmvProcessing('1000');

How to run example app

To run the example app replace the my-release-key.keystore with your keystore file and add change the credentials in gradle.properties to run the app properly

Contributing

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

License

MIT


Made with create-react-native-library

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago