Transaction processing method, apparatus, system, and electronic device

By encrypting the bank account of the payee and performing encrypted comparison between the acquiring bank and the issuing bank, the problem of poor information security in cross-bank transactions is solved, thereby improving the security of account information and transaction efficiency.

CN115809874BActive Publication Date: 2026-11-24INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211510708.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-29
Publication Date
2026-11-24
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

In interbank transactions, existing technologies suffer from poor information security, especially when using third-party payment programs, where the recipient's bank account information is easily leaked.

Method used

By encrypting the bank account of the payment recipient, a target ciphertext is generated, and an encrypted comparison is performed between the acquiring bank and the issuing bank to ensure that only the target bank account is identified and the funds are deducted.

Benefits of technology

It enhances the security of users' bank accounts, ensures smooth transaction completion, prevents the leakage of bank account information, and improves the information security and data processing efficiency of cross-bank transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115809874B_ABST
    Figure CN115809874B_ABST
Patent Text Reader

Abstract

This application discloses a transaction processing method, apparatus, system, and electronic device, relating to the field of information security. The method includes: obtaining a transaction request generated by a third-party payment program from a first server; reading at least one bank account associated with a third-party payment account from a preset database; encrypting the at least one bank account according to an encryption algorithm to obtain at least one ciphertext to be confirmed, wherein each ciphertext to be confirmed corresponds to a bank account; detecting whether a first ciphertext identical to a target ciphertext exists in the at least one ciphertext to be confirmed; if the first ciphertext exists in the at least one ciphertext to be confirmed, determining the bank account corresponding to the first ciphertext as the target bank account, and deducting the amount to be paid from the target bank account. This application solves the technical problem of poor information security in cross-bank transactions in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information security, and more specifically, to a transaction processing method, apparatus, system, and electronic device. Background Technology

[0002] With the rapid development of mobile internet technology, online payment methods such as QR code payment have been widely used, bringing great convenience to people's lives. However, in cross-bank transactions, especially when using payment codes from third-party payment programs, the acquiring bank can directly access the bank account information of the payee because the payee's bank account is displayed in plaintext during the payment process. This poses a risk of information leakage and makes the user's account information vulnerable to theft by criminals.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This application provides a transaction processing method, apparatus, system, and electronic device to at least solve the technical problem of poor information security in cross-bank transactions in the prior art.

[0005] According to one aspect of the embodiments of this application, a transaction processing method is provided, comprising: obtaining a transaction request generated by a third-party payment program from a first server, wherein the transaction request includes at least a third-party payment account of a payee, a payment amount to be made, and a target ciphertext, wherein the target ciphertext is ciphertext obtained by the third-party payment program encrypting the target bank account of the payee using an encryption algorithm, the first server being a server of an acquiring bank, and the acquiring bank being a bank that provides a bank account to the payee; reading at least one bank account associated with the third-party payment account from a preset database; encrypting the at least one bank account according to an encryption algorithm to obtain at least one ciphertext to be confirmed, wherein each ciphertext to be confirmed corresponds to a bank account; detecting whether there is a first ciphertext identical to the target ciphertext in the at least one ciphertext to be confirmed; and when there is a first ciphertext in the at least one ciphertext to be confirmed, determining that the bank account corresponding to the first ciphertext is the target bank account, and deducting the payment amount from the target bank account.

[0006] Furthermore, the transaction processing method also includes: receiving an account binding request before reading at least one bank account associated with a third-party payment account from a preset database, wherein the account binding request is used to bind the bank account and the third-party payment account; generating a target index table based on the account binding request, wherein the target index table is used to record the binding relationship between the bank account and the third-party payment account; and storing the target index table in a preset database of a second server, wherein the second server is the server of the issuing bank, and the issuing bank is the bank that provides the target bank account to the payment recipient.

[0007] Furthermore, the transaction processing method also includes: after detecting whether there is a first ciphertext identical to the target ciphertext in at least one ciphertext to be confirmed, generating a first prompt message when there is no first ciphertext in at least one ciphertext to be confirmed, wherein the first prompt message is used to indicate that the second server has not successfully identified the target bank account; and sending the first prompt message to the third-party payment program.

[0008] Furthermore, the transaction processing method also includes: detecting the fund balance in the target bank account; deducting the amount to be paid from the target bank account when the fund balance is greater than or equal to the amount to be paid; and generating a second prompt message when the fund balance is less than the amount to be paid, and sending the second prompt message to the third-party payment program, wherein the second prompt message is used to indicate that the deduction of the amount to be paid has failed.

[0009] Furthermore, the transaction processing method also includes: after determining that the bank account corresponding to the first ciphertext is the target bank account and deducting the amount to be paid from the target bank account, generating a deduction result, wherein the deduction result includes at least the amount to be paid and the deduction time; and sending the deduction result to the first server.

[0010] Furthermore, the transaction processing method also includes: after sending the deduction result to the first server, receiving the reply result returned by the first server, wherein the reply result shows that the collection bank has recorded the deduction result; and sending the reply result to the third-party payment program.

[0011] According to another aspect of the embodiments of this application, a transaction processing system is also provided, comprising: a first terminal device, configured to generate a transaction request based on a third-party payment program, wherein the transaction request includes at least the third-party payment account of the payee, the amount to be paid, and target ciphertext, the target ciphertext being ciphertext obtained by the third-party payment program encrypting the target bank account of the payee using an encryption algorithm; and a first server, connected to the first terminal device, configured to receive the transaction request and forward the transaction request to a second server, wherein the first server is the server of the acquiring bank, and the second server is the server of the issuing bank, the acquiring bank being the bank that provides payment to the payee. The first server is connected to the second server and is used to obtain at least one bank account associated with the third-party payment account, and to encrypt the at least one bank account according to the encryption algorithm to obtain at least one ciphertext to be confirmed, wherein each ciphertext to be confirmed corresponds to a bank account; the second server is also used to detect whether there is a first ciphertext that is the same as the target ciphertext in the at least one ciphertext to be confirmed, and when there is a first ciphertext in the at least one ciphertext to be confirmed, the bank account corresponding to the first ciphertext is determined as the target bank account, and then the amount to be paid is deducted from the target bank account.

[0012] According to another aspect of the embodiments of this application, a transaction processing apparatus is also provided, comprising: an acquisition module, configured to acquire a transaction request generated by a third-party payment program from a first server, wherein the transaction request includes at least a third-party payment account of the payee, a payment amount to be made, and a target ciphertext, wherein the target ciphertext is ciphertext obtained by the third-party payment program encrypting the target bank account of the payee using an encryption algorithm, the first server being a server of an acquiring bank, and the acquiring bank being a bank that provides the bank account to the payee; a reading module, configured to read at least one bank account associated with the third-party payment account from a preset database; an encryption module, configured to encrypt the at least one bank account according to an encryption algorithm to obtain at least one ciphertext to be confirmed, wherein each ciphertext to be confirmed corresponds to a bank account; a detection module, configured to detect whether there is a first ciphertext identical to the target ciphertext in the at least one ciphertext to be confirmed; and a determination module, configured to determine that the bank account corresponding to the first ciphertext is the target bank account when the first ciphertext exists in the at least one ciphertext to be confirmed, and deduct the payment amount from the target bank account.

[0013] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, which stores a computer program, wherein the computer program is configured to execute the above-described transaction processing method when it is run.

[0014] According to another aspect of the embodiments of this application, an electronic device is also provided, including one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors cause the one or more processors to implement the transaction processing method described above.

[0015] In this application, the bank account of the payment recipient is encrypted. First, a transaction request generated by a third-party payment program is obtained from a first server. This transaction request includes at least the third-party payment account of the payment recipient, the amount to be paid, and target ciphertext. The target ciphertext is the ciphertext obtained by the third-party payment program encrypting the target bank account of the payment recipient using an encryption algorithm. The first server is the server of an acquiring bank, which provides the bank account to the payment recipient. Then, at least one bank account associated with the third-party payment account is read from a preset database and encrypted using the encryption algorithm to obtain at least one ciphertext to be confirmed. Finally, it is checked whether a first ciphertext identical to the target ciphertext exists among the at least one ciphertext to be confirmed. If the first ciphertext exists among the at least one ciphertext to be confirmed, the bank account corresponding to the first ciphertext is determined to be the target bank account, and the amount to be paid is deducted from the target bank account. Each ciphertext to be confirmed corresponds to one bank account.

[0016] As described above, this application improves the security of user bank accounts by encrypting the bank account of the payment recipient, ensuring that the first server (i.e., the acquiring bank's server) cannot identify the payment recipient's bank account when forwarding transaction requests. Furthermore, this application also encrypts the bank account associated with the third-party payment account, comparing the generated ciphertext to be confirmed with the target ciphertext, thereby ensuring that the issuing bank's server (i.e., the second server) can accurately identify the target bank account used for payment, guaranteeing the smooth completion of the transaction.

[0017] Therefore, the technical solution of this application achieves the goal of avoiding the leakage of the bank account information of the payment recipient, thereby improving the information security in the process of cross-bank transactions and solving the technical problem of poor information security in cross-bank transactions in the prior art. Attached Figure Description

[0018] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0019] Figure 1This is a flowchart of an optional transaction processing method according to an embodiment of this application;

[0020] Figure 2 This is a flowchart of a transaction processing method based on existing technology;

[0021] Figure 3 This is a flowchart of an optional transaction processing method according to an embodiment of this application;

[0022] Figure 4 This is a schematic diagram of an optional transaction processing system according to an embodiment of this application;

[0023] Figure 5 This is a schematic diagram of an optional transaction processing apparatus according to an embodiment of this application;

[0024] Figure 6 This is a schematic diagram of an optional electronic device according to an embodiment of this application. Detailed Implementation

[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0027] Furthermore, it should be noted that all information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) disclosed herein are information and data authorized by the user or fully authorized by all parties. For example, this system has interfaces with relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information only after receiving consent from the aforementioned user or organization.

[0028] Example 1

[0029] According to an embodiment of this application, an embodiment of a transaction processing method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0030] In addition, for the convenience of describing the solutions in the embodiments of this application, the following is a brief explanation of the terms involved in this application:

[0031] Aggregated payment QR codes: Initially, the QR codes of different payment institutions were incompatible, forcing merchants to install QR code recognition devices from various financial institutions, such as POS (point-of-sale) machines, resulting in a large amount of redundant equipment investment. To solve this problem, financial institutions jointly launched aggregated payment QR codes, standardizing the QR code format and enabling mutual parsing. For example, if Bank A identifies the payment QR code as belonging to Institution A, it will forward the transaction data to Institution A's third-party payment program through clearing organizations such as UnionPay.

[0032] Figure 1 This is a flowchart of an optional transaction processing method according to an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:

[0033] Step S101: Obtain the transaction request generated by the third-party payment program from the first server.

[0034] In step S101, the transaction request includes at least the third-party payment account of the payee, the amount to be paid, and the target ciphertext. The target ciphertext is the ciphertext obtained by the third-party payment program encrypting the target bank account of the payee using an encryption algorithm. The first server is the server of the acquiring bank, which is the bank that provides the bank account to the payee.

[0035] Specifically, the aforementioned transaction request can be an aggregated payment QR code for mobile payments, such as a payment code or a collection code. The aforementioned third-party payment program is an application with payment functionality. For example, user A uses third-party payment program 1 to generate a payment code. The information contained in this payment code includes at least user A's third-party payment account, the amount to be paid, and target ciphertext. The target ciphertext is encrypted with information from a bank account used by user A to pay the amount to be paid. User A displays the payment code on merchant B's POS machine, and the POS machine then sends the payment code to a first server. This first server is the acquiring bank's server; the acquiring bank can be understood as the bank that provides the POS machine to merchant B and also the bank that provides the bank account to merchant B.

[0036] It's important to note that after receiving a transaction request, the first server will both record the request and forward it to a second server. This second server is the server of the issuing bank, which can be understood as the bank that provides user A with the target bank account (i.e., the bank account for paying the outstanding amount). The issuing bank and the acquiring bank can be different banks; for example, the issuing bank might be bank1, and the acquiring bank might be bank2.

[0037] Step S102: Read at least one bank account associated with a third-party payment account from a preset database.

[0038] In step S102, it is assumed that user A's third-party payment account is account V, and the bank corresponding to the second server is bank1. The preset database of the second server retains all the bank accounts opened by user A under bank1, and the preset database of the second server also records which of these bank accounts are bound to account V.

[0039] Step S103: Encrypt at least one bank account according to the encryption algorithm to obtain at least one ciphertext to be confirmed.

[0040] In step S103, each ciphertext to be confirmed corresponds to a bank account. Assume user A's account V is linked to three bank accounts opened by user A at bank1: account 1, account 2, and account 3. If the third-party payment program uses a hash encryption algorithm to encrypt user A's target bank accounts, the second server also uses a hash encryption algorithm to encrypt account 1, account 2, and account 3 respectively, thus obtaining three ciphertexts to be confirmed.

[0041] It should be noted that the encryption algorithms in this application include, but are not limited to, the hash encryption algorithms described above.

[0042] Step S104: Detect whether there is a first ciphertext that is the same as the target ciphertext in at least one ciphertext to be confirmed.

[0043] It's easy to note that because the third-party payment program and the second server use the same encryption algorithm, the ciphertext obtained after encrypting the same bank account is also the same. Based on this principle, if the third-party payment program encrypts user A's bank account 1, the target ciphertext it obtains is the same as the ciphertext to be confirmed obtained by the second server after encrypting bank account 1. In other words, the second server can determine that the ciphertext to be confirmed corresponding to bank account 1 is the first ciphertext.

[0044] Step S105: When a first ciphertext exists in at least one ciphertext to be confirmed, determine the bank account corresponding to the first ciphertext as the target bank account, and deduct the amount to be paid from the target bank account.

[0045] It's important to note that the ultimate goal of the transaction is to determine which bank account from which the corresponding payment amount will be deducted. Therefore, after confirming receipt of the first encrypted message, the second server can determine that the bank account corresponding to the first encrypted message is the target bank account used to pay the payment amount. Based on this, the second server only needs to deduct the payment amount from the target bank account to complete the transaction.

[0046] Based on the above steps S101 to S105, this application employs an encryption method for the bank account of the payment recipient. First, a transaction request generated by a third-party payment program is obtained from a first server. This transaction request includes at least the third-party payment account of the payment recipient, the amount to be paid, and target ciphertext. The target ciphertext is the ciphertext obtained by the third-party payment program encrypting the target bank account of the payment recipient using an encryption algorithm. The first server is the server of the acquiring bank, which provides the bank account to the payment recipient. Then, at least one bank account associated with the third-party payment account is read from a preset database, and this bank account is encrypted using an encryption algorithm to obtain at least one ciphertext to be confirmed. Finally, it is checked whether a first ciphertext identical to the target ciphertext exists in the at least one ciphertext to be confirmed. If the first ciphertext exists in the at least one ciphertext to be confirmed, the bank account corresponding to the first ciphertext is determined to be the target bank account, and the amount to be paid is deducted from the target bank account. Each ciphertext to be confirmed corresponds to one bank account.

[0047] As described above, this application improves the security of user bank accounts by encrypting the bank account of the payment recipient, ensuring that the first server (i.e., the acquiring bank's server) cannot identify the payment recipient's bank account when forwarding transaction requests. Furthermore, this application also encrypts the bank account associated with the third-party payment account, comparing the generated ciphertext to be confirmed with the target ciphertext, thereby ensuring that the issuing bank's server (i.e., the second server) can accurately identify the target bank account used for payment, guaranteeing the smooth completion of the transaction.

[0048] Therefore, the technical solution of this application achieves the goal of preventing the leakage of the bank account of the payee, thereby improving the information security in the process of cross-bank transactions and solving the technical problem of poor information security in cross-bank transactions in the prior art.

[0049] Furthermore, the transaction processing method described in this application not only improves information security during interbank transactions but also enhances the efficiency of transaction data processing. Figure 2 A flowchart of a transaction processing method according to the prior art is shown, such as Figure 2 As shown, assume that merchant B is a merchant of bank A (number: H001) and has an acquiring account number of A001 at bank A. Cardholder A is a customer of bank B (number: H002) and has linked their bank account B001 at bank B to their third-party payment account number WX001.

[0050] In the above context, if cardholder A uses third-party payment account WX001 to pay for a purchase at merchant B, the data exchange process is as follows: Merchant B's POS machine acquires and identifies the aggregated payment QR code generated by the third-party payment program. This aggregated payment QR code includes the amount to be paid, the bank account B001 in plaintext, and the third-party payment account number WX001. Then, merchant B's POS machine submits the aggregated payment QR code to the server of bank A (the acquiring bank for this transaction). Bank A's server parses the aggregated payment QR code to obtain the transaction data, and then forwards the transaction data to UnionPay (the clearing institution).

[0051] After receiving the transaction data, UnionPay first processes it into Transaction Data 1, and then forwards Transaction Data 1 to the third-party server corresponding to the third-party payment program. In Transaction Data 1, the acquiring institution is Bank A, the issuing institution is the institution corresponding to the third-party payment program, and the payment account is the third-party payment account WX001. After receiving Transaction Data 1, the third-party server parses it and regenerates Transaction Data 2. Then, it sends Transaction Data 2 to the server of Bank B (the issuing bank of this transaction) through UnionPay. In Transaction Data 2, the acquiring institution is the institution corresponding to the third-party payment program, the issuing institution is Bank B, and the payment account is cardholder A's bank account B001.

[0052] Finally, Bank B deducts the payment from bank account B001 and then sends the payment result back to the institution corresponding to the third-party payment program via UnionPay. The institution corresponding to the third-party payment program then sends the result back to Bank A via UnionPay. After Bank A processes the payment into Merchant B's receiving account, it notifies the merchant that the payment has been successfully received.

[0053] As can be seen from the above, although existing technologies have achieved the goal of unifying QR code formats and enabling mutual parsing among various institutions, the problem of excessively long transaction chains still exists. The current data exchange and processing flow is extremely lengthy, requiring four stages of data exchange and processing (including a two-way flow of sending request data and feedback result data) for both payment and settlement processes. This demonstrates low data exchange and processing efficiency and increases the risk of data transmission failure, impacting the normal processing of the payment process.

[0054] In the transaction processing of this application, the transaction request is directly forwarded from the first server to the second server for processing. That is, the data exchange for payment processing only needs to be completed directly from the acquiring bank to the issuing bank, avoiding the problem of having to go through the corresponding institutions of the third-party payment program in the middle. This improves the data transmission efficiency, reduces the risk of data transmission failure, and the subsequent fund clearing process is also completely unrelated to the third-party payment institution. It can be completed directly between the acquiring bank and the issuing bank.

[0055] In one optional embodiment, before reading at least one bank account associated with the third-party payment account from a preset database, the second server receives an account binding request and then generates a target index table based on the account binding request. This target index table records the binding relationship between the bank account and the third-party payment account. Finally, the second server stores the target index table in its preset database. The second server is the server of the issuing bank, which provides the target bank account to the payment recipient. The account binding request is used to bind the bank account and the third-party payment account.

[0056] Optionally, the second server provides the target bank's server information to the payment recipient. It's easy to understand that a user can have multiple bank accounts with a single bank, and a user may not necessarily link all of their bank accounts to a single third-party payment account. To accurately track the bank accounts linked to the third-party payment account, the second server can store the linked bank accounts and the third-party payment account in a target index table after receiving an account linking request.

[0057] In an optional embodiment, after detecting whether there is a first ciphertext identical to the target ciphertext in at least one ciphertext to be confirmed, if the first ciphertext is not found in at least one ciphertext to be confirmed, the second server will generate a first prompt message, wherein the first prompt message is used to indicate that the second server has not successfully identified the target bank account, and then the second server will also send the first prompt message to the third-party payment program.

[0058] Optionally, if the second server fails to identify a first ciphertext identical to the target ciphertext in at least one of the pending ciphertexts, it indicates an anomaly. There are two possible reasons for this anomaly: either the third-party payment program encountered an error when generating the target ciphertext, or the second server encountered an error when generating the pending ciphertext. However, regardless of the cause, the anomaly will result in transaction failure. Therefore, the second server will immediately generate a first notification message and send it to the third-party payment program.

[0059] In addition, in order to investigate the causes of the two abnormal situations mentioned above, after receiving the first prompt information, the third-party payment program can re-encrypt the target payment account using an encryption algorithm to obtain a new target ciphertext and a first transaction request containing the new target ciphertext. Subsequently, the second server obtains the first transaction request through the first server and compares the new target ciphertext with at least one unconfirmed ciphertext. If there is an unconfirmed ciphertext that is the same as the new target ciphertext, then the unconfirmed ciphertext is determined as the first ciphertext.

[0060] Furthermore, if at least one of the ciphertexts to be confirmed still does not contain a ciphertext identical to the new target ciphertext, the second server will re-encrypt at least one bank account according to the encryption algorithm to obtain at least one first ciphertext to be confirmed. Then, the second server will check whether there is a first ciphertext identical to the new target ciphertext in at least one first ciphertext to be confirmed. If there is a first ciphertext in at least one ciphertext to be confirmed, the bank account corresponding to the first ciphertext will be determined as the target bank account, and the amount to be paid will be deducted from the target bank account.

[0061] Optionally, the second server can first detect the similarity between each ciphertext to be confirmed and the new target ciphertext, and sort at least one ciphertext to be confirmed according to the similarity. Based on the sorting result, the bank account corresponding to the ciphertext with high similarity is re-encrypted to obtain the first ciphertext to be confirmed for that bank account. If the first ciphertext to be confirmed is the same as the target ciphertext, it is directly determined as the first ciphertext. If the first ciphertext to be confirmed is different from the target ciphertext, the next bank account is re-encrypted according to the sorting result.

[0062] In one optional embodiment, the second server will also detect the balance of funds in the target bank account; when the balance is greater than or equal to the amount to be paid, the second server will deduct the amount to be paid from the target bank account; when the balance is less than the amount to be paid, the second server will generate a second prompt message and send the second prompt message to the third-party payment program, wherein the second prompt message is used to indicate that the deduction of the amount to be paid has failed.

[0063] Optionally, by checking the balance in the target bank account, it can be determined whether the target bank account has sufficient funds to pay the outstanding amount. If not, it is necessary to promptly notify the merchant to use a third-party payment procedure to avoid financial losses.

[0064] In one optional embodiment, after determining that the bank account corresponding to the first ciphertext is the target bank account and deducting the amount to be paid from the target bank account, the second server generates a deduction result, wherein the deduction result includes at least the amount to be paid and the deduction time, and then the second server sends the deduction result to the first server.

[0065] Optionally, after the second server successfully deducts the payment, it will send the deduction result to the first server, which will then process the payment into the merchant's account based on the deduction result, thus completing the entire transaction loop.

[0066] In one optional embodiment, after sending the deduction result to the first server, the second server also receives a response result returned by the first server, wherein the response result indicates that the bank that issued the collection order has recorded the deduction result. Then, the second server sends the response result to the third-party payment application.

[0067] Optionally, after the first server records the deduction result and processes the payment in the merchant's account, the first server will generate a reply result and return the reply result to the second server. After receiving the reply result, the second server can determine that the transaction has been completed. Therefore, the second server can send the reply result to the third-party payment program so that the payee can also know in a timely manner that the transaction has been completed.

[0068] In one alternative embodiment, Figure 3 A flowchart of an optional transaction processing method according to an embodiment of this application is shown. Figure 3 As shown, the method includes the following steps:

[0069] In step S301, when the third-party payment program generates the aggregated payment QR code, it encrypts the target bank account of the payment recipient using a hash encryption algorithm, generating an account encryption digest (corresponding to the target ciphertext) that replaces the original target bank account in the aggregated payment QR code. Because the hash encryption algorithm is irreversible, the acquiring bank cannot deduce the original target bank account.

[0070] Step S302: The merchant's POS machine scans the aggregated payment QR code;

[0071] Step S303: The POS machine sends the aggregated payment QR code to the acquiring bank's first server.

[0072] Step S304: The first server parses the aggregated payment QR code, obtains the transaction request, and forwards the transaction request to the issuing bank's second server through UnionPay;

[0073] Step S305: The second server encrypts at least one bank account bound to the third-party payment account using a hash encryption algorithm to obtain at least one ciphertext to be confirmed.

[0074] Step S306: The second server compares the target ciphertext with each ciphertext to be confirmed to obtain the first ciphertext that is the same as the target ciphertext, and determines the bank account corresponding to the first ciphertext as the target bank account;

[0075] Step S307: The second server deducts the amount to be paid from the target bank account;

[0076] Step S308: The second server sends the deduction result back to the acquiring bank via UnionPay;

[0077] In step S309, after receiving the deduction result, the first server processes the payment into the merchant's account and notifies the merchant that the payment was successful. At the same time, it returns a reply result to the second server through UnionPay.

[0078] As described above, this application solves the problems of long and inefficient data exchange processes in aggregated payment and clearing. It achieves direct data exchange from the acquiring bank to the issuing bank through a direct connection, avoiding third-party payment institutions during payment and clearing, thus significantly improving data processing efficiency and reducing the risk of data transmission failure. Simultaneously, it applies technologies such as hash encryption to enhance data security and protect customer privacy during aggregated payment transactions, preventing the leakage of cardholder information such as card numbers to acquiring banks and numerous merchants, thereby improving information transmission security.

[0079] Example 2

[0080] This application also provides a transaction processing system. It should be noted that the transaction processing system of this application can be used to execute the transaction processing method provided in embodiment 1 of this application. The transaction processing system provided in this application is described below.

[0081] Figure 4 This is a schematic diagram of a transaction processing system according to an embodiment of this application. Figure 4 As shown, the system includes: a first terminal device, used to generate a transaction request based on a third-party payment program, wherein the transaction request includes at least the third-party payment account of the payee, the amount to be paid, and the target ciphertext, the target ciphertext being the ciphertext obtained by the third-party payment program encrypting the target bank account of the payee using an encryption algorithm;

[0082] The first server is connected to the first terminal device and is used to receive transaction requests and forward the transaction requests to the second server. The first server is the server of the acquiring bank and the second server is the server of the issuing bank. The acquiring bank is the bank that provides the bank account to the payee and the issuing bank is the bank that provides the target bank account to the payee.

[0083] The second server, connected to the first server, is used to obtain at least one bank account associated with the third-party payment account, and encrypt the at least one bank account according to an encryption algorithm to obtain at least one ciphertext to be confirmed, wherein each ciphertext to be confirmed corresponds to a bank account; the second server is also used to detect whether there is a first ciphertext that is the same as the target ciphertext in the at least one ciphertext to be confirmed, and when there is a first ciphertext in the at least one ciphertext to be confirmed, the bank account corresponding to the first ciphertext is identified as the target bank account, and then the amount to be paid is deducted from the target bank account.

[0084] Optionally, the aforementioned first terminal device can be a smartphone, smart tablet, smart wearable device, or laptop computer, etc., capable of running third-party payment programs. Additionally, the transaction processing system may optionally include a second terminal device for connecting to the first terminal device and the first server. Specifically, the second terminal device can be a POS machine or other device used by the merchant for scanning payment codes or collection codes.

[0085] In an optional embodiment, the aforementioned transaction request can specifically be an aggregated payment QR code for mobile payments, such as a payment code or a collection code. The aforementioned third-party payment program is an application with payment functionality. For example, user A uses third-party payment program 1 to generate a payment code. The information contained in this payment code includes at least user A's third-party payment account, the amount to be paid, and target ciphertext. The target ciphertext is ciphertext encrypted for a bank account belonging to user A, the bank account through which user A pays the amount to be paid. User A displays the payment code on merchant B's POS machine, and the POS machine then sends the payment code to a first server. This first server is the acquiring bank's server, which can be understood as the bank that provides the POS machine to merchant B and also the bank that provides the bank account to merchant B.

[0086] It's important to note that after receiving a transaction request, the first server will both record the request and forward it to a second server. This second server is the server of the issuing bank, which can be understood as the bank that provides user A with the target bank account (i.e., the bank account for paying the outstanding amount). The issuing bank and the acquiring bank can be different banks; for example, the issuing bank might be bank1, and the acquiring bank might be bank2.

[0087] Optionally, assume that user A's third-party payment account is account V, and the bank corresponding to the second server is bank1. The preset database of the second server stores all the bank accounts opened by user A under bank1, and the preset database of the second server also records which of these bank accounts are bound to account V.

[0088] For example, if user A's account V is linked to three bank accounts opened by user A at bank1, namely bank account 1, bank account 2, and bank account 3, and if the third-party payment program uses a hash encryption algorithm to encrypt user A's target bank accounts, then the second server also uses a hash encryption algorithm to encrypt bank account 1, bank account 2, and bank account 3 respectively, thus obtaining three ciphertexts to be confirmed. It should be noted that the encryption algorithms in this application include, but are not limited to, the hash encryption algorithms described above.

[0089] Furthermore, it's important to note that because the third-party payment program and the second server use the same encryption algorithm, the ciphertext obtained after encrypting the same bank account is also identical. Based on this principle, if the third-party payment program encrypts user A's bank account 1, the resulting target ciphertext is identical to the ciphertext to be confirmed obtained by the second server after encrypting bank account 1. In other words, the second server can determine that the ciphertext to be confirmed corresponding to bank account 1 is the first ciphertext. After confirming the first ciphertext, the second server can determine that the bank account corresponding to the first ciphertext is the target bank account used to pay the outstanding amount. Based on this, the second server only needs to deduct the outstanding amount from the target bank account to complete the transaction.

[0090] Based on the above, this application employs an encryption method for the bank account of the payment recipient. First, a transaction request generated by a third-party payment program is obtained from a first server. This transaction request includes at least the third-party payment account of the payment recipient, the amount to be paid, and target ciphertext. The target ciphertext is the ciphertext obtained by the third-party payment program encrypting the target bank account of the payment recipient using an encryption algorithm. The first server is the server of the acquiring bank, which provides the bank account to the payment recipient. Then, at least one bank account associated with the third-party payment account is read from a preset database and encrypted using the encryption algorithm to obtain at least one ciphertext to be confirmed. Finally, it is checked whether a first ciphertext identical to the target ciphertext exists among the at least one ciphertext to be confirmed. If the first ciphertext exists among the at least one ciphertext to be confirmed, the bank account corresponding to the first ciphertext is determined to be the target bank account, and the amount to be paid is deducted from the target bank account. Each ciphertext to be confirmed corresponds to one bank account.

[0091] As described above, this application improves the security of user bank accounts by encrypting the bank account of the payment recipient, ensuring that the first server (i.e., the acquiring bank's server) cannot identify the payment recipient's bank account when forwarding transaction requests. Furthermore, this application also encrypts the bank account associated with the third-party payment account, comparing the generated ciphertext to be confirmed with the target ciphertext, thereby ensuring that the issuing bank's server (i.e., the second server) can accurately identify the target bank account used for payment, guaranteeing the smooth completion of the transaction.

[0092] Therefore, the technical solution of this application achieves the goal of preventing the leakage of the bank account of the payee, thereby improving the information security in the process of cross-bank transactions and solving the technical problem of poor information security in cross-bank transactions in the prior art.

[0093] Example 3

[0094] This application also provides a transaction processing apparatus. It should be noted that the transaction processing apparatus of this application can be used to execute the transaction processing method provided in embodiment 1 of this application. The transaction processing apparatus provided in this application will be described below.

[0095] Figure 5 This is a schematic diagram of a transaction processing apparatus according to an embodiment of this application. Figure 5 As shown, the device includes: an acquisition module 501, used to acquire a transaction request generated by a third-party payment program from a first server, wherein the transaction request includes at least the third-party payment account of the payee, the amount to be paid, and target ciphertext, the target ciphertext being the ciphertext obtained by the third-party payment program encrypting the target bank account of the payee using an encryption algorithm, the first server being the server of the acquiring bank, and the acquiring bank being the bank that provides the bank account to the payee; a reading module 502, used to read at least one bank account associated with the third-party payment account from a preset database; an encryption module 503, used to encrypt at least one bank account according to an encryption algorithm to obtain at least one ciphertext to be confirmed, wherein each ciphertext to be confirmed corresponds to one bank account; a detection module 504, used to detect whether there is a first ciphertext identical to the target ciphertext in the at least one ciphertext to be confirmed; and a determination module 505, used to determine that the bank account corresponding to the first ciphertext is the target bank account when the first ciphertext exists in the at least one ciphertext to be confirmed, and to deduct the amount to be paid from the target bank account.

[0096] Optionally, the transaction processing device further includes a receiving module, a generating module, and a storage module. The receiving module receives account binding requests, which are used to bind a bank account and a third-party payment account. The generating module generates a target index table based on the account binding request, which records the binding relationship between the bank account and the third-party payment account. The storage module stores the target index table in a preset database of a second server, where the second server is the server of the issuing bank, which is the bank that provides the target bank account to the payment recipient.

[0097] Optionally, the transaction processing device further includes a first generation module and a sending module. The first generation module is used to generate a first prompt message when at least one ciphertext to be confirmed is missing, wherein the first prompt message indicates that the second server has failed to successfully identify the target bank account; the sending module is used to send the first prompt message to a third-party payment program.

[0098] Optionally, the determining module further includes: a detection unit, a deduction unit, and a first generation unit. The detection unit is used to detect the balance of funds in the target bank account; the deduction unit is used to deduct the amount to be paid from the target bank account when the balance is greater than or equal to the amount to be paid; the first generation unit is used to generate a second prompt message when the balance is less than the amount to be paid, and send the second prompt message to the third-party payment program, wherein the second prompt message indicates that the deduction of the amount to be paid has failed.

[0099] Optionally, the transaction processing apparatus further includes a second generation module and a first sending module. The second generation module is used to generate a deduction result, wherein the deduction result includes at least the amount to be paid and the deduction time; the first sending module is used to send the deduction result to a first server.

[0100] Optionally, the transaction processing device further includes: a first receiving module and a second sending module. The first receiving module is used to receive a response result returned by the first server, wherein the response result indicates that the collection bank has recorded the deduction result; the second sending module is used to send the response result to the third-party payment program.

[0101] Example 4

[0102] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, which stores a computer program, wherein the computer program is configured to execute the transaction processing method in Embodiment 1 above when it is run.

[0103] Example 5

[0104] According to another aspect of the embodiments of this application, an electronic device is also provided, which includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors cause the one or more processors to implement the transaction processing method in Embodiment 1 above.

[0105] like Figure 6 As shown, this application embodiment provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps:

[0106] The system retrieves a transaction request generated by a third-party payment program from a first server. This transaction request includes at least the third-party payment account of the payee, the amount to be paid, and target ciphertext. The target ciphertext is the ciphertext obtained by encrypting the payee's target bank account using an encryption algorithm. The first server is the server of the acquiring bank, which provides the bank account to the payee. The system reads at least one bank account associated with the third-party payment account from a preset database. It encrypts the at least one bank account using an encryption algorithm to obtain at least one ciphertext to be confirmed, where each ciphertext corresponds to a bank account. The system checks whether a first ciphertext identical to the target ciphertext exists among the at least one ciphertext to be confirmed. If a first ciphertext exists among the at least one ciphertext to be confirmed, the bank account corresponding to the first ciphertext is determined to be the target bank account, and the amount to be paid is deducted from the target bank account.

[0107] Optionally, the processor, when executing the program, also implements the following steps: before reading at least one bank account associated with the third-party payment account from a preset database, receiving an account binding request, wherein the account binding request is used to bind the bank account and the third-party payment account; generating a target index table based on the account binding request, wherein the target index table is used to record the binding relationship between the bank account and the third-party payment account; and storing the target index table in a preset database of a second server, wherein the second server is the server of the issuing bank, and the issuing bank is the bank that provides the target bank account to the payment recipient.

[0108] Optionally, the processor, when executing the program, also implements the following steps: after detecting whether there is a first ciphertext identical to the target ciphertext in at least one ciphertext to be confirmed, when there is no first ciphertext in at least one ciphertext to be confirmed, a first prompt message is generated, wherein the first prompt message is used to indicate that the second server has not successfully identified the target bank account; and the first prompt message is sent to the third-party payment program.

[0109] Optionally, the processor may also perform the following steps when executing the program: detect the balance of funds in the target bank account; deduct the amount to be paid from the target bank account when the balance is greater than or equal to the amount to be paid; generate a second prompt message when the balance is less than the amount to be paid, and send the second prompt message to the third-party payment program, wherein the second prompt message is used to indicate that the deduction of the amount to be paid has failed.

[0110] Optionally, the processor may also perform the following steps when executing the program: after determining that the bank account corresponding to the first ciphertext is the target bank account and deducting the amount to be paid from the target bank account, generate a deduction result, wherein the deduction result includes at least the amount to be paid and the deduction time; and send the deduction result to the first server.

[0111] Optionally, the processor may also perform the following steps when executing the program: after sending the deduction result to the first server, receive the reply result returned by the first server, wherein the reply result shows that the collection bank has recorded the deduction result; and send the reply result to the third-party payment program.

[0112] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0113] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0114] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0115] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0116] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0117] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0118] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A transaction processing method, characterized by, include: The transaction request generated by the third-party payment program is obtained from the first server. The transaction request includes at least the third-party payment account of the payee, the amount to be paid, and the target ciphertext. The target ciphertext is the ciphertext obtained by the third-party payment program encrypting the target bank account of the payee using an encryption algorithm. The first server is the server of the acquiring bank, which is the bank that provides the bank account to the payee. The transaction request is directly forwarded by the first server to the second server for processing. The second server is the server of the issuing bank, which is the bank that provides the target bank account to the payee. Read at least one bank account associated with the third-party payment account from the preset database; The at least one bank account is encrypted according to the encryption algorithm to obtain at least one ciphertext to be confirmed, wherein each ciphertext to be confirmed corresponds to a bank account; Detect whether there exists a first ciphertext that is identical to the target ciphertext in the at least one ciphertext to be confirmed; If the first ciphertext exists in at least one ciphertext to be confirmed, the bank account corresponding to the first ciphertext is determined to be the target bank account, and the amount to be paid is deducted from the target bank account; The method further includes: detecting the similarity between each of the ciphertexts to be confirmed and the new target ciphertext, and sorting at least one ciphertext to be confirmed according to the similarity; based on the sorting result, first re-encrypting the bank account corresponding to the ciphertext with high similarity to obtain the first ciphertext to be confirmed for that bank account; if the first ciphertext to be confirmed is the same as the new target ciphertext, then directly determining the first ciphertext to be confirmed as the first ciphertext; if the first ciphertext to be confirmed is different from the new target ciphertext, then continuing to re-encrypt the next bank account according to the sorting result, wherein the new target ciphertext represents the target payment account obtained by the third-party payment program after receiving the first prompt information and re-encrypting it using an encryption algorithm; the first prompt information is used to indicate that the second server failed to successfully identify the target bank account.

2. The method of claim 1, wherein, Before reading at least one bank account associated with the third-party payment account from a preset database, the method further includes: Receive an account binding request, wherein the account binding request is used to bind the bank account and the third-party payment account; A target index table is generated based on the account binding request, wherein the target index table is used to record the binding relationship between the bank account and the third-party payment account; The target index table is stored in a preset database on the second server.

3. The method of claim 2, wherein, After detecting whether there is a first ciphertext identical to the target ciphertext in the at least one ciphertext to be verified, the method further includes: If the first ciphertext is not present in the at least one ciphertext to be confirmed, a first prompt message is generated; The first prompt message is sent to the third-party payment program.

4. The method of claim 1, wherein, Identifying the bank account corresponding to the first ciphertext as the target bank account, and deducting the amount to be paid from the target bank account, including: Detect the balance of funds in the target bank account; When the cash balance is greater than or equal to the amount due, the amount due is deducted from the target bank account; When the balance of funds is less than the amount to be paid, a second prompt message is generated and sent to the third-party payment program. The second prompt message indicates that the deduction of the amount to be paid has failed.

5. The method of claim 4, wherein, After determining that the bank account corresponding to the first ciphertext is the target bank account and deducting the amount to be paid from the target bank account, the method further includes: Generate a deduction result, wherein the deduction result includes at least the amount to be paid and the deduction time; The deduction result is sent to the first server.

6. The method of claim 5, wherein, After sending the deduction result to the first server, the method further includes: Receive the response result returned by the first server, wherein the response result indicates that the acquiring bank has recorded the deduction result; The response result is sent to the third-party payment program.

7. A transaction processing system, characterized in that, include: The first terminal device is used to generate a transaction request based on a third-party payment program. The transaction request includes at least the third-party payment account of the payee, the amount to be paid, and the target ciphertext. The target ciphertext is the ciphertext obtained by the third-party payment program encrypting the target bank account of the payee using an encryption algorithm. A first server, connected to the first terminal device, is used to receive the transaction request and forward the transaction request to a second server. The first server is the server of the acquiring bank, and the second server is the server of the issuing bank. The acquiring bank is the bank that provides the bank account to the payee, and the issuing bank is the bank that provides the target bank account to the payee. The transaction request is directly forwarded from the first server to the second server for processing. The second server, connected to the first server, is used to obtain at least one bank account associated with the third-party payment account, and encrypt the at least one bank account according to the encryption algorithm to obtain at least one ciphertext to be confirmed, wherein each ciphertext to be confirmed corresponds to a bank account; the second server is also used to detect whether there is a first ciphertext that is the same as the target ciphertext in the at least one ciphertext to be confirmed, and when the first ciphertext exists in the at least one ciphertext to be confirmed, the bank account corresponding to the first ciphertext is determined as the target bank account, and then the amount to be paid is deducted from the target bank account; The system further includes: detecting the similarity between each of the ciphertexts to be confirmed and the new target ciphertext, and sorting at least one ciphertext to be confirmed according to the similarity; based on the sorting result, first re-encrypting the bank account corresponding to the ciphertext with high similarity to obtain the first ciphertext to be confirmed for that bank account; if the first ciphertext to be confirmed is the same as the new target ciphertext, then the first ciphertext to be confirmed is directly determined as the first ciphertext; if the first ciphertext to be confirmed is different from the new target ciphertext, then the next bank account is re-encrypted according to the sorting result. The new target ciphertext represents the target payment account obtained by the third-party payment program after receiving the first prompt information, and the first prompt information is used to indicate that the second server failed to successfully identify the target bank account.

8. A transaction processing apparatus, characterized in that, include: The acquisition module is used to acquire a transaction request generated by a third-party payment program from a first server. The transaction request includes at least the third-party payment account of the payee, the amount to be paid, and the target ciphertext. The target ciphertext is the ciphertext obtained by the third-party payment program encrypting the target bank account of the payee using an encryption algorithm. The first server is the server of the acquiring bank, which is the bank that provides the bank account to the payee. The transaction request is directly forwarded by the first server to a second server for processing. The second server is the server of the issuing bank, which is the bank that provides the target bank account to the payee. A reading module is used to read at least one bank account associated with the third-party payment account from a preset database; An encryption module is used to encrypt the at least one bank account according to the encryption algorithm to obtain at least one ciphertext to be confirmed, wherein each ciphertext to be confirmed corresponds to a bank account; The detection module is used to detect whether there is a first ciphertext that is identical to the target ciphertext in the at least one ciphertext to be confirmed; The determining module is configured to, when the first ciphertext exists in the at least one ciphertext to be confirmed, determine that the bank account corresponding to the first ciphertext is the target bank account, and deduct the amount to be paid from the target bank account; The device is further configured to detect the similarity between each of the ciphertexts to be confirmed and the new target ciphertext, and sort at least one ciphertext to be confirmed according to the similarity. Based on the sorting result, the bank account corresponding to the ciphertext with high similarity is re-encrypted to obtain the first ciphertext to be confirmed for that bank account. If the first ciphertext to be confirmed is the same as the new target ciphertext, the first ciphertext to be confirmed is directly determined as the first ciphertext. If the first ciphertext to be confirmed is different from the new target ciphertext, the next bank account is re-encrypted according to the sorting result. The new target ciphertext represents the target payment account obtained by the third-party payment program after receiving the first prompt information and re-encrypting it using an encryption algorithm. The first prompt information is used to indicate that the second server failed to identify the target bank account.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the transaction processing method according to any one of claims 1 to 6 when it is run.

10. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the transaction processing method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Cross-bank payment service processing method and device based on block chain

    CN111967967A

  • Payment information processing method and device thereof

    CN112700238A