Summary of the invention
In order to solve the problems, such as to realize mobile payment using electronic card, the present invention can provide a kind of electronic card graphic code realization
The method and system of transaction.
The technical scheme of the present invention is realized as follows:
The invention discloses a kind of methods that electronic card graphic code realizes transaction, comprising the following steps:
S1. specific electronic card is chosen, the first graphic code for being bound with trading server is generated;
S2. it identifies first graphic code, the specific electron is stuck in the trading server and is registered;
S3. it receives and retracts information from trading server, wherein first graphic code and retract information and all have
Same key factor information;And the information based on the same key factor, generation can be by the trading server sign test
Second graph code;
S4. identify that the second graph code is traded.
Further, it is specifically in the step S3:
S31. the specified button for receiving to have bound electronic card instructs, and based on the information of the same key factor, passes through
Cipher mode initiates to obtain the request of transaction code to the trading server;
S32. it receives after trading server issues transaction code data, according to graphic code create-rule, shows on the display unit
Show the second graph code.
Further, it is specifically in the step S3:
S33. receive the specified button instruction for the electronic card bound, based on the information of the same key factor, certainly
Body generates transaction code;
S34. according to the transaction code, offline generate can be by the second graph code of the trading server sign test.
Further, step S4 is specifically:
The second graph code on transaction code acquisition terminal scanning electron card is identified and is extracted inside graphical information
Transaction code information;
Transaction code acquisition terminal submits transaction code and transaction data according to sign test server commitment interaction flow;
The sign test server solves the transaction code according to the transaction code create-rule same with electronic card
Code removes obfuscated data, extracts the key factor information;
The sign test server matches the key factor information with database information, if described
Transaction code inside temporal information in standard time allowed band, then the timeliness of the transaction code is effective;If described
Transaction code inside electronic card unique ID information unique corresponding relation can be found inside database, then it is assumed that the transaction
The legitimacy of code is effective;
After the sign test server passes through the available time and legitimate verification of transaction, transaction request is submitted to
The trading server carries out trade confirmation;
After the trading server takes user information and transaction data, the customer transaction inside customer data base is believed
Breath is matched, if deals match, the trading server carries out transaction data to transfer processing, the transactional services
The result of deals match is fed back to the sign test server by device, and the transaction code is replied to by the sign test server
Acquisition terminal;
After the transaction code acquisition terminal takes the reply of sign test server, confirmation transaction is completed.
The invention discloses the systems that a kind of electronic card graphic code realizes transaction, including multiple background servers, transaction code
Acquisition terminal, at least one electronic card, the background server connection transaction code acquisition terminal, the transaction code
Acquisition terminal can the graphic code that shows of barcode scanning electronic card, the electronic card has the first memories of multiple first instructions, institute
The first instruction is stated to be suitable for loading and execute the 1st (S1) in above-mentioned method and 3 (S3) steps by the first processor of electronic card,
The transaction code acquisition terminal has the second memory of multiple second instructions, and second instruction is suitable for being adopted by transaction code
The second processor of collection terminal loads and executes the 2nd (S2) in the above method and 4 (S4) steps.
Further, the background server includes sign test server, database server, trading server, described
Sign test server, database server is connected with the trading server.
Further, first instruction also executes following steps:
The specified button for receiving to have bound electronic card instructs, and based on the information of the same key factor, passes through encryption
Mode is initiated to obtain the request of transaction code to the trading server;
It receives after trading server issues transaction code data, according to graphic code create-rule, shows institute on the display unit
The second graph code stated.
Further, first instruction also executes following steps:
The specified button instruction for receiving the electronic card bound, based on the information of the same key factor, itself life
At transaction code;
According to the transaction code, offline generate can be by the second graph code of the trading server sign test.
Further, second instruction also executes following steps:
The second graph code on scanning electron card identifies and extracts the transaction code information inside graphical information;
Transaction code and transaction data are submitted according to sign test server commitment interaction flow;
The sign test server has the third memory of multiple thirds instruction, and the third instruction is suitable for by sign test
The third processor of server loads and executes following steps:
According to the transaction code create-rule same with electronic card, the transaction code is decoded, removes obfuscated data,
Extract the key factor information;
The key factor information is matched with database information, if inside the transaction code when
Between information in standard time allowed band, then the timeliness of the transaction code is effective;If the electricity inside the transaction code
The unique lD information of subcard can find unique corresponding relation inside database, then it is assumed that the legitimacy of the transaction code is effective;
After available time and legitimate verification to transaction pass through, transaction request is submitted to the trading server
Carry out trade confirmation;
The trading server has the 4th memory of multiple 4th instructions, and the 4th instruction is suitable for by sign test
The fourth processor of server loads and executes following steps:
After taking user information and transaction data, the customer transaction information inside customer data base is matched, if
Deals match carries out transaction data to transfer processing, the result of deals match is fed back to the sign test server, so that institute
The sign test server stated can reply to the transaction code acquisition terminal, and confirmation transaction is completed.
Implement the method and system that a kind of electronic card graphic code of the invention realizes transaction, there is technology effect beneficial below
Fruit:
Technical solution of the present invention realizes mobile payment by electronic card, has expanded the channel of mobile payment, has especially existed
It is forbidden to use the region (such as campus) of mobile phone, the new means of payment is provided, even more facilitates user (student).
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In the present invention, first, second, third and the 4th etc. different product or device etc. are only indicated, does not have ordinal number
The effect of word.
Referring to Fig. 1, embodiment one, a kind of method that electronic card graphic code realizes transaction, comprising the following steps:
S1. specific electronic card is chosen, the first graphic code for being bound with trading server is generated;
Electronic card will mobile phone in a manner of bluetooth communication bound transaction server.
Graphic code includes two dimensional code/bar code etc..
Before not generating binding relationship with server data (referred to as unbound), electronic card is generated electronic card by specified button
For the two dimensional code of data binding purposes, which includes the card using QR code or other two dimensional code coding modes, content
Unique information, the MAC Address of bluetooth, product information etc..
Electronic card includes main control processor unit, display unit, communication unit, safe unit and input unit.
Main control processor unit mainly includes transaction code generating algorithm, two dimensional code/bar code generating algorithm, business flow control
System, encryption access and human-computer interaction Row control.Prompt information is shown, status indicator is shown, two dimensional code/item for display unit offer
Shape code is shown.Using black and white or the liquid crystal dot matrix screen of color screen.Communication unit realizes bluetooth, digital cellular mobile network, WIFI etc.
Data communication channel.Communication unit can be an independent chips, can also be with hardware integration to main control chip.Safe unit provides
High security algorithm, high security data access function.Safe unit can an independent chip, high security can also be used
Hardware integration to main control chip.Input unit provide human-computer interaction input, such as keyboard input, touch-screen input, fingerprint input,
Camera acquisition input etc..
S2. it identifies first graphic code, the specific electron is stuck in the trading server and is registered.
The technical solution adopted by the present invention is that a transaction implementation method based on electronic card, including sign test server, number
According to library server, trading server, transaction code acquisition terminal, electronic card.
Identify first graphic code by way of barcode scanning by transaction code acquisition terminal, and by the specific electron
The trading server is stuck in be registered.
S3. it receives and retracts information from trading server, wherein the first graphic code and retract information and all have same pass
Key factor information;And the information based on same key factor, generation can be by the second graph code of trading server sign test.
Two dimensional code in mobile phone barcode scanning electronic card by bluetooth, digital cellular mobile network and submits to server, by card
Piece information is in server registers, while from server pull synchronizing information to card, so that card can be with server according to same
Key factor information generate can sign test bar code or two-dimensional barcode information.These key factor information include the time, and server is
Block the unique lD coding being specifically generated.Entire communication process all passes through highly safe encryption.
After binding success, server can retain the key factor information of a card, and electronic card can also save a key
Factor information.
S4. identification second graph code is traded.
Step S4 is specifically:
Two dimensional code or bar code on transaction code acquisition terminal scanning electron card, identify and extract inside graphical information
Transaction code information.
Transaction code acquisition terminal submits transaction code and transaction data according to sign test server commitment interaction flow.
Sign test server is decoded transaction code, removal is obscured according to the transaction code create-rule same with electronic card
Data extract key factor information (including temporal information, unique ID of electronic card).
Sign test server matches these key factor information with database information, if inside transaction code
Temporal information is in standard time allowed band (such as ± 30 seconds), then the timeliness of transaction code is effective.If inside transaction code
Electronic card unique ID information can find unique corresponding relation inside database, then it is assumed that the legitimacy of the transaction code is effective.
After sign test server passes through the available time and legitimate verification of transaction, transaction request is submitted into transaction clothes
Business device carries out trade confirmation.
After trading server takes user information and transaction data, the customer transaction information inside customer data base is carried out
Matching, for example, user whether have the right transaction, user amount whether meet this time trade.Trading server is by the knot of deals match
Fruit feeds back to sign test server, replies to transaction code acquisition terminal together by sign test server.If deals match, transactional services
Device carries out transaction data to transfer processing.
After transaction code acquisition terminal takes the feedback of server, it is confirmed whether to trade.
Referring to Fig. 2, on-line payment, most step and Fig. 1 phase may be implemented in the embodiment of the present invention two
Together, the difference is that, step S3 is specifically:
S31. the specified button for receiving to have bound electronic card instructs, based on the information of same key factor, by encryption side
Formula is initiated to obtain the request of transaction code to trading server;
At this point, generating transaction code under connected state (sign test server can be connected), the finger for having bound electronic card is pressed
Determine key, electronic card main control unit extracts the key factor data saved, initiates to obtain to remote server by cipher mode
Transaction code or the request for generating key factor.
S32. it receives after trading server issues transaction code data, according to graphic code create-rule, shows on the display unit
Show the second graph code.
Trading server issues transaction code data;That is, remote server issues transaction code or generates key factor data.
After electronic card receives transaction code data, further according to graphic code create-rule, second graph is shown on the display unit
Code.
Electronic card receives transaction code or generates key factor data, further according to two dimensional code or bar code create-rule, aobvious
Show and shows bar code or two dimensional code on unit.
Referring to Fig. 3, offline electronic payment, most step and Fig. 1 phase may be implemented in the embodiment of the present invention three
Together, the difference is that, step S3 is specifically:
S33. the specified button instruction for receiving the electronic card bound, based on the information of the same key factor, electricity
Subcard itself generates transaction code;
At this point, generating transaction code under off-line state: by the specified button for having bound electronic card, electronic card main control unit is mentioned
The key factor information (such as current time, unique ID etc.) deposited go bail for as input, is given to generating algorithm, producing not only has
Specified rule generates information and has the transaction code that random information is obscured again.
S34. according to the transaction code, offline generate can be by the second graph code of the trading server sign test.
The main control unit of electronic card takes transaction code, according to two dimensional code or bar code create-rule, generates in display unit
Bar code or two-dimension code pattern.
Referring to Fig. 4, a kind of electronic card graphic code realizes the system 100 of transaction, including multiple background servers, transaction code
Acquisition terminal 200, at least one electronic card 400, background server wired can be wirelessly connected transaction code acquisition terminal 200, hand over
Easy code acquisition terminal 200 can the graphic code that shows of barcode scanning electronic card 400, electronic card 400 has the first of multiple first instructions to deposit
Reservoir, the first instruction are suitable for being loaded by the first processor of electronic card 400 and execute the 1st (step in above-mentioned Fig. 1 method
S1) and 3 steps (step S3), transaction code acquisition terminal 200 have the second memory of multiple second instructions, and the second instruction is suitable for
The the 2nd (step S2) and the 4 steps (step in the method for Fig. 1 is loaded and executed by the second processor of transaction code acquisition terminal 200
Rapid S4).
That is: in following steps:
S1. specific electronic card is chosen, the first graphic code for being bound with trading server is generated;
S2. it identifies first graphic code, the specific electron is stuck in the trading server and is registered;
S3. it receives and retracts information from trading server, wherein first graphic code and retract information and all have
Same key factor information;And the information based on the same key factor, generation can be by the trading server sign test
Second graph code;
S4. identify that the second graph code is traded.
The first processor of electronic card 400 loads and executes step S1 and S3, the second processing of transaction code acquisition terminal 200
Device loads and executes step S2 and S4.
Background server includes sign test server 110, database server 120, trading server 130, sign test server
110, database server 120 is connected with trading server 130.
In another embodiment of present system, on-line payment may be implemented, at this time:
First instruction also executes following steps:
The specified button for receiving to have bound electronic card 400 instructs, and based on the information of same key factor, passes through cipher mode
The request of acquisition transaction code is initiated to trading server 130;
It receives after trading server 130 issues transaction code data, according to graphic code create-rule, shows on the display unit
The second graph code.
In the another embodiment of present system, offline electronic payment may be implemented, at this time:
First instruction also executes following steps:
The specified button instruction for receiving the electronic card 400 bound, based on the information of the same key factor, itself
Generate transaction code;
Transaction code based on generation, offline generate can be by the second graph code of 130 sign test of trading server.
In the another embodiment of present system, the second instruction also executes following steps:
Second graph code on scanning electron card 400 identifies and extracts the transaction code information inside graphical information;
Transaction code and transaction data are submitted according to interaction flow is arranged with sign test server 110;
Sign test server 110 has the third memory of multiple thirds instruction, and third instruction is suitable for by sign test server 110
Third processor load and execute following steps:
According to the transaction code create-rule same with electronic card 400, transaction code is decoded, obfuscated data is removed, mentions
Take out key factor information;
Key factor information is matched with database information, if the temporal information inside transaction code is in standard
Time allowed band, the then timeliness traded are effective;If 400 unique ID information of electronic card inside transaction code is in lane database
Face can find unique corresponding relation, then it is assumed that the legitimacy of transaction is effective;
After available time and legitimate verification to transaction pass through, by transaction request submit to trading server 130 into
Row trade confirmation;
Trading server 130 has the 4th memory of multiple 4th instructions, and the 4th instruction is suitable for by sign test server 110
Fourth processor load and execute following steps:
After taking user information and transaction data, the customer transaction information inside customer data base is matched, if
Deals match, transaction data is carried out to transfer processing, the result of deals match is fed back to sign test server 110, so that sign test
Server 110 can reply to transaction code acquisition terminal 200, and confirmation transaction is completed.
Implement the method and system that a kind of electronic card graphic code of the invention realizes transaction, there is technology effect beneficial below
Fruit:
Technical solution of the present invention realizes mobile payment by electronic card, has expanded the channel of mobile payment, has especially prohibited
The region (such as campus) for only using mobile phone, even more facilitates user (student).
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the meter of computer usable program code that the present invention, which can be used at one or at least one,
The computer journey implemented in calculation machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of sequence product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The function of being specified in present one process of flow chart or one box of at least one process and/or block diagram or at least one box
Device.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
The manufacture of device is enabled, which realizes in one process of flow chart or at least one process and/or one side of block diagram
The function of being specified in frame or at least one box.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one process of flow chart or at least one process and/or box
The step of function of being specified in one box of figure or at least one box.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention
The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.