0.1.0 • Published 11 months ago

react-native-nexgo-android-pos v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

react-native-nexgo-android-pos

this package enables prinitng, card detection and card swipe on android pos

Installation

npm install react-native-nexgo-android-pos

Usage for print

import { printReciept } from 'react-native-nexgo-android-pos';

// ...

const result = await printReciept(
    logo:string,
    companyName:string,
    area:string,
    country:string,
    email:string,
    phone:string,
    orderId:string,
    status:string,
    createdAt:string,
    items:Array<{name:string,price:number,quantity:number}>,
    currency:string,
    totalAmount:number,
    deliveryAmount:number,
    deliveryType:string);


## Usage for card detection


import { detectCard } from 'react-native-nexgo-android-pos';

// ...
try{
const result = await detectCard(
    );
    if(result=="SUCCESS"){
        //card detected
    }else{
        //not detected
    }
}catch(e){
//not detected
}


## Usage for input card

import { inputCard } from 'react-native-nexgo-android-pos';

// ...
try{
const result = await inputCard(
    );
    
}catch(e){
//not detected
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.1.0

11 months ago