CN105528699A - Chip information verification method and device for financial chip card - Google Patents

Chip information verification method and device for financial chip card Download PDF

Info

Publication number
CN105528699A
CN105528699A CN201510983309.1A CN201510983309A CN105528699A CN 105528699 A CN105528699 A CN 105528699A CN 201510983309 A CN201510983309 A CN 201510983309A CN 105528699 A CN105528699 A CN 105528699A
Authority
CN
China
Prior art keywords
character
chip
financial
information
character string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510983309.1A
Other languages
Chinese (zh)
Inventor
王倩
叶棋标
邢蕴婷
段锋
范啸风
李文
李国梁
申世哲
李鹏芳
宋洁
裘丰
周建胜
孙郑
修德斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201510983309.1A priority Critical patent/CN105528699A/en
Publication of CN105528699A publication Critical patent/CN105528699A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/341Active cards, i.e. cards including their own processing means, e.g. including an IC or chip
    • G06Q20/3415Cards acting autonomously as pay-media
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Abstract

The invention discloses a chip information verification method and device for a financial chip card. The method and the device can convert the coding format of a received chip information character string into a character string coding format corresponding to a financial chip system interface standard, then transmit chip information uploaded by a counter front-end system to a financial card system, and enable the financial card system to verify the chip information. The chip information verification method and device for a financial chip card can verify the chip information during financial chip card transaction, so the method fulfills the purpose of promoting financial chip cards; and by sufficiently utilizing the advantages of the chip card, the security of the financial chip card transaction process can be improved.

Description

A kind of chip information verification method of financial chip card and device
Technical field
The present invention relates to financial chip card technical field, particularly relate to a kind of chip information verification method and device of financial chip card.
Background technology
At present, in order to improve the security of fiscard transaction, each big bank is proposed various financial chip card successively.
But for some financial chip cards such as (standard) credit chip card when carrying out over-the-counter trading, financial card system generally carries out degradation transaction processing, namely when some financial chip cards carry out over-the-counter trading, the mode of general employing brush magnetic stripe identifies these financial chip cards, adopt the mode of on-the-spot authentication to determine transaction is initiated by holder, with Transaction Safety simultaneously.
Although the mode of the existing degradation transaction processing to financial chip card can evade transaction risk, but deviate from the original idea promoting chip card, and this degradation transaction processing mode does not utilize chip card in the advantage of secure context.Along with the progressively popularization of various financial chip card, in order to meet the popularization original idea of financial chip card and make full use of the advantage of chip card, the chip information of financial card system to fiscard verifies the main trend of necessarily financial chip card transaction authorization information.
Summary of the invention
In view of this, the invention provides a kind of chip information verification method and device of financial chip card, to realize financial chip card transaction process to the checking of chip information, and then improve financial chip card transaction security.
In order to reach foregoing invention object, present invention employs following technical scheme:
A chip information verification method for financial chip card, comprising:
Receive the data message of the current transaction that sales counter front end system is uploaded, described data message comprises chip information character string;
Described chip information character string is converted to the character string of pre-arranged code form; Described pre-arranged code form is string encoding form corresponding to financial chip system interface standard;
The character string of described pre-arranged code form composition is met the data message of the interface standard of financial chip card system;
Described data message is sent to financial card system, to make financial card system, chip information is verified.
Alternatively, the coded format of described chip information is ASCII coded format, and described pre-arranged code form is binary mode, and the described character string described chip information being converted to pre-arranged code form, specifically comprises:
Steps A: the byte count variable t of the byte count variable s of initialization chip information character string and the character string of pre-arranged code form; Setting s=1, t=1, and s, t are integer;
Step B: judge whether s is greater than chip information string length, if not, judge whether s character of described chip information character string belongs to the character in 16 systems, if, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to seniority font variable;
Step C: upgrade s value, make s value increase progressively 1;
Step D: judge whether the s value after upgrading is greater than chip information string length, if not, judges whether s character of described chip information character string belongs to the character in 16 systems; If so, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to lower-order digit font variable;
Step e: be by fixed binary variable assignments: seniority font variable * 16+ lower-order digit font variable;
Step F: the character giving t byte of described pre-arranged code format string corresponding the 2nd of described fixed binary variable the character assignment that byte is corresponding;
Step G: upgrade s and t value, make s value increase progressively 1, t value and increase progressively 1; Return and perform described step B.
Alternatively, describedly judge whether s character of described chip information character string belongs to the character in 16 systems, also comprises:
If not, the prompting that reports an error that character is illegal is sent.
Alternatively, described data message also comprises: financial chip card information and Transaction Information; After the data message that described reception sales counter front end system is uploaded, described described chip information character string is converted to the character string of pre-arranged code form before, also comprise:
Determine that described financial chip card information and Transaction Information meet preset rules.
Alternatively, described determine that described financial chip card information and Transaction Information meet preset rules after, described described chip information character string is converted to the character string of pre-arranged code form before, also comprise:
Determine that current transaction is financial chip card transaction according to Transaction Information.
Alternatively, described described data message is sent to financial card system, after chip information being verified to make financial card system, also comprises:
Receive the result that financial card system returns, and described the result is back to sales counter front end system.
A chip information demo plant for financial chip card, comprising:
First receiving element, for receiving the data message of the current transaction that sales counter front end system is uploaded, described data message comprises chip information character string;
Transcoding units, for being converted to the character string of pre-arranged code form by described chip information character string; Described pre-arranged code form is string encoding form corresponding to financial chip system interface standard;
Data message generation unit, for meeting the data message of the interface standard of financial chip card system by the character string of described pre-arranged code form composition;
Delivery unit, for described data message is sent to financial card system, verifies chip information to make financial card system.
Alternatively, the coded format of described chip information is ASCII coded format, and described pre-arranged code form is binary mode, and described transcoding units comprises:
Initialization subelement, for the byte count variable t of the byte count variable s of initialization chip information character string and the character string of pre-arranged code form; Setting s=1, t=1, and s, t are integer;
First judgment sub-unit, for judging whether s is greater than chip information string length;
Second judgment sub-unit, for when the judged result of described first judgment sub-unit is no, judges whether s character of described chip information character string belongs to the character in 16 systems;
First transcoding subelement, for when the judged result of described second judgment sub-unit is for being, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to seniority font variable;
First upgrades subelement, for upgrading s value, makes s value increase progressively 1;
3rd judgment sub-unit, for judging whether the s value after upgrading is greater than chip information string length;
4th judgment sub-unit, for when the judged result of described 3rd judgment sub-unit is no, judges whether s character of described chip information character string belongs to the character in 16 systems;
Second transcoding subelement, for when the judged result of described 4th judgment sub-unit is for being, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to lower-order digit font variable;
First assignment subelement, for by fixed binary variable assignments being: seniority font variable * 16+ lower-order digit font variable;
Second assignment subelement, for the character giving t byte of described pre-arranged code format string corresponding the 2nd of described fixed binary variable the character assignment that byte is corresponding;
Second upgrades subelement, for upgrading s and t value, making s value increase progressively 1, t value and increasing progressively 1; And trigger described first judgment sub-unit.
Alternatively, described transcoding units also comprises:
Report an error Tip element, for when described second judgment sub-unit and/or when the judged result of described 4th judgment sub-unit is no, sends the prompting that reports an error that character is illegal.
Alternatively, described data message also comprises: financial chip card information and Transaction Information; Described device also comprises:
First determining unit, for after described first receiving element receives the data message of the current transaction that sales counter front end system is uploaded, before described chip information character string is converted to the character string of pre-arranged code form by described transcoding units, determine that described financial chip card information and Transaction Information meet preset rules.
Alternatively, described device also comprises:
Second determining unit, after determining that in described first determining unit described financial chip card information and Transaction Information meet preset rules, before described chip information character string is converted to the character string of pre-arranged code form by described transcoding units, determine that current transaction is financial chip card transaction according to Transaction Information.
Alternatively, described device also comprises:
Second receiving element, for receiving the result that financial card system returns, and is back to sales counter front end system by described the result.
Compared to prior art, the present invention has following beneficial effect:
The coded format of the chip information character string received can be converted to the character string meeting string encoding form corresponding to financial chip system interface standard by the chip information verification method of financial chip card provided by the invention, thus the chip information that sales counter front end system is uploaded can be sent to financial card system, and then financial card system can be made to verify chip information.
Therefore, the chip information verification method of financial chip card provided by the invention can realize the checking to chip information in financial chip card transaction process, therefore, the method meets the original idea promoting financial chip card, and take full advantage of the advantage of chip card, be conducive to the security improving fiscard process of exchange.
Accompanying drawing explanation
In order to be expressly understood the specific embodiment of the present invention, the accompanying drawing used is done a brief description below when describing the specific embodiment of the present invention.Apparently, these accompanying drawings are only section Example of the present invention.
Fig. 1 is the chip information verification method schematic flow sheet of the financial chip card that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the transcoding process of the step S105 that the embodiment of the present invention provides;
Fig. 3 is the specific implementation schematic flow sheet of the step S203 that the embodiment of the present invention provides;
Fig. 4 is the chip information demo plant structural representation of the financial chip card that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the transcoding units that the embodiment of the present invention provides.
Embodiment
For make object of the present invention, technological means and technique effect clearly, complete, below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
Fig. 1 is the chip information verification method schematic flow sheet of the financial chip card that the embodiment of the present invention provides.As shown in Figure 1, the method comprises the following steps:
S101, initialization data variable:
In embodiments of the present invention, initialization data variable can comprise: call public module initialization public data area, initialization data storehouse table COPYBOOK, the public subroutine variable of initialization and initialization and export data.
The data message of the current transaction that S102, reception sales counter front end system are uploaded:
When user utilizes financial chip to snap into bank counter transacting business, sales counter front end system obtains the data message of the current transaction of financial chip card by chip card interface, and the data message of the current transaction got is uploaded to background application.
Background application receives the data message of the current transaction of being uploaded by sales counter front end system.Described data message comprises chip information character string, and in addition, data message can also comprise financial chip card information and Transaction Information.
Exemplarily, financial chip card information includes but not limited to chip card holder information, service authority, needs the data message of input when Transaction Information includes but not limited to transacting business.
It should be noted that, the financial chip card described in the embodiment of the present invention includes but not limited to credit chip card, accurate credit chip card, credit card and savings chip card.
S103, judge whether financial chip card information and Transaction Information meet preset rules, if so, perform step S104, if not, terminate to run:
The execution object of this step is in order to avoid makeing mistakes due to the illegal follow-up operation process that causes of data message of input.It should be noted that, this step is not the step that must perform of financial chip card chip information verification method provided by the invention, but an optional step.
In embodiments of the present invention, preset rules can for checking financial chip card information and Transaction Information whether legal some regulation.Such as, Transaction Information comprises the phone number of input, and whether checking phone number figure place is 11, and if so, then think that phone number meets preset rules, phone number is legal, otherwise then think that phone number does not meet preset rules, phone number is illegal.
This step is specially, and judges whether financial chip card information and Transaction Information meet preset rules, if so, performs step S104, and if not, background application terminates to run.
S104, judge whether current transaction is financial chip card transaction according to Transaction Information, if so, perform step S105, if not, perform step S109:
It should be noted that, financial chip card Information Authentication method provided by the invention can not be suitable for all process of exchanges, and can be only applicable to financial chip card transaction process.So, can step S104 be performed in verification method provided by the invention.
S105, described chip information character string is converted to the character string of pre-arranged code form, described pre-arranged code form is string encoding form corresponding to financial chip system interface standard:
Under normal circumstances, the string encoding form that the character encoding format of the chip information that sales counter front end system is uploaded is corresponding from financial chip system interface standard is different, so, need the character encoding format of the chip information received to be converted to and meet string encoding form corresponding to financial chip system interface standard.In embodiments of the present invention, the string encoding form meeting financial chip system interface standard corresponding is called pre-arranged code form.
In embodiments of the present invention, the character encoding format of the chip information that sales counter front end system is uploaded is ASCII coding, such as, be ' 3F27 ', and string encoding form corresponding to financial chip system interface standard is binary coding, such as, be X ' 3F27 '.
As a specific embodiment of the present invention, the character encoding format of the chip information uploaded when sales counter front end system is ASCII character, when string encoding form corresponding to finance chip system interface standard is binary coding, as shown in Figure 2, it comprises the following steps a specific implementation of step S105:
The byte count variable t of step S201, the byte count variable s of initialization chip information character string and the character string of pre-arranged code form; Setting s=1, t=1, and s, t are integer:
Step S202: judge whether s is greater than chip information string length, if not, performs step S203, and if so, background application terminates to run:
It should be noted that, in embodiments of the present invention, can by chip information character string referred to as CARDINF.
S203, judge whether s character of described chip information character string belongs to the character in 16 systems, if so, perform step S204, if not, perform step S212:
Character in 16 systems comprises integer, A, B, C, D, E and F of 0-9.Exemplarily, as shown in Figure 3, it specifically comprises the following steps the specific implementation of step S203:
S2031, judge whether s the character of CARDINF is more than or equal to " 0 " and is less than or equal to " 9 ", if so, perform step S204, if not, perform step S2032.
Wherein, character " 0 " and " 9 " are respectively character " 0 " in 16 systems and " 9 ".
Whether S2032, s the character judging CARDINF are character " A ", if so, perform step S204, if not, perform step S2033.
Whether S2033, s the character judging CARDINF are character " B ", if so, perform step S204, if not, perform step S2034.
Whether S2034, s the character judging CARDINF are character " C ", if so, perform step S204, if not, perform step S2035.
Whether S2035, s the character judging CARDINF are character " D ", if so, perform step S204, if not, perform step S2036.
Whether S2036, s the character judging CARDINF are character " E ", if so, perform step S204, if not, perform step S2037.
Whether S2037, s the character judging CARDINF are character " F ", if so, perform step S204, if not, perform step S212.
It should be noted that, in embodiments of the present invention, do not limit the execution sequence of each step in Fig. 3.As long as perform the implementation of each step above-mentioned all at the row of protection scope of the present invention.
S204, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to seniority font variable:
Be specially, the numerical value represented in 16 systems due to character 0-9 is the numerical value in 10 systems, so when s the character of CARDINF is more than or equal to " 0 " and is less than or equal to " 9 ", then this s character is the numerical value in 10 systems.
In 16 systems, represent " 10 " in 10 systems due to " A ", so when s the character of CARDINF is " A ", 10 binary value after this s character conversion are 10.
In 16 systems, represent " 11 " in 10 systems due to " B ", so when s the character of CARDINF is " B ", be 11 by 10 binary value after this s character conversion.
In 16 systems, represent " 12 " in 10 systems due to " C ", so when s the character of CARDINF is " C ", be 12 by 10 binary value after this s character conversion.
In 16 systems, represent " 13 " in 10 systems due to " D ", so when s the character of CARDINF is " D ", be 13 by 10 binary value after this s character conversion.
In 16 systems, represent " 14 " in 10 systems due to " E ", so when s the character of CARDINF is " E ", be 14 by 10 binary value after this s character conversion.
In 16 systems, represent " 15 " in 10 systems due to " F ", so when s the character of CARDINF is " F ", be 15 by 10 binary value after this s character conversion.
This step is specifically as follows: be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and give the first mediant font variable TMPNUM1 by 10 binary value assignment after conversion, and then by the first mediant font variable TMPNUM1 assignment to seniority font variable HGHNUM.
Step S205, renewal s value, make s value increase progressively 1:
Be formulated as: s=s+1.
Step S206, judge upgrade after s value whether be greater than chip information string length, if not, perform step S207, if so, background application terminate operation:
This step is similar to step S202, for the sake of brevity, is not described in detail at this.
S207, judge whether s character of described chip information character string belongs to the character in 16 systems; If so, perform step S208, if not, perform step S212:
This step is similar to step S203, for the sake of brevity, is not described in detail at this, when its difference is the judged result of step S207 for being, performs step S208.
S208, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to lower-order digit font variable:
This step is similar to step S204, for the sake of brevity, is not described in detail at this.Its difference is, this step by conversion after 10 binary value amplitudes to lower-order digit font variables L OWNUM.
Step S209: be by fixed binary variable assignments: seniority font variable * 16+ lower-order digit font variable:
Be formulated as: COMTMP=HGHNUM*16+LOWNUM;
Wherein, COMTMP is fixed binary variable, 9 (4) COM types.
Step S210: the character giving t byte of described pre-arranged code format string corresponding the 2nd of described fixed binary variable the character assignment that byte is corresponding.
Step S211: upgrade s and t value, make s value increase progressively 1, t value and increase progressively 1; Return and perform described step S202:
Be formulated as: s=s+1, t=t+1.
S212, send the illegal prompting that reports an error of character.
S106, the character string of pre-arranged code form composition is met the data message of the interface standard of financial chip card system:
Exemplarily, the data message form in the interface standard of financial chip card system is ISO8583, so, be the data message of ISO8583 by the character string of pre-arranged code form composition form.
S107, data message is sent to financial card system, to make financial card system, chip information is verified.
The result that S108, reception financial card system return, and described the result is back to sales counter front end system, whether pass through to point out sales counter front end system staff and financial chip card user rs authentication.
S109, the conveniently current transaction of processing mode process.
The embodiment of the chip information verification method of the financial chip card provided for the embodiment of the present invention above.Can realize the checking to chip information in financial chip card transaction process by this verification method, therefore, the method meets the original idea promoting financial chip card, and takes full advantage of the advantage of chip card, is conducive to the security improving fiscard process of exchange.
In addition, it should be noted that, the data message of the current transaction that sales counter front end system is uploaded, except comprising chip information, also comprises financial chip card information and Transaction Information.As another embodiment of the present invention, can also be the character string meeting pre-arranged code form by financial chip card information and string encoding format conversion corresponding to Transaction Information, then data message is formed, be uploaded to financial chip card system, thus make financial chip card carry out transaction processing according to financial chip card information and Transaction Information, and the transaction results after process is back to sales counter front end system, whether staff and the financial chip card customer transaction of prompting sales counter front end system be successful.
It should be noted that, the fiscard chip information verification method that above-described embodiment provides can realize based on AIX, COBOL and Oracle, go for the application system of all fiscard chips transaction, wherein, comprise the application system supporting credit chip card transaction.
Based on the embodiment of the fiscard chip information verification method that above-described embodiment provides, the embodiment of the present invention additionally provides fiscard chip information demo plant.Specifically see following examples.
Fig. 4 is the chip information demo plant structural representation of the financial chip card that the embodiment of the present invention provides.As shown in Figure 4, this device comprises with lower unit:
First receiving element 41, for receiving the data message of the current transaction that sales counter front end system is uploaded, described data message comprises chip information character string;
Transcoding units 42, for being converted to the character string of pre-arranged code form by described chip information character string; Described pre-arranged code form is string encoding form corresponding to financial chip system interface standard;
Data message generation unit 43, for meeting the data message of the interface standard of financial chip card system by the character string of described pre-arranged code form composition;
Delivery unit 44, for described data message is sent to financial card system, verifies chip information to make financial card system.
In order to avoid makeing mistakes due to the illegal follow-up operation process that causes of data message of input, the device that the embodiment of the present invention provides can also comprise:
First determining unit 45, for after described first receiving element 41 receives the data message of the current transaction that sales counter front end system is uploaded, before described chip information character string is converted to the character string of pre-arranged code form by described transcoding units 42, determine that described financial chip card information and Transaction Information meet preset rules.
In addition, in order to ensure that current process of exchange is financial chip card transaction process, the device that the embodiment of the present invention provides can also comprise:
Second determining unit 46, for after described first determining unit 45 determines described financial chip card information and Transaction Information meets preset rules, before described chip information character string is converted to the character string of pre-arranged code form by described transcoding units 42, determine that current transaction is financial chip card transaction according to Transaction Information.
In addition, in order to financial card system being sent to sales counter front end system by the result that verification process obtains, the device that the embodiment of the present invention provides can also comprise:
Second receiving element 47, for receiving the result that financial card system returns, and is back to sales counter front end system by described the result.
As a specific embodiment of the present invention, when the coded format of chip information is ASCII coded format, when described pre-arranged code form is binary mode, as shown in Figure 5, it comprises the concrete structure schematic diagram of transcoding units 42 described above:
Initialization subelement 421, for the byte count variable t of the byte count variable s of initialization chip information character string and the character string of pre-arranged code form; Setting s=1, t=1, and s, t are integer;
First judgment sub-unit 422, for judging whether s is greater than chip information string length;
Second judgment sub-unit 423, for when the judged result of described first judgment sub-unit is no, judges whether s character of described chip information character string belongs to the character in 16 systems;
First transcoding subelement 424, for when the judged result of described second judgment sub-unit is for being, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to seniority font variable;
First upgrades subelement 425, for upgrading s value, makes s value increase progressively 1;
3rd judgment sub-unit 426, for judging whether the s value after upgrading is greater than chip information string length;
4th judgment sub-unit 427, for when the judged result of described 3rd judgment sub-unit is no, judges whether s character of described chip information character string belongs to the character in 16 systems;
Second transcoding subelement 428, for when the judged result of described 4th judgment sub-unit is for being, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to lower-order digit font variable;
First assignment subelement 429, for by fixed binary variable assignments being: seniority font variable * 16+ lower-order digit font variable;
Second assignment subelement 4210, for the character giving t byte of described pre-arranged code format string corresponding the 2nd of described fixed binary variable the character assignment that byte is corresponding;
Second upgrades subelement 4211, for upgrading s and t value, making s value increase progressively 1, t value and increasing progressively 1; And trigger described first judgment sub-unit.
In order to send to the character in chip information character string the prompting that reports an error, described transcoding units 42 can also comprise:
Report an error Tip element 4212, for when described second judgment sub-unit and/or when the judged result of described 4th judgment sub-unit is no, sends the prompting that reports an error that character is illegal.
Be more than the preferred embodiments of the present invention.The improvements and modifications that those skilled in the art make on the basis of above-described embodiment, all at the row of protection scope of the present invention.

Claims (12)

1. a chip information verification method for financial chip card, is characterized in that, comprising:
Receive the data message of the current transaction that sales counter front end system is uploaded, described data message comprises chip information character string;
Described chip information character string is converted to the character string of pre-arranged code form; Described pre-arranged code form is string encoding form corresponding to financial chip system interface standard;
The character string of described pre-arranged code form composition is met the data message of the interface standard of financial chip card system;
Described data message is sent to financial card system, to make financial card system, chip information is verified.
2. method according to claim 1, is characterized in that, the coded format of described chip information is ASCII coded format, and described pre-arranged code form is binary mode, and the described character string described chip information being converted to pre-arranged code form, specifically comprises:
Steps A: the byte count variable t of the byte count variable s of initialization chip information character string and the character string of pre-arranged code form; Setting s=1, t=1, and s, t are integer;
Step B: judge whether s is greater than chip information string length, if not, judge whether s character of described chip information character string belongs to the character in 16 systems, if, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to seniority font variable;
Step C: upgrade s value, make s value increase progressively 1;
Step D: judge whether the s value after upgrading is greater than chip information string length, if not, judges whether s character of described chip information character string belongs to the character in 16 systems; If so, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to lower-order digit font variable;
Step e: be by fixed binary variable assignments: seniority font variable * 16+ lower-order digit font variable;
Step F: the character giving t byte of described pre-arranged code format string corresponding the 2nd of described fixed binary variable the character assignment that byte is corresponding;
Step G: upgrade s and t value, make s value increase progressively 1, t value and increase progressively 1; Return and perform described step B.
3. method according to claim 2, is characterized in that, describedly judges whether s character of described chip information character string belongs to the character in 16 systems, also comprises:
If not, the prompting that reports an error that character is illegal is sent.
4. the method according to any one of claim 1-3, is characterized in that, described data message also comprises: financial chip card information and Transaction Information; After the data message that described reception sales counter front end system is uploaded, described described chip information character string is converted to the character string of pre-arranged code form before, also comprise:
Determine that described financial chip card information and Transaction Information meet preset rules.
5. method according to claim 4, is characterized in that, described determine that described financial chip card information and Transaction Information meet preset rules after, described described chip information character string is converted to the character string of pre-arranged code form before, also comprise:
Determine that current transaction is financial chip card transaction according to Transaction Information.
6. the method according to any one of claim 1-3, is characterized in that, described described data message is sent to financial card system, after verifying, also comprises to make financial card system to chip information:
Receive the result that financial card system returns, and described the result is back to sales counter front end system.
7. a chip information demo plant for financial chip card, is characterized in that, comprising:
First receiving element, for receiving the data message of the current transaction that sales counter front end system is uploaded, described data message comprises chip information character string;
Transcoding units, for being converted to the character string of pre-arranged code form by described chip information character string; Described pre-arranged code form is string encoding form corresponding to financial chip system interface standard;
Data message generation unit, for meeting the data message of the interface standard of financial chip card system by the character string of described pre-arranged code form composition;
Delivery unit, for described data message is sent to financial card system, verifies chip information to make financial card system.
8. device according to claim 7, is characterized in that, the coded format of described chip information is ASCII coded format, and described pre-arranged code form is binary mode, and described transcoding units comprises:
Initialization subelement, for the byte count variable t of the byte count variable s of initialization chip information character string and the character string of pre-arranged code form; Setting s=1, t=1, and s, t are integer;
First judgment sub-unit, for judging whether s is greater than chip information string length;
Second judgment sub-unit, for when the judged result of described first judgment sub-unit is no, judges whether s character of described chip information character string belongs to the character in 16 systems;
First transcoding subelement, for when the judged result of described second judgment sub-unit is for being, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to seniority font variable;
First upgrades subelement, for upgrading s value, makes s value increase progressively 1;
3rd judgment sub-unit, for judging whether the s value after upgrading is greater than chip information string length;
4th judgment sub-unit, for when the judged result of described 3rd judgment sub-unit is no, judges whether s character of described chip information character string belongs to the character in 16 systems;
Second transcoding subelement, for when the judged result of described 4th judgment sub-unit is for being, be 10 binary value according to the transformational relation between 16 systems and 10 systems by s character conversion, and by 10 binary value assignment after conversion to lower-order digit font variable;
First assignment subelement, for by fixed binary variable assignments being: seniority font variable * 16+ lower-order digit font variable;
Second assignment subelement, for the character giving t byte of described pre-arranged code format string corresponding the 2nd of described fixed binary variable the character assignment that byte is corresponding;
Second upgrades subelement, for upgrading s and t value, making s value increase progressively 1, t value and increasing progressively 1; And trigger described first judgment sub-unit.
9. device according to claim 8, is characterized in that, described transcoding units also comprises:
Report an error Tip element, for when described second judgment sub-unit and/or when the judged result of described 4th judgment sub-unit is no, sends the prompting that reports an error that character is illegal.
10. the device according to any one of claim 7-9, is characterized in that, described data message also comprises: financial chip card information and Transaction Information; Described device also comprises:
First determining unit, for after described first receiving element receives the data message of the current transaction that sales counter front end system is uploaded, before described chip information character string is converted to the character string of pre-arranged code form by described transcoding units, determine that described financial chip card information and Transaction Information meet preset rules.
11. devices according to claim 10, is characterized in that, described device also comprises:
Second determining unit, after determining that in described first determining unit described financial chip card information and Transaction Information meet preset rules, before described chip information character string is converted to the character string of pre-arranged code form by described transcoding units, determine that current transaction is financial chip card transaction according to Transaction Information.
12. devices according to any one of claim 7-9, it is characterized in that, described device also comprises:
Second receiving element, for receiving the result that financial card system returns, and is back to sales counter front end system by described the result.
CN201510983309.1A 2015-12-24 2015-12-24 Chip information verification method and device for financial chip card Pending CN105528699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510983309.1A CN105528699A (en) 2015-12-24 2015-12-24 Chip information verification method and device for financial chip card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510983309.1A CN105528699A (en) 2015-12-24 2015-12-24 Chip information verification method and device for financial chip card

Publications (1)

Publication Number Publication Date
CN105528699A true CN105528699A (en) 2016-04-27

Family

ID=55770911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510983309.1A Pending CN105528699A (en) 2015-12-24 2015-12-24 Chip information verification method and device for financial chip card

Country Status (1)

Country Link
CN (1) CN105528699A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232816A (en) * 2020-10-15 2021-01-15 北京新创智链科技有限公司 Payment transaction data processing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1853189A (en) * 2003-06-04 2006-10-25 运通卡国际股份有限公司 Customer authentication in e-commerce transactions
CN101783040A (en) * 2008-12-23 2010-07-21 深圳市莫廷影像技术有限公司 Smart card swipe machine and information exchange method
CN104933565A (en) * 2015-06-05 2015-09-23 中国银行股份有限公司 IC card transaction method and IC card transaction system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1853189A (en) * 2003-06-04 2006-10-25 运通卡国际股份有限公司 Customer authentication in e-commerce transactions
CN101783040A (en) * 2008-12-23 2010-07-21 深圳市莫廷影像技术有限公司 Smart card swipe machine and information exchange method
CN104933565A (en) * 2015-06-05 2015-09-23 中国银行股份有限公司 IC card transaction method and IC card transaction system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232816A (en) * 2020-10-15 2021-01-15 北京新创智链科技有限公司 Payment transaction data processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104166910B (en) Photon method of payment and system based on photon wallet
CN103258270B (en) Bank paying method and device thereof
CN104715372A (en) Card swiping transaction method
CN102542695B (en) A kind of tax control liquid crystal USB flash disk with authentication and fingerprint recognition
CN103269326A (en) Safety equipment, multi-application system and safety method for ubiquitous networks
CN109523254A (en) It is a kind of that a variety of methods of payment of double offline barcode scannings are passed through based on cell phone application
CN101316166A (en) Dynamic password identity authentication method based on accidental character set
CN104166912B (en) Photon method of payment and payment system
CN103366274A (en) Hybrid e-commerce instant payment method
CN101790166A (en) Digital signing method based on mobile phone intelligent card
CN103400265A (en) Quick payment method and system based on position information
CN105450634A (en) Digital certificate issuing system and method in cloud environment
CN105225102A (en) Method of mobile payment and the wearable mobile payment device for the method under line
CN104933565A (en) IC card transaction method and IC card transaction system
CN105279642A (en) Payment method based on data push
CN104166911A (en) Photonic payment method and system
CN101350829B (en) Method and apparatus for replacing business hall electric advertisement screen based on WAP
CN102800153B (en) The service downloading method and system of card swiping terminal
CN104751352A (en) Business processing method and device, terminal and server
CN105528699A (en) Chip information verification method and device for financial chip card
CN104166913B (en) Photon method of payment and system
CN109213612A (en) A kind of invoice issuing method and system based on webservice interface
CN102685121A (en) Digital signature method and digital signature device
CN101247227B (en) Electric endorsement method and device
CN105681044A (en) Verification code recognition system taking password or verification code as sequence number

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160427