Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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