Package Exports
- jspos
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jspos) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
jsPOS
JavaScript ISO8583. JavaScript version of JPOS.
Installation
npm install jspos --save
Examples
import Packager from './MyPackager';
import { ISOUtil, ISOMsg } from 'jspos';
let msg:ISOMsg = Packager.createISOMsg();
msg.setMTI('0800');
msg.setStrField(11, '000105');
msg.setStrField(41, '00000764');
msg.setStrField(42, '848100058126002');
msg.setStrField(60, '00000001003');
msg.setStrField(63, '001');
console.log(ISOUtil.hexString(msg.pack()));
let msgStr = '08000020000000C00012000105303030303037363438343831303030353831323630303200110000000100300003303031';
let unpackMsg:ISOMsg = Packager.createISOMsg();
unpackMsg.unpack(ISOUtil.hex2byte(msgStr));
console.log(ISOUtil.hexString(unpackMsg.pack()));
run test.
npm install
npm test