WO2021208916A1 - 支付通信方法、装置和电子设备 - Google Patents

支付通信方法、装置和电子设备 Download PDF

Info

Publication number
WO2021208916A1
WO2021208916A1 PCT/CN2021/086934 CN2021086934W WO2021208916A1 WO 2021208916 A1 WO2021208916 A1 WO 2021208916A1 CN 2021086934 W CN2021086934 W CN 2021086934W WO 2021208916 A1 WO2021208916 A1 WO 2021208916A1
Authority
WO
WIPO (PCT)
Prior art keywords
payment
message
pos terminal
information
communication protocol
Prior art date
Application number
PCT/CN2021/086934
Other languages
English (en)
French (fr)
Inventor
戴毓华
Original Assignee
支付宝(杭州)信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2021208916A1 publication Critical patent/WO2021208916A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • G06Q20/40145Biometric identity checks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/20Point-of-sale [POS] network systems
    • G06Q20/202Interconnection or interaction of plural electronic cash registers [ECR] or to host computer, e.g. network details, transfer of information from host to ECR or from ECR to ECR
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to payment communication methods, devices, and electronic equipment.
  • POS terminals also known as POS machines
  • Some POS terminals are also equipped with card cash register functions.
  • Operators scan product labels through a scanner connected to the POS terminal. Enter the product information to be settled by manually entering the digital code of the product, or the POS terminal according to the product code to find the corresponding product information, such as price, discount, product category, etc., and settle the total according to the price of the product. Amount, and then collect the payment through cash, credit card and other cashier methods.
  • mobile terminals such as mobile phones to pay through electronic payment channels such as online banking and payment platforms.
  • the embodiments of the present application provide a payment communication method, device, and electronic equipment to expand the payment method of the POS terminal.
  • an embodiment of the present application provides a payment communication method, including: receiving a first message carrying transaction order information sent by a POS terminal at a point of sale, where the transaction order information includes at least the transaction amount; and sending the transaction order information To the payment device; receive the second message carrying the settlement information sent by the POS terminal; in response to the second message, trigger the payment device to execute the payment process; receive the third message from the payment device that carries the payment information after the payment process is completed Message; send payment information to the POS terminal.
  • the transaction amount is the amount corresponding to the commodity code searched by the POS terminal according to the commodity code.
  • receiving the first message carrying transaction order information sent by the POS terminal includes: receiving a plurality of first messages sequentially sent by the POS terminal for a plurality of commodities, wherein each first message The transaction order information carried in the text includes the transaction amount of the corresponding commodity; sending the transaction order information to the payment device includes: sending the corresponding transaction order information to the payment device every time after receiving the first message.
  • the POS terminal uses the first communication protocol to send a message and sends the transaction order information to the payment device, including: using the first communication protocol to parse the first message to obtain the transaction order information; according to the transaction order information , Generate a fourth message conforming to the second communication protocol; Send the fourth message to the payment device.
  • triggering the payment device to execute the payment process includes: parsing the second message using the first communication protocol to determine that the settlement information is received; and generating the first communication protocol that conforms to the second communication protocol. Five messages, where the fifth message is used to trigger the payment device to execute the payment process; the fifth message is sent to the payment device.
  • the first communication protocol is an OPOS protocol for point-of-sale object connection and embedding.
  • the POS terminal uses the third communication protocol to receive the message and send the payment information to the POS terminal, including: using the second communication protocol to parse the third message to obtain the payment information; and generate according to the payment information The sixth message conforming to the third communication protocol; the sixth message is sent to the POS terminal.
  • the sixth message is used to trigger the warehousing process of the POS terminal, where the warehousing process is a process initiated after the completion of the payment process and used to update the database of the sales management system.
  • the third communication protocol is the Universal Serial Bus USB-Human Machine Interface Device HID protocol.
  • the method further includes: forwarding the first message to the display device, so that the display device will respond according to the first message Display transaction order information.
  • the method further includes: forwarding the second message to the display device, so that the display device displays according to the second message Billing information.
  • the method further includes: parsing the third message using the second communication protocol to obtain the payment information ; According to the payment information, generate a seventh message that conforms to the first communication protocol; send the seventh message to the display device, so that the display device displays the payment information according to the seventh message.
  • the payment process is a face-swiping payment process, a code-scanning payment process, or a fingerprint payment process.
  • the payment communication method provided by the embodiment of the present application transmits the transaction order information to the payment device after receiving the first message sent by the POS terminal of the point of sale that carries the transaction order information, and the settlement information sent by the POS terminal is received After the second message, in response to the second message, trigger the payment device to execute the payment process, and send the payment information to the POS after receiving the third message with payment information fed back by the payment device after completing the payment process
  • the terminal enables the POS terminal and the payment device to achieve two-way communication.
  • the transaction order information obtained by the POS terminal is sent to the payment device. After the payment device completes the payment according to the transaction order information, the payment information is fed back to the POS terminal, which extends the POS terminal’s capabilities. payment method.
  • an embodiment of the present application provides a payment communication device, including: a first receiving unit, configured to receive a first message carrying transaction order information sent by a point-of-sale POS terminal, where the transaction order information includes at least transaction Amount; the first sending unit is used to send transaction order information to the payment device; the second receiving unit is used to receive the second message carrying settlement information sent by the POS terminal; the trigger unit is used to respond to the second message Text, triggering the payment device to execute the payment process; the third receiving unit is used to receive the third message that carries payment information fed back by the payment device after the payment process is completed; the second sending unit is used to send the payment information to the POS terminal .
  • the transaction amount is the amount corresponding to the commodity code searched by the POS terminal according to the commodity code.
  • the first receiving unit includes: a first receiving module, configured to receive a plurality of first messages sequentially sent by the POS terminal for a plurality of commodities, wherein each first message carries a transaction order The information includes the transaction amount of the corresponding commodity; the first sending unit includes: a first sending module, configured to send the corresponding transaction order information to the payment device every time the first message is received.
  • the POS terminal uses a first communication protocol to send a message
  • the first sending unit includes: a first parsing module, configured to parse the first message using the first communication protocol to obtain transaction order information;
  • the generating module is used to generate a fourth message conforming to the second communication protocol according to the transaction order information; the second sending module is used to send the fourth message to the payment device.
  • the trigger unit includes: a second parsing module, configured to parse the second message using the first communication protocol, to determine that the settlement information is received; and the second generating module, configured to generate the second communication protocol
  • the fifth message is used to trigger the payment device to execute the payment process; the third sending module is used to send the fifth message to the payment device.
  • the first communication protocol is an OPOS protocol for point-of-sale object connection and embedding.
  • the POS terminal uses a third communication protocol to receive the message
  • the second sending unit includes: a third parsing module for parsing the third message using the second communication protocol to obtain payment information; third The generating module is used to generate a sixth message conforming to the third communication protocol according to the payment information; the fourth sending module is used to send the sixth message to the POS terminal.
  • the sixth message is used to trigger the warehousing process of the POS terminal, where the warehousing process is a process initiated after the completion of the payment process and used to update the database of the sales management system.
  • the third communication protocol is the Universal Serial Bus USB-Human Machine Interface Device HID protocol.
  • the device further includes: a third sending unit, configured to, after receiving the first message carrying transaction order information sent by the POS terminal, forward the first message to the display device, so that The display device displays the transaction order information according to the first message.
  • a third sending unit configured to, after receiving the first message carrying transaction order information sent by the POS terminal, forward the first message to the display device, so that The display device displays the transaction order information according to the first message.
  • the device further includes: a fourth sending unit, configured to forward the second message to the display device after receiving the second message carrying the settlement information sent by the POS terminal, so as to display The device displays the settlement information according to the second message.
  • a fourth sending unit configured to forward the second message to the display device after receiving the second message carrying the settlement information sent by the POS terminal, so as to display The device displays the settlement information according to the second message.
  • the device further includes: a parsing unit for parsing the third message using the second communication protocol after receiving the third message carrying payment information fed back by the payment device after completing the payment process , To obtain payment information; a generating unit, used to generate a seventh message conforming to the first communication protocol according to the payment information; a fifth sending unit, used to send the seventh message to the display device, so that the display device according to the first Seven messages display payment information.
  • the payment process is a face-swiping payment process, a code-scanning payment process, or a fingerprint payment process.
  • an embodiment of the present application provides an electronic device, including: a first interface for connecting to a point-of-sale POS terminal; a second interface for connecting to a payment device; at least one processor; and a communication connection with the processor At least one memory, where: the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the methods provided in the first aspect and some of the possible implementations thereof.
  • the electronic device further includes: a third interface for connecting to the display device; at least one memory that is communicatively connected with the processor also stores program instructions that can be executed by the processor, and the processor can call the program instructions Perform the method provided in the first aspect and any of its possible implementations.
  • an embodiment of the present application provides a non-transitory computer-readable storage medium that stores computer instructions that cause the computer to execute the first aspect and any one thereof The methods provided by one possible implementation.
  • FIG. 1 is a schematic diagram of an application scenario of a payment communication method according to an embodiment of this application
  • FIG. 2 is a flowchart of an embodiment of a payment communication method according to an embodiment of the application
  • FIG. 3 is a flowchart of another embodiment of a payment communication method according to an embodiment of the application.
  • FIG. 5 is a flowchart of another embodiment of the payment communication method according to the embodiment of the application.
  • FIG. 6 is a schematic structural diagram of an embodiment of a payment communication device according to an embodiment of the application.
  • FIG. 7 is a schematic structural diagram of an embodiment of an electronic device according to an embodiment of the application.
  • FIG. 1 is a schematic diagram of an application scenario of a payment communication method according to an embodiment of the application.
  • the payment communication method of an embodiment of the application may be executed by the electronic device 100 shown in FIG.
  • the electronic device 100 includes a first interface 1001, a second interface 1002, a third interface 1004, and a processor 1003.
  • the first interface 1001 is connected to a point of sale (POS) terminal 101 (also referred to as a POS machine)
  • the second interface 1002 is connected to the payment device 102
  • the third interface 1004 is connected to the display device 103.
  • POS point of sale
  • the POS terminal 101 can support payment methods such as cash payment and card payment. It can be equipped with a barcode scanner to scan the QR code for product label printing, and determine product information based on the QR code, such as price, in-store discounts, product categories, etc., POS
  • the terminal can communicate with the sales management system (also known as the POS system, not shown in Figure 1). After the user completes the payment for the purchase of the product, the POS terminal can notify the sales management system to update the product library information and turnover information, and will sell The inventory corresponding to the products of the corresponding quantity is reduced.
  • the payment device 102 can support at least one payment method to complete the payment process.
  • it can be payment methods such as face-swiping payment, fingerprint payment, scanning payment code/receiving code, etc.
  • Each payment method requires the payment device 102 to be equipped with a corresponding hardware module
  • face-scanning payment requires that the payment device 102 is equipped with a camera for taking a facial image of the user.
  • the payment device 102 obtains the user's payment identity certificate (such as facial image, fingerprint image, payment code, etc.), it communicates with the payment institution (not shown in FIG. 1) according to the user's identity certificate to complete the payment transaction process.
  • the payment institution may be an online bank, a payment platform, and so on.
  • the display device 103 may be a digital tube display screen, which can display, for example, the amount of goods and the amount of payment.
  • the electronic device 100 includes a first interface 1001, a second interface 1002, a third interface 1004, and a processor 1003.
  • the first interface 1001 is used to connect to the POS terminal 101; the second interface 1002 is used to connect to the payment device 102; the third interface 1004 is used to connect to the display device 103.
  • the electronic device 100 further includes a memory (not shown in FIG. 1), the memory is in communication connection with the processor 1003, and the memory stores program instructions that can be executed by the processor 1003.
  • the processor 1003 calls the program instructions to control the electronic device 100 to execute the instructions. Apply for the payment communication method provided in the embodiment.
  • FIG. 2 is a flowchart of an embodiment of a payment communication method according to an embodiment of the application, which can be implemented in the application scenario shown in FIG. 1.
  • the aforementioned payment communication method may include:
  • Step 201 The POS terminal 101 scans the two-dimensional code of the product, and finds the product information corresponding to the two-dimensional code in the pre-stored product information database, such as the price, category, and in-store discounts of the product.
  • the operator of the POS terminal 101 can also manually enter the digital identification code of the product.
  • the operator of the POS terminal 101 can also input or select the number of pieces of the product after scanning the two-dimensional code of the product to avoid scanning the same type of product multiple times.
  • the transaction order information is obtained, and the transaction order information includes at least the amount of the commodity.
  • Step 202 The POS terminal 101 generates a first message according to the transaction order information, and sends the first message carrying the transaction order information to the electronic device 100.
  • the POS terminal 101 uses the first communication protocol when sending communication messages.
  • the first message is a message that complies with the first communication protocol.
  • the first communication protocol can be Object Linking and Embedding Point of Sale (OPOS for short) ) Protocol, OPOS protocol is usually configured on POS terminals configured with Windows operating system. OPOS protocol is an industry standard protocol, and will not be repeated here.
  • OPOS Object Linking and Embedding Point of Sale
  • the electronic device 100 can parse the first message using the first communication protocol to obtain the transaction order information in the first message, and then generate a fourth message conforming to the second communication protocol according to the transaction order information, which will carry the transaction
  • the fourth message of the order information is sent to the payment device 102.
  • the payment device 102 uses a second communication protocol to receive information.
  • the second communication protocol may be a universal serial bus-human-machine interface device USB-HID protocol.
  • the USB-HID protocol is a standard protocol and will not be repeated here.
  • the above steps 201 to 203 may be repeated multiple times, so that the electronic device 100 forwards the transaction order information determined by the POS terminal 101 to the payment device 102.
  • step 204 the POS terminal 101 receives the settlement instruction.
  • the operator can click the "settlement" button on the keyboard of the POS terminal 101 to send the settlement instruction to the POS terminal 101.
  • Step 205 The POS terminal 101 generates a second message conforming to the first communication protocol according to the settlement information, and sends the second message to the electronic device 100.
  • the settlement information includes at least prompt information for indicating settlement.
  • the settlement information may also include the total amount of settlement.
  • Step 206 After receiving the second message, the electronic device 100 parses the second message to obtain settlement information, and then responds to the second message (or the settlement information obtained by parsing the second message) to trigger payment by the payment device 102 Process.
  • An optional implementation manner is that the electronic device 102 generates a fifth message conforming to the second communication protocol according to the settlement information, and sends the fifth message to the payment device 102.
  • another optional implementation manner is that after the electronic device 102 parses the second message to obtain the settlement information, it searches for a pre-stored fifth report that has been negotiated with the payment device 102 to trigger the payment device 102 to execute the payment process.
  • the fifth message is sent to the payment device 102 using the second communication protocol.
  • the embodiment of the present application does not specifically limit the specific content of the fifth message used to trigger the payment device 102, and it is only necessary to negotiate with the payment device 102 in advance.
  • step 207 the payment device 102 executes the payment process after being triggered by the electronic device 100 to execute the payment process.
  • the specific payment amount can be obtained by summarizing all the transaction order information previously obtained, or the electronic device 100 forwards the settlement information carrying the payment amount sent by the POS terminal 101 to the payment device 102, which is not specifically limited in this embodiment of the application. .
  • An optional implementation manner for the payment device 102 to execute the payment process is shown in FIG. 3, and includes the following steps:
  • Step 601 Determine the payment method.
  • the payment device 102 may be preset with a variety of payment methods, such as face-swiping payment, fingerprint payment, payment by scanning payment code, payment by scanning receipt code, and the like.
  • the method of determining the payment method may be that the consumer performs a selection operation on the payment device 102.
  • the payment device 102 may include a touch screen for displaying multiple payment methods, and the consumer can touch and click on the touch screen to select one payment method.
  • the choice of payment method can also be determined by the information provided by the POS terminal 101. For example, after the POS terminal 101 receives a settlement instruction, the operator of the POS terminal 101 can ask the consumer which payment method he wants to choose.
  • the operator selects the payment method at the POS terminal 101, integrates the selected payment method in the settlement information, and then when the POS terminal 101 executes step 205, the second message carrying the identification information of the payment method is sent to the electronic device 100 , The electronic device 100 forwards the payment method to the payment device 102 so that the payment device 102 can determine which payment method to choose.
  • Step 602 Invoke the hardware corresponding to the payment method to collect identity credential information.
  • the identity credential information is a payment voucher for consumers, and the specific content of the identity credential information varies according to different payment methods. For example, if you choose to pay with a face, the identity credential information is to take a photo of the consumer's face. Different payment methods call different hardware. For example, face-swiping payment needs to call a camera that captures the consumer's face, fingerprint payment needs to call a camera that captures the fingerprint image of the consumer's finger, and so on.
  • step 603 after the identity credential information is collected, the payment device 102 communicates with the payment institution, and the payment institution transfers the payment amount from the consumer's account to the account corresponding to the POS terminal 101 to complete the transaction.
  • the payment institution can be a bank, a third-party payment platform, etc. This application does not make specific restrictions on this.
  • Step 208 After the payment device 102 finishes executing the payment process, it generates a third message according to the payment information and sends it to the electronic device 100.
  • the second communication protocol is a two-way communication protocol, such as the USB-HID protocol
  • a third message conforming to the second communication protocol can be generated according to the payment information and sent to the electronic device 100.
  • Payment information includes payment record information.
  • payment information may include some or all of the following information: payment institution code, vouchers issued by the payment institution (such as digital signatures, etc.), payment amount, payment time, and so on.
  • Step 209 After receiving the third message, the electronic device 100 parses the third message to obtain payment information, and then forwards the payment information to the POS terminal 101. If the first message is sent using the OPOS protocol, the POS terminal 101 cannot use this protocol to receive information, and the electronic device 100 can use another communication protocol to send the information to the POS terminal 101, such as the aforementioned USB-HID protocol. The electronic device 100 may generate a third message conforming to the third communication protocol (such as the USB-HID protocol) according to the payment information, and then send the third message to the POS terminal 101.
  • the third communication protocol such as the USB-HID protocol
  • FIG. 2 is only an optional implementation of the payment communication method provided by the embodiment of the application
  • FIG. 4 is another optional implementation of the payment communication method provided by the embodiment of the application. It is implemented in the application scenario shown in Figure 1.
  • the POS terminal 101 uses the OPOS protocol to send a message to the electronic device 100
  • the electronic device 100 uses the USB-HID protocol to send a message to the POS terminal 101
  • the electronic device 100 communicates with
  • the payment electronic device 100 and the payment device 102 can communicate with each other through the USB-HID protocol
  • the electronic device 100 can use the OPOS protocol to send a message to the display device 103.
  • the payment communication method includes the following steps:
  • step 301 the cashier holds the scanner connected to the POS terminal 101 and scans the barcode of commodity A, and finds the amount of commodity A in the commodity database.
  • Step 302 The POS terminal 101 sends a first message carrying the amount of commodity A to the electronic device 100.
  • step 303 and step 304 After performing step 302, the electronic device 100 performs step 303 and step 304. It should be noted that the order of performing step 303 and step 304 is not limited.
  • step 303 the electronic device 100 sends the amount of commodity A to the payment device 102.
  • step 304 the electronic device 100 sends the first message to the display device 103.
  • step 304 the display device 103 performs step 305 to display the amount of commodity A according to the first message.
  • step 306 the POS terminal 101 receives the settlement instruction entered by the cashier.
  • Step 307 The POS terminal 101 sends a second message carrying settlement information to the electronic device 100.
  • step 307 the electronic device 100 executes step 308 and step 309. It should be noted that the order of execution of step 308 and step 309 is not limited.
  • step 308 the electronic device 100 triggers the payment device 102 to execute the payment process.
  • step 308 the payment device 102 performs step 310 to execute the payment process.
  • step 310 the payment device 102 performs step 312 to feed back the third message carrying payment information to the electronic device 100.
  • step 309 the electronic device 100 sends the second message to the display device 103.
  • step 309 the display device 102 performs step 311 to display the settlement information according to the second message.
  • step 312 the electronic device 100 obtains the third message, and can perform step 313 and step 315. It should be noted that the order of execution of step 313 and step 315 is not limited.
  • Step 313 The electronic device 100 sends the payment information carried in the third message to the display device 103.
  • the display device 103 uses the first communication protocol.
  • the first communication protocol is the communication protocol used by the message sent by the POS terminal 101 to the electronic device 100, and the electronic device 100 carries the message according to the third message. For payment information, a message conforming to the first communication protocol is generated and sent to the display device 103.
  • Step 314 After receiving the payment information, the display device 103 displays the payment amount and other information in the payment information.
  • step 315 since the electronic device 100 and the payment device 102 use the USB-HID protocol to communicate, and the electronic device 100 uses the USB-HID protocol to send a message to the POS terminal 101, the electronic device 100 can directly send the second message sent by the payment device 102 The three messages are forwarded to the POS terminal 101.
  • Step 316 After receiving the third message, the POS terminal 101 parses and obtains the payment information, and can execute the warehousing process according to the payment information, that is, update the database of the POS system that communicates with the POS terminal 101, and store the goods in the POS system The quantity and turnover are changed accordingly.
  • the POS terminal 101 may also switch the interface of the software after receiving the payment information, and display the interface corresponding to the completion of the payment.
  • the above steps 301 to 303 may be repeated multiple times, so that the electronic device 100 forwards the commodity information received by the POS terminal 101 to the payment device 102.
  • the above-mentioned process can be explained with reference to the embodiment shown in FIG. 5. As shown in FIG. 5, the POS terminal 101 performs the following steps:
  • Step 401 It is determined that the scanned product code or settlement instruction is received.
  • step 402 if it is determined in step 401 that the product code is scanned, the corresponding product information is searched according to the product code, and the first message is generated according to the product information.
  • Step 403 Send the first message to the electronic device 100.
  • step 403 After performing step 403, return to step 401.
  • step 404 if it is determined in step 401 that the settlement instruction is received, a second message carrying settlement information is generated, and the second message is used to be sent to the electronic device 100.
  • the electronic device 100 receives the first message and executes the following steps:
  • Step 501 Parse the first message to obtain product information.
  • Step 502 Send the product information carried in the first message to the payment device 102.
  • step 401 to 403 the POS terminal 101 executes steps 401 to 403 in a cycle. , Execute step 402 and step 403, and then the electronic device 100 sends the product information to the payment device 102, and the payment device 102 stores the received product information until step 401 is executed and it is determined that a settlement instruction is received, then step 404 is executed , Jump out of the loop of step 401 to step 403.
  • the current POS terminal is usually equipped with a display device interface of the OPOS protocol to output information such as the amount of goods and the settlement amount to the display device.
  • the POS terminal can use another protocol: USB -HID protocol to receive information
  • POS terminal can use USB-HID protocol to receive keyboard input information
  • the payment communication method provided in the embodiment of this application can use the above-mentioned communication protocol usually configured in POS terminal to obtain transaction order information from POS terminal , And initiate the payment process of the payment device after receiving the settlement instruction.
  • the feedback payment information is forwarded to the POS terminal, which can realize the two-way communication between the POS terminal and the payment device, so that the payment device acts as
  • the peripherals of the POS terminal help the POS terminal to complete the payment process of the cash register. It is not necessary to eliminate the POS terminal that does not support certain payment methods. It can reduce the cost of transformation while promoting the use of new payment methods, and can reduce manual operations. .
  • FIG. 6 is a schematic structural diagram of an embodiment of a payment communication device according to an embodiment of the application.
  • the above payment communication device may include: a first receiving unit 10, a first sending unit 20, a second receiving unit 30, and a triggering unit 40.
  • the first receiving unit 10 is configured to receive a first message carrying transaction order information sent by a point-of-sale POS terminal, where the transaction order information includes at least the transaction amount; the first sending unit 20 is configured to send the transaction order information
  • the second receiving unit 30 is used to receive the second message carrying settlement information sent by the POS terminal; the trigger unit 40 is used to trigger the payment device to execute the payment process in response to the second message;
  • third The receiving unit 50 is configured to receive a third message that carries payment information fed back by the payment device after completing the payment process; the second sending unit 60 is configured to send the payment information to the POS terminal.
  • the transaction amount is the amount corresponding to the commodity code searched by the POS terminal according to the commodity code.
  • the first receiving unit 10 includes: a first receiving module, configured to receive a plurality of first messages sequentially sent by the POS terminal for a plurality of commodities, wherein each first message carries a transaction
  • the order information includes the transaction amount of the corresponding commodity
  • the first sending unit 20 includes: a first sending module, configured to send the corresponding transaction order information to the payment device every time the first message is received.
  • the POS terminal uses a first communication protocol to send a message
  • the first sending unit 20 includes: a first parsing module configured to parse the first message using the first communication protocol to obtain transaction order information; A generating module is used to generate a fourth message conforming to the second communication protocol according to the transaction order information; the second sending module is used to send the fourth message to the payment device.
  • the trigger unit 40 includes: a second parsing module, configured to parse the second message using the first communication protocol, to determine that settlement information is received; and a second generating module, configured to generate the second communication protocol The fifth message of the protocol, where the fifth message is used to trigger the payment device to execute the payment process; the third sending module is used to send the fifth message to the payment device.
  • the first communication protocol is an OPOS protocol for point-of-sale object connection and embedding.
  • the POS terminal uses a third communication protocol to receive the message
  • the second sending unit 60 includes: a third parsing module for parsing the third message using the second communication protocol to obtain payment information;
  • the third generation module is used to generate a sixth message conforming to the third communication protocol according to the payment information;
  • the fourth sending module is used to send the sixth message to the POS terminal.
  • the sixth message is used to trigger the warehousing process of the POS terminal, where the warehousing process is a process initiated after the completion of the payment process and used to update the database of the sales management system.
  • the third communication protocol is the Universal Serial Bus USB-Human Machine Interface Device HID protocol.
  • the device further includes: a third sending unit, configured to, after receiving the first message carrying transaction order information sent by the POS terminal, forward the first message to the display device, so that The display device displays the transaction order information according to the first message.
  • a third sending unit configured to, after receiving the first message carrying transaction order information sent by the POS terminal, forward the first message to the display device, so that The display device displays the transaction order information according to the first message.
  • the device further includes: a fourth sending unit, configured to forward the second message to the display device after receiving the second message carrying the settlement information sent by the POS terminal, so as to display The device displays the settlement information according to the second message.
  • a fourth sending unit configured to forward the second message to the display device after receiving the second message carrying the settlement information sent by the POS terminal, so as to display The device displays the settlement information according to the second message.
  • the device further includes: a parsing unit for parsing the third message using the second communication protocol after receiving the third message carrying payment information fed back by the payment device after completing the payment process , To obtain payment information; a generating unit, used to generate a seventh message conforming to the first communication protocol according to the payment information; a fifth sending unit, used to send the seventh message to the display device, so that the display device according to the first Seven messages display payment information.
  • the payment process is a face-swiping payment process, a code-scanning payment process, or a fingerprint payment process.
  • the payment communication device provided in the embodiment shown in FIG. 6 can be used to implement the technical solutions of the method embodiments shown in FIGS. 2 to 5 of the present application.
  • the embodiment of the present application also provides an electronic device, which may include a first interface for connecting to a POS terminal at a point of sale; a second interface for connecting to a payment device; at least one processor; At least one memory, where: the memory stores program instructions that can be executed by a processor, and the processor can invoke the program instructions to execute the payment communication method provided in the embodiments shown in FIGS. 2 to 3 of the embodiment of the present application.
  • the electronic device further includes: a third interface for connecting a display device; at least one memory communicatively connected with the processor also stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the implementation of this application. Examples of the payment communication method provided by the embodiments shown in Figures 2-5.
  • Fig. 7 shows a block diagram of an exemplary electronic device suitable for implementing the embodiments of the present application.
  • the electronic device shown in FIG. 7 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present application.
  • the components of the electronic device may include, but are not limited to: a first interface 821, used to connect to a point-of-sale POS terminal; a second interface 822, used to connect to a payment device; and a third interface 823, used to connect to a display device
  • a first interface 821 used to connect to a point-of-sale POS terminal
  • a second interface 822 used to connect to a payment device
  • a third interface 823 used to connect to a display device
  • the first interface 821 may be the first interface 1001 in FIG. 1
  • the second interface 822 may be the second interface 1002 in FIG. 1
  • the third interface 823 may be the third interface 1004 in FIG. 1.
  • the processor 810 It may be the processor 1003 in FIG. 1.
  • the aforementioned POS terminal may be the POS terminal 101 in FIG. 1
  • the payment device may be the payment device 102 in FIG. 1
  • the display device may be the display device 103 in FIG. 1.
  • the hardware form of the first interface 821 can be an RS-232 port or a USB port
  • the hardware form of the second interface 1002 can be a serial port (such as a DB9F port) or a USB port
  • the hardware form of the third interface 1004 can be RS-232 Port, RS-485 port, UART port, and a virtual serial port in the form of USB.
  • the above hardware interfaces are currently common standard interfaces, so I won’t repeat them here.
  • the communication bus 840 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure among multiple bus structures.
  • these architectures include but are not limited to industry standard architecture (Industry Standard Architecture; hereinafter referred to as ISA) bus, Micro Channel Architecture (hereinafter referred to as MAC) bus, enhanced ISA bus, video electronics Standards Association (Video Electronics Standards Association; hereinafter referred to as VESA) local bus and Peripheral Component Interconnection (hereinafter referred to as PCI) bus.
  • Industry Standard Architecture hereinafter referred to as ISA
  • MAC Micro Channel Architecture
  • VESA Video Electronics Standards Association
  • PCI Peripheral Component Interconnection
  • Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by electronic devices, including volatile and non-volatile media, removable and non-removable media.
  • the memory 830 may include a computer system readable medium in the form of a volatile memory, such as random access memory (Random Access Memory; hereinafter referred to as RAM) and/or cache memory.
  • RAM random access memory
  • the electronic device may further include other removable/non-removable, volatile/nonvolatile computer system storage media.
  • the memory 830 may include at least one program product, and the program product has a set of (for example, at least one) program modules, and these program modules are configured to perform the functions of the embodiments of the present application.
  • a program/utility tool having a set of (at least one) program modules may be stored in the memory 830.
  • Such program modules include, but are not limited to, an operating system, one or more application programs, other program modules, and program data Each of these examples or some combination may include the implementation of a network environment.
  • the program module usually executes the functions and/or methods in the embodiments described in the embodiments of the present application.
  • the processor 810 executes various functional applications and data processing by running programs stored in the memory 830, such as implementing the payment communication method provided by the embodiments shown in FIGS. 1 to 3 of the embodiments of the present application.
  • the embodiment of the present application provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the embodiments of the present application as shown in FIGS. 2 to 5
  • the payment communication method provided by the embodiment is not limited to:
  • the aforementioned non-transitory computer-readable storage medium may adopt any combination of one or more computer-readable media.
  • the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above.
  • computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (Read Only Memory) ;Hereinafter referred to as: ROM), Erasable Programmable Read Only Memory; hereinafter referred to as: EPROM) or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic memory Pieces, or any suitable combination of the above.
  • the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, in which computer-readable program code is carried. This propagated data signal can take many forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including, but not limited to, wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
  • the computer program code used to perform the operations of the embodiments of the present application may be written in one or more programming languages or a combination thereof.
  • the programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and Conventional procedural programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network-including Local Area Network (LAN) or Wide Area Network (WAN), or it can be connected to an external computer (for example, using Internet service provider to connect via the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the embodiments of the present application, “a plurality of” means at least two, for example, two, three, etc., unless otherwise specifically defined.
  • the word “if” as used herein can be interpreted as “when” or “when” or “in response to determination” or “in response to detection”.
  • the phrase “if determined” or “if detected (statement or event)” can be interpreted as “when determined” or “in response to determination” or “when detected (statement or event) )” or “in response to detection (statement or event)”.
  • terminals involved in the embodiments of this application may include but are not limited to personal computers (Personal Computer; PC), personal digital assistants (Personal Digital Assistant; PDA), wireless handheld devices, tablet computers (Tablet Computer), Mobile phones, MP3 players, MP4 players, etc.
  • PC Personal Computer
  • PDA Personal Digital Assistant
  • Tablett Computer Tablet Computer
  • Mobile phones MP3 players, MP4 players, etc.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the functional units in the various embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.
  • the above-mentioned integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium.
  • the above-mentioned software functional unit is stored in a storage medium and includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (Processor) execute the various embodiments of the present application Part of the method.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as ROM), random access memory (Random Access Memory; hereinafter referred to as RAM), magnetic disks or optical disks, etc.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

一种支付通信方法、装置和电子设备(100),以扩展POS终端(101)的支付方式。其中,上述支付通信方法包括:接收销售点POS终端(101)发送的携带有交易订单信息的第一报文,其中,交易订单信息至少包括交易金额;将交易订单信息发送至支付设备(102);接收POS终端(101)发送的携带有结算信息的第二报文;响应于第二报文,触发支付设备(102)执行支付流程;接收支付设备(102)在完成支付流程之后反馈的携带有支付信息的第三报文;将支付信息发送至POS终端(101)。

Description

支付通信方法、装置和电子设备 技术领域
本申请实施例涉及通信技术领域,尤其涉及支付通信方法、装置和电子设备。
背景技术
目前的销售点POS(point of sale)终端(也可以称为POS机)通常配置有现金收银功能,一些POS终端也配置有刷卡的收银功能,操作人员通过与POS终端连接的扫描枪扫描商品标签的二维码,或者手动输入商品的数字码等方式,输入待结算的商品信息,POS终端根据商品码查找到对应商品的信息,如价格、折扣、商品类别等等,根据商品的价格结算总金额,然后通过现金、刷卡等收银方式收款。随着电子支付方式的日益推广,越来越多的客户使用手机等移动终端通过网银、支付平台等电子支付渠道进行支付,支付的方式也越来越多,例如刷脸支付、指纹支付、扫码支付等,但是目前的POS终端通常不支持这些支付方式,如果大规模的淘汰和更换支持上述支付方式的POS终端成本较高,如何使目前的POS终端支持更多种类的支付方式是亟需解决的技术问题。
发明内容
本申请实施例提供了一种支付通信方法、装置和电子设备,以扩展POS终端的支付方式。
第一方面,本申请实施例提供一种支付通信方法,包括:接收销售点POS终端发送的携带有交易订单信息的第一报文,其中,交易订单信息至少包括交易金额;将交易订单信息发送至支付设备;接收POS终端发送的携带有结算信息的第二报文;响应于第二报文,触发支付设备执行支付流程;接收支付设备在完成支付流程之后反馈的携带有支付信息的第三报文;将支付信息发送至POS终端。
一种可能的实现方式中,交易金额为POS终端根据商品码查找的与商品码对应的金额。
一种可能的实现方式中,接收POS终端发送的携带有交易订单信息的第一报文,包括:接收POS终端针对多个商品依次发送的多个第一报文,其中,每个第一报文携带的交易订单信息包括对应商品的交易金额;将交易订单信息发送至支付设备,包括:在每次接收到第一报文之后,将对应的交易订单信息发送至支付设备。
一种可能的实现方式中,POS终端使用第一通信协议发送报文,将交易订单信息发送至支付设备,包括:使用第一通信协议解析第一报文,得到交易订单信息;根据交易订单信息,生成符合第二通信协议的第四报文;将第四报文发送至支付设备。
一种可能的实现方式中,响应于第二报文,触发支付设备执行支付流程,包括:使 用第一通信协议解析第二报文,以确定接收到结算信息;生成符合第二通信协议的第五报文,其中,第五报文用于触发支付设备执行支付流程;将第五报文发送至支付设备。
一种可能的实现方式中,第一通信协议为销售点对象连接与嵌入OPOS协议。
一种可能的实现方式中,POS终端使用第三通信协议接收报文,将支付信息发送至POS终端,包括:使用第二通信协议解析第三报文,以得到支付信息;根据支付信息,生成符合第三通信协议的第六报文;将第六报文发送至POS终端。
一种可能的实现方式中,第六报文用于触发POS终端的入库流程,其中,入库流程为在确定完成支付流程之后发起的、用于更新销售管理系统的数据库的流程。
一种可能的实现方式中,第三通信协议为通用串行总线USB-人机接口设备HID协议。
一种可能的实现方式中,在接收POS终端发送的携带有交易订单信息的第一报文之后,该方法还包括:将第一报文转发至显示设备,以使显示设备根据第一报文显示交易订单信息。
一种可能的实现方式中,在接收POS终端发送的携带有结算信息的第二报文之后,该方法还包括:将第二报文转发至显示设备,以使显示设备根据第二报文显示结算信息。
一种可能的实现方式中,在接收支付设备在完成支付流程之后反馈的携带有支付信息的第三报文之后,该方法还包括:使用第二通信协议解析第三报文,以得到支付信息;根据支付信息,生成符合第一通信协议的第七报文;将第七报文发送至显示设备,以使显示设备根据第七报文显示支付信息。
一种可能的实现方式中,支付流程为刷脸支付流程、扫码支付流程或指纹支付流程。
本申请实施例提供的支付通信方法,通过在接收销售点POS终端发送的携带有交易订单信息的第一报文之后,将交易订单信息发送至支付设备,在接收POS终端发送的携带有结算信息的第二报文之后,响应于第二报文,触发支付设备执行支付流程,并在接收支付设备在完成支付流程之后反馈的携带有支付信息的第三报文之后,将支付信息发送至POS终端,使得POS终端和支付设备能够实现双向的通信,将POS终端获取的交易订单信息发送给支付设备,在支付设备根据交易订单信息完成支付之后将支付信息反馈给POS终端,扩展了POS终端的支付方式。
第二方面,本申请实施例提供一种支付通信装置,包括:第一接收单元,用于接收销售点POS终端发送的携带有交易订单信息的第一报文,其中,交易订单信息至少包括交易金额;第一发送单元,用于将交易订单信息发送至支付设备;第二接收单元,用于接收POS终端发送的携带有结算信息的第二报文;触发单元,用于响应于第二报文,触发支付设备执行支付流程;第三接收单元,用于接收支付设备在完成支付流程之后反馈的携带有支付信息的第三报文;第二发送单元,用于将支付信息发送至POS终端。
一种可能的实现方式中,交易金额为POS终端根据商品码查找的与商品码对应的金额。
一种可能的实现方式中,第一接收单元包括:第一接收模块,用于接收POS终端针对多个商品依次发送的多个第一报文,其中,每个第一报文携带的交易订单信息包括对应商品的交易金额;第一发送单元包括:第一发送模块,用于在每次接收到第一报文之后,将对应的交易订单信息发送至支付设备。
一种可能的实现方式中,POS终端使用第一通信协议发送报文,第一发送单元包括:第一解析模块,用于使用第一通信协议解析第一报文,得到交易订单信息;第一生成模块,用于根据交易订单信息,生成符合第二通信协议的第四报文;第二发送模块,用于将第四报文发送至支付设备。
一种可能的实现方式中,触发单元包括:第二解析模块,用于使用第一通信协议解析第二报文,以确定接收到结算信息;第二生成模块,用于生成符合第二通信协议的第五报文,其中,第五报文用于触发支付设备执行支付流程;第三发送模块,用于将第五报文发送至支付设备。
一种可能的实现方式中,第一通信协议为销售点对象连接与嵌入OPOS协议。
一种可能的实现方式中,POS终端使用第三通信协议接收报文,第二发送单元包括:第三解析模块,用于使用第二通信协议解析第三报文,以得到支付信息;第三生成模块,用于根据支付信息,生成符合第三通信协议的第六报文;第四发送模块,用于将第六报文发送至POS终端。
一种可能的实现方式中,第六报文用于触发POS终端的入库流程,其中,入库流程为在确定完成支付流程之后发起的、用于更新销售管理系统的数据库的流程。
一种可能的实现方式中,第三通信协议为通用串行总线USB-人机接口设备HID协议。
一种可能的实现方式中,该装置还包括:第三发送单元,用于在接收POS终端发送的携带有交易订单信息的第一报文之后,将第一报文转发至显示设备,以使显示设备根据第一报文显示交易订单信息。
一种可能的实现方式中,该装置还包括:第四发送单元,用于在接收POS终端发送的携带有结算信息的第二报文之后,将第二报文转发至显示设备,以使显示设备根据第二报文显示结算信息。
一种可能的实现方式中,该装置还包括:解析单元,用于在接收支付设备在完成支付流程之后反馈的携带有支付信息的第三报文之后,使用第二通信协议解析第三报文,以得到支付信息;生成单元,用于根据支付信息,生成符合第一通信协议的第七报文;第五发送单元,用于将第七报文发送至显示设备,以使显示设备根据第七报文显示支付 信息。
一种可能的实现方式中,支付流程为刷脸支付流程、扫码支付流程或指纹支付流程。
第三方面,本申请实施例提供一种电子设备,包括:第一接口,用于连接销售点POS终端;第二接口,用于连接支付设备;至少一个处理器;以及与处理器通信连接的至少一个存储器,其中:存储器存储有可被处理器执行的程序指令,处理器调用程序指令能够执行如第一方面及其部分可能的实现方式所提供的方法。
一种可能的实现方式中,电子设备还包括:第三接口,用于连接显示设备;与处理器通信连接的至少一个存储器还存储有可被处理器执行的程序指令,处理器调用程序指令能够执行如第一方面及其任一种可能的实现方式所提供的方法。
第四方面,本申请实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行第一方面及其任一种可能的实现方式所提供的方法。
应当理解的是,本申请实施例的第二~第四方面与本申请实施例的第一方面的技术方案一致,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请实施例的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本申请实施例支付通信方法一个应用场景的示意图;
图2为本申请实施例支付通信方法一个实施例的流程图;
图3为本申请实施例支付通信方法另一个实施例的流程图;
图4为本申请实施例支付通信方法再一个实施例的流程图;
图5为本申请实施例支付通信方法再一个实施例的流程图;
图6为本申请实施例支付通信装置一个实施例的结构示意图;
图7为本申请实施例电子设备一个实施例的结构示意图。
具体实施方式
为了更好的理解本申请实施例的技术方案,下面结合附图对本申请实施例进行详细描述。
应当明确,所描述的实施例仅仅是本申请实施例一部分实施例,而不是全部的实施例。基于本申请实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请实施例保护的范围。
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请实施例。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。
图1为本申请实施例支付通信方法应用场景的示意图,本申请实施例的支付通信方法可由图1所示的电子设备100执行,具体可由电子设备100的处理器1003控制电子设备100执行。如图1所示,电子设备100包括第一接口1001、第二接口1002、第三接口1004和处理器1003。第一接口1001连接销售点POS(point of sale)终端101(也可称为POS机),第二接口1002连接支付设备102,第三接口1004连接显示设备103。
POS终端101可以支持现金支付、刷卡支付的支付方式,可以配置有扫码枪用于扫描商品标签印刷的二维码,根据二维码确定商品信息,如价格、店内折扣、商品类别等,POS终端可以与销售管理系统(也可以称为POS系统,图1中未示出)通信,在用户购买商品支付完成之后,POS终端可以通知销售管理系统更新商品库信息和营业额信息,将售出的商品对应的库存进行相应数量的减少。
支付设备102可以支持至少一种支付方式完成支付流程,例如,可以是刷脸支付、指纹支付、扫描付款码/收款码等支付方式,每种支付方式需要支付设备102配置有对应的硬件模块,例如,刷脸支付需要支付设备102配置有摄像头,以用于拍摄用户脸部图像。支付设备102在获取到用户支付的身份凭证(如面部图像、指纹图像、付款码等)之后,根据用户的身份凭证与支付机构(图1中未示出)通信,以完成支付的交易流程,例如,支付机构可以是网上银行、支付平台等。
显示设备103可以是数码管显示屏,能够显示如商品金额、支付金额等。
电子设备100包括第一接口1001、第二接口1002、第三接口1004和处理器1003。第一接口1001用于连接POS终端101;第二接口1002用于连接支付设备102;第三接口1004用于连接显示设备103。电子设备100还包括存储器(图1中未示出),存储器与处理器1003通信连接,存储器存储有可被处理器1003执行的程序指令,处理器1003调用程序指令,以控制电子设备100执行本申请实施例所提供的支付通信方法。
图2为本申请实施例支付通信方法一个实施例的流程图,可以在如图1所示的应用场景下实施。如图2所示,上述支付通信方法可以包括:
步骤201,POS终端101扫描商品的二维码,在预先存储的商品信息库中查找到与二维码对应的商品信息,例如商品的价格、类别、店内折扣等信息。可选的,如果二维码无法扫描,也可以通过POS终端101的操作人员手动的键入商品的数字标识码。此外,如果消费者购买多个相同的商品,POS终端101的操作人员也可以在扫描商品的二 维码之后,输入或选择该商品的件数,以避免多次扫描同一种类的商品。根据上述扫描或输入得到的信息,得到交易订单信息,交易订单信息至少包括商品的金额。
步骤202,POS终端101根据交易订单信息生成第一报文,将携带有交易订单信息的第一报文发送至电子设备100。POS终端101发送通信消息时使用第一通信协议,第一报文是符合第一通信协议的报文,第一通信协议可以是销售点对象连接与嵌入(Object Linking and Embedding Point of Sale,简称OPOS)协议,在配置有Windows操作系统的POS终端上通常配置有OPOS协议,OPOS协议是一种工业标准协议,在此不再赘述。
步骤203,电子设备100可以使用第一通信协议解析第一报文,得到第一报文中的交易订单信息,然后根据交易订单信息生成符合第二通信协议的第四报文,将携带有交易订单信息的第四报文发送至支付设备102。支付设备102使用第二通信协议接收信息,第二通信协议可以是通用串行总线-人机接口设备USB-HID协议,USB-HID协议是一种标准协议,在此不再赘述。
POS终端101在结算之前,可以多次重复循环上述的步骤201~步骤203,以使电子设备100将POS终端101确定的交易订单信息转发至支付设备102。
步骤204,POS终端101接收到结算指令,例如,操作人员可以在POS终端101的键盘上单击“结算”的按键,以向POS终端101发送结算指令。
步骤205,POS终端101根据结算信息生成符合第一通信协议的第二报文,将第二报文发送至电子设备100。其中,结算信息至少包括用于指示结算的提示信息,可选的,结算信息还可以包括结算的总金额。
步骤206,电子设备100接收到第二报文之后,解析第二报文,得到结算信息,进而响应于第二报文(或者解析第二报文得到的结算信息),触发支付设备102的支付流程。一种可选的实施方式为,电子设备102根据结算信息生成符合第二通信协议的第五报文,将第五报文发送至支付设备102。或者,另一种可选的实施方式为,电子设备102解析第二报文得到结算信息之后,查找预先存储的、与支付设备102协议好的用于触发支付设备102执行支付流程的第五报文,使用第二通信协议第五报文发送至支付设备102。本申请实施例对用于触发支付设备102的第五报文的具体内容不作具体限制,与支付设备102预先协议即可。
步骤207,支付设备102在被电子设备100触发执行支付流程之后,执行支付流程。具体的支付金额可以根据之前获取到的所有交易订单信息汇总得到,也可是电子设备100将POS终端101发送的携带有支付金额的结算信息转发给支付设备102,本申请实施例对此不作具体限制。支付设备102执行支付流程一种可选的实施方式如图3所示,包括如下步骤:
步骤601,确定支付方式。支付设备102可预置有多种支付方式,如刷脸支付、指纹支付、扫描付款码支付、被扫描收款码支付等。确定支付方式的方法可是消费者对支 付设备102执行选择操作,例如,支付设备102可包括触控显示屏,用于显示多种支付方式,由消费者在触控显示屏上触摸点击选择一种支付方式。选择哪一种支付方式也可由POS终端101提供的信息确定的,例如,在POS终端101接收到结算指令之后,POS终端101的操作人员可询问消费者想要选择哪一种支付方式,确定之后由操作人员在POS终端101选择该支付方式,在结算信息中整合选择的支付方式,进而在POS终端101执行步骤205时,将携带有支付方式的标识信息的第二报文发送给电子设备100,由电子设备100将支付方式转发给支付设备102,使支付设备102能够确定选择哪一种支付方式。
步骤602,调用支付方式对应的硬件,采集身份凭证信息。身份凭证信息是消费者支付的凭证,身份凭证信息的具体内容根据支付方式的不同而不同,例如,如果选择刷脸支付,则身份凭证信息为拍摄消费者的面部照片。不同支付方式调用的硬件不同,例如,刷脸支付需要调用拍摄消费者脸部的摄像头,指纹支付需要调用拍摄消费者手指指纹图像的摄像头,等等。
步骤603,在采集到身份凭证信息之后,支付设备102与支付机构通信,支付机构将支付金额的款项由消费者的账户中划拨到POS终端101对应的账户中,完成交易。支付机构可以是银行、第三方支付平台等机构,本申请对此不作具体限制。
步骤208,在支付设备102执行完支付流程之后,根据支付信息生成第三报文,发送至电子设备100。如果第二通信协议是可以双向通信的协议,如USB-HID协议,则可以根据支付信息生成符合第二通信协议的第三报文发送给电子设备100。支付信息包括支付的记录信息,例如,支付信息可以包括以下的部分或全部信息:支付机构代码、支付机构签发的凭证(如数字签名等)、支付金额、支付时间,等等。
步骤209,电子设备100接收到第三报文之后,解析第三报文,得到支付信息,进而将支付信息转发至POS终端101。如果第一报文是使用OPOS协议发送的,那么POS终端101无法使用该协议接收信息,电子设备100可采用另一种通信协议将信息发送至POS终端101,例如上述的USB-HID协议。电子设备100可根据支付信息生成符合第三通信协议(如USB-HID协议)的第三报文,进而将第三报文发送至POS终端101。
图2所示的实施方式仅为本申请实施例提供的支付通信方法的一种可选的实施方式,图4为本申请实施例提供的支付通信方法的另一种可选的实施方式,可以在如图1所示的应用场景下实施,具体而言,POS终端101使用OPOS协议向电子设备100发送报文,电子设备100使用USB-HID协议向POS终端101发送报文,电子设备100与支付电子设备100与支付设备102之间可以通过USB-HID协议互相通信,电子设备100可以使用OPOS协议向显示设备103发送报文。
如图4所示,该支付通信方法包括如下步骤:
步骤301,收银员手持与POS终端101连接的扫描枪扫描商品A的条形码,在商品 数据库中查找到商品A的金额。
步骤302,POS终端101发送携带商品A金额的第一报文至电子设备100。
在执行步骤302之后,电子设备100执行步骤303和步骤304,需要说明的是,步骤303和步骤304的执行先后顺序不限定。
步骤303,电子设备100将商品A的金额发送至支付设备102。
步骤304,电子设备100将第一报文发送至显示设备103。
在执行步骤304之后,显示设备103执行步骤305,根据第一报文显示商品A金额。
步骤306,POS终端101接收到收银员键入的结算指令。
步骤307,POS终端101发送携带有结算信息的第二报文至电子设备100。
在步骤307之后,电子设备100执行步骤308和步骤309,需要说明的是,步骤308和步骤309的执行先后顺序不限定。
步骤308,电子设备100触发支付设备102执行支付流程。
在执行步骤308之后,支付设备102执行步骤310,执行支付流程。
在执行步骤310之后,支付设备102执行步骤312,将携带有支付信息的第三报文反馈至电子设备100。
步骤309,电子设备100将第二报文发送至显示设备103。
在执行步骤309之后,显示设备102执行步骤311,根据第二报文显示结算信息。
在执行步骤312之后,电子设备100获取到第三报文,可以执行步骤313和步骤315,需要说明的是,步骤313和步骤315的执行先后顺序不限定。
步骤313,电子设备100将第三报文携带的支付信息发送至显示设备103。一种可选的实施方式为,显示设备103使用第一通信协议,第一通信协议是POS终端101发送至电子设备100的报文所使用的通信协议,电子设备100根据第三报文携带的支付信息,生成符合第一通信协议的报文发送至显示设备103。
步骤314,显示设备103在接收到支付信息后,显示支付信息中的支付金额等信息。
步骤315,由于电子设备100与支付设备102之间使用USB-HID协议通信,且电子设备100使用USB-HID协议向POS终端101发送消息,因此,电子设备100可以直接将支付设备102发送的第三报文转发至POS终端101。
步骤316,POS终端101在接收到第三报文之后,解析得到支付信息,可以根据支付信息执行入库流程,也即,更新与POS终端101通信的POS系统的数据库,将POS系统中的商品数量和营业金额进行相应的变更。可选的,POS终端101还可以在接收到支付信息之后切换软件的界面,显示支付完成对应的界面。
需要说明的是,POS终端101在接收到结算指令之前,可以多次重复循环上述的步骤301~步骤303,以使电子设备100将POS终端101接收到的商品信息转发至支付设备102。为了进一步说明,可以参考图5所示的实施方式,说明上述的过程,如图5所示,POS终端101执行如下步骤:
步骤401,判断是接收到扫描的商品码或结算指令。
步骤402,如果步骤401确定扫描到商品码,则根据商品码查找对应的商品信息,进而根据商品信息生成第一报文。
步骤403,发送第一报文至电子设备100。
在执行步骤403之后,返回步骤401。
步骤404,如果步骤401确定接收到结算指令,则生成携带结算信息的第二报文,第二报文用于发送给电子设备100。
如图5所示,在POS终端101执行步骤403之后,电子设备100接收到第一报文,执行如下步骤:
步骤501,解析第一报文,得到商品信息。
步骤502,将第一报文携带的商品信息发送至支付设备102。
由上可知,在POS终端101接收到结算指令之前,POS终端101循环的执行步骤401~步骤403,例如,收银员在结算之前,用扫码枪逐个扫描多个商品,每一次扫描商品码之后,执行步骤402和步骤403,进而由电子设备100将商品信息发送至支付设备102,由支付设备102存储接收到的商品信息,直至在执行步骤401时,判断接收到结算指令,则执行步骤404,跳出步骤401~步骤403的循环。
目前的POS终端通常配置有OPOS协议的显示设备接口,以用于向显示设备输出商品金额、结算金额等信息,但是由于无法通过OPOS协议接收信息,因此,POS终端可以使用另一种协议:USB-HID协议来接收信息,POS终端可以使用USB-HID协议接收键盘输入的信息,本申请实施例提供的支付通信方法可以利用POS终端中通常已经配置的上述通信协议,从POS终端获取交易订单信息,并在接收到结算指令之后发起支付设备的支付流程,在支付设备支付完成之后,将反馈的支付信息转发至POS终端,可以实现POS终端和支付设备之间的双向通信,从而使得支付设备作为POS终端的外设,帮助POS终端完成收银的支付流程,不需要淘汰不支持某些支付方式的POS终端,可以在推广使用新型的支付方式的同时降低改造的成本,并能够减少人工操作的环节。
上述图4所示的实施方式中未详述的部分,可以参考图2所示实施方式中的说明。
图6为本申请实施例支付通信装置一个实施例的结构示意图,如图6所示,上述支付通信装置可以包括:第一接收单元10,第一发送单元20,第二接收单元30,触发单 元40,第三接收单元50和第二发送单元60。
其中,第一接收单元10,用于接收销售点POS终端发送的携带有交易订单信息的第一报文,其中,交易订单信息至少包括交易金额;第一发送单元20,用于将交易订单信息发送至支付设备;第二接收单元30,用于接收POS终端发送的携带有结算信息的第二报文;触发单元40,用于响应于第二报文,触发支付设备执行支付流程;第三接收单元50,用于接收支付设备在完成支付流程之后反馈的携带有支付信息的第三报文;第二发送单元60,用于将支付信息发送至POS终端。
一种可能的实现方式中,交易金额为POS终端根据商品码查找的与商品码对应的金额。
一种可能的实现方式中,第一接收单元10包括:第一接收模块,用于接收POS终端针对多个商品依次发送的多个第一报文,其中,每个第一报文携带的交易订单信息包括对应商品的交易金额;第一发送单元20包括:第一发送模块,用于在每次接收到第一报文之后,将对应的交易订单信息发送至支付设备。
一种可能的实现方式中,POS终端使用第一通信协议发送报文,第一发送单元20包括:第一解析模块,用于使用第一通信协议解析第一报文,得到交易订单信息;第一生成模块,用于根据交易订单信息,生成符合第二通信协议的第四报文;第二发送模块,用于将第四报文发送至支付设备。
一种可能的实现方式中,触发单元40包括:第二解析模块,用于使用第一通信协议解析第二报文,以确定接收到结算信息;第二生成模块,用于生成符合第二通信协议的第五报文,其中,第五报文用于触发支付设备执行支付流程;第三发送模块,用于将第五报文发送至支付设备。
一种可能的实现方式中,第一通信协议为销售点对象连接与嵌入OPOS协议。
一种可能的实现方式中,POS终端使用第三通信协议接收报文,第二发送单元60包括:第三解析模块,用于使用第二通信协议解析第三报文,以得到支付信息;第三生成模块,用于根据支付信息,生成符合第三通信协议的第六报文;第四发送模块,用于将第六报文发送至POS终端。
一种可能的实现方式中,第六报文用于触发POS终端的入库流程,其中,入库流程为在确定完成支付流程之后发起的、用于更新销售管理系统的数据库的流程。
一种可能的实现方式中,第三通信协议为通用串行总线USB-人机接口设备HID协议。
一种可能的实现方式中,该装置还包括:第三发送单元,用于在接收POS终端发送的携带有交易订单信息的第一报文之后,将第一报文转发至显示设备,以使显示设备根据第一报文显示交易订单信息。
一种可能的实现方式中,该装置还包括:第四发送单元,用于在接收POS终端发送的携带有结算信息的第二报文之后,将第二报文转发至显示设备,以使显示设备根据第二报文显示结算信息。
一种可能的实现方式中,该装置还包括:解析单元,用于在接收支付设备在完成支付流程之后反馈的携带有支付信息的第三报文之后,使用第二通信协议解析第三报文,以得到支付信息;生成单元,用于根据支付信息,生成符合第一通信协议的第七报文;第五发送单元,用于将第七报文发送至显示设备,以使显示设备根据第七报文显示支付信息。
一种可能的实现方式中,支付流程为刷脸支付流程、扫码支付流程或指纹支付流程。
图6所示实施例提供的支付通信装置可用于执行本申请图2~图5所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
本申请实施例还提供了了一种电子设备,可以包括第一接口,用于连接销售点POS终端;第二接口,用于连接支付设备;至少一个处理器;以及与上述处理器通信连接的至少一个存储器,其中:存储器存储有可被处理器执行的程序指令,上述处理器调用上述程序指令能够执行本申请实施例图2~图3所示实施例提供的支付通信方法。
可选的,电子设备还包括:第三接口,用于连接显示设备;与处理器通信连接的至少一个存储器还存储有可被处理器执行的程序指令,处理器调用程序指令能够执行本申请实施例图2~图5所示实施例提供的支付通信方法。
图7示出了适于用来实现本申请实施例实施方式的示例性电子设备的框图。图7显示的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。
如图7所示,电子设备的组件可以包括但不限于:第一接口821,用于连接销售点POS终端;第二接口822,用于连接支付设备;第三接口823,用于连接显示设备;一个或者多个处理器810,存储器830,连接不同系统组件(包括存储器830和处理单元810)和接口(包括第一接口821、第二接口822和第三接口823)的通信总线840。
其中,第一接口821可以是图1中的第一接口1001,第二接口822可以是图1中的第二接口1002,第三接口823可以是图1中的第三接口1004,处理器810可以是图1中的处理器1003。上述的POS终端可以是图1中的POS终端101,支付设备可以是图1中的支付设备102,显示设备可以是图1中的显示设备103。
第一接口821的硬件形式可以是RS-232口或者USB口,第二接口1002的硬件形式可以是串口(如DB9F孔的接口)或USB口,第三接口1004的硬件形式可以是RS-232口,RS-485口,UART口,以及USB形式的虚拟串口。以上硬件接口均是目前通用的标准接口,在此不做赘述。
通信总线840表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry Standard Architecture;以下简称:ISA)总线,微通道体系结构(Micro Channel Architecture;以下简称:MAC)总线,增强型ISA总线、视频电子标准协会(Video Electronics Standards Association;以下简称:VESA)局域总线以及外围组件互连(Peripheral Component Interconnection;以下简称:PCI)总线。
电子设备典型地包括多种计算机系统可读介质。这些介质可以是任何能够被电子设备访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。
存储器830可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory;以下简称:RAM)和/或高速缓存存储器。电子设备可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。存储器830可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本申请实施例各实施例的功能。
具有一组(至少一个)程序模块的程序/实用工具,可以存储在存储器830中,这样的程序模块包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块通常执行本申请实施例所描述的实施例中的功能和/或方法。
处理器810通过运行存储在存储器830中的程序,从而执行各种功能应用以及数据处理,例如实现本申请实施例图1~图3所示实施例提供的支付通信方法。
本申请实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行本申请实施例图2~图5所示实施例提供的支付通信方法。
上述非暂态计算机可读存储介质可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(Read Only Memory;以下简称:ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory;以下简称:EPROM)或闪存、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号, 其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、RF等等,或者上述的任意合适的组合。
可以以一种或多种程序设计语言或其组合来编写用于执行本申请实施例操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可通过任意种类的网络——包括局域网(Local Area Network;LAN)或广域网(Wide Area Network;WAN)连接到用户计算机,或者可连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
上述对本申请实施例特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
在本申请实施例的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请实施例的至少一个实施例或示例中。在本申请实施例中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本申请实施例中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请实施例的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请实施例的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功 能,这应被本申请实施例的实施例所属技术领域的技术人员所理解。
取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。
需要说明的是,本申请实施例中所涉及的终端可包括但不限于个人计算机(Personal Computer;PC)、个人数字助理(Personal Digital Assistant;PDA)、无线手持设备、平板电脑(Tablet Computer)、手机、MP3播放器、MP4播放器等。
在本申请实施例所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
另外,在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)或处理器(Processor)执行本申请实施例各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述仅为本申请实施例的较佳实施例而已,并不用以限制本申请实施例,凡在本申请实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请实施例保护的范围之内。

Claims (17)

  1. 一种支付通信方法,包括:
    接收销售点POS终端发送的携带有交易订单信息的第一报文,其中,所述交易订单信息至少包括交易金额;
    将所述交易订单信息发送至支付设备;
    接收所述POS终端发送的携带有结算信息的第二报文;
    响应于所述第二报文,触发所述支付设备执行支付流程;
    接收所述支付设备在完成所述支付流程之后反馈的携带有支付信息的第三报文;
    将所述支付信息发送至所述POS终端。
  2. 根据权利要求1所述的方法,其中,所述交易金额为所述POS终端根据商品码查找的与所述商品码对应的金额。
  3. 根据权利要求2所述的方法,其中,
    所述接收所述POS终端发送的携带有交易订单信息的第一报文,包括:接收所述POS终端针对多个商品依次发送的多个所述第一报文,其中,每个所述第一报文携带的交易订单信息包括对应商品的交易金额;
    所述将所述交易订单信息发送至支付设备,包括:在每次接收到所述第一报文之后,将对应的所述交易订单信息发送至所述支付设备。
  4. 根据权利要求1-3任一项所述的方法,其中,所述POS终端使用第一通信协议发送报文,所述将所述交易订单信息发送至支付设备,包括:
    使用所述第一通信协议解析所述第一报文,得到所述交易订单信息;
    根据所述交易订单信息,生成符合第二通信协议的第四报文;
    将所述第四报文发送至所述支付设备。
  5. 根据权利要求4所述的方法,其中,所述响应于所述第二报文,触发所述支付设备执行支付流程,包括:
    使用所述第一通信协议解析所述第二报文,以确定接收到所述结算信息;
    生成符合所述第二通信协议的第五报文,其中,所述第五报文用于触发所述支付设备执行支付流程;
    将所述第五报文发送至所述支付设备。
  6. 根据权利要求4或5所述的方法,其中,所述第一通信协议为销售点对象连接与嵌入OPOS协议。
  7. 根据权利要求4-6任一项所述的方法,其中,所述POS终端使用第三通信协议接收报文,所述将所述支付信息发送至所述POS终端,包括:
    使用所述第二通信协议解析所述第三报文,以得到所述支付信息;
    根据所述支付信息,生成符合所述第三通信协议的第六报文;
    将所述第六报文发送至所述POS终端。
  8. 根据权利要求7所述的方法,其中,所述第六报文用于触发所述POS终端的入 库流程,其中,所述入库流程为在确定完成支付流程之后发起的、用于更新销售管理系统的数据库的流程。
  9. 根据权利要求7或8所述的方法,其中,所述第三通信协议为通用串行总线USB-人机接口设备HID协议。
  10. 根据权利要求4-10任一项所述的方法,其中,在接收所述POS终端发送的携带有交易订单信息的第一报文之后,所述方法还包括:
    将所述第一报文转发至显示设备,以使所述显示设备根据所述第一报文显示所述交易订单信息。
  11. 根据权利要求10所述的方法,其中,在接收所述POS终端发送的携带有结算信息的第二报文之后,所述方法还包括:
    将所述第二报文转发至所述显示设备,以使所述显示设备根据所述第二报文显示所述结算信息。
  12. 根据权利要求10或11所述的方法,其中,在接收所述支付设备在完成所述支付流程之后反馈的携带有支付信息的第三报文之后,所述方法还包括:
    使用所述第二通信协议解析所述第三报文,以得到所述支付信息;
    根据所述支付信息,生成符合所述第一通信协议的第七报文;
    将所述第七报文发送至所述显示设备,以使所述显示设备根据所述第七报文显示所述支付信息。
  13. 根据权利要求1-12任一项所述的方法,其中,所述支付流程为刷脸支付流程、扫码支付流程或指纹支付流程。
  14. 一种支付通信装置,包括:
    第一接收单元,用于接收销售点POS终端发送的携带有交易订单信息的第一报文,其中,所述交易订单信息至少包括交易金额;
    第一发送单元,用于将所述交易订单信息发送至支付设备;
    第二接收单元,用于接收所述POS终端发送的携带有结算信息的第二报文;
    触发单元,用于响应于所述第二报文,触发所述支付设备执行支付流程;
    第三接收单元,用于接收所述支付设备在完成所述支付流程之后反馈的携带有支付信息的第三报文;
    第二发送单元,用于将所述支付信息发送至所述POS终端。
  15. 一种电子设备,包括:
    第一接口,用于连接销售点POS终端;
    第二接口,用于连接支付设备;
    至少一个处理器;以及
    与所述处理器通信连接的至少一个存储器,其中:
    所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如权利要求1至9任一项所述的方法。
  16. 根据权利要求15所述的电子设备,还包括:
    第三接口,用于连接显示设备;
    与所述处理器通信连接的至少一个存储器还存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如权利要求1至13任一项所述的方法。
  17. 一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行如权利要求1至13任一项所述的方法。
PCT/CN2021/086934 2020-04-17 2021-04-13 支付通信方法、装置和电子设备 WO2021208916A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010302597.0A CN111461697A (zh) 2020-04-17 2020-04-17 支付通信方法、装置和电子设备
CN202010302597.0 2020-04-17

Publications (1)

Publication Number Publication Date
WO2021208916A1 true WO2021208916A1 (zh) 2021-10-21

Family

ID=71684524

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/086934 WO2021208916A1 (zh) 2020-04-17 2021-04-13 支付通信方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN111461697A (zh)
WO (1) WO2021208916A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111461697A (zh) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 支付通信方法、装置和电子设备
CN112235286B (zh) * 2020-10-12 2023-04-18 中国民航信息网络股份有限公司 一种面向NDC标准的Office处理方法及装置
CN112613870B (zh) * 2020-12-23 2024-04-16 网银在线(北京)科技有限公司 支付处理方法、装置、自助设备、支付终端、系统和介质
CN112819643B (zh) * 2021-01-22 2023-11-14 泰康保险集团股份有限公司 保险产品的新契约承保方法及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361491A (zh) * 2014-11-03 2015-02-18 中国联合网络通信集团有限公司 一种移动支付方法及系统
WO2018214286A1 (zh) * 2017-05-26 2018-11-29 深圳飞人网络信息技术有限公司 近场无线pos装置、近场移动支付方法及系统
CN110458564A (zh) * 2019-08-12 2019-11-15 腾讯科技(深圳)有限公司 基于人脸识别的支付方法、装置、终端、系统及存储介质
CN110599151A (zh) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 一种支付方法、装置、系统及存储介质
CN110610364A (zh) * 2019-09-10 2019-12-24 阿里巴巴集团控股有限公司 支付方法、装置及系统
CN111461697A (zh) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 支付通信方法、装置和电子设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275242A1 (en) * 2012-04-16 2013-10-17 Wal-Mart Stores, Inc. Processing Online Transactions
CN105069612A (zh) * 2015-07-15 2015-11-18 深圳市合杰电子有限公司 电子支付装置及电子支付系统
CN105809431A (zh) * 2016-03-04 2016-07-27 福建联迪商用设备有限公司 扫码支付的方法及系统
CN105844456A (zh) * 2016-03-22 2016-08-10 福建联迪商用设备有限公司 集成指纹模组的支付终端及其支付方法
CN205959313U (zh) * 2016-08-05 2017-02-15 深圳市智微智能科技开发有限公司 一种非接触受理和扫码读取二合一的金融支付装置
CN106530531B (zh) * 2016-12-14 2018-12-18 新开普电子股份有限公司 扫码支付终端
CN108269086A (zh) * 2017-12-12 2018-07-10 福州汇思博信息技术有限公司 一种扫码支付的方法及系统
CN109377234A (zh) * 2018-09-20 2019-02-22 阿里巴巴集团控股有限公司 一种刷脸支付方法和设备
CN110414960B (zh) * 2019-05-24 2024-02-13 腾讯科技(深圳)有限公司 一种支付处理方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361491A (zh) * 2014-11-03 2015-02-18 中国联合网络通信集团有限公司 一种移动支付方法及系统
WO2018214286A1 (zh) * 2017-05-26 2018-11-29 深圳飞人网络信息技术有限公司 近场无线pos装置、近场移动支付方法及系统
CN110458564A (zh) * 2019-08-12 2019-11-15 腾讯科技(深圳)有限公司 基于人脸识别的支付方法、装置、终端、系统及存储介质
CN110610364A (zh) * 2019-09-10 2019-12-24 阿里巴巴集团控股有限公司 支付方法、装置及系统
CN110599151A (zh) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 一种支付方法、装置、系统及存储介质
CN111461697A (zh) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 支付通信方法、装置和电子设备

Also Published As

Publication number Publication date
CN111461697A (zh) 2020-07-28

Similar Documents

Publication Publication Date Title
WO2021208916A1 (zh) 支付通信方法、装置和电子设备
US11853988B2 (en) Method for self-checkout with a mobile device
CN110111107B (zh) 一种支付方法、装置、设备和存储介质
US10311424B2 (en) Indicia encoding system with integrated purchase and payment information
US7971782B1 (en) Multi-point transaction system
US10062066B2 (en) Systems and methods for retrieving items for a customer at checkout
JPWO2016136110A1 (ja) 情報処理装置、精算装置、情報処理方法、およびプログラム
CN110097356A (zh) 一种支付方法、装置、设备和存储介质
KR102239936B1 (ko) Rf 인식 기반 상품 구매 시스템 및 방법
JPWO2016136077A1 (ja) 情報処理装置、情報処理システム、プログラム、及び制御方法
US10552924B2 (en) Systems, devices and methods for generating redeemable electronic fuel codes
KR20200089477A (ko) 모바일 키오스크 서비스 제공 시스템 및 방법
CN112150135A (zh) 一种支付方法和装置
JP2020091542A (ja) 電子レシート生成システム、電子レシート生成方法、およびプログラム
US10452590B2 (en) Multi-point to point USB system
US20160292656A1 (en) Generating a Receipt in Point-of-Sale (POS) Systems
TWI811797B (zh) 使用移動終端發送收據資訊的系統和方法
US20230306405A1 (en) Payment accessibility notifications
TWI672652B (zh) 特店語音支付系統
US20190164141A1 (en) Inserting usb data into usb data stream
JP2024014127A (ja) 情報処理装置及び情報処理方法
US20190213590A1 (en) Merchant payment system for crytpocurrency
KR20200093141A (ko) 모바일 통합 결제 서비스 제공 방법 및 장치
KR20200001506A (ko) 상점 정보와 연동하는 태그를 이용한 결제 시스템 및 방법
KR20190139382A (ko) 포스를 이용한 주문 중계 방법, 장치 및 컴퓨터 프로그램

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21788338

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21788338

Country of ref document: EP

Kind code of ref document: A1