CN108183958A - Message transmitting method, device and payment system - Google Patents
Message transmitting method, device and payment system Download PDFInfo
- Publication number
- CN108183958A CN108183958A CN201711485640.6A CN201711485640A CN108183958A CN 108183958 A CN108183958 A CN 108183958A CN 201711485640 A CN201711485640 A CN 201711485640A CN 108183958 A CN108183958 A CN 108183958A
- Authority
- CN
- China
- Prior art keywords
- request message
- front server
- request
- message
- transaction
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/20—Point-of-sale [POS] network systems
- G06Q20/206—Point-of-sale [POS] network systems comprising security or operator identification provisions, e.g. password entry
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, 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/401—Transaction verification
- G06Q20/4014—Identity check for transactions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
- H04L67/5651—Reducing the amount or size of exchanged application data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/04—Protocols for data compression, e.g. ROHC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2212/00—Encapsulation of packets
Abstract
The present invention provides a kind of message transmitting method, device and payment system, is related to technical field of data transmission.This programme passes through reception transaction trigger command;First request message is constructed according to the transaction trigger command, first request message includes the request data encapsulated with JSON forms;First request message is sent to comprehensive transaction front server, so that the comprehensive transaction front server constructs the second request message according to the request data, and second request message is sent to channel of disbursement server, simplify the data format of the first request message.In addition, being easy to read and write using the request message that JSON forms encapsulate, parsing, and compressible, help to reduce the bandwidth usage of request message, and then promote transmission speed.
Description
Technical field
The present invention relates to technical field of data transmission, are in particular to a kind of message transmitting method, device and payment
System.
Background technology
In financial industry, when being traded, the communication protocol of generally use is ISO8583 message protocols, which determines
Justice message format and transaction flow, in order to different systems can exchange transaction request and response message.However it is transmitting
In the process, the data of transmission need to be parsed, to be converted to the data of application layer.Namely in the prior art, transmission
Data format is complex, affects transmission speed.In addition, it is more demanding to the development level of developer using this method,
It is unfavorable for product development.
Invention content
In order to overcome above-mentioned deficiency of the prior art, the present invention provides a kind of message transmitting method, device and payment system
System, by with JSON form package request messages, simplifying the data format of request message, and then solve the above problems.
To achieve these goals, the technical solution that present pre-ferred embodiments are provided is as follows:
Present pre-ferred embodiments provide a kind of message transmitting method, applied to integrating front server communication link of merchandising
The POS terminal connect, the method includes:
Receive transaction trigger command;
First request message is constructed according to the transaction trigger command, first request message includes sealing with JSON forms
The request data of dress;
First request message is sent to the comprehensive transaction front server, so that the comprehensive preposition clothes of merchandising
Device be engaged according to the request data the second request message of construction, and second request message is sent to channel of disbursement service
Device.
Optionally, above-mentioned request data includes the pre-set and POS terminal and the comprehensive preposition service of merchandising
The associated authentication information of device.
Optionally, above-mentioned the step of first request message is constructed according to the transaction trigger command, including:
First request message is constructed according to the transaction trigger command and 8583 agreements.
Optionally, above-mentioned the step of first request message is sent to the comprehensive transaction front server, including:
First request message is sent to by the comprehensive transaction front server according to HTTPS agreements, wherein, it is described
Comprehensive transaction front server is used in the POS terminal with the comprehensive transaction front server two-way authentication by rear, root
Second request message is constructed according to the request data and ISO8583 agreements.
Optionally, above-mentioned comprehensive transaction front server is additionally operable to according to SOCKET communication protocols, and described second is asked
Message is sent to channel of disbursement server.
Optionally, above-mentioned the step of first request message is constructed according to the transaction trigger command, including:
The request data encapsulated with the JSON forms is compressed, to obtain first request message.
Presently preferred embodiments of the present invention also provides a kind of message transmitting device, leads to applied to comprehensive transaction front server
Believe the POS terminal of connection, the message transmitting device includes:
Receiving unit, for receiving trigger command of merchandising;
Message structural unit, for constructing the first request message, the first request report according to the transaction trigger command
Text includes the request data encapsulated with JSON forms;
Transmitting element, for first request message to be sent to the comprehensive transaction front server, so that described
Comprehensive transaction front server constructs the second request message, and second request message is sent to according to the request data
Channel of disbursement server.
Optionally, above-mentioned request data includes the pre-set and POS terminal and the comprehensive preposition service of merchandising
The associated authentication information of device, the transmitting element are additionally operable to:
First request message is sent to by the comprehensive transaction front server according to HTTPS agreements, wherein, it is described
Comprehensive transaction front server is used in the POS terminal with the comprehensive transaction front server two-way authentication by rear, root
Second request message is constructed according to the request data and ISO8583 agreements.
Optionally, above-mentioned structural unit is additionally operable to:The request data that encapsulate with the JSON forms is compressed, with must described the
One request message.
Presently preferred embodiments of the present invention also provides a kind of payment system, described for performing above-mentioned message transmitting method
Payment system includes POS terminal and comprehensive transaction front server, the comprehensive transaction front server and the POS terminal and
Channel of disbursement server communication connects;
The POS terminal is used for the transaction trigger command of reception and constructs the first request message, and described first is asked
Message is sent to the comprehensive transaction front server;It is additionally operable to receive the certification letter that the comprehensive transaction front server is sent
It ceases, and the identity information of transaction front server is integrated according to the authentication information certification;Wherein, the first request report
Text includes the request data that encapsulate with JSON forms, and the request data is including pre-set with the POS terminal and described
The comprehensive transaction associated authentication information of front server;
The comprehensive transaction front server is for the authentication information in first request message, to POS ends
The identity at end is authenticated, and in certification by rear, and the second request message is constructed, and by described second according to the request data
Request message is sent to channel of disbursement server.
In terms of existing technologies, message transmitting method provided by the invention, device and payment system at least have with
Lower advantageous effect:This programme passes through reception transaction trigger command;First request message, institute are constructed according to the transaction trigger command
It states the first request message and includes the request data encapsulated with JSON forms;Before first request message is sent to comprehensive transaction
Server is put, so that the comprehensive transaction front server constructs the second request message, and by described according to the request data
Second request message is sent to channel of disbursement server, simplifies the data format of the first request message.In addition, using JSON lattice
The request message of formula encapsulation is easy to read and write, parse, and is compressible, helps to reduce the bandwidth usage of request message, Jin Erti
Rise transmission speed.
For the above objects, features and advantages of the present invention is enable to be clearer and more comprehensible, present pre-ferred embodiments cited below particularly,
And attached drawing appended by coordinating, it is described in detail below.
Description of the drawings
It in order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described.It should be appreciated that the following drawings illustrates only certain embodiments of the present invention, therefore it is not construed as pair
The restriction of range, for those of ordinary skill in the art, without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the interaction schematic diagram of payment system that present pre-ferred embodiments provide.
Fig. 2 is the block diagram of POS terminal that present pre-ferred embodiments provide.
Fig. 3 is the flow diagram of message transmitting method that present pre-ferred embodiments provide.
Fig. 4 is the block diagram of message transmitting device that present pre-ferred embodiments provide.
Icon:10- payment systems;100-POS terminals;110- processing units;120- communication units;130- storage units;
200- synthesis transaction front servers;300- channel of disbursement servers;400- message transmitting devices;410- receiving units;420-
Message structural unit;430- transmitting elements.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes.Obviously, described embodiment is only the part of the embodiment of the present invention, instead of all the embodiments.It is logical
The component for the embodiment of the present invention being often described and illustrated herein in the accompanying drawings can be configured to arrange and design with a variety of different.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiment of the present invention, people in the art
Member's all other embodiments obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need to that it is further defined and explained in subsequent attached drawing.In addition, term " the
One ", " second " etc. is only used for distinguishing description, and it is not intended that instruction or hint relative importance.
In existing financial industry, the form of transaction request message that POS terminal is sent out is complex, in transmission process
In, the data to be converted to application layer need to be parsed to the request message of transmission, because form is complex, occupied bandwidth compared with
Greatly, transmission speed is affected.
How a kind of data format of science simple message transmitting method is provided so that can reduce bandwidth occupancy and reduction
Development difficulty has become a great problem of those skilled in the art.In view of the above problems, present inventor is by studying for a long period of time
It explores, proposes following embodiment to solve the above problems.Below in conjunction with the accompanying drawings, it elaborates to the embodiment of the present invention.Not
In the case of conflict, the feature in following embodiment and embodiment can be combined with each other.
Fig. 1 is please referred to, the interaction schematic diagram of payment system 10 provided for present pre-ferred embodiments.The payment system 10
It can include POS terminal 100 and comprehensive transaction front server 200.Wherein, comprehensive transaction front server 200 passes through net
Network can be established at least one POS terminal 100 to be communicated to connect to carry out data interaction, and comprehensive transaction front server 200 can lead to
It crosses network and establishes the communication connection with transaction channel server to carry out data interaction.The network may be, but not limited to, wired
Network or wireless network.Certainly, the channel of disbursement server 300 can be as the member for forming the payment system 10.
In the present embodiment, which can be used for performing message transmitting method as shown in Figure 3.For example, institute
State POS terminal 100 for reception transaction trigger command and construct the first request message, and by first request message transmission
To the comprehensive front server 200 of merchandising, wherein, first request message includes the number of request encapsulated with JSON forms
According to the request data is associated with including pre-set with the POS terminal 100 and the comprehensive transaction front server 200
Authentication information.
In another example the comprehensive transaction front server 200 is used for the authentication information in first request message,
The identity of the POS terminal 100 is authenticated, and in certification by rear, the second request message is constructed according to the request data,
And second request message is sent to channel of disbursement server 300.Wherein, the channel of disbursement server 300 can be used for
Second request message is forwarded to by corresponding channel of disbursement according to the second request message.
Understandably, comprehensive transaction front server 200 can be as the connection of each transaction terminal (such as POS terminal 100)
Platform, to realize being uniformly accessed into for each transaction terminal.Synthesis transaction front server 200 can also be according to the class of channel of disbursement
Type forwards the message classification of each transaction terminal, realizes the intelligence forwarding to message.In addition, because transaction terminal need to be handed over by comprehensive
Easy front server 200 accesses, and comprehensive transaction front server 200 can be tracked the process of exchange of each transaction terminal,
The detailed process of transaction is checked convenient for administrative staff so that transaction journal lands.Channel of disbursement is just the corresponding clothes of the means of payment
Business device.For example, the means of payment is a card of the online bank, channel of disbursement is just the corresponding payment server of the card of the online bank, for this
The corresponding account of card of the online bank should mutually ask (for example turning the account fund of the card of the online bank to specify number target account).Compare again
Such as, if the means of payment props up or pay the Alipay means of payment or Unionpay's cloud sudden strain of a muscle pair etc. for existing wechat, which is just micro-
Letter or the corresponding payment server of Alipay or Unionpay (or payment platform).
Fig. 2 is please referred to, the block diagram of POS terminal 100 provided for present pre-ferred embodiments.In the present embodiment
In, which can be intelligent POS machine, can include processing unit 110, communication unit 120, storage unit 130 and
Message transmitting device 400.The processing unit 110, communication unit 120, storage unit 130 and message transmitting device 400 are each
It is directly or indirectly electrically connected between a element, to realize the transmission of data or interaction.For example, these elements between each other may be used
It is realized and is electrically connected by one or more communication bus or signal wire.
The processing unit 110 can be processor.For example, the processor can be central processing unit (Central
Processing Unit, CPU), network processing unit (Network Processor, NP), graphics processor (Graphics
Processing Unit, GPU) etc.;It can also be that digital signal processor (DSP), application-specific integrated circuit (ASIC), scene can
Program gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.
The communication unit 120 is used to establish the communication connection for front server 200 of merchandising with synthesis by network, and leads to
Cross the network transceiving data.
The storage unit 130 may be, but not limited to, random access memory, read-only memory, may be programmed read-only deposit
Reservoir, Erasable Programmable Read Only Memory EPROM, electrically erasable programmable read-only memory etc..In the present embodiment, the storage
Unit 130 can be used for authentication storage information.Certainly, the memory can be also used for storage program, the processing unit 110
After execute instruction is received, the program is performed.
Further, the message transmitting device 400 include it is at least one can be with the shape of software or firmware (firmware)
Formula is stored in the storage unit 130 or is solidificated in 100 operating system of POS terminal (operating system, OS)
In software function module.The processing unit 110 is used to perform the executable module stored in the storage unit 130, example
Software function module and computer program as included by message transmitting device 400 etc..
It is understood that structure shown in Fig. 2 is only a kind of structure diagram of POS terminal 100, the POS terminal
100 can also include than components more or fewer shown in Fig. 2.Each component shown in Fig. 2 may be used hardware, software or its
Combination is realized.
Fig. 3 is please referred to, the flow diagram of message transmitting method provided for present pre-ferred embodiments.It is of the invention preferable
The message transmitting method that embodiment provides can be applied to above-mentioned POS terminal 100 and payment system 10, can pass through POS terminal
100 perform this method.
Each step of message transmitting method shown in Fig. 3 will be described in detail below, in the present embodiment, the message
Transmission method may comprise steps of:
Step S510 receives transaction trigger command.
In the present embodiment, which can be that POS terminal 100 is generated according to the trigger signal of reception.It can
Understand ground, which can operate to obtain according to artificial input.For example, receiving participant in a summer or winter camp is utilizing 100 receipt on account of POS terminal
When, the amount of money number that client is needed to pay that participant in a summer or winter camp can be inputted by POS terminal 100 is received, and receive participant in a summer or winter camp and input amount of money number
Operation will make POS terminal 100 form corresponding trigger signal.Wherein, the mode for receiving participant in a summer or winter camp's receipt on account includes, but are not limited to make
The interchanger or purchase card held with client carry out swiping the card receipt on account or scan client's by the acquisition module of POS terminal 100
It pays Quick Response Code and carries out receipt on account.
Step S520, according to it is described transaction trigger command construct the first request message, first request message include with
The request data of JSON forms encapsulation.
Optionally, step S520 can be:According to first request of the transaction trigger command and 8583 agreements construction
Message.
In the present embodiment, the structure of the first request message can include request header and request body, the first request message
Length (or size) can be configured according to actual conditions, be not especially limited here.Wherein, which can be used for storing
The mode of request, and the request method may be, but not limited to, http protocol request method, HTTPS agreement request modes.Specifically
Ground, request method include but not limited to the request methods such as GET, POST, HEAD, PUT, it is preferable that using in HTTPS agreements
POST request mode, the request method can allow POS terminal 100 to provide more data to comprehensive transaction front server 200
Information, while the data of transmission can also be encrypted, data to be prevented to be stolen, change in transmission process, it is ensured that number
According to integrality, to improve the safety of message transmissions.
In the present embodiment, it asks for storing the request data that is encapsulated with JSON forms in body, which can be with
Including but not limited to the authentication information of POS terminal 100, transaction amount, the means of payment (such as cCredit card payment, barcode scanning payment etc.),
Stamp etc. between payment odd numbers is timely.Wherein, authentication information is associated with POS terminal 100, including but not limited to the POS terminal 100
Product identification, product ID (also known as SN codes), the supplier number etc. for manufacturing the POS terminal 100.
Certainly, as an alternative, the authentication information can also be stored in the head of the first request message.Comprehensive preposition clothes of merchandising
Business device 200 is on the head to the first request message when parsing, and can obtain the authentication information, and with it is pre-stored each
The authentication information of POS terminal 100 is compared, if existing in pre-stored each authentication information with parsing obtained authentication information
Identical authentication information, the POS terminal 100 are just legal terminal.
Optionally, above-mentioned authentication information is two-way authentication information, for two-way authentication.Namely POS terminal 100 can basis
The authentication data that comprehensive transaction front server 200 is sent is authenticated the identity of comprehensive transaction front server 200, this is recognized
Card data are sent from integrating transaction front server 200 when receiving two-way authentication information to POS terminal 100.It is in addition, comprehensive
Transaction front server 200 directly can be authenticated the identity of POS terminal 100 according to the two-way authentication information.
Understandably, for comprehensive transaction front server 200 when receiving the authentication information, being sent to POS terminal 100 should
The authentication data of comprehensive transaction front server 200.POS terminal 100 is previously stored with the pre- of comprehensive transaction front server 200
Setting authentication data, after the authentication data is received, the identity for the front server 200 that will merchandise to the synthesis is authenticated,
If the authentication data received is identical with default authentication data, that is, synthesis transaction front server 200 is legal identity,
If it is different, namely the identity is illegal, the progress of business will be stopped.When two-way authentication by after, that is, two kinds of certifications are equal
Pass through, comprehensive transaction front server 200 just continues to execute other business, for example is reported according to the second request of request data construction
Text.
In the present embodiment, because the request data of JSON forms can be compressed, to reduce the occupancy of bandwidth.Optionally, it walks
Rapid S520 can also include:The request data encapsulated with JSON forms is compressed, to obtain first request message.This method passes through
First request data is compressed, to reduce the bandwidth of the first request data, and then promoting transmission rate.
What deserves to be explained is JSON forms are a kind of data interchange formats of lightweight, which uses and is totally independent of
The text formatting of programming language stores and represents data, simple in structure clear, is easy to read and write, while is also easy to solve
Analysis and generation, that is, promoted network transmission efficiency with can both having imitated, moreover it is possible to reduce the technology requirement to developer.
First request message is sent to comprehensive transaction front server 200 by step S530, so that the comprehensive friendship
Easy front server 200 constructs the second request message, and second request message is sent to branch according to the request data
Pay channel server 300.
Understandably, the request data can be configured to by the comprehensive transaction front server 200 based on 8583 agreements
Second request message.
In the present embodiment, step S530 can be:Described according to HTTPS agreements, first request message is sent to
Comprehensive transaction front server 200, wherein, the comprehensive transaction front server 200 is used in the POS terminal 100 and institute
Comprehensive transaction 200 two-way authentication of front server is stated by rear, according to the request data and ISO8583 agreements construction described the
Two request messages.
For example, comprehensive transaction front server 200 parses the first request message (including to request header and request body
The data of storage are parsed), obtain the authentication information of POS terminal 100, then according to the authentication information to POS terminal 100 into
Row certification if certification does not pass through, just stops request, to terminate this transaction;If comprehensive transaction front server 200 is to POS ends
The certification at end 100 passes through, and POS terminal 100 to the certification of comprehensive transaction front server 200 also by rear, then according to first
In request message request data (request data can be comprehensive transaction front server 200 in the first request message with
The new request data that the request data of JSON forms encapsulation parses) and ISO8583 agreements construction the second request report
Text.
In the present embodiment, comprehensive transaction front server 200 is additionally operable to according to SOCKET communication protocols, by described second
Request message is sent to channel of disbursement server 300.
What deserves to be explained is comprehensive transaction front server 200 can also use the encapsulation of JSON forms to be reported with the second request
Then the corresponding request data of text forms the second request message, and is reported the second request of construction according to SOCKET communication protocols
Text is sent to channel of disbursement server 300.
Based on above-mentioned design, this method is simplified by being formed the first request message with JSON form package request data
The data format of request message, convenient for being transmitted to the first request message;In addition, it is also convenient for comprehensive transaction front server
200 pairs of first request messages parse;Furthermore can also by being compressed to the request data encapsulated with JSON forms,
Bandwidth occupancy is further reduced, to promote transmission speed.
Fig. 4 is please referred to, the block diagram of message transmitting device 400 provided for present pre-ferred embodiments.The message
Transmitting device 400 can be applied to the POS terminal 100 communicated to connect with comprehensive transaction front server 200, to perform such as Fig. 3
Shown message transmitting method.The message transmitting device 400 can include receiving unit 410, message structural unit 420 and send
Unit 430 by encapsulating the first request message with JSON forms, simplifies the data format of the first request message, and then contribute to
Reduce bandwidth occupancy, promote the transmission speed of the first request message.
Receiving unit 410, for receiving trigger command of merchandising.Specifically, the receiving unit 410 can be used for execution figure
Step S510 shown in 3, the operation content specifically performed can refer to the detailed description to step S510.
Message structural unit 420, for constructing the first request message, first request according to the transaction trigger command
Message includes the request data encapsulated with JSON forms.Specifically, the message structural unit 420 can be used for performing in Fig. 3
Shown step S520, the operation content specifically performed can refer to the detailed description to step S520.
Optionally, the structural unit is additionally operable to:The request data that encapsulate with the JSON forms is compressed, with must described the
One request message.
Transmitting element 430, for first request message to be sent to the comprehensive transaction front server 200, with
The comprehensive transaction front server 200 is made to construct the second request message according to the request data, and described second is asked
Message is sent to channel of disbursement server 300.Specifically, the step of transmitting element 430 can be used for performing shown in Fig. 3
S530, the operation content specifically performed can refer to the detailed description to step S530.
Further, the request data includes pre-set preposition with the POS terminal 100 and the comprehensive transaction
200 associated authentication information of server, the transmitting element 430 are additionally operable to:According to HTTPS agreements by first request message
The comprehensive transaction front server 200 is sent to, wherein, the comprehensive transaction front server 200 was used at POS ends
200 two-way authentication of front server is merchandised by rear in end 100 with the synthesis, according to the request data and ISO8583 agreements
Construct second request message.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can lead to
Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software, based on such understanding, this hair
Bright technical solution can be embodied in the form of software product, which can be stored in a non-volatile memories
Medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in, it is used including some instructions so that a computer equipment (can be
Personal computer, server or network equipment etc.) perform method described in each implement scene of the present invention.
In conclusion the present invention provides a kind of message transmitting method, device and payment system.This programme is merchandised by receiving
Trigger command;First request message is constructed according to the transaction trigger command, first request message is included with JSON forms
The request data of encapsulation;First request message is sent to comprehensive transaction front server, so that before the comprehensive transaction
It puts server and the second request message is constructed, and second request message is sent to channel of disbursement clothes according to the request data
Business device simplifies the data format of the first request message.In addition, it is easy to read and write using the request message that JSON forms encapsulate, solves
Analysis, and it is compressible, help to reduce the bandwidth usage of request message, and then promote transmission speed.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, that is made any repaiies
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of message transmitting method, which is characterized in that applied to whole with the POS of comprehensive transaction front server communication connection
End, the method includes:
Receive transaction trigger command;
First request message is constructed according to the transaction trigger command, first request message includes what is encapsulated with JSON forms
Request data;
First request message is sent to the comprehensive transaction front server, so that the comprehensive transaction front server
Second request message is constructed, and second request message is sent to channel of disbursement server according to the request data.
2. according to the method described in claim 1, it is characterized in that, the request data includes the pre-set and POS
Terminal and the comprehensive transaction associated authentication information of front server.
It is 3. according to the method described in claim 1, it is characterized in that, described according to the first request of the transaction trigger command construction
The step of message, including:
First request message is constructed according to the transaction trigger command and 8583 agreements.
4. method according to any one of claim 1-3, which is characterized in that described to send first request message
The step of to the comprehensive transaction front server, including:
First request message is sent to by the comprehensive transaction front server according to HTTPS agreements, wherein, the synthesis
Front server of merchandising is used in the POS terminal with the comprehensive transaction front server two-way authentication by rear, according to institute
It states request data and ISO8583 agreements constructs second request message.
5. according to the method described in claim 4, it is characterized in that, the comprehensive transaction front server is additionally operable to basis
Second request message is sent to channel of disbursement server by SOCKET communication protocols.
6. method according to any one of claim 1-3, which is characterized in that described according to the transaction trigger command structure
The step of making the first request message, including:
The request data encapsulated with the JSON forms is compressed, to obtain first request message.
7. a kind of message transmitting device, which is characterized in that applied to whole with the POS of comprehensive transaction front server communication connection
End, the message transmitting device include:
Receiving unit, for receiving trigger command of merchandising;
Message structural unit, for constructing the first request message, the first request message packet according to the transaction trigger command
Include the request data encapsulated with JSON forms;
Transmitting element, for first request message to be sent to the comprehensive transaction front server, so that the synthesis
Front server of merchandising constructs the second request message, and second request message is sent to payment according to the request data
Channel server.
8. message transmitting device according to claim 7, which is characterized in that the request data include it is pre-set with
The POS terminal and the comprehensive transaction associated authentication information of front server, the transmitting element are additionally operable to:
First request message is sent to by the comprehensive transaction front server according to HTTPS agreements, wherein, the synthesis
Front server of merchandising is used in the POS terminal with the comprehensive transaction front server two-way authentication by rear, according to institute
It states request data and ISO8583 agreements constructs second request message.
9. message transmitting device according to claim 7 or 8, which is characterized in that the structural unit is additionally operable to:
The request data encapsulated with the JSON forms is compressed, to obtain first request message.
10. a kind of payment system, which is characterized in that for performing message transmissions side as claimed in any one of claims 1 to 6
Method, the payment system include POS terminal and comprehensive transaction front server, the comprehensive transaction front server with it is described
POS terminal and the connection of channel of disbursement server communication;
The POS terminal for reception transaction trigger command and construct the first request message, and by first request message
It is sent to the comprehensive transaction front server;It is additionally operable to receive the authentication information that the comprehensive transaction front server is sent,
And the identity information of transaction front server is integrated according to the authentication information certification;Wherein, first request message
Including the request data encapsulated with JSON forms, the request data includes pre-set with the POS terminal and described comprehensive
Close the transaction associated authentication information of front server;
The comprehensive transaction front server is for the authentication information in first request message, to the POS terminal
Identity is authenticated, and in certification by rear, and the second request message is constructed, and described second is asked according to the request data
Message is sent to channel of disbursement server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711485640.6A CN108183958A (en) | 2017-12-29 | 2017-12-29 | Message transmitting method, device and payment system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711485640.6A CN108183958A (en) | 2017-12-29 | 2017-12-29 | Message transmitting method, device and payment system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108183958A true CN108183958A (en) | 2018-06-19 |
Family
ID=62549431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711485640.6A Pending CN108183958A (en) | 2017-12-29 | 2017-12-29 | Message transmitting method, device and payment system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108183958A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108876379A (en) * | 2018-07-12 | 2018-11-23 | 北京京东金融科技控股有限公司 | A kind of method and apparatus for generating message |
CN109583867A (en) * | 2018-11-30 | 2019-04-05 | 银联商务股份有限公司 | Channel docking system and method |
CN109829708A (en) * | 2019-02-28 | 2019-05-31 | 中国银联股份有限公司 | A kind of transaction processing system |
CN109947994A (en) * | 2018-08-10 | 2019-06-28 | 北京京东金融科技控股有限公司 | Processing method, device, medium and the electronic equipment of payment process |
CN109948383A (en) * | 2019-01-28 | 2019-06-28 | 百富计算机技术(深圳)有限公司 | Read or write speed method for improving, device and the terminal device of non-contact card |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102073958A (en) * | 2009-11-25 | 2011-05-25 | 天津中兴软件有限责任公司 | System and method for implementing mobile payment |
US20150006346A1 (en) * | 2013-06-28 | 2015-01-01 | Quisk, Inc. | Account engine with modular services and access channels |
US20160034900A1 (en) * | 2014-07-30 | 2016-02-04 | Mark Allen Nelsen | Authentication system with message conversion |
CN105976245A (en) * | 2016-04-28 | 2016-09-28 | 优品财富管理有限公司 | Simulated trading system and method |
CN106097609A (en) * | 2016-07-21 | 2016-11-09 | 中国银联股份有限公司 | The remote control administrative system of intelligence POS terminal and remote monitoring and administration method |
CN106549878A (en) * | 2016-10-26 | 2017-03-29 | 中国银联股份有限公司 | A kind of service shunting method and device |
CN106779666A (en) * | 2016-11-25 | 2017-05-31 | 武汉烽火信息服务有限公司 | Polymerization payment platform and method of payment |
-
2017
- 2017-12-29 CN CN201711485640.6A patent/CN108183958A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102073958A (en) * | 2009-11-25 | 2011-05-25 | 天津中兴软件有限责任公司 | System and method for implementing mobile payment |
US20150006346A1 (en) * | 2013-06-28 | 2015-01-01 | Quisk, Inc. | Account engine with modular services and access channels |
US20160034900A1 (en) * | 2014-07-30 | 2016-02-04 | Mark Allen Nelsen | Authentication system with message conversion |
CN106575400A (en) * | 2014-07-30 | 2017-04-19 | 维萨国际服务协会 | Authentication system with message conversion |
CN105976245A (en) * | 2016-04-28 | 2016-09-28 | 优品财富管理有限公司 | Simulated trading system and method |
CN106097609A (en) * | 2016-07-21 | 2016-11-09 | 中国银联股份有限公司 | The remote control administrative system of intelligence POS terminal and remote monitoring and administration method |
CN106549878A (en) * | 2016-10-26 | 2017-03-29 | 中国银联股份有限公司 | A kind of service shunting method and device |
CN106779666A (en) * | 2016-11-25 | 2017-05-31 | 武汉烽火信息服务有限公司 | Polymerization payment platform and method of payment |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108876379A (en) * | 2018-07-12 | 2018-11-23 | 北京京东金融科技控股有限公司 | A kind of method and apparatus for generating message |
CN109947994A (en) * | 2018-08-10 | 2019-06-28 | 北京京东金融科技控股有限公司 | Processing method, device, medium and the electronic equipment of payment process |
CN109583867A (en) * | 2018-11-30 | 2019-04-05 | 银联商务股份有限公司 | Channel docking system and method |
CN109948383A (en) * | 2019-01-28 | 2019-06-28 | 百富计算机技术(深圳)有限公司 | Read or write speed method for improving, device and the terminal device of non-contact card |
CN109948383B (en) * | 2019-01-28 | 2020-06-26 | 百富计算机技术(深圳)有限公司 | Method and device for improving read-write speed of non-contact card and terminal equipment |
CN109829708A (en) * | 2019-02-28 | 2019-05-31 | 中国银联股份有限公司 | A kind of transaction processing system |
CN109829708B (en) * | 2019-02-28 | 2024-03-15 | 中国银联股份有限公司 | Transaction processing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108183958A (en) | Message transmitting method, device and payment system | |
US20240127245A1 (en) | Systems, apparatus and methods for improved authentication | |
CN102360480B (en) | A kind of method and system for linking online payment and record link | |
JP2020198127A (en) | Communication delay leveling device, method, and system | |
CN104599121B (en) | Information transmission method, device and system | |
US20130238478A1 (en) | System and method for providing debt securities denominated in virtual currencies | |
CN104599112B (en) | A kind of information transferring method, device and system | |
CN109246188A (en) | A method of supporting the system traded by all kinds of means and by all kinds of means trading processing | |
CN106327169A (en) | Electronic fund transferring method and apparatus | |
CN110380932A (en) | Test method and device and test macro for safety equipment | |
CN104252672A (en) | Payment transaction system integrating cloud service | |
CN110009326A (en) | Accounting system, transaction and its processing method, terminal, system, device and medium | |
CN101699892A (en) | Method and device for generating dynamic passwords and network system | |
CN108022090A (en) | Virtual account management method, equipment, system and readable storage medium storing program for executing | |
KR20200121114A (en) | Block chain-based crytography donation server and donation method without limitation to donation target | |
Xu et al. | Reap the harvest on blockchain: A survey of yield farming protocols | |
CN108038731A (en) | Distribute method of commerce and device | |
KR20220065265A (en) | A method for providing community services related to ownership item assets using non-fungible tokens based on block chain networks, an apparatus and a system using it | |
CN107203408A (en) | The methods, devices and systems of redirection | |
CN106682899A (en) | Method for confirming online transaction safety through mobile phone and system thereof | |
CN110474976A (en) | A kind of message transfer method, apparatus, storage medium and system applied to automatic vending equipment | |
CN106651366A (en) | Mobile terminal and transaction confirmation method and device thereof, and smart card | |
US20130191265A1 (en) | Cloud-based system for performing online trading | |
CN109272318A (en) | Applied to requesting party's client resource stream method of commerce, device, equipment and medium | |
KR101701449B1 (en) | System for automatical selling exchange |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180619 |
|
RJ01 | Rejection of invention patent application after publication |