Trade testing methods, devices, storage media and electronic equipment

By receiving and processing payment and logistics information from cross-border e-commerce trade, comparing data sets from foreign exchange payment institutions and logistics platforms, and combining this with a data encryption server, the problem of data leakage in the authenticity detection of cross-border e-commerce trade has been solved, achieving safe and efficient trade authenticity detection.

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

Patent Information

Application Number
CN202310458028.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2026-11-17
Estimated Expiration
2043-04-25

AI Technical Summary

Technical Problem

There is a risk of data leakage during the authenticity verification process of cross-border e-commerce trade, and existing technologies have not been able to effectively address this issue.

Method used

By receiving payment requests from target trading platforms, extracting payment and logistics information, processing it according to preset rules, generating a data set, comparing it with the data sets of foreign exchange payment institutions and logistics platforms to determine the authenticity of the trade, and introducing a data encryption server for data protection to prevent data leakage.

Benefits of technology

This enables the accuracy of trade authenticity verification without sharing original data, minimizing the risk of data leakage and ensuring the security of cross-border e-commerce trade.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116703576B_ABST
    Figure CN116703576B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, storage medium, and electronic device for detecting trade transactions. It relates to the fields of fintech and other related technical fields. The method includes: receiving a payment request for a target trade initiated by a target trading platform; extracting first payment information and first logistics information from the payment request; processing the first payment information according to a first preset rule to obtain a first data set; processing the first logistics information according to a second preset rule to obtain a second data set; obtaining a third data set and a fourth data set; determining whether the third data set contains the first data set and whether the fourth data set contains the second data set; and determining that the target trade has passed the authenticity detection if the third data set contains the first data set and the fourth data set contains the second data set. This application solves the problem of data leakage risk in authenticity detection in related technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of financial technology and other related technologies, and more specifically, to a method, apparatus, storage medium and electronic device for detecting trade. Background Technology

[0002] Cross-border e-commerce, a form of trade conducted through e-commerce platforms, is gradually replacing traditional trade methods and becoming a new engine for socio-economic growth. In related technologies, commercial banks need to conduct trade authenticity checks on export proceeds for cross-border e-commerce companies, ensuring that the funds received by the e-commerce platform originate from genuine export trade. However, the process of verifying trade authenticity involves matching order, payment, and logistics information, requiring data sharing among e-commerce websites, payment institutions, and logistics companies, which poses a risk of privacy breaches.

[0003] There is currently no effective solution to the data leakage risk associated with authenticity detection in related technologies. Summary of the Invention

[0004] The main objective of this application is to provide a method, apparatus, storage medium, and electronic device for detecting trade, in order to solve the problem of data leakage risk in authenticity detection in related technologies.

[0005] To achieve the above objectives, according to one aspect of this application, a method for detecting trade is provided. The method includes: receiving a collection request for a target trade initiated by a target trading platform; extracting first payment information and first logistics information from the collection request, wherein the first payment information is payment information when the target trading platform executes the target trade, and the first logistics information is logistics information when the target trading platform executes the target trade; processing the first payment information according to a first preset rule to obtain a first data set; processing the first logistics information according to a second preset rule to obtain a second data set; obtaining a third data set from a foreign exchange payment institution and a fourth data set from a logistics platform, wherein the third data set is obtained by the foreign exchange payment institution processing the second payment information according to the first preset rule, and the fourth data set is obtained by the logistics platform processing the second logistics information according to the second preset rule; the second payment information is payment information from multiple trading platforms stored by the foreign exchange payment institution, and the second logistics information is logistics information from multiple trading platforms stored by the logistics platform; determining whether the third data set contains the first data set, and determining whether the fourth data set contains the second data set; and determining that the target trade passes the authenticity detection if the third data set contains the first data set and the fourth data set contains the second data set.

[0006] Optionally, after determining whether the third data set contains the first data set and whether the fourth data set contains the second data set, the method further includes: if the third data set does not contain the first data set and / or the fourth data set does not contain the second data set, determining that the target trade has failed the authenticity check; issuing a prompt message indicating that the target trade processing has failed; re-performing the authenticity check on the target trade based on the prompt message; if the target trade passes the authenticity check, receiving an authenticity check modification instruction; and modifying the target trade from failing the authenticity check to passing the authenticity check based on the authenticity check modification instruction.

[0007] Optionally, processing the first payment information according to the first preset rule to obtain the first data set includes: extracting the order number and payment order number of each payment detail from the first payment information; combining the order number and payment order number of each payment detail according to the first combination rule to obtain a set of first target strings; performing hash operations on the set of first target strings to obtain a set of first hash values; and encrypting the set of first hash values ​​using the public key in the target key pair to obtain the first data set.

[0008] Optionally, processing the first logistics information according to the second preset rule to obtain the second data set includes: extracting the order number and logistics tracking number of each logistics detail from the first logistics information; combining the order number and logistics tracking number of each logistics detail according to the second combination rule to obtain a set of second target strings; performing hash operations on the set of second target strings to obtain a set of second hash values; and encrypting the set of second hash values ​​using the public key in the target key pair to obtain the second data set.

[0009] Optionally, obtaining target payment information from a foreign exchange payment institution based on the transaction cycle and the platform information of the target trading platform includes: determining the transaction cycle of the target trade, sending the transaction cycle and the platform information of the target trading platform to the foreign exchange payment institution; controlling the foreign exchange payment institution to determine the first payment information from the payment information set based on the transaction cycle and the platform information; and sending the first payment information to the target trading platform.

[0010] Optionally, before receiving a payment request for the target trade initiated by the target trading platform, the method further includes: determining the transaction cycle of the target trade, sending the transaction cycle and the platform information of the target trading platform to the logistics platform; controlling the logistics platform to determine first logistics information from the logistics information set based on the transaction cycle and the platform information; and sending the first logistics information to the target trading platform.

[0011] Optionally, before determining whether the third data set contains the first data set and whether the fourth data set contains the second data set, the method further includes: verifying the digital signature of the third data set and the fourth data set using the public key in the target key pair, wherein the digital signature is obtained by signing the third data set and the fourth data set with the private key in the target key pair; if the digital signature verification is successful, performing the steps of determining whether the third data set contains the first data set and whether the fourth data set contains the second data set.

[0012] To achieve the above objectives, according to another aspect of this application, a transaction detection device is provided. The device includes: a receiving unit, configured to receive a collection request for a target trade initiated by a target trading platform, and extract first payment information and first logistics information from the collection request, wherein the first payment information is payment information when the target trading platform executes the target trade, and the first logistics information is logistics information when the target trading platform executes the target trade; an extraction unit, configured to process the first payment information according to a first preset rule to obtain a first data set; a first acquisition unit, configured to process the first logistics information according to a second preset rule to obtain a second data set; and a second acquisition unit, configured to acquire a third data set from a foreign exchange payment institution and a fourth data set from a logistics platform. The third data set is obtained by a foreign exchange payment institution processing the second payment information according to a first preset rule, and the fourth data set is obtained by a logistics platform processing the second logistics information according to a second preset rule. The second payment information is payment information of multiple trading platforms stored by the foreign exchange payment institution, and the second logistics information is logistics information of multiple trading platforms stored by the logistics platform. The judgment unit is used to determine whether the third data set contains the first data set and whether the fourth data set contains the second data set. The first determination unit is used to determine that the target trade passes the authenticity check when the third data set contains the first data set and the fourth data set contains the second data set.

[0013] This application employs the following steps: receiving a collection request for a target trade initiated by a target trading platform; extracting first payment information and first logistics information from the collection request, wherein the first payment information is the payment information when the target trading platform executes the target trade, and the first logistics information is the logistics information when the target trading platform executes the target trade; processing the first payment information according to a first preset rule to obtain a first data set; processing the first logistics information according to a second preset rule to obtain a second data set; obtaining a third data set from a foreign exchange payment institution and a fourth data set from a logistics platform, wherein the third data set is obtained by the foreign exchange payment institution processing the second payment information according to the first preset rule, and the fourth data set is obtained by the logistics platform processing the second logistics information according to the second preset rule; the second payment information is payment information from multiple trading platforms stored by the foreign exchange payment institution, and the second logistics information is logistics information from multiple trading platforms stored by the logistics platform; determining whether the third data set contains the first data set, and determining whether the fourth data set contains the second data set; if the third data set contains the first data set and the fourth data set contains the second data set, determining that the target trade has passed the authenticity check, thus solving the problem of data leakage risk in authenticity checks in related technologies. By processing the target payment information in the trade detection system and foreign exchange payment institutions according to the agreed first preset rules, a first data set and a third data set are obtained. By processing the target logistics information in the trade detection system and logistics platform according to the agreed second preset rules, a second data set and a fourth data set are obtained. Whether the target trade passes the authenticity detection is determined by whether the third data set contains the first data set and whether the fourth data set contains the second data set, thereby achieving the effect of avoiding data leakage during authenticity detection. Attached Figure Description

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

[0015] Figure 1 This is a flowchart of a trade detection method provided according to an embodiment of this application;

[0016] Figure 2 This is a structural diagram of a trade detection system provided according to an embodiment of this application;

[0017] Figure 3 This is a schematic diagram of a transaction detection device provided according to an embodiment of this application;

[0018] Figure 4 This is a schematic diagram of an electronic device provided according to an embodiment of this application. Detailed Implementation

[0019] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

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

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

[0022] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0023] The present invention will now be described in conjunction with preferred implementation steps. Figure 1 This is a flowchart of a trade detection method provided according to an embodiment of this application. The method is applied in a trade detection system, which includes a business operation terminal, a foreign exchange settlement server, a trade authenticity verification server, an e-commerce platform server, a payment institution server, a logistics company server, and a data encryption server. Figure 1 As shown, the method includes the following steps:

[0024] Step S101: Receive a collection request for the target trade initiated by the target trading platform, and extract the first payment information and the first logistics information from the collection request. The first payment information is the payment information when the target trading platform executes the target trade, and the first logistics information is the logistics information when the target trading platform executes the target trade.

[0025] Specifically, Figure 2 This is a structural diagram of a trade detection system provided according to an embodiment of this application, such as... Figure 2 As shown, the trade detection system includes a business operation terminal 201, a foreign exchange receipt processing server 202, a trade authenticity check server 203, an e-commerce platform server 204, a payment institution server 205, a logistics company server 206, and a data encryption server 207. The target transaction platform can be the e-commerce platform server 204, and the target trade can be a cross-border trade requiring foreign exchange receipt processed by the e-commerce platform server 204. When the target trade is processed for foreign exchange receipt by a commercial bank, the e-commerce platform server 204 needs to perform authenticity checks on the target trade. The authenticity check process first involves receiving a foreign exchange receipt request initiated by the e-commerce platform server 204 to the foreign exchange receipt processing server 202, and extracting the first payment information and the first logistics information from the request.

[0026] It should be noted that the target trading platform can also initiate a collection request through a third party, such as a specialized foreign trade comprehensive service company, which will forward the collection request to the collection business acceptance server 202.

[0027] Step S102: Process the first payment information according to the first preset rule to obtain the first data set.

[0028] Specifically, the first preset rule can be the rule agreed upon by the trade detection system and the foreign exchange payment institution for processing payment information. The trade authenticity check server 203 processes the first payment information based on the first preset rule to obtain the first data set.

[0029] Step S103: Process the first logistics information according to the second preset rule to obtain the second data set.

[0030] Specifically, the second preset rule can be the rule agreed upon by the trade detection system and the logistics platform for processing the first logistics information. The trade authenticity check server 203 processes the first logistics information based on the second preset rule to obtain the second data set.

[0031] Step S104: Obtain a third data set from the foreign exchange payment institution and a fourth data set from the logistics platform. The third data set is obtained by the foreign exchange payment institution through processing the second payment information according to the first preset rule, and the fourth data set is obtained by the logistics platform through processing the second logistics information according to the second preset rule. The second payment information is the payment information of multiple trading platforms stored by the foreign exchange payment institution, and the second logistics information is the logistics information of multiple trading platforms stored by the logistics platform.

[0032] Specifically, the payment institution server 205 can be a foreign exchange payment institution, which is responsible for processing payments in online trades. The payment institution server 205 extracts the order number and payment slip number of each payment detail from the second payment information in the database. It combines the order number and payment slip number of each payment detail according to a first combination rule to obtain a set of third target strings. It then performs hash operations on each of these third target strings to obtain a set of third hash values. Finally, it sends these third hash values ​​to the data encryption server 207, where they are encrypted using the public key in the target key pair to obtain a third data set. The trade authenticity verification server 203 obtains the third data set from the payment institution server 205.

[0033] The logistics platform can be a logistics enterprise server 206. The logistics enterprise server 206 extracts the order number and tracking number of each logistics detail from the first logistics information. It combines the order number and tracking number of each logistics detail according to a second combination rule to obtain a fourth target string. It then performs hash operations on each of the fourth target strings to obtain a fourth hash value. This fourth hash value is sent to the data encryption server 207, where it is encrypted using the public key in the target key pair to obtain a fourth data set. The trade authenticity verification server 203 obtains the fourth data set from the logistics enterprise server 206.

[0034] It should be noted that the data encryption server 207 is a public platform, such as one built by a government or non-profit organization, specifically used to receive hash value sets generated by various parties, including e-commerce platforms, foreign exchange payment institutions, and logistics platforms. It then uses an asymmetric algorithm (such as RSA) to encrypt the hash values ​​in the set (public-key encryption) and sends the encrypted data set back to the requesting party. The specific data format of the reply can be {"hash value 1":"ciphertext 1", "hash value 2":"ciphertext 2",...}, so that the requesting party can obtain the relationship between the hash value and the ciphertext. After ciphertext matching is completed, the requesting party can obtain the hash value corresponding to the successfully matched ciphertext. Since the data encryption server 207 receives a set of hash values ​​generated by various parties and does not store plaintext data itself, it does not increase the risk of data leakage.

[0035] Step S105: Determine whether the third data set contains the first data set, and determine whether the fourth data set contains the second data set.

[0036] Specifically, since the trade authenticity verification server 203 and the payment institution server 205 process target payment information according to the same first preset rule, it is only necessary to determine whether the third data set contains the first data set to determine whether the target payment information of the e-commerce platform server 204 exists in the payment institution server 205. Similarly, since the trade authenticity verification server 203 and the logistics enterprise server 206 process target logistics information according to the same second preset rule, it is only necessary to determine whether the fourth data set contains the second data set to determine whether the target logistics information of the e-commerce platform server 204 exists in the logistics enterprise server 206.

[0037] Step S106: If the third data set contains the first data set and the fourth data set contains the second data set, determine that the target trade has passed the authenticity check.

[0038] Specifically, if the third data set contains the first data set, and the fourth data set contains the second data set, it indicates that the payment institution server 205 contains the target payment information of the e-commerce platform server 204, and the logistics enterprise server 206 contains the target logistics information of the e-commerce platform server 204. Therefore, it can be determined that the target trade has passed the authenticity check. After the target trade passes the authenticity check, it undergoes subsequent processing through the foreign exchange settlement server 202, such as fund transfer and foreign exchange settlement.

[0039] The trade detection method provided in this application embodiment receives a collection request for a target trade initiated by a target trading platform, extracts first payment information and first logistics information from the collection request, wherein the first payment information is the payment information when the target trading platform executes the target trade, and the first logistics information is the logistics information when the target trading platform executes the target trade; processes the first payment information according to a first preset rule to obtain a first data set; processes the first logistics information according to a second preset rule to obtain a second data set; obtains a third data set from a foreign exchange payment institution and a fourth data set from a logistics platform, wherein the third data set is obtained by the foreign exchange payment institution by processing the second payment information according to the first preset rule, and the fourth data set is obtained by the logistics platform by processing the second logistics information according to the second preset rule; the second payment information is payment information of multiple trading platforms stored by the foreign exchange payment institution, and the second logistics information is logistics information of multiple trading platforms stored by the logistics platform; determines whether the third data set contains the first data set, and determines whether the fourth data set contains the second data set; if the third data set contains the first data set and the fourth data set contains the second data set, the target trade is determined to have passed the authenticity detection, thus solving the problem of data leakage risk in authenticity detection in related technologies. By processing the target payment information in the trade detection system and foreign exchange payment institutions according to the agreed first preset rules, a first data set and a third data set are obtained. By processing the target logistics information in the trade detection system and logistics platform according to the agreed second preset rules, a second data set and a fourth data set are obtained. Whether the target trade passes the authenticity detection is determined by whether the third data set contains the first data set and whether the fourth data set contains the second data set, thereby achieving the effect of avoiding data leakage during authenticity detection.

[0040] Due to missing information or other reasons, the authenticity check result may be unsuccessful. The unsuccessful result can be modified using the result of a re-check. Optionally, in the trade detection method provided in this application embodiment, after determining whether the third data set contains the first data set and whether the fourth data set contains the second data set, the method further includes: if the third data set does not contain the first data set, and / or the fourth data set does not contain the second data set, determining that the target trade has failed the authenticity check; issuing a prompt message indicating that the target trade processing has failed; re-checking the target trade based on the prompt message; if the target trade passes the authenticity check, receiving an authenticity check modification instruction; and modifying the target trade from failing the authenticity check to passing the authenticity check based on the authenticity check modification instruction.

[0041] Specifically, if the third data set does not contain the first data set, or the fourth data set does not contain the second data set, it indicates that the first payment information of the e-commerce platform server 204 is not present in the payment institution server 205, and the first logistics information of the e-commerce platform server 204 is not present in the logistics enterprise server 206, meaning the target trade has failed the authenticity check. The trade authenticity check server 203 issues a notification message indicating that the target trade processing has failed. After receiving the notification message, banking personnel check the progress and results of the trade authenticity check for the target trade through the business operation terminal 201; they manually review the documents and re-perform the authenticity check for the target trade. If the re-test passes the authenticity check, the result of the target trade failing the authenticity check is manually intervened, that is, the test result is manually set to pass. By performing a second manual authenticity check on the target trade, the authenticity check failure due to system malfunctions or other reasons is avoided.

[0042] To prevent data leakage, the target payment information is processed according to a first preset rule before the data is exchanged. Optionally, in the trade detection method provided in this application embodiment, processing the first payment information according to the first preset rule to obtain a first data set includes: extracting the order number and payment order number of each payment detail from the first payment information; combining the order number and payment order number of each payment detail according to a first combination rule to obtain a set of first target strings; performing hash operations on the set of first target strings to obtain a set of first hash values; and encrypting the set of first hash values ​​using the public key in the target key pair to obtain the first data set.

[0043] Specifically, the trade authenticity verification server 203 extracts information such as order number and payment order number from each payment detail in the first payment information. It combines this information into a first target string according to a first combination rule, then performs hash operations on each of the first target strings to obtain a first hash value. This first hash value is then sent to the data encryption server 207, where it is encrypted using the public key in the target key pair to obtain a first data set. By processing the target payment information in the trade authenticity verification server 203 according to the first preset rule, data leakage is avoided when the trade authenticity verification server 203 interacts with the payment institution server 205. Based on multi-party privacy intersection, trade authenticity verification is achieved without sharing data among the parties, minimizing the risk of privacy leakage. Simultaneously, a neutral data encryption server 207 is introduced to encrypt the data, preventing one party from using brute-force methods to obtain the other party's original data.

[0044] For example, the first combination rule can use the standard JSON format, generating a string example of {"orderID":"111111","payID":"222222",...}, where orderID is the order number and payID is the payment order number. The hash operation can use the MD5 algorithm to process the string into a 128-bit result.

[0045] To prevent data leakage, the target logistics information is processed according to a second preset rule before the data is exchanged. Optionally, in the trade detection method provided in this application embodiment, processing the first logistics information according to the second preset rule to obtain a second data set includes: extracting the order number and logistics tracking number of each logistics detail from the first logistics information; combining the order number and logistics tracking number of each logistics detail according to a second combination rule to obtain a set of second target strings; performing hash operations on the set of second target strings to obtain a set of second hash values; and encrypting the set of second hash values ​​using the public key in the target key pair to obtain the second data set.

[0046] Specifically, the trade authenticity verification server 203 extracts information such as order number and tracking number from each logistics detail from the second logistics information. It combines this information into a second target string according to a second combination rule, then performs hash operations on each second target string to obtain a second hash value. This second hash value is then sent to the data encryption server 207, where it is encrypted using the public key in the target key pair to obtain the second data set. By processing the target logistics information in the trade authenticity verification server 203 according to the second preset rule, data leakage is avoided when the trade authenticity verification server 203 interacts with the logistics company server 206. Based on multi-party privacy intersection, trade authenticity verification is achieved without data sharing among the parties, minimizing the risk of privacy leakage. Simultaneously, a neutral data encryption server 207 is introduced to encrypt the data, preventing one party from using brute-force methods to obtain the other party's original data.

[0047] For example, the second combination rule can use the standard JSON format, generating a string example of {"orderID":"333333","XID":"444444",...}, where orderID is the order number and XID is the tracking number. The hash operation can use the MD5 algorithm to process the string into a 128-bit result.

[0048] Foreign exchange payment institutions contain payment information from multiple trading platforms. It is necessary to obtain target payment information from the foreign exchange payment institution based on the platform information. Optionally, in the trade detection method provided in this application embodiment, obtaining target payment information from the foreign exchange payment institution based on the transaction cycle and the platform information of the target trading platform includes: determining the transaction cycle of the target trade; sending the transaction cycle and the platform information of the target trading platform to the foreign exchange payment institution; controlling the foreign exchange payment institution to determine first payment information from the payment information set based on the transaction cycle and platform information; and sending the first payment information to the target trading platform.

[0049] Specifically, the payment institution server 205 stores payment information from various trading platforms. Based on the transaction cycle and the platform information of the target trading platform sent by the trade authenticity check server 203, the payment information of all trading platforms within the transaction cycle is first filtered from all the payment information stored in the payment institution server 205. Then, based on the platform information of the target trading platform, the first payment information is determined. The first payment information is then sent to the target trading platform. By determining the first payment information, data is provided for the authenticity check to determine whether the check passes.

[0050] The logistics platform contains physical information of multiple trading platforms. It is necessary to obtain target logistics information from the logistics platform based on the platform information. Optionally, in the trade detection method provided in this application embodiment, before receiving the collection request of the target trade initiated by the target trading platform, the method further includes: determining the transaction cycle of the target trade, sending the transaction cycle and the platform information of the target trading platform to the logistics platform; controlling the logistics platform to determine the first logistics information from the logistics information set based on the transaction cycle and the platform information; and sending the first logistics information to the target trading platform.

[0051] Specifically, the logistics enterprise server 206 stores logistics information from various trading platforms. Based on the transaction cycle and the platform information of the target trading platform sent by the trade authenticity check server 203, it first filters out the logistics information of all trading platforms within the transaction cycle from all the logistics information stored in the logistics enterprise server 206. Then, based on the platform information of the target trading platform, it determines the first logistics information. The first logistics information is then sent to the target trading platform. By determining the first logistics information, data is provided for authenticity detection to determine whether the detection passes.

[0052] The encrypted first, second, third, and fourth data sets need to be verified through digital signatures to determine the trading platform to which the data sets belong. Optionally, in the trade detection method provided in this application embodiment, before determining whether the third data set contains the first data set and whether the fourth data set contains the second data set, the method further includes: verifying the digital signature of the third and fourth data sets using the public key in the target key pair, wherein the digital signature is obtained by signing the third and fourth data sets using the private key in the target key pair; if the digital signature verification is successful, the steps of determining whether the third data set contains the first data set and whether the fourth data set contains the second data set are performed.

[0053] Specifically, for data used by the payment institution server 205, logistics enterprise server 206, and trade authenticity verification server 203 for the same trade authenticity verification, the data encryption server 207 must use the same public key for encryption. To ensure public key consistency, the data encryption server 207 can use its private key to sign the encrypted data. After each party obtains the data, it uses its public key to verify the signature. Only after all signatures are verified successfully will the steps of determining whether the third data set contains the first data set and whether the fourth data set contains the second data set begin. The private key is stored in the data encryption server 207, while the public key is made public to the payment institution server 205, logistics enterprise server 206, and trade authenticity verification server 203. Digital signing of the data ensures the consistency of the public key used when encrypting the data.

[0054] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0055] This application also provides a transaction detection device. It should be noted that the transaction detection device of this application can be used to execute the trade detection method provided in this application. The transaction detection device provided in this application is described below.

[0056] Figure 3 This is a schematic diagram of a transaction detection device provided according to an embodiment of this application. Figure 3 As shown, the device includes:

[0057] The receiving unit 10 is used to receive a collection request for the target trade initiated by the target trading platform, and extract the first payment information and the first logistics information from the collection request. The first payment information is the payment information when the target trading platform executes the target trade, and the first logistics information is the logistics information when the target trading platform executes the target trade.

[0058] The first processing unit 20 is used to process the first payment information according to a first preset rule to obtain a first data set;

[0059] The second processing unit 30 is used to process the first logistics information according to the second preset rule to obtain the second data set;

[0060] The acquisition unit 40 is used to acquire a third data set from a foreign exchange payment institution and a fourth data set from a logistics platform. The third data set is obtained by the foreign exchange payment institution through processing the second payment information according to a first preset rule, and the fourth data set is obtained by the logistics platform through processing the second logistics information according to a second preset rule. The second payment information is payment information of multiple trading platforms stored by the foreign exchange payment institution, and the second logistics information is logistics information of multiple trading platforms stored by the logistics platform.

[0061] The judgment unit 50 is used to determine whether the third data set contains the first data set and whether the fourth data set contains the second data set;

[0062] The first determining unit 60 is used to determine whether a target trade passes the authenticity test when the third data set contains the first data set and the fourth data set contains the second data set.

[0063] The transaction detection device provided in this application embodiment receives a collection request for a target trade initiated by a target trading platform through a receiving unit 10, and extracts first payment information and first logistics information from the collection request. The first payment information is the payment information when the target trading platform executes the target trade, and the first logistics information is the logistics information when the target trading platform executes the target trade. A first processing unit 20 processes the first payment information according to a first preset rule to obtain a first data set. A second processing unit 30 processes the first logistics information according to a second preset rule to obtain a second data set. An acquisition unit 40 acquires a third data set from a foreign exchange payment institution and a fourth data set from a logistics platform. The third data set is obtained by the foreign exchange payment institution processing the second payment information according to the first preset rule, and the fourth data set is obtained by the logistics platform processing the second logistics information according to the second preset rule. The second payment information is payment information from multiple trading platforms stored by the foreign exchange payment institution. The second logistics information is the logistics information of multiple trading platforms stored on the logistics platform; the judgment unit 50 judges whether the third data set contains the first data set, and judges whether the fourth data set contains the second data set; the first determination unit 60 determines that the target trade has passed the authenticity check if the third data set contains the first data set and the fourth data set contains the second data set. This solves the problem of data leakage risk in authenticity check in related technologies. By processing the target payment information in the trade detection system and the foreign exchange payment institution according to the agreed first preset rule, the first data set and the third data set are obtained. By processing the target logistics information in the trade detection system and the logistics platform according to the agreed second preset rule, the second data set and the fourth data set are obtained. Whether the third data set contains the first data set and whether the fourth data set contains the second data set determines whether the target trade has passed the authenticity check, thereby achieving the effect of avoiding data leakage during authenticity check.

[0064] Optionally, in the transaction detection device provided in the embodiments of this application, the device further includes: a second determining unit, configured to determine that the target trade has failed the authenticity detection when the third data set does not contain the first data set and / or the fourth data set does not contain the second data set; an issuing unit, configured to issue a prompt message indicating that the target trade processing has failed; a detection unit, configured to re-perform the authenticity detection of the target trade based on the prompt message, and receive an authenticity detection modification instruction when the target trade passes the authenticity detection; and a modification unit, configured to modify the target trade from failing the authenticity detection to passing the authenticity detection based on the authenticity detection modification instruction.

[0065] Optionally, in the transaction detection device provided in this application embodiment, the first processing unit 20 includes: a first extraction module, used to extract the order number and payment order number of each payment detail from the first payment information, and combine the order number and payment order number of each payment detail according to a first combination rule to obtain a set of first target strings; a first calculation module, used to perform hash operations on the set of first target strings respectively to obtain a set of first hash values; and a first encryption module, used to encrypt the set of first hash values ​​respectively using the public key in the target key pair to obtain a first data set.

[0066] Optionally, in the transaction detection device provided in this application embodiment, the second processing unit 30 includes: a second extraction module, used to extract the order number and logistics tracking number of each logistics detail from the first logistics information, and combine the order number and logistics tracking number of each logistics detail according to a second combination rule to obtain a set of second target strings; a second calculation module, used to perform hash operations on the set of second target strings respectively to obtain a set of second hash values; and a second encryption module, used to encrypt the set of second hash values ​​respectively using the public key in the target key pair to obtain a second data set.

[0067] Optionally, in the transaction detection device provided in this application embodiment, the first processing unit 20 includes: a first determining module, used to determine the transaction cycle of the target trade and send the transaction cycle and platform information of the target trading platform to the foreign exchange payment institution; a second determining module, used to control the foreign exchange payment institution to determine the first payment information from the payment information set based on the transaction cycle and platform information; and a first sending module, used to send the first payment information to the target trading platform.

[0068] Optionally, in the transaction detection device provided in this application embodiment, the second processing unit 30 includes: a third determining module, used to determine the transaction cycle of the target trade and send the transaction cycle and platform information of the target trading platform to the logistics platform; a fourth determining module, used to control the logistics platform to determine first logistics information from the logistics information set based on the transaction cycle and platform information; and a second sending module, used to send the first logistics information to the target trading platform.

[0069] Optionally, in the transaction detection device provided in the embodiments of this application, the device further includes: a verification unit, configured to verify the digital signature by using the public key in the target key pair to sign the third data set and the fourth data set, wherein the digital signature is obtained by signing the third data set and the third data set with the private key in the target key pair; and an execution unit, configured to, if the digital signature verification is successful, execute the steps of determining whether the third data set contains the first data set and determining whether the fourth data set contains the second data set.

[0070] The transaction detection device includes a processor and a memory. The aforementioned receiving unit 10, first processing unit 20, second processing unit 30, acquisition unit 40, judgment unit 50, and first determination unit 60 are all stored in the memory as program units. The processor executes the aforementioned program units stored in the memory to realize the corresponding functions.

[0071] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and data leakage during authenticity checks can be prevented by adjusting kernel parameters.

[0072] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0073] This invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements a method for detecting trade.

[0074] This invention provides a processor for running a program, wherein the program executes a trade detection method during runtime.

[0075] Figure 4 This is a schematic diagram of an electronic device provided according to an embodiment of this application. For example... Figure 4 As shown, electronic device 401 includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements the following steps: a method for detecting trade. The device described herein can be a server, PC, PAD, mobile phone, etc.

[0076] This application also provides a computer program product that, when executed on a data processing device, is suitable for executing a program with the following method steps for initialization: a trade detection method.

[0077] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0078] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0079] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0080] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0081] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0082] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0083] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0084] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0085] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0086] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for detecting trade, characterized in that, include: Receive a collection request for a target trade initiated by the target trading platform, and extract the first payment information and the first logistics information from the collection request, wherein the first payment information is the payment information when the target trading platform executes the target trade, and the first logistics information is the logistics information when the target trading platform executes the target trade; The first payment information is processed according to the first preset rule to obtain the first data set; The first logistics information is processed according to the second preset rule to obtain the second data set; A third data set is obtained from a foreign exchange payment institution, and a fourth data set is obtained from a logistics platform. The third data set is obtained by the foreign exchange payment institution through processing the second payment information using the first preset rule, and the fourth data set is obtained by the logistics platform through processing the second logistics information using the second preset rule. The second payment information is payment information from multiple trading platforms stored by the foreign exchange payment institution, and the second logistics information is logistics information from multiple trading platforms stored by the logistics platform. Determine whether the third data set contains the first data set, and determine whether the fourth data set contains the second data set; If the third data set contains the first data set and the fourth data set contains the second data set, the target trade is determined to have passed the authenticity check. The first payment information is processed according to a first preset rule to obtain a first data set, including: extracting the order number and payment order number of each payment detail from the first payment information; combining the order number and payment order number of each payment detail according to a first combination rule to obtain a set of first target strings; performing hash operations on the set of first target strings to obtain a set of first hash values; and encrypting the set of first hash values ​​using the public key in the target key pair to obtain the first data set. The first logistics information is processed according to a second preset rule to obtain a second data set, including: extracting the order number and tracking number of each logistics detail from the first logistics information; combining the order number and tracking number of each logistics detail according to a second combination rule to obtain a set of second target strings; performing hash operations on the set of second target strings to obtain a set of second hash values; and encrypting the set of second hash values ​​using the public key in the target key pair to obtain the second data set. The foreign exchange payment institution processes the second payment information according to the first preset rule to obtain the third data set, including: extracting the order number and payment order number of each payment detail from the second payment information; combining the order number and payment order number of each payment detail according to the first combination rule to obtain a set of third target strings; performing hash operations on the set of third target strings to obtain a set of third hash values; and encrypting the set of third hash values ​​using the public key in the target key pair to obtain the third data set. The logistics platform processes the second logistics information according to the second preset rule to obtain the fourth data set, including: the logistics platform extracting the order number and tracking number of each logistics detail from the second logistics information; combining the order number and tracking number of each logistics detail according to the second combination rule to obtain a set of fourth target strings; performing hash operations on the set of fourth target strings to obtain a set of fourth hash values; and encrypting the set of fourth hash values ​​using the public key in the target key pair to obtain the fourth data set.

2. The method according to claim 1, characterized in that, After determining whether the third data set contains the first data set, and whether the fourth data set contains the second data set, the method further includes: If the third data set does not contain the first data set, and / or the fourth data set does not contain the second data set, it is determined that the target trade has failed the authenticity test; Issue a notification message indicating that the target trade processing has failed; Based on the aforementioned prompt information, the authenticity of the target trade is re-checked. If the target trade passes the authenticity check, an authenticity check modification instruction is received. Based on the authenticity detection modification instruction, the target trade that failed the authenticity detection is modified to the target trade that passed the authenticity detection.

3. The method according to claim 1, characterized in that, Before receiving a payment request for a target trade initiated by the target trading platform, the method further includes: The transaction cycle of the target trade is determined, and the transaction cycle and the platform information of the target trading platform are sent to the foreign exchange payment institution. The foreign exchange payment institution is controlled to determine the first payment information from the payment information set based on the transaction cycle and the platform information; The first payment information is sent to the target transaction platform.

4. The method according to claim 1, characterized in that, Before receiving a payment request for a target trade initiated by the target trading platform, the method further includes: The transaction cycle of the target trade is determined, and the transaction cycle and the platform information of the target trading platform are sent to the logistics platform; The logistics platform is controlled to determine the first logistics information from the logistics information set based on the transaction cycle and the platform information; The first logistics information is sent to the target trading platform.

5. The method according to claim 1, characterized in that, Before determining whether the third data set contains the first data set, and before determining whether the fourth data set contains the second data set, the method further includes: The digital signature is verified using the public key in the target key pair to sign the third data set and the fourth data set, wherein the digital signature is obtained by signing the third data set and the fourth data set using the private key in the target key pair; If the digital signature verification is successful, the steps of determining whether the third data set contains the first data set and whether the fourth data set contains the second data set are executed.

6. A transaction detection device, characterized in that, include: The receiving unit is configured to receive a collection request for a target trade initiated by the target trading platform, and extract first payment information and first logistics information from the collection request, wherein the first payment information is the payment information when the target trading platform executes the target trade, and the first logistics information is the logistics information when the target trading platform executes the target trade; The first processing unit is configured to process the first payment information according to a first preset rule to obtain a first data set; The second processing unit is used to process the first logistics information according to the second preset rule to obtain the second data set; The acquisition unit is used to acquire a third data set from a foreign exchange payment institution and a fourth data set from a logistics platform. The third data set is obtained by the foreign exchange payment institution through processing the second payment information using the first preset rule, and the fourth data set is obtained by the logistics platform through processing the second logistics information using the second preset rule. The second payment information is payment information of multiple trading platforms stored by the foreign exchange payment institution, and the second logistics information is logistics information of multiple trading platforms stored by the logistics platform. The judging unit is used to judge whether the third data set contains the first data set, and to judge whether the fourth data set contains the second data set; The first determining unit is configured to determine, when the third data set contains the first data set and the fourth data set contains the second data set, that the target trade passes the authenticity test. The first processing unit includes: a first extraction module, configured to extract the order number and payment order number of each payment detail from the first payment information, and combine the order number and payment order number of each payment detail according to a first combination rule to obtain a set of first target strings; a first calculation module, configured to perform hash operations on the set of first target strings respectively to obtain a set of first hash values; and a first encryption module, configured to encrypt the set of first hash values ​​respectively using the public key in the target key pair to obtain the first data set. The second processing unit includes: a second extraction module, used to extract the order number and tracking number of each logistics detail from the first logistics information, and combine the order number and tracking number of each logistics detail according to a second combination rule to obtain a set of second target strings; a second calculation module, used to perform hash operations on the set of second target strings to obtain a set of second hash values; and a second encryption module, used to encrypt the set of second hash values ​​using the public key in the target key pair to obtain the second data set. The device further includes: the foreign exchange payment institution extracting the order number and payment order number of each payment detail from the second payment information; combining the order number and payment order number of each payment detail according to a first combination rule to obtain a set of third target strings; performing hash operations on the set of third target strings to obtain a set of third hash values; and encrypting the set of third hash values ​​using the public key in the target key pair to obtain the third data set. The device further includes: the logistics platform extracting the order number and tracking number of each logistics detail from the second logistics information; combining the order number and tracking number of each logistics detail according to the second combination rule to obtain a set of fourth target strings; performing hash operations on the set of fourth target strings to obtain a set of fourth hash values; and encrypting the set of fourth hash values ​​using the public key in the target key pair to obtain the fourth data set.

7. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored program, wherein the program, when running, controls the device containing the non-volatile storage medium to perform the trade detection method according to any one of claims 1 to 5.

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

Citation Information

Patent Citations

  • Privacy preserving intelligent contract method in block chain

    CN106559211A

  • A method of bank settlement in cross-border trade

    CN109509084A