cordova-plugin-k-mswipe
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

MSwipe Wisepad Cordova plugin

Cordova plugin to communication with MSwipe Wisepad device via bluetooth.

Platform Support

  • android

Usage

How to add plugin

Type following command from CLI to add this plugin

    cordova plugin add cordova-plugin-k-mswipe

The plugin creates the object KMswipe into DOM.

Methods

isEnabled

Use this plugin

enable

Use this plugin

config

Description

This method should call once while platform get ready. This should call once in per application lifecycle.

Types

config(
    configuartion: MswipeConfig, 
    callbackSuccess: (res: any) => void, 
    callbackError: (err: any) => void
    ): void;

verifyMarchent

Description

Marchent should verified before making call the pay method. Marchent credential

Types

verifyMarchent(
    credential: MarchentCredential,
    callbackSuccess: (res: any) => void,
    callbackError: (err: any) => void
    ): void;

pay

Description

This method is reponsible to initiat a transaction via Wisepad device.

Types

pay(
    paymentInfo: PaymentInfo,
    callbackSuccess: (res: any) => void,
    callbackError: (err: any) => void
    ): void;

voidTransaction

Description

This method is reponsible to initiat a refund request.

Types

voidTransaction(
    voidTransactionInfo: VoidTransactionInfo,
    callbackSuccess: (res: any) => void,
    callbackError: (err: any) => void
    ): void;

disconnect

Description

This method must call after success or failuar transaction.

Types

disconnect(
    callbackSuccess: (res: any) => void,
    callbackError: (err: any) => void): void;

Package Sidebar

Install

npm i cordova-plugin-k-mswipe

Weekly Downloads

0

Version

0.0.6

License

Apache 2.0

Unpacked Size

2.39 MB

Total Files

12

Last publish

Collaborators

  • krish-dev