Ejemplo n.º 1
0
def test(card):
    aid = ''
    t = Terminal()
    ts = Transaction()
    for aid in l:
        adf = ADF(aid,'1001')
        apdu = APDU.APDU(card)
        t.tsAmount = '00000010'
        t.tsType = const.TTI_EP_LOAD
        t.key = Key('01','42EAF305CDE83EC62C67BCB44B946B65')
        ts.load(t, adf, apdu)
Ejemplo n.º 2
0
def test(card):
    aid = ''
    t = Terminal()
    ts = Transaction()
    for aid in l:
        adf = ADF(aid, '1001')
        apdu = APDU.APDU(card)
        t.tsAmount = '00000010'
        t.tsType = const.TTI_EP_LOAD
        t.key = Key('01', '42EAF305CDE83EC62C67BCB44B946B65')
        ts.load(t, adf, apdu)
Ejemplo n.º 3
0
def test(card):
    aid = ''
    t = Terminal()
    ts = Transaction()
    for aid in [l[0]]:
        adf = ADF(aid, '1001')
        apdu = APDU.APDU(card)
        #t.tsAmount = '0000'+Util.generateRnd(2)
        t.tsAmount = '0009DFFF'
        t.tsType = const.TTI_EP_PURCHASE
        t.key = Key('01', '0BA5B6D33FEC6DD73A5AA6CF81E818C7')
        ts.purchase(t, adf, apdu)
Ejemplo n.º 4
0
def test(card):
    aid = ''
    t = Terminal()
    ts = Transaction()
    for aid in [l[0]]:
        adf = ADF(aid,'1001')
        apdu = APDU.APDU(card)
        #t.tsAmount = '0000'+Util.generateRnd(2)
        t.tsAmount = '0009DFFF'
        t.tsType = const.TTI_EP_PURCHASE
        t.key = Key('01','0BA5B6D33FEC6DD73A5AA6CF81E818C7')
        ts.purchase(t, adf, apdu)