0.1.2 • Published 2 years ago

react-native-tidypos-terminal-noq v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-tidypos-terminal-noq

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

Installation

npm install react-native-tidypos-terminal-noq

Usage

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

// ...

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