npm.io
0.1.1 • Published 4 years ago

react-native-tidypos-terminal

Licence
MIT
Version
0.1.1
Deps
0
Size
355 kB
Vulns
0
Weekly
0
Stars
1

react-native-tidypos-terminal

A react-native library to make payments in sunmi device through tidypos gateway

Installation

npm install react-native-tidypos-terminal

Usage

import TidyposTerminal from "react-native-tidypos-terminal";

// ...

TidyposTerminal.startPayment(credentials, params)
    .then((data) => {
        // ...
        console.log('success', data);
    })
    .catch((err) => {
        // ...
        console.log('error', err);
    });

Example

  1. Place your credentials in [example/src/constants.ts]
  2. yarn example android

Contributing

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

License

MIT

Keywords