Data processing method and related device

Through the data processing method of the payment terminal, the data connection is established with the cash register using the printer module, which solves the problem of high difficulty in developing the electronic payment function of cash register access in the prior art, and achieves the effect of plug-and-play and cost reduction.

CN119863238AActive Publication Date: 2025-04-22CHINA UNIONPAY MERCHANT SERVICES CO LTD

Patent Information

Application Number
CN202411940349.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-22
Estimated Expiration
2044-12-26

AI Technical Summary

Technical Problem

When the cash register integrates electronic payment functions, the development threshold is high, the cycle is long, the installation program is complex and there are repeated developments, making it difficult to reduce the difficulty of the cash register accessing the electronic payment terminal.

Method used

Through the data processing method of the payment terminal, the data connection is established with the cash register using the printer module itself, and the printer protocol is used to achieve plug-and-play use without the need to transform the cash register software and hardware, which simplifies the development process and reduces the development cost and difficulty.

Benefits of technology

It realizes plug-and-play with electronic payment function for cash register access, reducing development costs and difficulty, simplifying processes, and improving system stability and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119863238A_ABST
    Figure CN119863238A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method executed by a payment terminal, and the method comprises the steps: building data connection between the payment terminal with a printing function and a cash register through a printer module configured by the payment terminal, and when the payment terminal recognizes that transaction information included in a bill printing instruction corresponds to a first transaction task of to-be-completed payment, completing the payment; and generating a payment information acquisition event for acquiring the to-be-processed payment information, sending the to-be-processed payment information acquired based on the payment information acquisition event to a payment system to open a payment process of the first transaction task, and printing a payment completion receipt after feedback information is acquired from the payment system. Visibly, the payment terminal can identify the first transaction task needing payment from the bill printing instruction and start the payment process with the payment system to complete the payment task, so that the process of accessing the cash register to the electronic payment function is greatly simplified, plug and play in a real sense is realized, software and hardware modification of the cash register is not needed, and the cost is reduced. And the development cost and difficulty are effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a data processing method and related devices. Background Art

[0002] When traditional cash registers are integrated with electronic payment functions, the enterprise resource planning (ERP) developer on the cash register side needs to adapt and develop according to the requirements of electronic payment and payment terminals. Not only does it require software and hardware modifications to the cash register, but the modification methods for different payment terminals are also different.

[0003] This process faces many disadvantages, such as high development threshold, long cycle, complex installation procedures and repeated development.

[0004] Therefore, how to reduce the difficulty of connecting cash registers to payment terminals for electronic payment is an urgent problem that needs to be solved. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a data processing method and related devices, which greatly simplify the process of connecting a cash register to the electronic payment function, realize true plug-and-play, and do not require software and hardware modifications to the cash register, effectively reducing development costs and difficulties.

[0006] The embodiments of the present application disclose the following technical solutions:

[0007] On the one hand, an embodiment of the present application provides a data processing method, which is executed by a payment terminal and includes:

[0008] After the payment terminal establishes a data connection with the cash register through the printer module configured by the payment terminal, a bill printing instruction is obtained from the cash register, where the bill printing instruction includes transaction information;

[0009] In response to identifying that the transaction information corresponds to a first transaction task to be paid, generating a payment information acquisition event corresponding to the first transaction task according to the transaction information;

[0010] In response to obtaining the payment information to be processed through the payment information obtaining event, sending the payment information to be processed to the payment system;

[0011] When feedback information indicating that payment for the first transaction task is completed is obtained from the payment system, a payment completion receipt for the first transaction task is printed.

[0012] On the other hand, an embodiment of the present application provides a payment terminal, the payment terminal comprising an acquisition unit, a generation unit, a sending unit and a printing unit:

[0013] The acquisition unit is used to acquire a bill printing instruction from the cash register after the payment terminal establishes a data connection with the cash register through the printer module configured by the payment terminal, wherein the bill printing instruction includes transaction information;

[0014] The generating unit is configured to generate a payment information acquisition event corresponding to a first transaction task to be paid according to the transaction information in response to identifying that the transaction information corresponds to the first transaction task.

[0015] The sending unit is configured to send the payment information to be processed to the payment system in response to obtaining the payment information to be processed through the payment information acquisition event;

[0016] The printing unit is used to print a payment completion receipt for the first transaction task when feedback information on payment completion for the first transaction task is obtained from the payment system.

[0017] In a possible implementation, the printing unit is further configured to print a payment completion receipt for a second transaction task in response to identifying that the transaction information corresponds to a second transaction task for which payment has been completed.

[0018] In a possible implementation, the payment terminal further includes an identification unit, and the identification unit is used to:

[0019] Get the preset keywords;

[0020] matching the transaction information according to the keyword;

[0021] Based on the matching result, the transaction task corresponding to the transaction information is identified as the first transaction task or the second transaction task.

[0022] In a possible implementation, the sending unit is further configured to send the refund amount carried in the transaction information and the transaction identifier of the third transaction task to the payment system in response to identifying that the transaction information corresponds to a third transaction task for transaction refund;

[0023] The printing unit is further configured to print a refund completion receipt for the third transaction task when feedback information on the refund completion of the third transaction task is obtained from the payment system.

[0024] In a possible implementation, the payment terminal further includes a prompting unit, and the prompting unit is used to prompt for input of the transaction identifier if the transaction identifier is not identified based on the transaction information.

[0025] In a possible implementation, the payment terminal supports providing the payment information to be processed through multiple payment methods.

[0026] In a possible implementation, the payment terminal further includes a broadcast unit, and the broadcast unit is used to broadcast a sound prompt for guiding the user to provide the payment information to be processed in response to identifying that the transaction information corresponds to a first transaction task to be paid.

[0027] On the other hand, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:

[0028] The memory is used to store computer programs;

[0029] The processor is configured to execute the method described above according to the computer program.

[0030] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program implements the method described in the above aspects when executed by a computer device.

[0031] It can be seen from the above technical solution that the payment terminal with printing function establishes a data connection with the cash register through the printer module configured by itself. Since the data connection is established based on the printer protocol, there is no need to upgrade the software or adjust the hardware of the cash register. After connecting through the data cable, the cash register can identify and connect to the payment terminal based on the printer protocol. When the payment terminal recognizes that the transaction information included in the bill printing instruction corresponds to the first transaction task to be paid, a payment information acquisition event for obtaining the payment information to be processed is generated, and the payment information to be processed obtained based on the payment information acquisition event is sent to the payment system to start the payment process of the first transaction task. After obtaining the feedback information of the payment completion for the first transaction task from the payment system, the payment terminal prints the payment completion receipt of the first transaction task. It can be seen that after the payment terminal is directly connected to the cash register through the printer protocol, it can identify the first transaction task that needs to be paid and start the payment process with the payment system when providing receipt printing services for the bill printing instructions sent by the cash register to complete the payment task. This greatly simplifies the process of the cash register connecting to the electronic payment function, realizes true plug-and-play, and does not require software and hardware modifications to the cash register, effectively reducing development costs and difficulties. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 A method flow chart of a data processing method provided in an embodiment of the present application;

[0034] Figure 2 A flow chart of the installation of a payment terminal provided in an embodiment of the present application;

[0035] Figure 3 A consumption flow chart based on a payment terminal provided in an embodiment of the present application;

[0036] Figure 4 A refund flow chart based on a payment terminal provided in an embodiment of the present application;

[0037] Figure 5 A device structure diagram of a payment terminal provided in an embodiment of the present application;

[0038] Figure 6 A structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0040] When traditional cash registers are integrated with electronic payment functions, due to the adaptation requirements of electronic payment and payment terminals, a large amount of software and hardware modifications and upgrades are required on the cash registers, which is very costly and technically difficult.

[0041] To this end, the embodiment of the present application provides a data processing method, which greatly simplifies the process of connecting a cash register to the electronic payment function, realizes true plug-and-play, and does not require software and hardware modifications to the cash register, effectively reducing development costs and difficulties.

[0042] The data processing method provided in the embodiment of the present application can be implemented through a payment terminal, which includes but is not limited to a mobile phone, a computer, an intelligent voice interaction device, a smart home appliance, etc. The payment terminal can be directly or indirectly connected to the cash register through wired or wireless communication, and the present application does not limit this. In addition, the payment terminal can also be directly or indirectly connected to the payment system through wired or wireless communication, and the present application does not limit this.

[0043] Figure 1A method flow chart of a data processing method provided in an embodiment of the present application, the method is executed by a payment terminal, and the method includes:

[0044] S101: After the payment terminal establishes a data connection with a cash register through a printer module configured by the payment terminal, a bill printing instruction is obtained from the cash register.

[0045] The payment terminal can establish a data connection with the cash register via a wired or wireless method. The wired method can be, for example, using a USB data cable with one end plugged into the cash register and the other end plugged into the payment terminal. The wireless method can be, for example, establishing a wireless network through the payment terminal and connecting the cash register to the wireless network, or connecting the payment terminal and the cash register via Bluetooth.

[0046] The payment terminal itself can have a printing function, which can be realized through a printer module configured by itself. The payment terminal can also only have the ability to simulate a printer. When connected to a cash register, the cash register can recognize the payment terminal as a printer. The actual printing can be completed by the printer connected to the payment terminal to print the actual receipt.

[0047] After the payment terminal and the cash register establish a data connection, since the payment terminal itself is equipped with a printer module, the cash register will identify the payment terminal as a printer through the printer protocol. Moreover, since the cash register itself has the need to print receipts when checking out, the cash register itself is installed with a printer protocol. Therefore, the establishment of the data connection between the cash register and the payment terminal does not require the cash register to make software-level changes. Moreover, due to the diversity of connection methods, the cash register does not need to make hardware-level changes in order to connect with the payment terminal.

[0048] In addition to the printing function, the payment terminal also has the function of electronic payment, such as scanning payment, card payment, etc. That is to say, after the payment terminal and the cash register establish a data connection through the logic of the printer, it mainly provides the cash register with the ability of electronic payment through the data transmission content allowed under the printer protocol. Moreover, the electronic payment logic is integrated in the payment terminal. The cash register only needs to print the bill of the transaction task (or order) that requires electronic payment through the payment terminal, and the payment terminal can realize the subsequent payment process through the bill printing instruction.

[0049] For electronic payment or cash checkout, the cash register needs to print corresponding receipts, such as the bill before payment, the payment receipt after payment, etc. Since the payment terminal has become the printing device of the cash register through the aforementioned data connection, when the cash register needs to print, the generated bill printing instruction will be sent to the payment terminal.

[0050] The bill printing instruction includes transaction information, which is used to identify relevant information of the transaction task, such as the amount, bill number, description of the transaction task, etc. After receiving the bill printing instruction, the payment terminal can use the transaction information to distinguish which bill printing instructions are for printing only and which bill printing instructions require the start of the payment process.

[0051] S102: In response to identifying that the transaction information corresponds to a first transaction task to be paid, generating a payment information acquisition event corresponding to the first transaction task according to the transaction information.

[0052] The payment terminal can identify from the bill printing instructions sent by the cash register which ones correspond to the first transaction tasks that need to start the payment process. The basis for identification is the transaction information carried in the bill printing instructions. The specific identification method is not limited in this application, such as a specific transaction information format, carried keywords, a specific instruction identifier of a bill printing instruction, etc.

[0053] When the first transaction task to be completed is determined, the payment terminal needs to generate a corresponding payment information acquisition event, that is, it needs to obtain payment information for payment from the user (such as a merchant's customer), such as the payment account used for payment, and obtain the authority to transfer the corresponding amount from the payment account to the merchant account.

[0054] The payment information acquisition event may be implemented by scanning a payment code, reading a bank card, etc., and the specific corresponding method or methods may be related to the payment methods supported by the payment terminal.

[0055] It should be noted that even if it is identified that the bill printing instruction is for the first transaction task, which is an unfinished payment transaction task, the payment terminal can also execute the printing task of the bill printing instruction before or at the same time as generating the payment information acquisition event to print out the transaction information, for example, printing it into a bill for customers to check the details before payment.

[0056] S103: In response to obtaining the payment information to be processed through the payment information obtaining event, sending the payment information to be processed to the payment system.

[0057] The payment information acquisition event can be used to obtain the pending payment information provided by the user. For example, the payment terminal obtains the pending payment information by scanning the customer's payment code, or the payment terminal obtains the pending payment information by reading the bank card inserted by the customer.

[0058] Since the payment terminal itself does not have the authority and ability to verify the pending payment information, the payment terminal will send the pending payment information to the payment system for processing. The payment system can be a corresponding bank server, payment platform server, etc., which is not limited here.

[0059] S104: When feedback information indicating that payment for the first transaction task is completed is obtained from the payment system, a payment completion receipt for the first transaction task is printed.

[0060] After the payment system completes the first transaction task based on the payment information to be processed, it will feed back the processing result to the payment terminal. The processing result may be payment completion or payment failure.

[0061] If the payment terminal obtains feedback information of payment failure, it will use sound and light to remind the customer to change the payment method or payment account. If the payment terminal obtains feedback information of payment success, it can print a payment completion receipt of the first transaction task for providing to the customer for verification.

[0062] It can be seen that the payment terminal with printing function establishes a data connection with the cash register through the printer module configured by itself. Since the data connection is established based on the printer protocol, there is no need to upgrade the software or adjust the hardware of the cash register. After only connecting through the data line, the cash register can identify and connect to the payment terminal based on the printer protocol. When the payment terminal identifies that the transaction information included in the bill printing instruction corresponds to the first transaction task to be paid, a payment information acquisition event for obtaining the payment information to be processed is generated, and the payment information to be processed obtained based on the payment information acquisition event is sent to the payment system to start the payment process of the first transaction task. After obtaining the feedback information of the payment completion for the first transaction task from the payment system, the payment terminal prints the payment completion receipt of the first transaction task. It can be seen that after the payment terminal is directly connected to the cash register through the printer protocol, when providing the receipt printing service for the bill printing instruction sent by the cash register, it can identify the first transaction task that needs to be paid and start the payment process with the payment system to complete the payment task, which greatly simplifies the process of the cash register accessing the electronic payment function, realizes true plug-and-play, and does not require the cash register to be modified in software and hardware, effectively reducing the development cost and difficulty.

[0063] As mentioned above, the bill printing instructions include not only the bill printing instructions that need to start the payment process, but also the bill printing instructions that only print. Since the payment terminal also has the printing function, the payment terminal needs to correctly respond to different types of bill printing instructions.

[0064] In a possible implementation, the method further includes:

[0065] In response to identifying that the transaction information corresponds to a second transaction task for which payment has been completed, a payment completion receipt for the second transaction task is printed.

[0066] The second transaction task is a transaction task that has been paid for by other means, such as a customer paying by cash or by a physical voucher. For this type of transaction task, the merchant needs to print a payment receipt for the customer who has completed the payment to prove that the transaction task has been completed.

[0067] Therefore, the payment terminal needs to be able to distinguish from the bill printing instructions which ones are for the first transaction tasks that have not been completed, and which ones are for the second transaction tasks that have been completed, and make a correct response.

[0068] It can be seen that when the payment terminal recognizes that the transaction task corresponding to the bill printing instruction is the second transaction task that has completed payment, it can only perform normal receipt printing without starting the payment process, thereby avoiding the problem of duplicate payment and effectively improving the compatibility of electronic payment in printing logic.

[0069] The embodiment of the present application provides a method for effectively distinguishing a bill printing instruction involving a first transaction task or a bill printing instruction involving a second transaction task from a bill printing instruction.

[0070] In a possible implementation, the method further includes:

[0071] S11: Obtain preset keywords.

[0072] S12: Matching the transaction information according to the keywords.

[0073] S13: Identify, based on the matching result, that the transaction task corresponding to the transaction information is the first transaction task or the second transaction task.

[0074] The keyword can be set by the merchant when configuring the payment terminal, or it can be the default configuration of the payment terminal itself, and this application does not limit this. The keyword can be used to distinguish the bill printing instructions involving the first transaction task or the bill printing instructions involving the second transaction task from the bill printing instructions. Since the transaction information is carried in the bill printing instructions and is used for printing, the selection of the keyword is directly related to the content to be printed, and different types of cash registers can be set in a targeted manner.

[0075] This application does not limit the matching method of the keyword. For example, the transaction task containing the keyword in the transaction information can be determined as the first transaction task, and the transaction task not containing the keyword in the transaction information can be determined as the second transaction task. Alternatively, the transaction task containing the keyword in the transaction information can be determined as the second transaction task, and the transaction task not containing the keyword in the transaction information can be determined as the first transaction task.

[0076] Taking the transaction task with the keyword in the transaction information as the first transaction task as an example, the keyword can be a unique content in the transaction information of the first transaction task, that is, content that exists in the transaction information of the first transaction task but not in the transaction information of the second transaction task. The keyword can be, for example, words such as "receivable" and "actually received", or other words or character combinations.

[0077] Through preset keywords, a simple matching algorithm can be used to accurately identify from the bill printing instructions which instructions involve the first transaction task or the second transaction task. Not only is the matching method simple and the computational complexity low, but it can also ensure high matching accuracy and ensure that the payment terminal responds correctly to the first transaction task and the second transaction task.

[0078] It should be noted that in the transaction scenario, in addition to the first transaction task of unfinished payment and the second transaction task of completed payment, there is also a third transaction task of transaction refund. The payment terminal also needs to accurately identify it and process it correctly.

[0079] Therefore, in a possible implementation manner, the method further includes:

[0080] S21: In response to identifying that the transaction information corresponds to a third transaction task of a transaction refund, sending the refund amount carried in the transaction information and a transaction identifier of the third transaction task to the payment system.

[0081] S22: When feedback information indicating that the refund of the third transaction task is completed is obtained from the payment system, a refund completion receipt for the third transaction task is printed.

[0082] The payment terminal may identify a third transaction task corresponding to the transaction refund from the transaction information of the bill printing instruction based on the above logic for identifying the first transaction task and the second transaction task.

[0083] For example, the payment terminal may also use keywords to identify the third transaction task corresponding to the transaction refund. The keywords used to identify the third transaction task may be pre-set as described in the above embodiment. The keywords may be different from the keywords used to identify the first transaction task and the second transaction task.

[0084] Moreover, when the third transaction task is identified by keywords, in order to more quickly identify the first transaction task and the second transaction task, different keywords can be set for the first transaction task and the second transaction task respectively, and the set keywords are different from the keywords used to identify the third transaction task.

[0085] Of course, the same keyword can also be used to identify the first transaction task and the second transaction task as described in the above embodiment. For example, the transaction task with keyword 1 in the transaction information is determined as the first transaction task, and the transaction task with keyword 2 in the transaction information is determined as the third transaction task. When the transaction information in the bill printing instruction matches neither keyword 1 nor keyword 2, the transaction information in the bill printing instruction is related to the second transaction task.

[0086] When making a refund, it is necessary to clarify the refund amount and order number, that is, it is necessary to clarify which previously completed payment transaction task it is for. This information can be obtained from the transaction information, and the method of obtaining it can be related technologies such as text recognition or image recognition, which will not be repeated here.

[0087] By further identifying the third transaction task used for refund and correctly combining the payment system to complete the refund, not only the comprehensiveness of the payment terminal's functions is improved, but also the processing efficiency is improved.

[0088] It should be noted that in some cases, the transaction information may not contain the transaction identifier (i.e. order number), or the transaction identifier cannot be identified from the transaction information. If this happens, corresponding remedial measures are required, otherwise the refund service cannot be completed through the payment terminal.

[0089] Therefore, in a possible implementation manner, the method further includes:

[0090] If the transaction identifier is not identified based on the transaction information, a prompt for input of the transaction identifier is performed.

[0091] In this implementation, the payment terminal itself has a way to input the transaction identifier, such as re-identifying the transaction identifier by scanning a code, or providing a virtual keyboard or a physical keyboard to receive the user's input of the transaction identifier.

[0092] In this way, the transaction identifier can be supplemented when it is not successfully identified, thereby improving the success rate of refund.

[0093] It should be noted that, in addition to completing the transaction identifier when it is not recognized, the above implementation method can also be applied to the situation where the refund amount is not recognized, and the input of the refund amount can be received in a feasible manner through an input prompt.

[0094] Furthermore, the above implementation method can also be applied to the completion of unidentified relevant information in the first payment task, which will not be repeated here.

[0095] Due to the wide variety of commonly used electronic payment methods, merchants usually need to configure a variety of hardware that supports different electronic payment methods in order to meet the different payment needs of customers, such as barcode scanners, POS machines, etc.

[0096] To this end, the payment terminal provided in the present application can configure itself to provide modules for different electronic payment methods, thereby meeting the diverse payment needs of customers.

[0097] Therefore, in a possible implementation, the payment terminal supports providing the payment information to be processed through multiple payment methods.

[0098] The multiple payment methods include at least various types of QR code payment, card payment, coupon scanning payment, etc.

[0099] This achieves the following advantages:

[0100] Rich payment methods

[0101] Conventional cash registers are usually only connected to barcode scanners and can only support barcode scanning as a payment method. In contrast, the new solution provided by this application not only supports barcode scanning, but also supports multiple bank card operation methods (card insertion, card swiping, card waving) and barcode main scanning and other functions, while also taking into account functions such as speakers and printing, which greatly enriches the payment methods and meets the payment needs of different users.

[0102] Reduce equipment investment and failure probability

[0103] In the traditional mode, cash registers often need to connect to multiple devices to achieve different functions, such as connecting to a barcode scanner to support barcode scanning transactions, connecting to a financial terminal to support bank card transactions, connecting to an independent barcode card to support barcode scanning transactions, connecting to a speaker to support voice broadcasting, and connecting to a printer to support receipt printing. However, this application solution only needs to use one payment terminal to replace the above-mentioned many devices, which not only significantly reduces the equipment investment cost and the workload of installation and debugging, but also reduces the probability of abnormal failures due to the reduction in the number of communication devices, thereby improving the stability and reliability of the system.

[0104] It should be noted that the payment terminal may also be configured with a sound broadcast module, through which sound prompts are given for each stage of completing the payment task.

[0105] In a possible implementation, the method further includes:

[0106] In response to identifying that the transaction information corresponds to a first transaction task for payment to be completed, a sound prompt is broadcasted to guide the user to provide the payment information to be processed.

[0107] After the payment information acquisition event is generated, in order to prompt the user to provide the payment information to be processed as soon as possible, the user may be prompted by a sound prompt. The content of the prompt is related to the module used by the payment terminal to process the payment information acquisition event. For example, if the module used by the payment terminal to process the payment information acquisition event is a code scanning module, the content of the sound prompt may be "please show the payment code". For example, if the module used by the payment terminal to process the payment information acquisition event is a card reading module, the content of the sound prompt may be "please swipe the card", etc. Of course, if the payment terminal has multiple modules for processing the payment information acquisition event, the content of the sound prompt may be "please pay" or all of the above.

[0108] Through sound prompts, users can be effectively guided to complete payment, thereby improving payment efficiency.

[0109] Next, starting from connecting the payment terminal to the cash register, the embodiment of the present application is described process by process. The present application scheme can be divided into two parts, the first step is the installation process using the payment terminal as a printer, and the second step is the transaction process.

[0110] 1. Installation process, combined with Figure 2 Provide explanation.

[0111] ①Use the payment terminal as a printer

[0112] Use a payment terminal with a printer module as an external printing device for the cash register, and select the payment terminal as the currently used printer on the cash register system.

[0113] ②Get keywords

[0114] In the relevant payment system, the payment terminal is configured with necessary information including amount search keywords (such as "receivable"), etc. After the configuration is completed, the payment system pushes the configuration information to the payment terminal to ensure that it can operate correctly according to the set rules.

[0115] ③Add new payment methods

[0116] Add a new payment method on the cash register side. The name of the method can be set by the user (such as the merchant) (for example, set to "Shouyinbao"), and ensure that the payment method is configured as ERP accounting-only mode.

[0117] 2. Transaction Process

[0118] Consumption process, combined Figure 3 To explain:

[0119] ①Select payment method at cash register to place order

[0120] The cash register selects the goods and completes the order according to the normal process. When settling the payment, you need to choose the payment method that was previously added on the cash register side (such as "Shouyinbao").

[0121] ②Initiate bill receipt printing

[0122] Once the corresponding payment method is selected, the cash register will automatically initiate the printing operation of the checkout receipt (bill printing instruction).

[0123] ③Match keywords

[0124] After the printer connected to the cash register (i.e., the payment terminal) receives the bill printing instruction, it will identify the first payment task from the bill printing instruction based on the pre-configured keywords (such as "receivable"), parse and intercept key information such as the transaction amount, and prompt the user through voice to scan the payment code (generate a payment information acquisition event).

[0125] ④Initiate payment process

[0126] After the user completes the code scanning operation, the payment terminal will initiate a consumption transaction request to the payment system (which carries the payment information to be processed) and obtain the corresponding payment result (feedback information).

[0127] ⑤ Voice broadcast

[0128] After receiving the payment result, the payment terminal will broadcast the payment result by voice, and print the purchase order receipt and the check-out receipt (payment completion receipt), thus completing a consumption transaction process (the first transaction task).

[0129] Refund process, combined Figure 4 To explain:

[0130] ①Select the order at the cash register to initiate a refund

[0131] Select the order that needs to be refunded on the cash register and initiate a refund transaction (thereby generating a bill printing instruction sent to the payment terminal).

[0132] ②Initiate refund receipt printing

[0133] The cash register sends the bill printing instruction to the payment terminal.

[0134] ③Match keywords

[0135] After the printer (i.e., the payment terminal) receives the content of the bill printing instruction, it will identify the third payment task from the bill printing instruction based on the pre-configured keywords (such as "refund"), and extract key information such as the refund amount and order number (transaction ID) from it. If the order number is not recognized, it will prompt you to "scan the order number QR code" or "manually enter the order number" to obtain the order number.

[0136] ④Initiate refund process

[0137] The payment terminal initiates a refund transaction request (which carries the refund amount and transaction identifier identified above) to the payment system, and obtains the corresponding payment result (feedback information).

[0138] ⑤ Voice broadcast

[0139] After receiving the payment result, the payment terminal will broadcast the transaction result by voice, and print the purchase receipt and refund slip (refund completion receipt) to complete the refund transaction process.

[0140] It can be seen that this solution also has the following advantages:

[0141] Simplify the development process

[0142] This greatly simplifies the process of integrating the payment function into the cash register, achieving true plug-and-play. In the past, cash register ERP manufacturers needed to carry out complex program development work to integrate the payment function, but this solution does not require this, effectively reducing development costs and difficulties.

[0143] Key elements of intelligent analysis

[0144] Elements such as transaction amount may have various formats in the printing instructions, such as font size, color, position, etc. This solution uses keywords to intelligently analyze the key elements required for payment, such as amount and order number, etc. This makes the entire transaction process smoother and more accurate, and can effectively avoid transaction failures caused by missing or incorrect key information, further improving the success rate of transactions and user experience.

[0145] In the aforementioned Figure 1-Figure 4 Based on the corresponding embodiment, Figure 5 A device structure diagram of a payment terminal provided in an embodiment of the present application, wherein the payment terminal 500 includes an acquisition unit 501, a generation unit 502, a sending unit 503 and a printing unit 504:

[0146] The acquisition unit 501 is used to acquire a bill printing instruction from the cash register after the payment terminal establishes a data connection with the cash register through the printer module configured by the payment terminal, wherein the bill printing instruction includes transaction information;

[0147] The generating unit 502 is configured to generate a payment information acquisition event corresponding to a first transaction task to be paid according to the transaction information in response to identifying that the transaction information corresponds to the first transaction task.

[0148] The sending unit 503 is used for sending the payment information to be processed to the payment system in response to obtaining the payment information to be processed through the payment information acquisition event;

[0149] The printing unit 504 is configured to print a payment completion receipt for the first transaction task when feedback information indicating payment completion for the first transaction task is obtained from the payment system.

[0150] It can be seen that the payment terminal with printing function establishes a data connection with the cash register through the printer module configured by itself. Since the data connection is established based on the printer protocol, there is no need to upgrade the software or adjust the hardware of the cash register. After only connecting through the data line, the cash register can identify and connect to the payment terminal based on the printer protocol. When the payment terminal identifies that the transaction information included in the bill printing instruction corresponds to the first transaction task to be paid, a payment information acquisition event for obtaining the payment information to be processed is generated, and the payment information to be processed obtained based on the payment information acquisition event is sent to the payment system to start the payment process of the first transaction task. After obtaining the feedback information of the payment completion for the first transaction task from the payment system, the payment terminal prints the payment completion receipt of the first transaction task. It can be seen that after the payment terminal is directly connected to the cash register through the printer protocol, when providing the receipt printing service for the bill printing instruction sent by the cash register, it can identify the first transaction task that needs to be paid and start the payment process with the payment system to complete the payment task, which greatly simplifies the process of the cash register accessing the electronic payment function, realizes true plug-and-play, and does not require the cash register to be modified in software and hardware, effectively reducing the development cost and difficulty.

[0151] In a possible implementation, the printing unit is further configured to print a payment completion receipt for a second transaction task in response to identifying that the transaction information corresponds to a second transaction task for which payment has been completed.

[0152] In a possible implementation, the payment terminal further includes an identification unit, and the identification unit is used to:

[0153] Get the preset keywords;

[0154] matching the transaction information according to the keyword;

[0155] Based on the matching result, the transaction task corresponding to the transaction information is identified as the first transaction task or the second transaction task.

[0156] In a possible implementation, the sending unit is further configured to send the refund amount carried in the transaction information and the transaction identifier of the third transaction task to the payment system in response to identifying that the transaction information corresponds to a third transaction task for transaction refund;

[0157] The printing unit is further configured to print a refund completion receipt for the third transaction task when feedback information on the refund completion of the third transaction task is obtained from the payment system.

[0158] In a possible implementation, the payment terminal further includes a prompting unit, and the prompting unit is used to prompt for input of the transaction identifier if the transaction identifier is not identified based on the transaction information.

[0159] In a possible implementation, the payment terminal supports providing the payment information to be processed through multiple payment methods.

[0160] In a possible implementation, the payment terminal further includes a broadcast unit, and the broadcast unit is used to broadcast a sound prompt for guiding the user to provide the payment information to be processed in response to identifying that the transaction information corresponds to a first transaction task to be paid.

[0161] The embodiment of the present application further provides a computer device, including a terminal device, which may be the aforementioned payment terminal. The computer device is described below in conjunction with the accompanying drawings.

[0162] If the computer device is a terminal device, see Figure 6 As shown, the embodiment of the present application provides a terminal device, taking the terminal device as a payment terminal as an example:

[0163] Figure 6 The block diagram shows a partial structure of a mobile phone provided in an embodiment of the present application. Figure 6 The mobile phone includes: a radio frequency (RF) circuit 1410, a memory 1420, an input unit 1430, a display unit 1440, a sensor 1450, an audio circuit 1460, a wireless fidelity (WiFi) module 1470, a processor 1480, and a power supply 1490. Those skilled in the art can understand that Figure 6 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0164] Combine the following Figure 6 A detailed introduction to the various components of the mobile phone:

[0165] The RF circuit 1410 may be used for receiving and sending signals during information transmission or communication or during a call. In particular, after receiving downlink information from a base station, the information is sent to the processor 1480 for processing. In addition, the uplink data is sent to the base station.

[0166] The memory 1420 can be used to store software programs and modules. The processor 1480 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1420. The memory 1420 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1420 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0167] The input unit 1430 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 1430 may include a touch panel 1431 and other input devices 1432 .

[0168] The display unit 1440 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1440 may include a display panel 1441.

[0169] The mobile phone may also include at least one sensor 1450, such as a light sensor, a motion sensor, and other sensors.

[0170] The audio circuit 1460 , the speaker 1461 , and the microphone 1462 can provide an audio interface between the user and the mobile phone.

[0171] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 1470. It provides users with wireless broadband Internet access.

[0172] Processor 1480 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the mobile phone and processes data by running or executing software programs and / or modules stored in memory 1420 and calling data stored in memory 1420.

[0173] The mobile phone also includes a power source 1490 (such as a battery) for supplying power to various components.

[0174] In this embodiment, the processor 1480 included in the terminal device is also used to execute the steps in the methods of each embodiment of the present application.

[0175] In addition, an embodiment of the present application further provides a storage medium, wherein the storage medium is used to store a computer program, and the computer program is used to execute the method provided in the above embodiment.

[0176] The embodiments of the present application also provide a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the method provided in the above embodiments.

[0177] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the above program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the above storage medium can be at least one of the following media: read-only memory (English: Read-only Memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store computer programs.

[0178] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0179] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0180] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a technician familiar with the technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application. Moreover, based on the implementation methods provided in the above aspects, the present application can also be further combined to provide more implementation methods. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data processing method, characterized in that: The method is executed by a payment terminal, and comprises: After the payment terminal establishes a data connection with the cash register through the printer module configured by the payment terminal, a bill printing instruction is obtained from the cash register, where the bill printing instruction includes transaction information; In response to identifying that the transaction information corresponds to a first transaction task to be paid, generating a payment information acquisition event corresponding to the first transaction task according to the transaction information; In response to obtaining the payment information to be processed through the payment information obtaining event, sending the payment information to be processed to the payment system; When feedback information indicating that payment for the first transaction task is completed is obtained from the payment system, a payment completion receipt for the first transaction task is printed.

2. The method according to claim 1, characterized in that The method further comprises: In response to identifying that the transaction information corresponds to a second transaction task for which payment has been completed, a payment completion receipt for the second transaction task is printed.

3. The method according to claim 2, characterized in that The method further comprises: Get the preset keywords; matching the transaction information according to the keyword; Based on the matching result, the transaction task corresponding to the transaction information is identified as the first transaction task or the second transaction task.

4. The method according to claim 1, characterized in that: The method further comprises: In response to identifying that the transaction information corresponds to a third transaction task of a transaction refund, sending the refund amount carried in the transaction information and a transaction identifier of the third transaction task to the payment system; When feedback information indicating that the refund of the third transaction task is completed is obtained from the payment system, a refund completion receipt for the third transaction task is printed.

5. The method according to claim 4, characterized in that The method further comprises: If the transaction identifier is not identified based on the transaction information, a prompt for input of the transaction identifier is performed.

6. The method according to claim 1, characterized in that The payment terminal supports providing the payment information to be processed through multiple payment methods.

7. The method according to claim 1, characterized in that The method further comprises: In response to identifying that the transaction information corresponds to a first transaction task for payment to be completed, a sound prompt is broadcasted to guide the user to provide the payment information to be processed.

8. A payment terminal, characterized in that: The payment terminal includes an acquisition unit, a generation unit, a sending unit and a printing unit: The acquisition unit is used to acquire a bill printing instruction from the cash register after the payment terminal establishes a data connection with the cash register through the printer module configured by the payment terminal, wherein the bill printing instruction includes transaction information; The generating unit is configured to generate a payment information acquisition event corresponding to a first transaction task to be paid according to the transaction information in response to identifying that the transaction information corresponds to the first transaction task. The sending unit is configured to send the payment information to be processed to the payment system in response to obtaining the payment information to be processed through the payment information acquisition event; The printing unit is used to print a payment completion receipt for the first transaction task when feedback information on payment completion for the first transaction task is obtained from the payment system.

9. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 7 according to the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a computer device, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Payment method and payment system carried out by using two-dimension code

    CN103377429A

  • Method and device of printing dynamic two-dimensional codes according to cashier's machine transaction data

    CN105321272A

  • Terminal payment method and terminal

    CN107609863A

  • Payment data interaction method and device

    CN108389043A

  • Universal plug & play driver for automated payment systems and automated purchase system provided with such a driver

    EP3570234A1

Cited By

  • Blind scanning payment method of intelligent printer

    CN121563506A