0.1.1 • Published 2 years ago
react-native-tidypos-terminal v0.1.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
- Place your credentials in example/src/constants.ts
yarn example android
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
0.1.1
2 years ago