Socket
Book a DemoInstallSign in
Socket

cordova-plugin-k-mswipe

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-k-mswipe

Cordova Mswipe Plugin

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

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

  • bluetoothSerial.isEnabled

  • bluetoothSerial.enable

  • KMswipe.config

  • KMswipe.verifyMarchent

  • KMswipe.pay

  • KMswipe.voidTransaction

  • KMswipe.disconnect

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;

Keywords

cordova

FAQs

Package last updated on 08 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts