Implementation method and device for third-party payment service

By sharing challenge questions and response content in the third-party payment business, and combining public and private key signature verification and challenge/response mechanisms, the problem of reduced security caused by private key leakage is solved, significantly improving the security of the payment business and preventing counterfeit transactions. .

WO2024193119A1PCT designated stage expired Publication Date: 2024-09-26ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/137961
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2023-12-11
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In the third-party payment business, the leakage of the merchant's private key leads to reduced security. Attackers can impersonate legitimate merchants to conduct transactions, causing financial losses and privacy leaks.

Method used

By sharing the challenge question and its response content between the merchant server and the third-party payment server, using the merchant's private key to sign the payment request, and performing double authentication in the payment processing, including public and private key signature verification and challenge/response mechanism verification, ensuring Transaction security.

Benefits of technology

It effectively enhances the security of third-party payment services. Even if an attacker steals a merchant's private key, he or she cannot counterfeit transactions, significantly improving the level of fund and privacy protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023137961_26092024_PF_FP
    Figure CN2023137961_26092024_PF_FP
Patent Text Reader

Abstract

Embodiments of the present description provide an implementation method and device for a third-party payment service. The method implemented in a merchant server comprises: receiving an ordering request sent by a merchant client; obtaining a currently available challenge question; determining response content corresponding to the currently available challenge question, wherein the challenge question and the response content corresponding thereto are shared by a third-party payment server and the merchant server; generating a payment request carrying the response content; and using a private key of a merchant to sign the payment request carrying the response content, and then sending the signed payment request to the third-party payment server. The embodiments of the present description can improve the security of the third-party payment service.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for implementing third-party payment service Technical Field

[0001] One or more embodiments of this specification relate to network information technology, and more particularly, to methods and devices for implementing third-party payment services. Background Art

[0002] Third-party payment refers to an online payment model in which a third-party payment server with certain strength and credibility acts as a third party outside the transaction parties, and facilitates transactions between the two parties by connecting with UnionPay or China National Nets Union.

[0003] In third-party payment services, to improve security, the mutual trust mechanism between third-party payment servers and merchants relies on asymmetric encryption algorithms. Specifically, the data sender, such as the merchant, is required to use its own private key to sign business requests, while the recipient, such as the payment service provider platform, must verify the signature using the other party's public key to authenticate both parties' identities. However, private key leaks are common, significantly reducing the security of third-party payment services. For example, an attacker can steal a merchant's private key and impersonate a legitimate merchant server to send forged business information requests (such as transfer, refund, and bill download requests) to the third-party payment server, ultimately causing financial losses and privacy leaks for merchants and their end users.

[0004] Summary of the Invention

[0005] One or more embodiments of this specification describe a method and apparatus for implementing a third-party payment service, which can improve the security of the third-party payment service.

[0006] According to a first aspect, a method for implementing a third-party payment service is provided, wherein the method is applied to a merchant server and includes: receiving an order request sent by a merchant client; obtaining a currently available challenge question; determining a response content corresponding to the currently available challenge question; wherein the challenge question and its corresponding response content are shared by the third-party payment server and the merchant server; generating a payment request carrying the response content; using the merchant's private key to sign the payment request carrying the response content, and then sending the signed payment request to the third-party payment server.

[0007] The obtaining of the currently available challenge question includes: determining the challenge question carried in the information last sent by the third-party payment server to the merchant server as the currently available challenge question.

[0008] Among them, after sending the signed payment request to the third-party payment server, it further includes: receiving a back-end payment notification carrying a challenge question from the third-party payment server; obtaining the next available challenge question from the back-end payment notification; determining the response content for the next available challenge question; generating a business information request carrying the response content; using the merchant's private key to sign the business information request carrying the response content, and then sending the signed business information request to the third-party payment server.

[0009] The order request is an order request processed by the third-party payment server and corresponding to the N+1th transaction of the merchant server; N is a positive integer; the challenge question and its corresponding response content include: information on the first N transactions processed by the third-party payment server and corresponding to the merchant server.

[0010] The challenge question includes: the external order number of the first transaction; the first transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server; the external order number is the order number generated by the third-party payment server for the first transaction; accordingly, the response content corresponding to the challenge question includes: the internal order number of the first transaction; the internal order number is the order number generated by the merchant server for the first transaction.

[0011] In each transaction processed by the third-party payment server and corresponding to the merchant server, the IP address used by the merchant server is a dynamic IP address; the challenge question includes: a question about the IP address used by the merchant server in a second transaction; wherein the second transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server; accordingly, the response to the challenge question includes: the IP address used by the merchant server in the second transaction.

[0012] According to a second aspect, a method for implementing a third-party payment service is provided, wherein the method is applied to a third-party payment server and includes: receiving a payment request sent by a merchant server; using the merchant's public key to verify the signature of the payment request; after successful signature verification, obtaining response content from the payment request; determining a currently available challenge question corresponding to the response content; wherein the challenge question and its corresponding response content are shared only by the third-party payment server and the merchant server; verifying the response content using the determined challenge question; and if the response content verification is successful, performing payment processing.

[0013] The determining of the currently available challenge question corresponding to the response content includes: determining the challenge question carried in the last message sent by the third-party payment server to the merchant server as the currently available challenge question corresponding to the response content.

[0014] Among them, the payment processing includes: the third-party payment server sends a back-end payment notification carrying a challenge question to the merchant server; after the payment processing is performed, it further includes: receiving a business information request sent by the merchant server; using the merchant's public key to verify the signature of the business information request; after the signature verification is successful, obtaining the response content from the business information request; using the challenge question carried in the back-end payment notification to verify the response content obtained from the business information request, after the response content is successfully verified, providing the business service requested by the business information request to the merchant server.

[0015] The payment request is a payment request processed by the third-party payment server and corresponding to the N+1th transaction of the merchant server; N is a positive integer; the challenge question and its corresponding response content include: information in the first N transactions processed by the third-party payment server and corresponding to the merchant server.

[0016] The challenge question includes: the external order number of the first transaction; the first transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server; the external order number is the order number generated by the third-party payment server for the first transaction; accordingly, the response content corresponding to the challenge question includes: the internal order number of the first transaction; the internal order number is the order number generated by the merchant server for the first transaction.

[0017] In each transaction processed by the third-party payment server and corresponding to the merchant server, the IP address used by the merchant server is a dynamic IP address; the challenge question includes: a question about the IP address used by the merchant server in a second transaction; wherein the second transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server; accordingly, the response to the challenge question includes: the IP address used by the merchant server in the second transaction.

[0018] According to a third aspect, a device for implementing a third-party payment service is provided, wherein the device is applied to a merchant server and includes: an order request receiving module, configured to receive an order request sent by a merchant client; a challenge question determination module, configured to obtain a currently available challenge question; a response content determination module, configured to determine the response content corresponding to the currently available challenge question; wherein the challenge question and its corresponding response content are shared by the third-party payment server and the merchant server; a payment request processing module, configured to generate a payment request carrying the response content; use the merchant's private key to sign the payment request carrying the response content, and then send the signed payment request to the third-party payment server.

[0019] According to a fourth aspect, a device for implementing a third-party payment service is provided, wherein the device is applied to a third-party payment server and includes: a payment request receiving module, configured to receive a payment request sent by a merchant server; a signature verification module, configured to use the merchant's public key to perform signature verification on the payment request; a response content acquisition module, configured to obtain response content from the payment request after successful signature verification; a challenge question acquisition module, configured to determine a currently available challenge question corresponding to the response content; wherein the challenge question and its corresponding response content are only shared by the third-party payment server and the merchant server; a challenge and response verification module, configured to use the determined challenge question to verify the response content; and a payment processing module, configured to perform payment processing if the challenge and response verification module successfully verifies the response content.

[0020] According to a fifth aspect, a computing device is provided, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method described in any embodiment of this specification is implemented.

[0021] The methods and devices for implementing third-party payment services provided in various embodiments of this specification, either individually or in combination, have at least the following beneficial effects: 1. In the embodiments of this specification, the challenge question and its corresponding response content are shared between the merchant server and the third-party payment server. In other words, an attacker cannot obtain the challenge question and / or the response content corresponding to the challenge question. Therefore, the embodiments of this specification utilize the information gap between the attacker and the legitimate merchant to enhance the security of the merchant authentication service provided by the third-party payment server. Even if an attacker steals the merchant's private key, they cannot impersonate the merchant to conduct third-party payment services, thereby greatly improving the security of the third-party payment service.

[0022] 2. In the embodiments of this specification, authentication operations are performed on third-party payment services from two different dimensions: one dimension is signature verification based on public and private keys, and the other dimension is verification based on a challenge / response mechanism. Therefore, the security of third-party payment services is greatly improved.

[0023] 3. In the embodiments of this specification, the challenge question and response content can be generated by using the information in the merchant server's historical transactions processed by the third-party payment server. On the one hand, this can ensure that the third-party payment server and the merchant server can share the challenge question and response content, and on the other hand, it can ensure that it is difficult or even impossible for an attacker to obtain the challenge question and response content.

[0024] 4. In the embodiments of this specification, a pair of challenge questions and response content is generated by using the mapping relationship between the external order number and the internal order number in a transaction, or a pair of challenge questions and response content is generated by using the dynamic IP address used by the merchant server in a transaction. This is more in line with the characteristics of the three-party payment protocol itself and is easier to implement. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0026] FIG1 is a schematic diagram of a system architecture used in an embodiment of this specification.

[0027] FIG2 is a flow chart of a method for implementing a third-party payment service applied to a merchant server in one embodiment of the present specification.

[0028] FIG3 is a flow chart of a method for implementing a third-party payment service applied to a third-party payment server in one embodiment of this specification.

[0029] FIG4 is a flow chart of a method for implementing a third-party payment service in one embodiment of this specification.

[0030] FIG5 is a schematic diagram of the structure of an implementation device for a third-party payment service applied to a merchant server in one embodiment of this specification.

[0031] FIG6 is a schematic structural diagram of an implementation device for a third-party payment service applied to a third-party payment server in one embodiment of this specification. DETAILED DESCRIPTION

[0032] The solution provided in this specification is described below in conjunction with the accompanying drawings.

[0033] First, it should be noted that the terms used in the embodiments of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a," "the," and "the" used in the embodiments of this application and the appended claims are intended to include the plural forms, unless the context clearly indicates otherwise.

[0034] It should be understood that the term "and / or" as used herein is merely a description of the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0035] The word "if," as used herein, may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.

[0036] To facilitate understanding of the methods provided in this specification, we first describe the system architecture involved and applicable to this specification. As shown in Figure 1, this system architecture mainly includes four network nodes: the merchant client (corresponding to the merchant app in Figure 1), the merchant server, the third-party payment platform application (corresponding to the platform app in Figure 1), and the third-party payment server.

[0037] The implementation method, device and system of the third-party payment service proposed in the embodiments of this specification can be applied to various transaction scenarios using a three-party payment agreement. For example, business scenario 1: the merchant is a supermarket. When users shop in the supermarket, they need to use "Alipay" to pay. Therefore, referring to Figure 1, the merchant App can be the supermarket's sales application installed on the sales terminal (i.e., POS machine), the merchant server can be the supermarket's server, the platform App can be the "Alipay" application, and the third-party payment server can be the "Alipay" server. For another example, business scenario 2: the merchant is a merchant registered on an online shopping website. When users purchase goods from the merchant on the shopping website, they need to use "Alipay" to pay. Therefore, referring to Figure 1, the merchant App can be the sales application of the online shopping website, the merchant server can be the server of the online shopping website, the platform App can be the "Alipay" application, and the third-party payment server can be the "Alipay" server.

[0038] It should be understood that the number of merchant apps, merchant servers, platform apps, and third-party payment servers in FIG1 is merely illustrative, and any number may be selected and deployed as needed.

[0039] In the embodiments of this specification, the processing methods in the merchant server and the third-party payment server are mainly modified. Therefore, they are described separately through different embodiments below.

[0040] Figure 2 is a flow chart of a method for implementing a third-party payment service on a merchant server in accordance with one embodiment of this specification. It is understood that this method can also be performed by any device, equipment, platform, or device cluster with computing and processing capabilities. Referring to Figure 2 , this method includes steps 201 through 209.

[0041] Step 201: The merchant server receives an order request from the merchant client.

[0042] Step 203: The merchant server obtains the currently available challenge questions.

[0043] Step 205: The merchant server determines the response content corresponding to the currently available challenge question; wherein the challenge question and its corresponding response content are only shared by the third-party payment server and the merchant server.

[0044] Step 207: The merchant server generates a payment request carrying the response content.

[0045] Step 209: The merchant server signs the payment request carrying the response content using the merchant's private key, and then sends the signed payment request to the third-party payment server.

[0046] Figure 3 is a flow chart of a method for implementing a third-party payment service on a third-party payment server according to one embodiment of this specification. It is understood that this method can also be performed by any device, equipment, platform, or device cluster with computing and processing capabilities. Referring to Figure 3 , this method includes steps 301 to 311.

[0047] Step 301: The third-party payment server receives a payment request from the merchant server.

[0048] Step 303: The third-party payment server uses the merchant's public key to perform signature verification on the payment request.

[0049] Step 305: After the third-party payment server successfully verifies the signature, it obtains the response content from the payment request.

[0050] Step 307: The third-party payment server determines a currently available challenge question corresponding to the response content; wherein the challenge question and its corresponding response content are only shared by the third-party payment server and the merchant server.

[0051] Step 309: The third-party payment server verifies the response content using the determined challenge question.

[0052] Step 311: If the third-party payment server successfully verifies the response content, it will proceed with payment processing.

[0053] According to the method of the embodiment of this specification shown in Figures 2 and 3 above, it can be obtained that in the implementation of the third-party payment business, the current three-party payment protocol process is transformed through the challenge / response method. When the merchant server sends a request to the third-party payment server, the request will carry the response content corresponding to the challenge question previously sent by the third-party payment server, and the challenge question and its corresponding response content are only shared between the merchant server and the third-party payment server. In other words, the attacker cannot obtain the challenge question and / or the response content corresponding to the challenge question. Therefore, the embodiment of this specification utilizes the information difference between the attacker and the normal merchant to enhance the security of the merchant authentication service provided by the third-party payment server. Even if the attacker steals the merchant's private key, he cannot impersonate the merchant to conduct third-party payment business, thereby greatly improving the security of the third-party payment business.

[0054] The methods shown in FIG. 2 and FIG. 3 are described in detail below with reference to specific embodiments.

[0055] First, step 201 is executed: the merchant server receives an order request sent by the merchant client.

[0056] Here, if a purchase instruction for a product is input on the merchant client, the merchant server will receive an order request sent by the merchant client.

[0057] Next, step 203 is executed: the merchant server obtains the currently available challenge questions.

[0058] In one embodiment of this specification, each time a third-party payment server sends a message to a merchant server, it carries a challenge question; and each time a merchant server sends a message to the third-party payment server, it carries a response. In this way, a challenge question and response pair can be exchanged in a single round of communication from the third-party payment server to the merchant server and then back again, thereby implementing verification based on a challenge / response mechanism.

[0059] Each challenge question corresponds to one response content. In each round of interaction between the third-party payment server and the merchant server, preferably, the challenge question and its corresponding response content used in one round of interaction are different from those used in other rounds of interaction. Of course, even if the challenge question and its corresponding response content are the same in each round, the methods of the embodiments of this specification can still be implemented.

[0060] Therefore, in step 203, the merchant server may determine the challenge question carried in the information last sent by the third-party payment server to the merchant server as the currently available challenge question, which for ease of description is recorded as challenge question 1. The information may be a message or data.

[0061] Next, step 205 is executed: the merchant server determines the response content 1 corresponding to the currently available challenge question 1; wherein, the challenge question 1 and its corresponding response content 1 are only shared by the third-party payment server and the merchant server.

[0062] The specific content of the challenge question and the specific content of the response are important security factors. In the embodiments of this specification, the content of each challenge question can be specified by the third-party payment server, which has a certain degree of unpredictability. Generally, although an attacker can steal the merchant's private key, they cannot compromise the merchant server. In other words, the attacker cannot obtain the merchant's context in the three-party payment agreement, such as historical transaction information. Therefore, in one embodiment of this specification, the third-party payment server can trust the merchant server's previous M historical transactions. In these first M transactions, the third-party payment server and the merchant server do not need to verify the content of the challenge question and the response, and there may be no challenge / response requirements in the corresponding requests and responses. However, in the Mth transaction, the response sent by the third-party payment server to the merchant server will include a challenge question, and the merchant server will be required to include the response to the challenge question in the next request. In each transaction starting from the M+1th transaction, the third-party payment server can use relevant information from the merchant server's previous historical transactions as the challenge question. Accordingly, the response to the challenge question will also contain relevant information from the historical transactions. M is a positive integer. The value of M can be set according to business needs, such as security level. The higher the security level, the smaller the M value.

[0063] Assuming that the order request in step 201 is the order request for the N+1th transaction processed by the third-party payment server and corresponding to the merchant server, then challenge question 1 in step 203 and response content 1 in step 205 may include: information from the first N transactions processed by the third-party payment server and corresponding to the merchant server, such as information from the first transaction, etc., where N is a positive integer.

[0064] As described above, the specific content of each pair of challenge questions and responses can be information from historical transactions processed by the third-party payment server and the merchant server. Specific implementations can include the following two methods:

[0065] Method 1: Use the external order number and internal order number from a historical transaction as the challenge question and the corresponding answer content respectively.

[0066] In this method one, the challenge question includes: the external order number of the first transaction; wherein the first transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server; the external order number is the order number generated by the third-party payment server for the first transaction; accordingly, the response content corresponding to the challenge question includes: the internal order number of the first transaction; wherein the internal order number is the order number generated by the merchant server for the first transaction.

[0067] In a three-party payment protocol, for each transaction, the merchant server generates an internal order number, and the third-party payment server generates an external order number. These two order numbers point to the same transaction and have a mapping relationship. While attackers cannot obtain these two order numbers, they can be shared between the merchant server and the third-party payment server, serving as hidden knowledge shared between the third-party payment server and the merchant server. Therefore, based on this characteristic, Method 1 exploits this mapping relationship in historical transactions to generate challenge questions and responses.

[0068] Method 2: Use the dynamic IP address used by the merchant server to obtain the challenge question and the corresponding response content.

[0069] In the second method, considering that the merchant server is usually deployed in the cloud, the IP address used by the merchant server is a dynamic value. Therefore, it can be used as a hidden knowledge shared by the third-party payment server and the merchant server, that is, the challenge question and response content are obtained using the dynamic IP.

[0070] Specifically, in the second method, in each transaction processed by the third-party payment server and corresponding to the merchant server, the IP address used by the merchant server is a dynamic IP address; the challenge question includes: a question about the IP address used by the merchant server in the second transaction; wherein the second transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server;

[0071] Correspondingly, the response content corresponding to the challenge question includes: the IP address used by the merchant server in the second transaction.

[0072] Next, in steps 207 to 209 , the merchant server generates a payment request carrying the response content 1 , signs the payment request carrying the response content 1 using the merchant's private key, and then sends the signed payment request to the third-party payment server.

[0073] Next, execute steps 301 to 311. Referring to the above description of steps 201 to 209, in steps 301 to 311, the challenge question is Challenge Question 1, the response content is Response Content 1, and the specific implementation process of step 307 includes: determining Challenge Question 1 carried in the message last sent by the third-party payment server to the merchant server as the currently available challenge question corresponding to the response content.

[0074] In step 311 , the payment processing performed by the third-party payment server includes: the third-party payment server sending a backend payment notification carrying a challenge question to the merchant server.

[0075] Next, the merchant server receives a backend payment notification from the third-party payment server containing a challenge question. The merchant server then obtains the next available challenge question from the backend payment notification, and determines a response to the next available challenge question. For example, the next available challenge question (referred to as Challenge Question 2 for ease of description) may be the external order number for the second transaction generated by the third-party payment server, and the response to the next available challenge question (referred to as Response Content 2 for ease of description) may be the internal order number for the second transaction generated by the merchant server.

[0076] Next, if the merchant server needs to obtain corresponding business services from the third-party payment server, such as transfer, refund, bill download and other business services, the merchant server performs the following steps: the merchant server generates a business information request carrying response content 2; the merchant server uses the merchant's private key to sign the business information request carrying the response content, and then sends the signed business information request to the third-party payment server.

[0077] Correspondingly, if the third-party payment server receives a business information request, the third-party payment server performs the following steps: the third-party payment server uses the merchant's public key to perform signature verification on the business information request; after the signature verification is successful, the response content 2 is obtained from the business information request; the challenge question 2 carried in the back-end payment notification is used to verify the response content 2 obtained from the business information request, that is, to verify whether the two are order numbers in the same transaction with a mapping relationship. After successful verification, the business service requested by the business information request is provided to the merchant server, such as realizing transfers, refunds, downloading bills and other services to the merchant server.

[0078] In the embodiments of this specification, new interaction processes and challenge / response processing operations are added to the three-party payment protocol, which can be implemented through the back-end SDK (Software Development Kit) of the third-party payment server, so the access modification cost for merchants is relatively low.

[0079] The following is a flowchart of a method for implementing a third-party payment service in an embodiment of this specification by cooperating with various parties in a third-party payment service implementation system shown in Figure 1. Referring to Figures 1 and 4, the method includes steps 401 to 433.

[0080] Step 401: The merchant App sends an order request for a transaction to the merchant server. For example, the order request is the 100th transaction order request of the merchant server.

[0081] Step 403: The merchant server obtains the response content 1 corresponding to the challenge question 1 carried in the response message sent by the third-party payment server last time.

[0082] For example, if the content of challenge question 1 carried in the response message sent last time is: the external order number of the second transaction in history, then in step 403, the response content 1 obtained by the merchant server is: the internal order number of the second transaction in history.

[0083] Step 405: The merchant server generates an internal order number for this transaction and stores it in the database, and carries the obtained response content 1 in the payment request, and signs the payment request using the merchant's private key.

[0084] Step 407: The merchant server sends the signed payment request to the merchant App.

[0085] Step 409: The merchant App sends the received payment request to the platform App.

[0086] Step 411: The platform App sends the received payment request to the third-party payment server.

[0087] Step 413: The third-party payment server verifies the signature of the payment request using the merchant's public key. If the signature verification is successful, the third-party payment server verifies the response content 1 in the payment request using the challenge question 1 sent to the merchant server last time.

[0088] Step 415: After the response content 1 is successfully verified, the third-party payment server sends a front-end payment notification to the platform App.

[0089] Step 417: The third-party payment server carries the next challenge question 2 and the external order number corresponding to this transaction in the backend payment notification, signs the backend payment notification using the third-party payment server's private key, and sends it to the merchant server.

[0090] Step 419: The merchant server uses the public key of the third-party payment server to verify the signature of the backend payment notification. After successful verification, the order status is changed, and the external order number and challenge question 2 are stored.

[0091] Step 421: The platform App returns a front-end payment notification to the merchant App.

[0092] Step 423: The merchant App sends an order status query request to the merchant server.

[0093] Step 425: The merchant server returns the order status information to the merchant App.

[0094] Step 427: When the merchant server needs a business service, the merchant server generates a business information request for the service, carries the response content 2 corresponding to the challenge question 2 sent by the third-party payment server last time in the business information request, and signs the business information request using the merchant's private key.

[0095] Step 429: The merchant server sends the signed business information request to the third-party payment server.

[0096] Step 431: The third-party payment server uses the merchant's corresponding public key to perform signature verification on the received business information request. After successful verification, the third-party payment server uses the challenge question 2 sent last time to verify the response content 2 carried in the business information request.

[0097] Step 433: After the response content 2 is successfully verified, the third-party payment server sends a business response to the merchant server, providing the requested business service to the merchant server through the business response, and the business response carries the challenge question 3 for the next time.

[0098] In one embodiment of the present specification, a device for implementing a third-party payment service is provided, wherein the device is applied to a merchant server, see Figure 5, and the device includes: an order request receiving module 501, configured to receive an order request sent by a merchant client; a challenge question determination module 502, configured to obtain a currently available challenge question; a response content determination module 503, configured to determine the response content corresponding to the currently available challenge question; wherein the challenge question and its corresponding response content are shared by the third-party payment server and the merchant server; a payment request processing module 504, configured to generate a payment request carrying the response content; use the merchant's private key to sign the payment request carrying the response content, and then send the signed payment request to the third-party payment server.

[0099] In one embodiment of the apparatus of this specification shown in FIG5 , the challenge question determining module 502 is configured to determine the challenge question carried in the last message sent by the third-party payment server to the merchant server as the currently available challenge question.

[0100] In one embodiment of the device of the present specification shown in Figure 5, it may further include: a business service request module (not shown in Figure 5); the business service request module is configured to execute: receiving a back-end payment notification carrying the next challenge question from the third-party payment server; obtaining the next available challenge question from the back-end payment notification; determining the response content corresponding to the next available challenge question; generating a business information request carrying the response content; using the merchant's private key to sign the business information request carrying the response content, and then sending the signed business information request to the third-party payment server.

[0101] One embodiment of the present specification proposes an implementation device for a third-party payment service, wherein the device is applied to a third-party payment server, see Figure 6, and the device includes: a payment request receiving module 601, configured to receive a payment request sent by a merchant server; a signature verification module 602, configured to use the merchant's public key to verify the signature of the payment request; a response content acquisition module 603, configured to obtain the response content from the payment request after the signature verification is successful; a challenge question acquisition module 604, configured to determine the currently available challenge question corresponding to the response content; wherein the challenge question and its corresponding response content are only shared by the third-party payment server and the merchant server; a challenge and response verification module 605, configured to verify the response content using the determined challenge question; and a payment processing module 606, configured so that if the challenge and response verification module 605 successfully verifies the response content, the payment processing module 606 performs payment processing.

[0102] In the embodiment of the apparatus of this specification shown in FIG6 , the challenge question obtaining module 604 is configured to determine the challenge question carried in the last message sent by the third-party payment server to the merchant server as the currently available challenge question corresponding to the response content.

[0103] In the embodiment of the device of the present specification shown in Figure 6, it further includes: a service provision module (not shown in Figure 6); the payment processing module 606 is configured to send a back-end payment notification carrying the next challenge question to the merchant server; the service provision module is configured to execute: receiving a business information request sent by the merchant server; using the merchant's public key to verify the signature of the business information request; after the signature verification is successful, obtaining the response content from the business information request; using the challenge question carried in the back-end payment notification to verify the response content obtained from the business information request, after the verification is successful, providing the business service requested by the business information request to the merchant server.

[0104] In one embodiment of the apparatus of the present specification shown in FIG5 and FIG6, the order request is an order request processed by the third-party payment server and corresponding to the N+1th transaction of the merchant server; wherein N is a positive integer; the challenge question and its corresponding response content include: information on the first N transactions processed by the third-party payment server and corresponding to the merchant server.

[0105] In one embodiment of the device of the present specification shown in Figures 5 and 6, the challenge question includes: the external order number of the first transaction; wherein the first transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server; the external order number is the order number generated by the third-party payment server for the first transaction; accordingly, the response content corresponding to the challenge question includes: the internal order number of the first transaction; wherein the internal order number is the order number generated by the merchant server for the first transaction.

[0106] In one embodiment of the device of the present specification shown in Figures 5 and 6, in each transaction processed by the third-party payment server and corresponding to the merchant server, the IP address used by the merchant server is a dynamic IP address; the challenge question includes: a question about the IP address used by the merchant server in a second transaction; wherein the second transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server; accordingly, the response content corresponding to the challenge question includes: the IP address used by the merchant server in the second transaction.

[0107] One embodiment of the present specification provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed in a computer, the computer is caused to execute the method in any one of the embodiments of the present specification.

[0108] An embodiment of the present specification provides a computing device including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method of any embodiment of the present specification is implemented.

[0109] It should be understood that the structures illustrated in the embodiments of this specification do not constitute specific limitations on the devices of the embodiments of this specification. In other embodiments of the specification, the above-mentioned devices may include more or fewer components than shown in the figure, or combine or separate certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0110] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences from other embodiments. In particular, the device embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.

[0111] Those skilled in the art will appreciate that, in one or more of the above examples, the functions described herein may be implemented using hardware, software, widgets, or any combination thereof. When implemented using software, these functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.

[0112] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of this application. It should be understood that the above description is only the specific implementation methods of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of this application should be included in the scope of protection of this application.

Claims

1. Method for implementing third-party payment services, including: The method is applied to a merchant server and includes: receiving an order request sent by a merchant client; Get currently available challenge questions; Determine a response content corresponding to the currently available challenge question; wherein the challenge question and its corresponding response content are shared by the third-party payment server and the merchant server; Generate a payment request carrying the response content; The payment request carrying the response content is signed using the merchant's private key, and then the signed payment request is sent to the third-party payment server.

2. The method according to claim 1, wherein: Get a list of currently available challenge questions, including: The challenge question carried in the information last sent by the third-party payment server to the merchant server is determined as the currently available challenge question.

3. The method according to claim 1, wherein: After sending the signed payment request to the third-party payment server, the method further includes: Receiving a back-end payment notification carrying a challenge question from the third-party payment server; obtaining the next available challenge question from the back-end payment notification; Determine the content of the response to the next available challenge question; Generate a business information request carrying the response content; The business information request carrying the response content is signed using the merchant's private key, and then the signed business information request is sent to the third-party payment server.

4. The method according to any one of claims 1 to 3, wherein: The order request is an order request in the N+1th transaction of the merchant server processed by the third-party payment server; wherein N is a positive integer; The challenge question and its corresponding answer content include: information on the first N transactions processed by the third-party payment server and corresponding to the merchant server.

5. The method according to claim 4, wherein: The challenge question includes: an external order number of a first transaction; wherein the first transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server; the external order number is an order number generated by the third-party payment server for the first transaction; Correspondingly, the answer content corresponding to the challenge question includes: the internal order number of the first transaction; wherein the internal order number is an order number generated by the merchant server for the first transaction.

6. The method according to claim 4, wherein: In each transaction processed by the third-party payment server and corresponding to the merchant server, the IP address used by the merchant server is a dynamic IP address; The challenge question includes: a question about the IP address used by the merchant server in the second transaction; wherein the second transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server; Accordingly, the response content corresponding to the challenge question includes: the IP address used by the merchant server in the second transaction.

7. Method for implementing third-party payment services, including: The method is applied to a third-party payment server, and includes: Receive payment request from merchant server; Use the merchant's public key to verify the signature of the payment request; After the signature verification is successful, the response content is obtained from the payment request; Determine a currently available challenge question corresponding to the response content; wherein the challenge question and its corresponding response content are only shared by the third-party payment server and the merchant server; Verifying the response content using the determined challenge question; If the response content is successfully verified, payment processing will be carried out.

8. The method according to claim 7, wherein: Determine the currently available challenge questions that correspond to the answer content, including: The challenge question carried in the information last sent by the third-party payment server to the merchant server is determined as a currently available challenge question corresponding to the response content.

9. The method according to claim 7, wherein: The payment processing includes: the third-party payment server sending a back-end payment notification carrying a challenge question to the merchant server; After the payment processing is performed, the method further includes: Receive business information requests from merchant servers; Use the merchant's public key to perform signature verification on the business information request; After the signature verification is successful, the response content is obtained from the business information request; The challenge question carried in the back-end payment notification is used to verify the response content obtained from the business information request. After the response content is successfully verified, the business service requested by the business information request is provided to the merchant server.

10. The method according to any one of claims 7 to 9, wherein: The payment request is a payment request in the N+1th transaction of the merchant server processed by the third-party payment server; wherein N is a positive integer; The challenge question and its corresponding answer content include: information on the first N transactions processed by the third-party payment server and corresponding to the merchant server.

11. The method according to claim 10, wherein: The challenge question includes: an external order number of a first transaction; wherein the first transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server; the external order number is an order number generated by the third-party payment server for the first transaction; Correspondingly, the answer content corresponding to the challenge question includes: the internal order number of the first transaction; wherein the internal order number is an order number generated by the merchant server for the first transaction.

12. The method according to claim 10, wherein: In each transaction processed by the third-party payment server and corresponding to the merchant server, the IP address used by the merchant server is a dynamic IP address; The challenge question includes: a question about the IP address used by the merchant server in the second transaction; wherein the second transaction is one of the first N transactions processed by the third-party payment server and corresponding to the merchant server; Accordingly, the answer content corresponding to the challenge question includes: the IP address used by the merchant server in the second transaction.

13. A device for implementing a third-party payment service, wherein: The device is applied to a merchant server and comprises: an order request receiving module configured to receive an order request sent by a merchant client; A challenge problem determination module, configured to obtain currently available challenge problems; A response content determination module, configured to determine the response content corresponding to the currently available challenge question; wherein the challenge question and its corresponding response content are shared by the third-party payment server and the merchant server; The payment request processing module is configured to generate a payment request carrying the response content; use the merchant's private key to sign the payment request carrying the response content, and then send the signed payment request to the third-party payment server.

14. A device for implementing a third-party payment service, wherein: The device is applied to a third-party payment server, including: A payment request receiving module, configured to receive a payment request sent by a merchant server; A signature verification module configured to perform signature verification on a payment request using a merchant's public key; A response content acquisition module, configured to obtain the response content from the payment request after the signature verification is successful; A challenge question acquisition module, configured to determine a currently available challenge question corresponding to the answer content; wherein the challenge question and its corresponding answer content are only shared by the third-party payment server and the merchant server; A challenge and response verification module configured to verify the response content using the determined challenge question; The payment processing module is configured to perform payment processing if the challenge and response verification module successfully verifies the response content.

15. A computing device, comprising a memory and a processor, wherein the memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 12 is implemented.

Citation Information

Patent Citations

  • Transaction method between merchant side and third-party payment platform

    CN113379406A

  • Method and device for realizing third-party payment service

    CN115994760A

  • Methods and systems for leveraging transaction data to dynamically authenticate a user

    US20150161366A1

  • Checkout with mac

    US20210377039A1