vivekvardhanadepu / react-native-tidypos-terminal

React Native package for payments in sunmi device through tidypos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  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

About

React Native package for payments in sunmi device through tidypos

License:MIT License


Languages

Language:Java 54.4%Language:JavaScript 20.9%Language:Objective-C 14.9%Language:TypeScript 6.1%Language:Ruby 2.9%Language:C 0.5%Language:Swift 0.3%