Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vivekvardhanadepu/react-native-tidypos-terminal
React Native package for payments in sunmi device through tidypos
https://github.com/vivekvardhanadepu/react-native-tidypos-terminal
android card-reader ios javascript npm-package react react-native terminal tidypay tidypos typescript yarn
Last synced: 5 days ago
JSON representation
React Native package for payments in sunmi device through tidypos
- Host: GitHub
- URL: https://github.com/vivekvardhanadepu/react-native-tidypos-terminal
- Owner: vivekvardhanadepu
- License: mit
- Created: 2022-06-10T06:33:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-21T07:05:20.000Z (over 2 years ago)
- Last Synced: 2024-12-21T13:45:58.256Z (about 1 month ago)
- Topics: android, card-reader, ios, javascript, npm-package, react, react-native, terminal, tidypay, tidypos, typescript, yarn
- Language: Java
- Homepage:
- Size: 442 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-tidypos-terminal
A react-native library to make payments in sunmi device through tidypos gateway
## Installation
```sh
npm install react-native-tidypos-terminal
```## Usage
```js
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](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT