Cordova plugin to communication with MSwipe Wisepad device via bluetooth.
- android
Type following command from CLI to add this plugin
cordova plugin add cordova-plugin-k-mswipe
The plugin creates the object KMswipe
into DOM.
This method should call once while platform get ready. This should call once in per application lifecycle.
config(
configuartion: MswipeConfig,
callbackSuccess: (res: any) => void,
callbackError: (err: any) => void
): void;
Marchent should verified before making call the pay
method. Marchent credential
verifyMarchent(
credential: MarchentCredential,
callbackSuccess: (res: any) => void,
callbackError: (err: any) => void
): void;
This method is reponsible to initiat a transaction via Wisepad device.
pay(
paymentInfo: PaymentInfo,
callbackSuccess: (res: any) => void,
callbackError: (err: any) => void
): void;
This method is reponsible to initiat a refund request.
voidTransaction(
voidTransactionInfo: VoidTransactionInfo,
callbackSuccess: (res: any) => void,
callbackError: (err: any) => void
): void;
This method must call after success or failuar transaction.
disconnect(
callbackSuccess: (res: any) => void,
callbackError: (err: any) => void): void;