Вы находитесь на странице: 1из 7

Windows

1.

PILOT_NT.DLL, ,
.

-. ,
- ,
. -
- ( VeriFone SC552, SC5000,
Vx810, Ingenico 3070) USB (VeriFone Vx810, Ingenico 3070).

.
() ,
/
-. (
) - .
2.
:
Docs

, ..

Config

Soft\PC\Pilot_nt

Pilot_nt.dll

, ;

Sb_kernel.dll, Gate.dll


.
LoadParm.exe

:
1. Soft\PC\Pilot_nt Config.
2. -, :
Config\TlvEdit.exe
Soft\PC\Pilot_nt\ExampleWithPinpad.tlv,

\ \ - .
3. Soft\PC\Pilot_nt\LoadParm.exe.
4. \ \ \ (
878787) \ .
1

5. ExampleWithPinpad.tlv, -,
ExampleTest.tlv .
6. .
.
- , ,
2.
3.
:
int card_authorize(char* track2,
struct auth_answer* auth_ans);
int card_authorize6(char* track2,
struct auth_answer6* auth_ans);
int card_authorize7(char* track2,
struct auth_answer7* auth_ans);
int card_authorize9(char* track2,
struct auth_answer9* auth_ans);
#pragma pack(1)
struct auth_answer{
int TType;
unsigned long Amount;
char
Rcode
[2+1];
char
AMessage[16 ];
int
CType;
char*
Check;

//:
//:
//:
//:
//:
//: ,
//
GlobalFree

};
struct auth_answer6{
struct auth_answer auth_answ;
char
AuthCode[7];
//:
char
CardID[25];
//: ()
int
ErrorCode;
//:
char
TransDate[20];
//:
int
TransNumber;
//:
char
RRN[13];
///:
};
struct auth_answer7{
auth_answer
ans;
char
AuthCode[7];
char
CardID [25];
int
SberOwnCard;
};

///: (.)
//:
//:
//:

struct auth_answer9{
auth_answer
ans;
char
AuthCode[7];
char
CardID [25];
int
SberOwnCard;
char
Hash[41];
};

///: (.)
//:
//:
//:
//: SHA1 ASCIIZ

#pragma pack()

, ,
, / .
2

:
char* track2

.

NULL

2-

int TType
:
1 ,
3 / ,
51 ,
52 .
unsigned long Amount
.

:
char RCode[2+1]
. 00 0 ,
.
char AMessage[16 ]
.
: 000.
int CType
. :
1 VISA
2 MasterCard
3 Maestro
4 American Express
5 Diners Club
6 VISA Electron
char* Check
,
,
GlobalFree().
NULL.
.
char AuthCode[7]
( ) .
*.
char RRN[13]
. 12 , .
(
pilot_nt.dll), (
; ,
).
char CardID[25]
( ) .
, 6 4,
*.
int SberOwnCard
1, , 0 .
char Hash[41]

( ) SHA1
ASCII- 40 .

int close_day(struct auth_answer *auth_ans);


.
:
int TType
: 7 .
unsigned long Amount
.

:
char Rcode[2+1]
.
char AMessage[16 ]
.
int CType
.
char* Check
,
, GlobalFree().
NULL.
.

int ReadTrack2(char *Track2);

2- .
0, .
:
char* Track2
, 2- .
40 .

int ReadCardSB(char *Last4Digits, char *Hash);


. ,
. 0,
.
:
char* Last4Digits
, .
5 .

char* Hash
, ASCII-.
41 .

int TestPinpad()

. 0
( ), (
).
int SuspendTrx (DWORD dwAmount, char* pAuthCode)

.
,
.
:
DWORD dwAmount
( ).
char* pAuthCode
.

( )
,
. ,
4140 .
int CommitTrx(DWORD dwAmount, char* pAuthCode)

.
.
.
:
DWORD dwAmount
( ).
char* pAuthCode
.

( )
,
. ,
4140 .
int RollbackTrx(DWORD dwAmount, char* pAuthCode)

(,
, ).
CommitTrx(),
RollbackTrx() 4141,
.
5

:
DWORD dwAmount
( ).
char* pAuthCode
.

( )
,
. ,
4140 .
int AbortTransaction()

card_authorize().
,
card_authorize(). card_authorize()
2000 ( ).

4.
()
card_authorize(), TType
Amount .
RCode.
0 00, ,
.
, Check. NULL,
( )
GlobalFree().
,
Check, :
1) card_authorize().
2) card_authorize(),
, SuspendTrx() .
3) , CommitTrx().
4) ,
RollbackTrx() .
,
.
.


close_day(), TType = 7
.
Check.
Check NULL, ( )
GlobaFree().