CN111126983A - Order receiving connection method based on sales terminal, sales terminal and sales equipment - Google Patents
Order receiving connection method based on sales terminal, sales terminal and sales equipment Download PDFInfo
- Publication number
- CN111126983A CN111126983A CN201911319569.3A CN201911319569A CN111126983A CN 111126983 A CN111126983 A CN 111126983A CN 201911319569 A CN201911319569 A CN 201911319569A CN 111126983 A CN111126983 A CN 111126983A
- Authority
- CN
- China
- Prior art keywords
- data
- packet
- unpacking
- information
- transaction flow
- 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.)
- Granted
Links
Images
Classifications
-
- 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/085—Payment architectures involving remote charge determination or related payment systems
- G06Q20/0855—Payment architectures involving remote charge determination or related payment systems involving a third party
-
- 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
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Cash Registers Or Receiving Machines (AREA)
Abstract
The invention discloses a receipt connection method based on a sales terminal, the sales terminal and sales equipment. Wherein the method comprises the following steps: the method comprises the steps that a selling terminal configures the packaging and unpacking of 8583 data message packets, analyzes the 8583 data message packets after configuration, analyzes the intermediate data of a transaction process related to the 8583 data message packets after configuration, packages and unpacks the analyzed intermediate data of the transaction process, and dynamically switches an order receiving mechanism to be connected according to the intermediate data of the transaction process after packaging and unpacking. By the mode, the flexible configuration of the package and the unpacking of the 8583 data message packet can be realized by the point-of-sale terminal, and the receiving mechanism to be connected can be dynamically switched according to the flexible configuration of the package and the unpacking of the 8583 data message packet.
Description
Technical Field
The invention relates to the technical field of sales terminals, in particular to a receipt connection method based on a sales terminal, the sales terminal and sales equipment.
Background
In the current bank card merchant bill receiving market, a financial payment POS (point of sales) terminal is generally issued and managed by an acquiring bank or a third-party payment institution contracted with a merchant, and can only belong to one acquiring institution. However, with the continuous development of business of merchants and the continuous opening of the market of the payment business in China, the cooperation of one merchant and a plurality of banks or third-party payment mechanisms is a common phenomenon, and some merchants can cooperate with the plurality of banks or third-party payment mechanisms. Commercial business needs are increasing day by day, such as supporting overseas VISA, mastercard, payment treasure, WeChat payment, and the like. The main obstacle for different acquirer accesses is the implementation that ISO8583(8583 data message) packets for the target acquirer access specification need to be added again.
However, in the existing sales terminal-based waybill connection scheme, the packaging and unpacking modes of the 8583 data packet are generally implemented by writing codes, the packaging and unpacking logic is solidified in a binary file of a POS application, the format of the packet needs to be changed when the business requirement of a waybill needs to be upgraded, or when a waybill connection mode is added to a terminal, a POS application source code needs to be updated and recompiled, the POS application source code is issued to a corresponding maintenance organization after testing to upgrade the POS terminal of a merchant, the binary file upgrade is too large, and the problem of binary compatibility on front and back version firmware is solved, which causes difficulty in operation and upgrade in an actual production environment, and the situation that the sales terminal can dynamically switch the waybill to be connected cannot be realized.
Disclosure of Invention
In view of this, the present invention provides a method for receiving and connecting a receipt based on a sales terminal, a sales terminal and a sales device, which can implement that the sales terminal can flexibly configure 8583 data packet packaging and unpacking, and further can dynamically switch a receiving mechanism to be connected according to the flexibly configured 8583 data packet packaging and unpacking.
According to one aspect of the invention, a sales terminal-based invoice connection method is provided, which comprises the following steps: the sales terminal configures the packet packing and unpacking of the 8583 data message packet; analyzing the configured 8583 data message packet, and analyzing the transaction flow intermediate data associated with the configured 8583 data message packet; packaging and unpacking the analyzed transaction flow intermediate data; and dynamically switching the acquiring mechanism to be connected according to the packaged and unpacked transaction flow intermediate data.
The configuration of the package and unpacking of the 8583 data message packet by the sales terminal includes: and the sales terminal configures the package and unpacking of the 8583 data message packet in a formatted file configuration mode.
The analyzing, by the point-of-sale terminal, the configured 8583 data packet to analyze the transaction flow intermediate data associated with the configured 8583 data packet includes: the method comprises the steps that the point-of-sale terminal judges whether a configuration file exists in a configured 8583 data message packet or not through an application program when the point-of-sale terminal is started, when the configuration file exists, the configured 8583 data message packet is analyzed, correlation operation of a domain processing function is conducted on the configured 8583 data message packet, binary flow output by an analyzer is used as a table name in a Model name mode, and transaction flow intermediate data related to the configured 8583 data message packet is analyzed through the table name.
Wherein, the selling terminal packages and unpacks the analyzed transaction flow intermediate data, and the method comprises the following steps: the sales terminal retrieves the information of the order receiving mechanism to be connected from a database through an application program, retrieves the configuration information of a corresponding 8583 data message packet through the retrieved information of the order receiving mechanism, guides the retrieved configuration information into a parser for packaging and unpacking, obtains the packaging data of the current request packet from the parsed intermediate data of the transaction process through the parser, combines the packaging data into a corresponding 8583 data message packet according to template rules and converts the data packet into a byte data stream, sends the byte data stream out according to the connection information of the corresponding order receiving mechanism for background response, transmits the byte data stream information to the parser after receiving the response data of the background, generates corresponding key value pair information of response data according to the template configuration information through the parser, and stores and prints the information according to the key value pair of the returned response packet through the application program, and according to the stored and printed key value pair information, packaging and unpacking the analyzed transaction flow intermediate data.
Wherein, after the sales terminal dynamically switches the acquiring mechanism to be connected according to the packaged and unpacked transaction flow intermediate data, the method further comprises the following steps: and the sales terminal constructs a retrieval index which is related to the packaged and unpacked transaction flow intermediate data.
According to another aspect of the present invention, there is provided a sales terminal, comprising: the system comprises a configuration module, an analysis module, a package unpacking module and a switching module; the configuration module is used for configuring the packet and the unpacking of the 8583 data message packet; the analysis module is used for analyzing the configured 8583 data message packet and analyzing the transaction flow intermediate data associated with the configured 8583 data message packet; the packaging and unpacking module is used for packaging and unpacking the analyzed transaction flow intermediate data; and the switching module is used for dynamically switching the acquiring mechanism to be connected according to the packaged and unpacked transaction flow intermediate data.
Wherein the configuration module is specifically configured to: and configuring the packet packing and unpacking of the 8583 data message packet in a formatted file configuration mode.
Wherein, the analysis module is specifically configured to: judging whether the configured 8583 data message packet has a configuration file or not when an application program is started, analyzing the configured 8583 data message packet when the configuration file is judged to exist, performing correlation operation of a domain processing function on the configured 8583 data message packet, using a binary stream output by an analyzer as a table name in a Model name mode, and analyzing transaction flow intermediate data associated with the configured 8583 data message packet through the table name.
Wherein the group unpacking module is specifically configured to: retrieving information of an acquirer to be connected from a database through an application program, retrieving configuration information of a corresponding 8583 data message packet through the retrieved information of the acquirer, introducing the retrieved configuration information into a parser for packaging and unpacking, obtaining package data of a current request packet from the parsed transaction flow intermediate data through the parser, combining the package data into a corresponding 8583 data message packet according to template rules and converting the package data into byte data streams, sending the byte data streams out according to the connection information of the corresponding acquirer and waiting for background response, transmitting the byte data stream information to the parser after receiving background response data, generating corresponding response data key value pair information according to the template configuration information through the parser, and storing and printing the information according to the key value pair of the returned response packet through the application program, and according to the stored and printed key value pair information, packaging and unpacking the analyzed transaction flow intermediate data.
Wherein, the sales terminal still includes: building a module; the construction module is used for constructing a retrieval index which is related to the packaged and unpacked transaction flow intermediate data.
According to still another aspect of the present invention, there is provided a sales apparatus comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the point-of-sale terminal-based invoice connection methods described above.
According to still another aspect of the present invention, there is provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements any of the above-described sales terminal-based acquirer connection methods.
It can be found that, according to the above scheme, the sales terminal can configure the package and unpacking of the 8583 data packet, can parse the configured 8583 data packet, parse the transaction flow intermediate data associated with the configured 8583 data packet, and package and unpack the parsed transaction flow intermediate data, and can dynamically switch the order receiving mechanism to be connected according to the packaged and unpacked transaction flow intermediate data, so that the sales terminal can flexibly configure the package and unpacking of the 8583 data packet, and further can dynamically switch the order receiving mechanism to be connected according to the flexibly configured package and unpacking of the 8583 data packet.
Further, according to the above scheme, the point-of-sale terminal can configure the packet and the unpacking of the 8583 data packet in a formatted file configuration manner, which is beneficial to realizing that the point-of-sale terminal can flexibly configure the packet and the unpacking of the 8583 data packet in a formatted file configuration manner, and is convenient for dynamically switching the order receiving mechanism to be connected.
Further, in the above scheme, the point-of-sale terminal can determine whether the configured 8583 data packet has a configuration file when the point-of-sale terminal is started by the application program, when the configuration file exists, the configured 8583 data message packet is analyzed, performing correlation operation of domain processing function on the configured 8583 data message packet, using the binary stream output by the parser as a table name in a Model name mode, analyzing the transaction flow intermediate data associated with the configured 8583 data packet through the table name, the method has the advantages that the sales terminal can analyze the transaction flow intermediate data associated with the configured 8583 data message packet, can acquire the information of all the acquirer mechanisms corresponding to the associated transaction flow intermediate data, and is convenient for dynamically switching the acquirer mechanisms to be connected according to the acquired information of all the acquirer mechanisms.
Further, according to the above scheme, the sales terminal can retrieve the information of the acquiring mechanism to be connected from the database through the application program, retrieve the configuration information of the corresponding 8583 data packet through the retrieved information of the acquiring mechanism, introduce the retrieved configuration information into the parser for packaging and unpacking, obtain the package data of the current request packet from the parsed transaction flow intermediate data through the parser, combine the package data into the corresponding 8583 data packet according to the template rule and convert the package data into the byte data stream, send the byte data stream out according to the connection information of the corresponding acquiring mechanism and wait for the background response, after receiving the background response data, transmit the byte data stream information to the parser, and generate the corresponding response data key value pair information through the parser according to the template configuration information, and storing and printing the key value pair information of the returned response packet through an application program, and packaging and unpacking the analyzed transaction flow intermediate data according to the stored and printed key value pair information, so that the advantage that the sales terminal can package and unpack the analyzed transaction flow intermediate data in a configuration retrieval mode, and can flexibly configure the packaging and unpacking of the 8583 data message packet so as to connect a plurality of different acquiring organizations is realized.
Furthermore, according to the scheme, the sales terminal can construct a retrieval index associated with the packaged and unpacked transaction flow intermediate data, so that the sales terminal can conveniently switch the order receiving mechanisms to be connected according to the constructed retrieval index, and can conveniently connect a plurality of different order receiving mechanisms.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart illustrating an embodiment of a sales terminal based invoice presentment method according to the present invention;
FIG. 2 is a flow chart illustrating another embodiment of a sales terminal based invoice presentment method of the present invention;
FIG. 3 is a schematic block diagram of an embodiment of a point-of-sale device of the present invention;
FIG. 4 is a schematic block diagram of another embodiment of a point-of-sale device in accordance with the present invention;
fig. 5 is a schematic structural diagram of an embodiment of the marketing device of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be noted that the following examples are only illustrative of the present invention, and do not limit the scope of the present invention. Similarly, the following examples are only some but not all examples of the present invention, and all other examples obtained by those skilled in the art without any inventive work are within the scope of the present invention.
The invention provides a receipt connection method based on a sales terminal, which can realize that the sales terminal can flexibly configure the packing and unpacking of 8583 data message packets, and further can dynamically switch a receipt mechanism to be connected according to the flexibly configured packing and unpacking of the 8583 data message packets.
Referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of a sales terminal-based invoice connection method according to the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 1 if the results are substantially the same. As shown in fig. 1, the method comprises the steps of:
s101: the sales terminal configures the packaging and unpacking of 8583 data message packets.
The configuration of the package and unpacking of the 8583 data packet by the sales terminal may include:
the sales terminal configures the package and unpacking of the 8583 data message packet in a formatted file configuration mode, so that the sales terminal can flexibly configure the package and unpacking of the 8583 data message packet in a formatted file configuration mode, and is convenient for dynamically switching a receiving mechanism to be connected.
In this embodiment, an entry defined by the format of the 8583 data packet may be defined in a DataMap (data map) manner.
In this embodiment, a Model may be used to describe the applicable scope of the Template definition of the 8583 data packet, for example, TEMP (Template) may be used to represent the packet format Template of the 8583 data packet, 086 may be used to identify the applicable scope, UnionPay may be used to indicate that the defined Template of the 8583 data packet is applicable to the union background, Version may be used to identify the current Template Version information of the 8583 data packet, FieldConfig (matching field) field may be used to indicate the respective data field format definitions specified by the current acquirer for the 8583 data packet, the data field format definition general specification is the same as the union specification, DataMap may be used to define the packet and unpacking format information of the 8583 data packet specific to each field in each transaction, and correspond to the data tag specific to the intermediate data of the transaction, so that the sales terminal can correspond to the acquirer to be connected.
S102: the point-of-sale terminal analyzes the configured 8583 data packet and analyzes the transaction flow intermediate data associated with the configured 8583 data packet.
The analyzing, by the sales terminal, the configured 8583 data packet, and the transaction flow intermediate data associated with the configured 8583 data packet may include:
the point-of-sale terminal determines whether the configured 8583 data packet has a configuration file at the time of starting through an application program, when the configuration file exists, the configured 8583 data message packet is analyzed, performing correlation operation of domain processing function on the configured 8583 data message packet, using the binary stream output by the parser as a table name in a Model name mode, analyzing the transaction flow intermediate data associated with the configured 8583 data packet through the table name, the method has the advantages that the sales terminal can analyze the transaction flow intermediate data associated with the configured 8583 data message packet, can acquire the information of all the acquirer mechanisms corresponding to the associated transaction flow intermediate data, and is convenient for dynamically switching the acquirer mechanisms to be connected according to the acquired information of all the acquirer mechanisms.
S103: the sales terminal packages and unpacks the analyzed transaction flow intermediate data.
Wherein, the selling terminal packages and unpacks the analyzed transaction flow intermediate data, which may include:
the sales terminal retrieves the information of the order-receiving mechanism to be connected from the database through the application program, retrieves the configuration information of the corresponding 8583 data message packet through the retrieved information of the order-receiving mechanism, guides the retrieved configuration information into a parser for packaging and unpacking, obtains the package data of the current request packet from the parsed intermediate data of the transaction flow through the parser, combines the package data into the corresponding 8583 data message packet according to the template rule and converts the package data into a byte data stream, sends the byte data stream out according to the connection information of the corresponding order-receiving mechanism and waits for background response, transmits the byte data stream information to the parser after receiving the background response data, generates the corresponding key value pair information of the response data according to the template configuration information through the parser, and stores and prints the information according to the key value pair of the returned response packet through the application program, and according to the stored and printed key value pair information, the analyzed transaction flow intermediate data is packaged and unpacked, so that the advantage that the sales terminal can package and unpack the analyzed transaction flow intermediate data in a configuration retrieval mode, and flexibly configure the 8583 data message packet for packaging and unpacking so as to connect a plurality of different acquiring mechanisms is realized.
In this embodiment, the information of the acquirer may include unified identification information of the acquirer, and the background connection information of the acquirer includes an IP (Internet Protocol), a port number, and the like, which is not limited in the present invention.
S104: the sales terminal dynamically switches the acquiring mechanism to be connected according to the packaged and unpacked transaction flow intermediate data.
Wherein, after the sales terminal dynamically switches the acquirer to be connected according to the packaged and unpacked transaction flow intermediate data, the method may further include:
the sales terminal constructs a retrieval index associated with the packaged and unpacked transaction flow intermediate data, so that the sales terminal can conveniently and dynamically switch the order receiving mechanism to be connected according to the constructed retrieval index, and can conveniently connect a plurality of different order receiving mechanisms.
It can be found that, in this embodiment, the sales terminal may configure the package and unpacking of the 8583 data packet, may parse the configured 8583 data packet, parse the transaction flow intermediate data associated with the configured 8583 data packet, and may package and unpack the parsed transaction flow intermediate data, and may dynamically switch the order receiving mechanism to be connected according to the packaged and unpacked transaction flow intermediate data, thereby enabling the sales terminal to flexibly configure the package and unpacking of the 8583 data packet, and further dynamically switch the order receiving mechanism to be connected according to the flexibly configured package and unpacking of the 8583 data packet.
Further, in this embodiment, the point-of-sale terminal may configure the packet and the decapsulation of the 8583 data packet in a formatted file configuration manner, which is advantageous in that the point-of-sale terminal may implement flexible configuration of the packet and the decapsulation of the 8583 data packet in a formatted file configuration manner, so as to facilitate dynamic switching of the order receiving mechanism to be connected.
Further, in this embodiment, the point-of-sale terminal may determine whether the configured 8583 data packet has a configuration file when the application is started, when the configuration file exists, the configured 8583 data message packet is analyzed, performing correlation operation of domain processing function on the configured 8583 data message packet, using the binary stream output by the parser as a table name in a Model name mode, analyzing the transaction flow intermediate data associated with the configured 8583 data packet through the table name, the method has the advantages that the sales terminal can analyze the transaction flow intermediate data associated with the configured 8583 data message packet, can acquire the information of all the acquirer mechanisms corresponding to the associated transaction flow intermediate data, and is convenient for dynamically switching the acquirer mechanisms to be connected according to the acquired information of all the acquirer mechanisms.
Further, in this embodiment, the sales terminal may retrieve information of the acquirer to be connected from the database through the application, retrieve configuration information of the corresponding 8583 data packet from the retrieved information of the acquirer, introduce the retrieved configuration information into a parser for packaging and unpacking, obtain package data of the current request packet from the parsed transaction flow intermediate data through the parser, combine the package data into the corresponding 8583 data packet according to the template rule and convert the same into a byte data stream, send the byte data stream out according to the connection information of the corresponding acquirer and wait for a background response, and after receiving the background response data, transfer the byte data stream information to the parser, and generate corresponding response data key-value pair information according to the template configuration information through the parser, and storing and printing the key value pair information of the returned response packet through an application program, and packaging and unpacking the analyzed transaction flow intermediate data according to the stored and printed key value pair information, so that the advantage that the sales terminal can package and unpack the analyzed transaction flow intermediate data in a configuration retrieval mode, and can flexibly configure the packaging and unpacking of the 8583 data message packet so as to connect a plurality of different acquiring organizations is realized.
Referring to fig. 2, fig. 2 is a schematic flow chart of an invoice connection method based on a point-of-sale terminal according to another embodiment of the present invention. In this embodiment, the method includes the steps of:
s201: the sales terminal configures the packaging and unpacking of the 8583 data message packet.
As described above in S101, further description is omitted here.
S202: the point-of-sale terminal analyzes the configured 8583 data packet and analyzes the transaction flow intermediate data associated with the configured 8583 data packet.
As described above in S102, further description is omitted here.
S203: the sales terminal packages and unpacks the analyzed transaction flow intermediate data.
As described above in S103, which is not described herein.
S204: the sales terminal dynamically switches the acquiring mechanism to be connected according to the packaged and unpacked transaction flow intermediate data.
As described above in S104, and will not be described herein.
S205: the point-of-sale terminal constructs a search index associated with the packaged and unpacked transaction flow intermediate data.
It can be found that, in this embodiment, the sales terminal may construct a retrieval index associated with the packaged and unpacked transaction flow intermediate data, which is advantageous in that the sales terminal can conveniently switch the order receiving mechanism to be connected dynamically according to the constructed retrieval index, and can conveniently connect a plurality of different order receiving mechanisms.
The invention also provides a point-of-sale terminal which can flexibly configure the packaging and unpacking of the 8583 data message packet, and further can dynamically switch the order receiving mechanism to be connected according to the flexibly configured packaging and unpacking of the 8583 data message packet.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a point-of-sale terminal according to an embodiment of the present invention. In this embodiment, the sales terminal 30 includes a configuration module 31, an analysis module 32, a package unpacking module 33, and a switching module 34.
The configuration module 31 is configured to configure the packet packing and unpacking of the 8583 data packet.
The parsing module 32 is configured to parse the configured 8583 data packet, and parse the transaction flow intermediate data associated with the configured 8583 data packet.
The packaging and unpacking module 33 is configured to package and unpack the parsed transaction flow intermediate data.
The switching module 34 is configured to dynamically switch the acquirer to be connected according to the packaged and unpacked transaction flow intermediate data.
Optionally, the configuration module 31 may be specifically configured to:
and configuring the packet packing and unpacking of the 8583 data message packet in a formatted file configuration mode.
Optionally, the parsing module 32 may be specifically configured to:
judging whether the configured 8583 data message packet has a configuration file or not when the application program is started, analyzing the configured 8583 data message packet when the configuration file is judged to exist, performing correlation operation of a domain processing function on the configured 8583 data message packet, taking a binary stream output by an analyzer as a table name in a Model name mode, and analyzing transaction flow intermediate data associated with the configured 8583 data message packet through the table name.
Optionally, the set of unpacking module 33 may be specifically configured to:
retrieving information of the acquirer to be connected from a database through an application program, retrieving configuration information of a corresponding 8583 data message packet through the retrieved information of the acquirer, introducing the retrieved configuration information into a parser for packaging and unpacking, obtaining package data of a current request packet from the parsed transaction flow intermediate data through the parser, combining the package data into a corresponding 8583 data message packet according to template rules and converting the package data into a byte data stream, sending the byte data stream out according to the connection information of the corresponding acquirer and waiting for a background response, transferring the byte data stream information to the parser after receiving the background response data, generating corresponding response data key value pair information according to the template configuration information through the parser, and storing and printing the information according to the key value pair of the returned response packet through the application program, and according to the stored and printed key value pair information, packaging and unpacking the analyzed transaction flow intermediate data.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another embodiment of the point-of-sale terminal according to the present invention. Different from the previous embodiment, the sales terminal 40 of the present embodiment further includes a construction module 41.
The constructing module 41 is configured to construct a retrieval index associated with the packaged and unpacked transaction flow intermediate data.
Each unit module of the point-of-sale terminal 30/40 can respectively execute the corresponding steps in the above-mentioned method embodiments, and therefore, the detailed description of each unit module is omitted here, and please refer to the description of the corresponding steps above.
The present invention further provides a vending apparatus, as shown in fig. 5, comprising: at least one processor 51; and a memory 52 communicatively coupled to the at least one processor 51; wherein the memory 52 stores instructions executable by the at least one processor 51, the instructions being executable by the at least one processor 51 to enable the at least one processor 51 to perform the above-described terminal-based acquiring connection method.
Wherein the memory 52 and the processor 51 are coupled in a bus, which may comprise any number of interconnected buses and bridges, which couple one or more of the various circuits of the processor 51 and the memory 52 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 51 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 51.
The processor 51 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory 52 may be used to store data used by the processor 51 in performing operations.
The present invention further provides a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
It can be found that, according to the above scheme, the sales terminal can configure the package and unpacking of the 8583 data packet, can parse the configured 8583 data packet, parse the transaction flow intermediate data associated with the configured 8583 data packet, and package and unpack the parsed transaction flow intermediate data, and can dynamically switch the order receiving mechanism to be connected according to the packaged and unpacked transaction flow intermediate data, so that the sales terminal can flexibly configure the package and unpacking of the 8583 data packet, and further can dynamically switch the order receiving mechanism to be connected according to the flexibly configured package and unpacking of the 8583 data packet.
Further, according to the above scheme, the point-of-sale terminal can configure the packet and the unpacking of the 8583 data packet in a formatted file configuration manner, which is beneficial to realizing that the point-of-sale terminal can flexibly configure the packet and the unpacking of the 8583 data packet in a formatted file configuration manner, and is convenient for dynamically switching the order receiving mechanism to be connected.
Further, in the above scheme, the point-of-sale terminal can determine whether the configured 8583 data packet has a configuration file when the point-of-sale terminal is started by the application program, when the configuration file exists, the configured 8583 data message packet is analyzed, performing correlation operation of domain processing function on the configured 8583 data message packet, using the binary stream output by the parser as a table name in a Model name mode, analyzing the transaction flow intermediate data associated with the configured 8583 data packet through the table name, the method has the advantages that the sales terminal can analyze the transaction flow intermediate data associated with the configured 8583 data message packet, can acquire the information of all the acquirer mechanisms corresponding to the associated transaction flow intermediate data, and is convenient for dynamically switching the acquirer mechanisms to be connected according to the acquired information of all the acquirer mechanisms.
Further, according to the above scheme, the sales terminal can retrieve the information of the acquiring mechanism to be connected from the database through the application program, retrieve the configuration information of the corresponding 8583 data packet through the retrieved information of the acquiring mechanism, introduce the retrieved configuration information into the parser for packaging and unpacking, obtain the package data of the current request packet from the parsed transaction flow intermediate data through the parser, combine the package data into the corresponding 8583 data packet according to the template rule and convert the package data into the byte data stream, send the byte data stream out according to the connection information of the corresponding acquiring mechanism and wait for the background response, after receiving the background response data, transmit the byte data stream information to the parser, and generate the corresponding response data key value pair information through the parser according to the template configuration information, and storing and printing the key value pair information of the returned response packet through an application program, and packaging and unpacking the analyzed transaction flow intermediate data according to the stored and printed key value pair information, so that the advantage that the sales terminal can package and unpack the analyzed transaction flow intermediate data in a configuration retrieval mode, and can flexibly configure the packaging and unpacking of the 8583 data message packet so as to connect a plurality of different acquiring organizations is realized.
Furthermore, according to the scheme, the sales terminal can construct a retrieval index associated with the packaged and unpacked transaction flow intermediate data, so that the sales terminal can conveniently switch the order receiving mechanisms to be connected according to the constructed retrieval index, and can conveniently connect a plurality of different order receiving mechanisms.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a part of the embodiments of the present invention, and not intended to limit the scope of the present invention, and all equivalent devices or equivalent processes performed by the present invention through the contents of the specification and the drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A receipt connection method based on a sales terminal is characterized by comprising the following steps:
the sales terminal configures the packet packing and unpacking of the 8583 data message packet;
analyzing the configured 8583 data message packet, and analyzing the transaction flow intermediate data associated with the configured 8583 data message packet;
packaging and unpacking the analyzed transaction flow intermediate data;
and dynamically switching the acquiring mechanism to be connected according to the packaged and unpacked transaction flow intermediate data.
2. The method for a sales terminal-based acquirer connection of claim 1, wherein the configuration of the packaging and unpacking of 8583 data packet by the sales terminal includes:
and the sales terminal configures the package and unpacking of the 8583 data message packet in a formatted file configuration mode.
3. The method for acquiring connection based on the point-of-sale device according to claim 1, wherein the point-of-sale device parses the configured 8583 data packet to obtain the transaction flow intermediate data associated with the configured 8583 data packet, and the method comprises:
the method comprises the steps that the point-of-sale terminal judges whether a configuration file exists in a configured 8583 data message packet or not through an application program when the point-of-sale terminal is started, when the configuration file exists, the configured 8583 data message packet is analyzed, correlation operation of a domain processing function is conducted on the configured 8583 data message packet, binary flow output by an analyzer is used as a table name in a Model name mode, and transaction flow intermediate data related to the configured 8583 data message packet is analyzed through the table name.
4. The sales terminal-based invoice connection method of claim 1, wherein the packaging and unpacking of the parsed transaction flow intermediate data by the sales terminal comprises:
the sales terminal retrieves the information of the order receiving mechanism to be connected from a database through an application program, retrieves the configuration information of a corresponding 8583 data message packet through the retrieved information of the order receiving mechanism, guides the retrieved configuration information into a parser for packaging and unpacking, obtains the packaging data of the current request packet from the parsed intermediate data of the transaction process through the parser, combines the packaging data into a corresponding 8583 data message packet according to template rules and converts the data packet into a byte data stream, sends the byte data stream out according to the connection information of the corresponding order receiving mechanism for background response, transmits the byte data stream information to the parser after receiving the response data of the background, generates corresponding key value pair information of response data according to the template configuration information through the parser, and stores and prints the information according to the key value pair of the returned response packet through the application program, and according to the stored and printed key value pair information, packaging and unpacking the analyzed transaction flow intermediate data.
5. The method of claim 1, wherein after the point-of-sale terminal dynamically switches the acquiring mechanism to be connected based on the packaged and unpacked transaction flow intermediate data, further comprising:
and the sales terminal constructs a retrieval index which is related to the packaged and unpacked transaction flow intermediate data.
6. A point-of-sale terminal, comprising:
the system comprises a configuration module, an analysis module, a package unpacking module and a switching module;
the configuration module is used for configuring the packet and the unpacking of the 8583 data message packet;
the analysis module is used for analyzing the configured 8583 data message packet and analyzing the transaction flow intermediate data associated with the configured 8583 data message packet;
the packaging and unpacking module is used for packaging and unpacking the analyzed transaction flow intermediate data;
and the switching module is used for dynamically switching the acquiring mechanism to be connected according to the packaged and unpacked transaction flow intermediate data.
7. The point-of-sale terminal of claim 6, wherein the configuration module is specifically configured to:
and configuring the packet packing and unpacking of the 8583 data message packet in a formatted file configuration mode.
8. The point-of-sale device of claim 6, wherein the parsing module is specifically configured to:
judging whether the configured 8583 data message packet has a configuration file or not when an application program is started, analyzing the configured 8583 data message packet when the configuration file is judged to exist, performing correlation operation of a domain processing function on the configured 8583 data message packet, using a binary stream output by an analyzer as a table name in a Model name mode, and analyzing transaction flow intermediate data associated with the configured 8583 data message packet through the table name.
9. The point-of-sale of claim 6, wherein the group unpacking module is specifically configured to:
retrieving information of an acquirer to be connected from a database through an application program, retrieving configuration information of a corresponding 8583 data message packet through the retrieved information of the acquirer, introducing the retrieved configuration information into a parser for packaging and unpacking, obtaining package data of a current request packet from the parsed transaction flow intermediate data through the parser, combining the package data into a corresponding 8583 data message packet according to template rules and converting the package data into byte data streams, sending the byte data streams out according to the connection information of the corresponding acquirer and waiting for background response, transmitting the byte data stream information to the parser after receiving background response data, generating corresponding response data key value pair information according to the template configuration information through the parser, and storing and printing the information according to the key value pair of the returned response packet through the application program, and according to the stored and printed key value pair information, packaging and unpacking the analyzed transaction flow intermediate data.
10. The point-of-sale of claim 6, wherein the point-of-sale further comprises:
building a module;
the construction module is used for constructing a retrieval index which is related to the packaged and unpacked transaction flow intermediate data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911319569.3A CN111126983B (en) | 2019-12-19 | 2019-12-19 | Order receiving connection method based on sales terminal, sales terminal and sales equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911319569.3A CN111126983B (en) | 2019-12-19 | 2019-12-19 | Order receiving connection method based on sales terminal, sales terminal and sales equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111126983A true CN111126983A (en) | 2020-05-08 |
CN111126983B CN111126983B (en) | 2022-09-02 |
Family
ID=70500211
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911319569.3A Active CN111126983B (en) | 2019-12-19 | 2019-12-19 | Order receiving connection method based on sales terminal, sales terminal and sales equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111126983B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114326526A (en) * | 2021-12-31 | 2022-04-12 | 福建新大陆支付技术有限公司 | Vending machine, instruction analysis method, storage medium and slave device thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102867377A (en) * | 2012-09-20 | 2013-01-09 | 中国农业银行股份有限公司 | Method and system for realizing services on point-of-sale (POS) terminal machine and POS terminal machine |
CN102915600A (en) * | 2012-09-20 | 2013-02-06 | 无锡华御信息技术有限公司 | Fore-POS (point of sale) system and method convenient for function extension |
US20150170114A1 (en) * | 2013-12-18 | 2015-06-18 | Apriva, Llc | System and method for acquiring and integrating multi-source information for advanced analystics and visualization |
CN105023149A (en) * | 2015-04-03 | 2015-11-04 | 深圳市淘淘谷信息技术有限公司 | Method for realizing off-line cashing diversified settlement and payment management, and payment management system |
-
2019
- 2019-12-19 CN CN201911319569.3A patent/CN111126983B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102867377A (en) * | 2012-09-20 | 2013-01-09 | 中国农业银行股份有限公司 | Method and system for realizing services on point-of-sale (POS) terminal machine and POS terminal machine |
CN102915600A (en) * | 2012-09-20 | 2013-02-06 | 无锡华御信息技术有限公司 | Fore-POS (point of sale) system and method convenient for function extension |
US20150170114A1 (en) * | 2013-12-18 | 2015-06-18 | Apriva, Llc | System and method for acquiring and integrating multi-source information for advanced analystics and visualization |
CN105023149A (en) * | 2015-04-03 | 2015-11-04 | 深圳市淘淘谷信息技术有限公司 | Method for realizing off-line cashing diversified settlement and payment management, and payment management system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114326526A (en) * | 2021-12-31 | 2022-04-12 | 福建新大陆支付技术有限公司 | Vending machine, instruction analysis method, storage medium and slave device thereof |
Also Published As
Publication number | Publication date |
---|---|
CN111126983B (en) | 2022-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10991043B2 (en) | Distribution of market data | |
US8990109B2 (en) | Interface module, system and method | |
CN110287247B (en) | Data storage method, device, equipment and storage medium based on Unionpay system | |
CN109766082A (en) | The method and apparatus that the application program page jumps | |
WO2020000720A1 (en) | Server, packet processing method, program, and computer-readable storage medium | |
US20150095173A1 (en) | System to facilitate integration of software | |
CN111026931A (en) | Data query method, device, equipment and medium | |
CN115134236A (en) | Intelligent network card management method, device, equipment and readable medium | |
CN111126983B (en) | Order receiving connection method based on sales terminal, sales terminal and sales equipment | |
CN110995754B (en) | Method, device and equipment for managing data message indexes | |
CN111064728B (en) | Method, device and equipment for packing and unpacking data message | |
CN110995755B (en) | Method, device and equipment for configuring data message | |
CN116385181A (en) | Business transaction method, system, storage medium and electronic equipment | |
CN110555763A (en) | financial data processing method and device based on block chain | |
US9002870B2 (en) | System, method and computer program product for EDI-to-EDI translations | |
CN114721704A (en) | Multi-platform docking method and device, electronic equipment and computer readable medium | |
US11354635B2 (en) | Payment message interface | |
CN112785421A (en) | Real-time configurable online transaction processing method and processing system | |
CN113141603B (en) | Data communication method, system, master terminal device and slave terminal device | |
CN113222693B (en) | Electronic order processing method and device, electronic equipment and storage medium | |
CN116820361A (en) | Printing method, printing device, equipment and medium based on wireless connection mode | |
CN112911019B (en) | Data transmission method and system | |
CN115576934A (en) | Data management method and device and computer readable storage medium | |
CN117331663A (en) | Debugging method, device, storage medium and equipment supporting different interfaces | |
KR20110070613A (en) | Method and system for collective inquiry of banking account name, and computer readable medium thereof |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |