Off-line exhibition code payment method and device and electronic equipment

By using the first server as a bridge when the network is blocked, and using customer payment seeds and keys to calculate and encrypt payment pseudocodes, the problem of payment security when the payment terminal cannot communicate with the financial institution is solved, and safe offline development is achieved. Code payment.

CN118608147APending Publication Date: 2024-09-06INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410665108.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

When the payment terminal cannot communicate with the financial institution for a long time, the existing technology cannot realize a safe payment process and is vulnerable to attacks.

Method used

Using the first server as a bridge, the client sends a payment protocol activation application to the second server, receives and stores the customer's payment seed and key, and the client uses the timestamp to calculate the payment pseudocode, encrypts it and returns it to the client to implement Pay.

Benefits of technology

A safe payment process is achieved under network isolation, which improves the security of payment accounts and the dynamics of payment, and avoids insecurity in the payment process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608147A
    Figure CN118608147A
Patent Text Reader

Abstract

The invention provides an offline exhibition code payment method and device and electronic equipment, and the method comprises the steps: a first server obtains a payment protocol opening application sent by a client, and sends the payment protocol opening application to a second server; receiving and storing a customer payment seed and a customer payment key sent by the second server; in response to a payment request sent by the client, sending a client payment seed and a client payment key to the client, so that the client calculates a payment pseudo code by using the timestamp; and receiving the payment pseudo code sent by the client, encrypting the payment pseudo code, and returning the encrypted payment code to the client, so that the client displays the payment code to realize payment. According to the scheme, the first server is used as a bridge, so that the payment process can still be safely realized under the condition that network obstruction exists between the first server and the second server; the security of the payment account can be improved; the dynamic payment code is obtained by using the timestamp, and the payment security is improved through the dynamic payment code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology and can be used in the financial field, and in particular to an offline code display payment method, device and electronic device. Background Art

[0002] In some scenarios, a group's payment terminals will be unable to communicate with financial institutions for a long time. For example, the park where a scientific research unit is located has shielded the user terminal from the network, and the user terminal can only communicate with the external network through the unit's server. However, users often need to consume in places such as canteens in the park. The user terminal cannot communicate with the external network, which makes it impossible for the user terminal to generate a secure payment code.

[0003] In this regard, the existing technology handles this as follows: the payment token and customer payment key used to generate the payment code are stored locally in the payment terminal and on the server of the financial institution; the payment terminal generates and displays the payment code through the payment token and customer payment key; the payment terminal sends the payment code information to the server of the financial institution; the server of the financial institution parses the information obtained from the payment code and compares it with the information stored in itself to determine whether the payment can be made.

[0004] However, since the payment terminal is vulnerable to attacks, the above processing method will make the payment process unsafe. Summary of the invention

[0005] This specification provides an offline code display payment method, device and electronic device, so that the payment terminal can still achieve "safe" payment when it is "long-term" unable to communicate with the financial institution.

[0006] To solve the above technical problems, the first aspect of this specification provides an offline code display payment method, including: a first server obtains a payment protocol activation application sent by a client, and sends the payment protocol activation application to a second server; receives and stores a customer payment seed and a customer payment key sent by the second server; the customer payment seed and the customer payment key are determined according to the customer information in the payment protocol activation application; receives a payment request sent by the client; in response to the payment request, sends the customer payment seed and the customer payment key to the client, so that the client can calculate a payment pseudocode using a timestamp; receives the payment pseudocode sent by the client, encrypts the payment pseudocode, and returns the encrypted payment code to the client, so that the client can display the payment code to realize payment.

[0007] In some embodiments, the method also includes: the first server receives and stores batch payment details sent by the second server; receives a payment detail query request from the client, wherein the payment detail query request carries customer information; and finds out the payment detail information corresponding to the customer information from the pre-stored batch payment details and feeds it back to the client.

[0008] The second aspect of this specification provides an offline code display payment method, including: a client sends a payment protocol activation application to a first server, the payment protocol activation application is used to prompt the second server to send a customer payment seed and a customer payment key to the first server; sends a payment request to the first server, the payment request is used to prompt the first server to send a customer payment seed and a customer payment key to the client; receives the customer payment seed and the customer payment key sent by the first server; calculates a payment pseudocode based on the customer payment seed, the customer payment key, and a timestamp; sends the payment pseudocode to the first server for encryption, and obtains the encrypted payment code fed back by the first server; receives the payment code returned by the first server; and displays the payment code to realize payment.

[0009] In some embodiments, the payment pseudocode is calculated based on the customer payment seed, the customer payment key, and the timestamp, including: generating a dynamic password based on the timestamp and the customer payment seed using the customer payment key and a one-way hash algorithm; and forming a payment pseudocode with the customer payment seed and the dynamic password.

[0010] In some embodiments, the method further includes: receiving payment information sent by the second server, wherein the payment information is used to indicate whether the payment is successful.

[0011] In some embodiments, the method also includes: sending a payment details query request to the first server, the payment details query request carrying customer information; receiving payment details information corresponding to the customer information fed back by the first server, the payment details information being obtained by the first server from the payment details batch fed back by the second server.

[0012] The third aspect of this specification provides an offline code display payment method, including: a second server receives a payment agreement activation application sent by a first server; the payment agreement activation application carries customer information; in response to the payment agreement activation application, a customer payment seed and a customer payment key corresponding to the customer payment information are sent to the first server; a payment settlement request is obtained, and the payment settlement request carries payment code information; settlement processing is performed according to the payment code, and it is determined whether the payment is successful; and payment information is sent to the client, and the payment information is used to indicate whether the payment is successful.

[0013] In some embodiments, settlement processing is performed according to the payment code, and determining whether the payment is successful includes: parsing the payment code to obtain a customer payment seed and a dynamic password; determining a customer payment key according to the customer payment seed, and generating multiple expected dynamic passwords according to multiple timestamps within an expected time period and the customer payment seed to form an expected dynamic password set; judging whether the dynamic password obtained by parsing exists in the expected dynamic password set; and determining that the payment is successful if the judgment result is yes.

[0014] In some embodiments, the method further includes: sending the payment details in batches to the first server so that the client can query the first server for payment detail information.

[0015] The fourth aspect of the present specification provides an offline code display payment device, including: a first acquisition unit, used for a first server to acquire a payment protocol activation application sent by a client, and send the payment protocol activation application to a second server; a first receiving unit, used to receive and store a customer payment seed and a customer payment key sent by the second server; the customer payment seed and the customer payment key are determined according to the customer information in the payment protocol activation application; a second receiving unit, used to receive a payment request sent by the client; a first sending unit, used to send a customer payment seed and a customer payment key to the client in response to the payment request, so that the client can calculate a payment pseudocode using a timestamp; a third receiving unit, used to receive the payment pseudocode sent by the client, encrypt the payment pseudocode, and return the encrypted payment code to the client, so that the client can display the payment code to realize payment.

[0016] The fifth aspect of this specification provides an offline code display payment device, including: a second sending unit, used by a client to send a payment protocol activation application to a first server, the payment protocol activation application is used to prompt the second server to send a customer payment seed and a customer payment key to the first server; a third sending unit, used to send a payment request to the first server, the payment request is used to prompt the first server to send a customer payment seed and a customer payment key to the client; a fourth receiving unit, used to receive the customer payment seed and the customer payment key sent by the first server; a calculation unit, used to calculate a payment pseudocode based on the customer payment seed, the customer payment key, and a timestamp; the fourth sending unit, used to send the payment pseudocode to the first server for encryption, and obtain the encrypted payment code fed back by the first server; a fifth receiving unit, used to receive the payment code returned by the first server; a display unit, used to display the payment code to realize payment.

[0017] The sixth aspect of this specification provides an offline code display payment device, including: a sixth receiving unit, used for a second server to receive a payment agreement activation application sent by a first server; the payment agreement activation application carries customer information; a fifth sending unit, used to respond to the payment agreement activation application, and send a customer payment seed and a customer payment key corresponding to the customer payment information to the first server; a second acquisition unit, used to obtain a payment settlement request, and the payment settlement request carries payment code information; a processing unit, used to perform settlement processing according to the payment code, and determine whether the payment is successful; a sixth sending unit, used to send payment information to the client, and the payment information is used to indicate whether the payment is successful.

[0018] In a seventh aspect, this specification provides an electronic device, comprising: a memory and a processor, the processor and the memory are communicatively connected to each other, the memory stores computer instructions, and the processor implements the offline code display payment method described in any one of the first aspect, any one of the second aspect, or any one of the third aspect by executing the computer instructions.

[0019] In an eighth aspect, the present specification provides a computer storage medium, wherein the computer storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the offline code display payment method described in any one of the first aspect, any one of the second aspect, or any one of the third aspect is implemented.

[0020] A ninth aspect of the present specification provides a computer program product, comprising a computer program, which, when executed by a processor, implements the offline code display payment method described in any one of the first aspect, any one of the second aspect, or any one of the third aspect.

[0021] The offline code display payment method, device and electronic device provided in this specification, when the client sends a payment protocol activation request to the second server through the first server, the second server sends the customer payment seed and the customer payment key to the first server, when the client needs to pay the transaction order, the client initiates a payment request to the first server to obtain the customer payment seed and the customer payment key, and then the client calculates the payment pseudo code based on this information, and then sends the payment pseudo code to the first server for encryption, and the payment code is returned to the client, and the client can display the payment code for payment of the transaction order. This solution uses the first server as a bridge, so that the payment process can still be safely implemented in the case of network isolation with the second server; the customer payment seed and the customer payment key are stored in the first server with higher security instead of being stored in the client, so that the security of the customer seed and the customer payment key is higher, thereby improving the security of the payment account; the client uses the customer payment seed, the customer payment key and the timestamp to generate a dynamic payment pseudo code and then obtain a dynamic payment code, and the payment security is further improved through the dynamic payment code. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 A schematic diagram of the offline code display payment method provided in this manual;

[0024] Figure 2 A schematic diagram of a method for a client to calculate a payment pseudo code based on the customer payment seed, the customer payment key, and a timestamp;

[0025] Figure 3 Another schematic diagram of the offline code display payment method provided in this manual;

[0026] Figure 4 A schematic diagram of a method in which the second server performs settlement processing according to the payment code and determines whether the payment is successful;

[0027] Figure 5 Another schematic diagram of the offline code display payment method provided in this manual;

[0028] Figure 6 A schematic diagram of an offline code display payment method from the perspective of a first server;

[0029] Figure 7This is a schematic diagram of the offline code display payment method from the client's perspective;

[0030] Figure 8 A schematic diagram of an offline code display payment method from the perspective of a second server;

[0031] Fig. 9 A schematic diagram of the offline code display payment device provided in this manual;

[0032] Fig.10 A schematic diagram of the structure of an electronic device provided in this specification is shown. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0034] This specification provides an offline code display payment system, including: a client, a first server, and a second server, wherein the client corresponds to the user terminal of the above-mentioned scientific research unit, the first server corresponds to the server of the above-mentioned scientific research unit, and the second server is a server of a financial institution. In some embodiments, the first server may not be a server of the scientific research unit, but a third-party server.

[0035] The client is connected to the first server through the first communication network, but there is a network barrier between the first communication network between the client and the second server, that is, the client cannot be connected through the first communication network. The first server is connected to the second server through the first communication network. The client is connected to the second server through the second communication network. The second communication network cannot be used to realize electronic payment, and the first communication network can be used to realize electronic payment. For example, the first communication network can be the Internet, and the second communication network can be a second-generation mobile terminal communication network, that is, a 2G network.

[0036] The offline code display payment system provided in this specification enables the client to realize secure payment by adding a first server between the client and the second server which are isolated by the network.

[0037] like Figure 1 As shown, this specification provides an offline code display payment method including the following steps:

[0038] S210: The client sends a payment protocol activation application to the first server, wherein the payment protocol activation application carries customer information.

[0039] When the client terminal and the financial institution are connected via the first communication network, the client terminal sends a payment agreement activation application to the second server of the financial institution.

[0040] In the case that the client cannot be connected to the financial institution through the first communication network, in order to enable the client to realize electronic payment with the help of the first server, the client needs to send a payment protocol activation request to the first server.

[0041] The payment agreement activation request carries customer information, such as customer name, ID number, financial account number, payment password, etc.

[0042] The client can refer to the APP of the payment terminal or the payment terminal entity dedicated to payment.

[0043] S110: The first server sends a payment agreement activation application to the second server.

[0044] The first server may directly forward the payment agreement activation application sent by the client to the second server, or may process the payment agreement activation application before sending it to the second server. For example, when multiple clients send payment agreement activation applications to the first server, the first server may aggregate the payment agreement activation applications sent by the multiple clients into a batch application request, and send the batch application request to the second server.

[0045] S310: The second server receives the payment agreement activation application sent by the first server.

[0046] S320: In response to the payment protocol activation application, the second server sends the customer payment seed and the customer payment key corresponding to the customer payment information to the first server.

[0047] When the client and the financial institution can be connected through the first communication network, the second server will send the client payment seed and the client payment key used to generate the payment code to the client only when the client sends a payment request to the second server of the financial institution. However, when the client and the financial institution cannot be connected through the first communication network, the client cannot send a payment request to the "second server".

[0048] The present application scheme sets up that when the second server responds to the payment agreement activation application, it sends the customer payment seed and customer payment key corresponding to the customer payment information to the first server, so that the subsequent client can send a payment request to the first server to obtain the customer payment seed and customer payment key.

[0049] The customer payment seed and the customer payment key are two parameters used to ensure the security and confidentiality of the payment process. For example, the customer payment seed can be a random number generated by the second server in response to the payment protocol activation application. The customer payment key can be a key used to encrypt and decrypt data during the payment process.

[0050] After determining the customer payment seed and the customer payment key, the second server also stores the customer payment seed and the customer payment key in correspondence.

[0051] S120: The first server receives and stores the customer payment seed and the customer payment key sent by the second server.

[0052] S220: The client sends a payment request to the first server.

[0053] When a user needs to make an electronic payment for a transaction, he or she can initiate a payment request through the client. The payment request is used to request the start of the transaction payment process.

[0054] The payment request may carry payer information, which may include at least one of the following: payer name, payer account number, etc.

[0055] S130: The first server receives a payment request sent by the client.

[0056] S140: The first server sends a customer payment seed and a customer payment key to the client in response to the payment request.

[0057] Since the first server has received and stored the customer payment seed and customer payment key sent by the second server when responding to the payment agreement activation application, when the first server responds to the payment request sent by the client, it can directly search for the customer payment seed and customer payment key corresponding to the payer information based on the payer information in the payment request, and feed it back to the client.

[0058] S230: The client receives the customer payment seed and the customer payment key sent by the first server.

[0059] S240: The client calculates a payment pseudo code according to the customer payment seed, the customer payment key, and the timestamp.

[0060] The payment pseudo code is generated by the client. Since the client cannot communicate with the second server, it is unable to know the data encryption algorithm and key between the second server and the normal client. Therefore, the client cannot process and obtain the same payment code as the payment code displayed by the normal client. Therefore, the calculation result of S240 is called the payment pseudo code. If the payment pseudo code is directly displayed for payment transaction orders, the payment process will be unsafe, and the second server will not be able to process the payment process normally according to the payment code information (for example, the decryption result is abnormal). The above-mentioned normal client refers to the client in the normal payment process when the client and the second server can communicate through the first communication network.

[0061] In some embodiments, Figure 2 As shown, the client calculates the payment pseudo code according to the customer payment seed, the customer payment key, and the timestamp, including the following S241 and S242.

[0062] S241: The client generates a dynamic password based on the timestamp and the customer payment seed, using the customer payment key and a one-way hash algorithm.

[0063] A dynamic password is a time-related, unpredictable random number combination generated at regular intervals (e.g., 60 seconds) based on a special algorithm. Each password can only be used once. A one-way hash algorithm is used to generate a dynamic password to ensure the one-way nature of the algorithm.

[0064] Specifically, S241 may be: converting the timestamp, customer payment seed and other information into BCD code, regrouping the conversion results, generating a digest for the grouped results using a message digest algorithm (such as national encryption SM3), intercepting the digest, converting the base, and obtaining a dynamic password.

[0065] S242: The client converts the customer payment seed and the dynamic password into a payment pseudo code.

[0066] The customer payment seed and the dynamic password can be processed by a preset processing method such as splicing to form a payment pseudo code. The preset processing method is pre-agreed with the second server.

[0067] The payment pseudo code may be a symbolic code or a graphical identification code.

[0068] S250: The client sends the payment pseudo code to the first server for encryption.

[0069] S150: The first server receives the payment pseudo code sent by the client, encrypts the payment pseudo code, and returns the encrypted payment code to the client.

[0070] The first server and the second server can interact in real time through the first communication network to agree on the data encryption method and key to improve the security and confidentiality of the payment process. Therefore, the first server has the function of encrypting the payment code. The client sends the payment pseudo code calculated by itself to the first server for encryption. The first server encrypts the payment pseudo code to obtain the payment code and sends the payment code to the client for display.

[0071] After the client calculates the payment pseudocode, the first server encrypts the payment pseudocode to obtain the payment code for display to the payee, so that the payment code displayed by the client is no different from the payment code usually displayed by the client. Therefore, the second server of the financial institution can use its internal common method to process the payment code information displayed by the above client, without having to first identify whether the transaction process is a transaction payment process initiated by a specific channel among the massive transaction payments processed every day, and then use the "corresponding specific processing method" to process the transaction payment process for the transaction payment process initiated by the specific channel, thereby simplifying the processing flow on the financial institution side and reducing the processing difficulty.

[0072] In some embodiments, S150 may encrypt the payment pseudocode using reversible format-preserving encryption (FPE). Format-preserving encryption is a special type of symmetric encryption algorithm that can ensure that the encrypted ciphertext format is exactly the same as the plaintext format before encryption. For example, a bank card number consisting of 16 digits is still 16 digits after being encrypted using a format-preserving encryption algorithm. It can be seen that the format-preserving encryption algorithm has the following characteristics: 1. The data length remains unchanged; 2. The data type remains unchanged; 3. The encryption process is reversible.

[0073] The key for the type-preserving encryption may be pre-agreed with the second server, so that the second server can use the key for the type-preserving encryption to decrypt the payment code.

[0074] By encrypting the payment pseudocode in a form-preserving manner, when the payment code is scanned by others, they will mistakenly think that the payment pseudocode information is the payment code information, making it impossible for others to parse out the correct payment information, thereby improving the security and confidentiality of the payment processing process.

[0075] The encrypted payment code can be a symbolic code or a graphical identification code.

[0076] S260: The client receives the payment code returned by the first server.

[0077] S270: The client displays the payment code to make payment.

[0078] After the client displays the payment code, the payment terminal can obtain the payment code information by scanning the payment code with a barcode scanner.

[0079] The payment terminal generates a payment settlement request based on the payment code information, the transaction order, the payee information, etc. and sends it to the second server.

[0080] S330: The second server obtains a payment settlement request, where the payment settlement request carries payment code information.

[0081] In some embodiments, Figure 1 As shown, the payment terminal can directly send a payment settlement request to the second server.

[0082] In other embodiments, Figure 3 As shown, the payment terminal can send a payment settlement request to a joint institution of multiple financial institutions (i.e. Figure 3 The joint institution sends a deduction notice to the second server), and then the joint institution sends a payment settlement request to the second server. The multiple financial institutions can be Bank A, Bank B, and Bank C, and the joint institution of the multiple financial institutions can be UnionPay.

[0083] The payment terminal sends a payment settlement request to a joint organization of multiple financial institutions, which then sends the payment settlement request to the second server, so that the offline code display payment method supports the financial institution corresponding to the second server to aggregate multiple financial offline scanned products, and outputs the payment code to the client of the financial institution corresponding to the second server, and outputs the payment code to the client of other financial institutions. Among them, the financial institution "outputs the payment code" to the client, which means that the server of the financial structure sends the client the customer payment seed and customer payment key required to generate the payment code, and the client has an APP program corresponding to the server-side program of the financial institution, which is used to generate the payment code according to the requirements of the financial institution.

[0084] S340: The second server performs settlement processing according to the payment code and determines whether the payment is successful.

[0085] The second server processes the transaction payment process using an existing method.

[0086] In some embodiments, Figure 4 As shown, S340 also includes the following S341 to S344.

[0087] S341: Parse the payment code to obtain the customer payment seed and dynamic password.

[0088] Since the payment code is encrypted, it needs to be decrypted first and reverse parsed according to the generated format of the payment code to obtain the customer payment seed and dynamic password. The decryption process can include using a predetermined type-preserving encryption key to decrypt the payment code and reversely processing it using the preset processing method for generating the payment code to obtain the customer payment seed and dynamic password.

[0089] S342: Determine the customer payment key according to the customer payment seed, and generate multiple expected dynamic passwords according to multiple timestamps within the expected time period and the customer payment seed to form an expected dynamic password set.

[0090] After the second server determines the customer payment seed and the customer payment key, in addition to sending them to the first server, they are also stored on the second server side. Therefore, after the second server parses and obtains the customer payment seed, it can query the customer payment key.

[0091] like Figure 2 As shown, after the second server obtains the customer payment seed and the customer payment key, it can also generate an expected dynamic password according to the generation rule of the dynamic password, and compare the expected dynamic password with the dynamic password obtained by parsing the payment code.

[0092] Typically, since the client and the second server cannot be connected through the first communication network, the second server cannot obtain the timestamp used by the client when generating the dynamic password, which can easily lead to failure in comparing the expected dynamic password with the dynamic password obtained by parsing the payment code.

[0093] In this regard, the second server can obtain the time of the payment settlement request and infer the timestamp used when generating the dynamic password. Specifically, under normal circumstances, the time difference between the client generating the dynamic password and the second server receiving the payment settlement request will be required to be controlled within a predetermined time length. If the time difference is greater than the predetermined time length, it will cause payment failure. Therefore, the second server can use each timestamp within the predetermined time length before obtaining the payment settlement request to generate multiple expected dynamic passwords respectively, and obtain an expected dynamic password set. Accordingly, the dynamic password obtained by parsing the payment code is compared with each expected dynamic password in the expected dynamic password set to determine whether the dynamic password obtained by parsing exists in the expected dynamic password set.

[0094] S343: Determine whether the dynamic password obtained by parsing exists in the expected dynamic password set.

[0095] S344: If the judgment result is yes, determine that the payment is successful.

[0096] The "settlement" and "payment settlement" in this specification refer to the second server transferring a certain amount of money from the payer's account to the payee's account, and the transferred amount is equal to the amount of the transaction order.

[0097] S350: The second server sends payment information to the client, where the payment information is used to indicate whether the payment is successful.

[0098] Although the second server and the client cannot be connected through the first communication network, they can be connected through the second communication network. Therefore, the second server can send payment information to the client in a timely and direct manner after the payment is completed, so that the user can promptly understand the deduction information of his or her financial account and avoid account insecurity problems caused by payment information delays.

[0099] S280: The client receives payment information sent by the second server, where the payment information is used to indicate whether the payment is successful.

[0100] In some embodiments, Figure 5 As shown, the offline code display payment method also includes:

[0101] S360: The second server sends the payment details in batches to the first server, so that the client can query the first server for payment details information.

[0102] The second server and the first server may interact regularly, and the content of the interaction includes payment details and the client's payment agreement activation application. That is, the first server regularly sends the payment agreement activation application received from the client to the second server for processing, and the second server regularly sends the payment details in batches to the first server for storage.

[0103] S160: The first server receives and stores the batch payment details sent by the second server.

[0104] S290: The client sends a payment details query request to the first server, wherein the payment details query request carries customer information.

[0105] In the case where the client and the financial institution can be connected via the first communication network, the client usually directly sends a payment details query request to the second server of the financial institution. In this solution, if the client and the financial institution cannot be connected via the first communication network, the client can send a payment details query request to the first server and carry customer information in the payment details query request so that the first server can determine which customer's payment details to query.

[0106] Customer information may include customer name, customer account number, customer name, ID number, financial account number, query password, etc.

[0107] In addition to customer information, the payment details query request can also carry the time period to be queried.

[0108] S170: The first server receives a payment details query request from the client.

[0109] S180: The first server searches for payment details corresponding to the customer information from pre-stored batch payment details and feeds back the information to the client.

[0110] S2100: The client receives payment details corresponding to the customer information fed back by the first server.

[0111] The payment details are sent in batches to the first server by setting up a second server of the financial institution. Since the first server and the client can be connected through the first communication network, the client can conveniently query the payment details through the first communication network.

[0112] Since the real-time requirements for payment details are not high, while the real-time requirements for payment requests are high, this solution sets the second server to directly send payment information to the client through the second communication network, so that the user can know the payment results in time, and the payment details are sent to the first server through the first communication network, and the first server feeds back to the client, which can prevent the payment details from being overwhelmed by the payment information used to indicate whether the payment is successful, so that the owner cannot effectively know the payment information, and can also prevent the owner from not being able to obtain the payment details. In other words, this solution seeks a balance between real-time payment processing and effective communication of payment information.

[0113] Based on the above offline code display payment method, this specification provides an offline code display payment method from the perspective of the first server, such as Figure 6 As shown, the method includes the following steps S110 to S150.

[0114] S110: The first server obtains the payment protocol activation application sent by the client, and sends the payment protocol activation application to the second server.

[0115] S120: receiving and storing the customer payment seed and the customer payment key sent by the second server; the customer payment seed and the customer payment key are determined according to the customer information in the payment agreement activation application.

[0116] S130: Receive a payment request sent by the client.

[0117] S140: In response to the payment request, the client payment seed and the client payment key are sent to the client, so that the client can calculate the payment pseudo code using the timestamp.

[0118] S150: receiving the payment pseudo code sent by the client, encrypting the payment pseudo code, and returning the encrypted payment code to the client, so that the client can display the payment code to realize payment.

[0119] In some embodiments, the offline code display payment method further includes S160 to S180.

[0120] S160: The first server receives and stores the batch payment details sent by the second server;

[0121] S170: receiving a payment details query request from a client, wherein the payment details query request carries customer information;

[0122] S180: Find out payment details corresponding to the customer information from the pre-stored batch payment details and feed it back to the client.

[0123] Based on the above offline code display payment method, this specification provides an offline code display payment method from the perspective of the client, such as Figure 7 As shown, the method includes the following steps S210 to S270.

[0124] S210: The client sends a payment protocol activation application to the first server, where the payment protocol activation application is used to prompt the second server to send a customer payment seed and a customer payment key to the first server.

[0125] S220: Send a payment request to the first server, where the payment request is used to prompt the first server to send a customer payment seed and a customer payment key to the client.

[0126] S230: Receive the customer payment seed and customer payment key sent by the first server.

[0127] S240: Calculate a payment pseudo code according to the customer payment seed, the customer payment key, and a timestamp.

[0128] S250: Send the payment pseudo code to the first server for encryption, and obtain the encrypted payment code fed back by the first server.

[0129] S260: Receive the payment code returned by the first server.

[0130] S270: Display the payment code to realize payment.

[0131] In some embodiments, the payment pseudocode is calculated based on the customer payment seed, the customer payment key, and the timestamp, including: generating a dynamic password based on the timestamp and the customer payment seed using the customer payment key and a one-way hash algorithm; and forming a payment pseudocode with the customer payment seed and the dynamic password.

[0132] In some embodiments, the offline code display payment method further includes: S280: receiving payment information sent by the second server, where the payment information is used to indicate whether the payment is successful.

[0133] In some embodiments, the offline code display payment method further includes the following S290 and S2100.

[0134] S290: Sending a payment details query request to the first server, wherein the payment details query request carries customer information;

[0135] S2100: receiving payment details information corresponding to the customer information fed back by the first server, wherein the payment details information is obtained by the first server through querying the payment details fed back in batches by the second server.

[0136] Based on the above offline code display payment method, this specification provides an offline code display payment method from the perspective of the second server, such as Figure 8 As shown, the method includes the following steps S310 to S350.

[0137] S310: The second server receives the payment agreement activation application sent by the first server; the payment agreement activation application carries customer information.

[0138] S320: In response to the payment protocol activation application, the customer payment seed and the customer payment key corresponding to the customer payment information are sent to the first server.

[0139] S330: Obtain a payment settlement request, where the payment settlement request carries payment code information.

[0140] S340: Perform settlement processing according to the payment code and determine whether the payment is successful.

[0141] S350: Send payment information to the client, where the payment information is used to indicate whether the payment is successful.

[0142] In some embodiments, settlement processing is performed according to the payment code, and determining whether the payment is successful includes: parsing the payment code to obtain a customer payment seed and a dynamic password; determining a customer payment key according to the customer payment seed, and generating multiple expected dynamic passwords according to multiple timestamps within an expected time period and the customer payment seed to form an expected dynamic password set; judging whether the dynamic password obtained by parsing exists in the expected dynamic password set; and determining that the payment is successful if the judgment result is yes.

[0143] In some embodiments, the offline code display payment method further includes: S360: sending the payment details in batches to the first server so that the client can query the first server for payment detail information.

[0144] It should be noted that the user-related information and data involved in the embodiments of this specification are all information and data authorized by the user or fully authorized by relevant parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users or relevant parties to choose to authorize or refuse.

[0145] It should also be noted that in the embodiments of this specification, certain software, components, models and other existing solutions in the industry may be mentioned. They should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0146] This specification provides an offline code display payment device, which can be used to implement Figure 6 The offline code display payment method shown in the figure. Fig. 9 As shown, the device includes a first acquiring unit 110 , a first receiving unit 120 , a second receiving unit 130 , a first sending unit 140 and a third receiving unit 150 .

[0147] The first acquisition unit 110 is used for the first server to acquire the payment protocol activation application sent by the client, and send the payment protocol activation application to the second server.

[0148] The first receiving unit 120 is used to receive and store the customer payment seed and the customer payment key sent by the second server; the customer payment seed and the customer payment key are determined according to the customer information in the payment agreement activation application.

[0149] The second receiving unit 130 is used to receive a payment request sent by a client.

[0150] The first sending unit 140 is used to send the customer payment seed and the customer payment key to the client in response to the payment request, so that the client can calculate the payment pseudo code by using the timestamp.

[0151] The third receiving unit 150 is used to receive the payment pseudo code sent by the client, encrypt the payment pseudo code, and return the encrypted payment code to the client, so that the client can display the payment code to realize payment.

[0152] This specification provides an offline code display payment device, which can be used to implement Figure 7 The offline code display payment method shown in the figure. Fig. 9As shown, the device includes a second sending unit 210 , a third sending unit 220 , a fourth receiving unit 230 , a calculating unit 240 , a fourth sending unit 250 , a fifth receiving unit 260 and a display unit 270 .

[0153] The second sending unit 210 is used for the client to send a payment protocol activation application to the first server, and the payment protocol activation application is used to prompt the second server to send a customer payment seed and a customer payment key to the first server.

[0154] The third sending unit 220 is used to send a payment request to the first server, where the payment request is used to prompt the first server to send a customer payment seed and a customer payment key to the client.

[0155] The fourth receiving unit 230 is used to receive the customer payment seed and the customer payment key sent by the first server.

[0156] The calculation unit 240 is used to calculate the payment pseudo code according to the customer payment seed, the customer payment key and the timestamp.

[0157] The fourth sending unit 250 is used to send the payment pseudo code to the first server for encryption, and obtain the encrypted payment code fed back by the first server.

[0158] The fifth receiving unit 260 is used to receive the payment code returned by the first server.

[0159] The display unit 270 is used to display the payment code to realize payment.

[0160] This specification provides an offline code display payment device, which can be used to implement Figure 8 The offline code display payment method shown in the figure. Fig. 9 As shown, the device includes a sixth receiving unit 310 , a fifth sending unit 320 , a second acquiring unit 330 , a processing unit 340 and a sixth sending unit 350 .

[0161] The sixth receiving unit 310 is used for the second server to receive the payment protocol activation application sent by the first server; the payment protocol activation application carries customer information.

[0162] The fifth sending unit 320 is used to send the customer payment seed and the customer payment key corresponding to the customer payment information to the first server in response to the payment protocol activation application.

[0163] The second acquisition unit 330 is used to acquire a payment settlement request, where the payment settlement request carries payment code information.

[0164] The processing unit 340 is used to perform settlement processing according to the payment code and determine whether the payment is successful.

[0165] The sixth sending unit 350 is used to send payment information to the client, where the payment information is used to indicate whether the payment is successful.

[0166] The description and functions of the above-mentioned devices can be understood by referring to the content of the offline code display payment method section, which will not be repeated here.

[0167] The embodiment of the present invention further provides an electronic device, such as Fig.10 As shown, the electronic device may include a processor 1001 and a memory 1002, wherein the processor 1001 and the memory 1002 may be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.

[0168] The processor 1001 may be a central processing unit (CPU). The processor 1001 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0169] The memory 1002 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the offline code display payment method in the embodiment of the present invention (for example, Fig. 9 The first acquisition unit 110, the first receiving unit 120, the second receiving unit 130, the first sending unit 140 and the third receiving unit 150 shown, or Fig. 9 The second sending unit 210, the third sending unit 220, the fourth receiving unit 230, the calculating unit 240, the fourth sending unit 250, the fifth receiving unit 260 and the display unit 270 shown, or Fig. 9 The processor 1001 executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory 1002, that is, the offline code display payment method in the above method embodiment is implemented.

[0170] The memory 1002 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the processor 1001, etc. In addition, the memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 1002 may optionally include a memory remotely arranged relative to the processor 1001, and these remote memories may be connected to the processor 1001 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0171] The one or more modules are stored in the memory 1002, and when executed by the processor 1001, the following is performed: Figure 1 The offline code display payment method in the illustrated embodiment.

[0172] The specific details of the above electronic device can be understood by referring to the corresponding descriptions and effects in the method embodiment, and will not be repeated here.

[0173] This specification also provides a computer storage medium, which stores computer program instructions. When the computer program instructions are executed by a processor, the steps of the above-mentioned offline code display payment method are implemented.

[0174] This specification also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned offline code display payment method are implemented.

[0175] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0176] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0177] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions.

[0178] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0179] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute certain parts of the methods of each implementation method of the present application.

[0180] The present application can be used in many general or special computer system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.

[0181] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0182] Although the present application has been described through embodiments, those skilled in the art will appreciate that there are many modifications and variations to the present application without departing from the spirit of the present application, and it is intended that the appended claims include these modifications and variations without departing from the spirit of the present application.

Claims

1. An offline code display payment method, characterized in that: include: The first server obtains the payment agreement activation application sent by the client, and sends the payment agreement activation application to the second server; Receiving and storing a customer payment seed and a customer payment key sent by the second server; the customer payment seed and the customer payment key are determined according to the customer information in the payment agreement activation application; Receive payment request sent by the client; In response to the payment request, sending a customer payment seed and a customer payment key to the client, so that the client can calculate a payment pseudo code using a timestamp; The payment pseudo code sent by the client is received, the payment pseudo code is encrypted, and the encrypted payment code is returned to the client so that the client can display the payment code to realize payment.

2. The method according to claim 1, characterized in that Also includes: The first server receives and stores the batch payment details sent by the second server; Receive a payment details query request from a client, wherein the payment details query request carries customer information; The payment details corresponding to the customer information are found from the pre-stored batch payment details and fed back to the client.

3. An offline code display payment method, characterized in that: include: The client sends a payment protocol activation application to the first server, wherein the payment protocol activation application is used to prompt the second server to send a customer payment seed and a customer payment key to the first server; Sending a payment request to the first server, wherein the payment request is used to prompt the first server to send a customer payment seed and a customer payment key to the client; Receiving a customer payment seed and a customer payment key sent by the first server; Calculate a payment pseudo code according to the customer payment seed, the customer payment key, and a timestamp; Sending the payment pseudo code to the first server for encryption, and obtaining an encrypted payment code fed back by the first server; Receiving the payment code returned by the first server; The payment code is displayed to realize payment.

4. The method according to claim 3, characterized in that Calculating a payment pseudo code according to the customer payment seed, the customer payment key, and the timestamp includes: Generate a dynamic password based on the timestamp and the customer payment seed using the customer payment key and a one-way hash algorithm; The customer payment seed and the dynamic password are formed into a payment pseudo code.

5. The method according to claim 3, characterized in that: Also includes: The payment information sent by the second server is received, where the payment information is used to indicate whether the payment is successful.

6. The method according to claim 3, characterized in that: Also includes: Sending a payment details query request to the first server, wherein the payment details query request carries customer information; Receive payment details information corresponding to the customer information fed back by the first server, where the payment details are obtained by the first server through querying the payment details fed back in batches by the second server.

7. An offline code display payment method, characterized in that: include: The second server receives the payment agreement activation application sent by the first server; The payment agreement activation application contains customer information; In response to the payment agreement activation application, sending a customer payment seed and a customer payment key corresponding to the customer payment information to the first server; Obtaining a payment settlement request, wherein the payment settlement request carries payment code information; Perform settlement processing according to the payment code and determine whether the payment is successful; The payment information is sent to the client, where the payment information is used to indicate whether the payment is successful.

8. The method according to claim 7, characterized in that Perform settlement processing according to the payment code and determine whether the payment is successful, including: Parse the payment code to obtain the customer's payment seed and dynamic password; Determine the customer payment key according to the customer payment seed, and generate a plurality of expected dynamic passwords according to a plurality of timestamps in an expected time period and the customer payment seed, respectively, to form an expected dynamic password set; Determine whether the dynamic password obtained by parsing exists in the expected dynamic password set; If the judgment result is yes, it is determined that the payment is successful.

9. The method according to claim 7, characterized in that: Also includes: The payment details are sent in batches to the first server so that the client can query the payment details from the first server.

10. An offline code display payment device, characterized in that: include: A first acquisition unit is used for the first server to acquire the payment protocol activation application sent by the client, and send the payment protocol activation application to the second server; A first receiving unit is used to receive and store a customer payment seed and a customer payment key sent by the second server; the customer payment seed and the customer payment key are determined according to the customer information in the payment agreement activation application; A second receiving unit, used to receive a payment request sent by a client; A first sending unit, configured to send a client payment seed and a client payment key to the client in response to the payment request, so that the client can calculate a payment pseudo code using a timestamp; The third receiving unit is used to receive the payment pseudo code sent by the client, encrypt the payment pseudo code, and return the encrypted payment code to the client, so that the client can display the payment code to realize payment.

11. An offline code display payment device, characterized in that: include: A second sending unit, configured for the client to send a payment protocol activation application to the first server, wherein the payment protocol activation application is used to prompt the second server to send a customer payment seed and a customer payment key to the first server; A third sending unit, configured to send a payment request to the first server, wherein the payment request is used to prompt the first server to send a customer payment seed and a customer payment key to the client; A fourth receiving unit, configured to receive a customer payment seed and a customer payment key sent by the first server; A calculation unit, used for calculating a payment pseudo code according to the customer payment seed, the customer payment key and a timestamp; A fourth sending unit, configured to send the payment pseudo code to the first server for encryption, and obtain an encrypted payment code fed back by the first server; a fifth receiving unit, configured to receive the payment code returned by the first server; The display unit is used to display the payment code to realize payment.

12. An offline code display payment device, characterized in that: include: A sixth receiving unit, configured for the second server to receive the payment agreement activation application sent by the first server; The payment agreement activation application contains customer information; A fifth sending unit, configured to send a customer payment seed and a customer payment key corresponding to the customer payment information to the first server in response to the payment protocol activation application; A second obtaining unit is used to obtain a payment settlement request, where the payment settlement request carries payment code information; A processing unit, used to perform settlement processing according to the payment code and determine whether the payment is successful; The sixth sending unit is used to send payment information to the client, where the payment information is used to indicate whether the payment is successful.

13. An electronic device, characterized in that: include: A memory and a processor, wherein the processor and the memory are communicatively connected to each other, the memory stores computer instructions, and the processor implements the offline code display payment method according to any one of claims 1 to 9 by executing the computer instructions.

14. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the offline code display payment method according to any one of claims 1 to 9 is implemented.

15. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the offline code display payment method according to any one of claims 1 to 9.