A react-native library to make payments in sunmi device through tidypos gateway
npm install react-native-tidypos-terminal
import TidyposTerminal from "react-native-tidypos-terminal";
// ...
TidyposTerminal.startPayment(credentials, params)
.then((data) => {
// ...
console.log('success', data);
})
.catch((err) => {
// ...
console.log('error', err);
});
- Place your credentials in [example/src/constants.ts]
yarn example android
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT