This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var openSession = function(readers) { | |
var seReader = readers[0]; | |
return seReader.openSession(); | |
}; | |
var openChannel = function(session) { | |
var testAIDBuffer = ['0', '1', '2']; | |
var mastercardAID = new Uint8Array(testAIDBuffer); | |
return session.openLogicalChannel(mastercardAID); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SEConnector() {} | |
// Define the prototypes and utilities for this factory | |
// Our default ConnectorClass is SIMIOConnector | |
SEConnector.prototype.ConnectorClass = SIMIOConnector; | |
// Our Factory method for creating new ConnectorClass instances | |
SEConnector.prototype.createConnector = function ( options ) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function test(){ | |
let targetInfo1 = { appId: 1, | |
target: "Target 1", //msg.target | |
sessions: [] }; | |
let targetInfo2 = { appId: 2, | |
target: "Target 2", //msg.target | |
sessions: [] }; | |
let sessionInfo1 = { sessionID: 1234, |