Transaction payment processing method and device

By scanning and synchronizing transaction information in the QR code video stream, dynamic two-way verification is achieved, which solves the problem that static QR codes are easily tampered with and enhances the security of electronic payments.

CN119515378APending Publication Date: 2025-02-25INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311033749.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-16
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the prior art, static QR code images are easy to forward and tamper with, resulting in transaction risks during electronic payments and the inability to effectively verify the identity of both the recipient and the payment parties.

Method used

By scanning the QR code video stream displayed by the scanned device, obtaining the scanned device public key, and sending the device synchronization request to the server, realizing clock synchronization of the QR code video frame, adding transaction-related information to the video frame, and performing dynamic two-way verify.

Benefits of technology

Enhanced the security of transaction payment processing, and it is difficult to intercept or tamper with dynamic video streams, ensuring the integrity of transaction information and verification accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119515378A_ABST
    Figure CN119515378A_ABST
Patent Text Reader

Abstract

The invention provides a transaction payment processing method and device, relates to the technical field of data processing, and can be used in the financial field or other technical fields. The method comprises the following steps: scanning a two-dimensional code video stream displayed by scanned equipment to obtain a public key of the scanned equipment; sending a device synchronization request to a server; and if it is determined that the clock synchronization confirmation mark passes verification, determining a first identification result corresponding to each two-dimensional code video frame according to the acquisition time and the timestamp corresponding to each two-dimensional code video frame, and sending each first identification result and corresponding transaction information to the server. The device executes the method. According to the transaction payment processing method provided by the embodiment of the invention, the security of transaction payment processing can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a transaction payment processing method and device. Background Art

[0002] When customers use QR codes and other methods to make electronic payments, it is crucial to verify the identity validity of both the payee and the payee, which directly affects the security of customer information and assets. At present, static QR code images are mainly used for identification and authentication. Static images are easy to forward and maliciously tamper with. Transactions can be submitted without the customer being present in person, which poses potential transaction risks. Summary of the invention

[0003] In view of the problems in the prior art, an embodiment of the present invention provides a transaction payment processing method and device, which can at least partially solve the problems in the prior art.

[0004] In one aspect, the present invention provides a transaction payment processing method, comprising:

[0005] Scan the QR code video stream displayed by the scanned device to obtain the public key of the scanned device;

[0006] Sending a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device synchronizes the clock of each QR code video frame in the QR code video stream, and adds transaction-related information of the scanned device to each QR code video frame;

[0007] Wherein, the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0008] If it is determined that the clock synchronization confirmation mark has passed the verification, the first recognition results corresponding to each QR code video frame are determined according to the acquisition time corresponding to each QR code video frame and the timestamp, and each first recognition result and the corresponding transaction information are sent to the server, so that the server can feedback the transaction payment processing results to the scanned device according to each first recognition result and the corresponding transaction information.

[0009] The determining of the first recognition results corresponding to each of the two-dimensional code video frames according to the acquisition time corresponding to each of the two-dimensional code video frames and the timestamp includes:

[0010] If it is determined that a first time interval between the acquisition time and the timestamp is greater than a first preset time length, determining that the first recognition result is abnormal;

[0011] If it is determined that a first time interval between the acquisition time and the timestamp is less than or equal to a first preset duration, then the first recognition result is determined to be normal.

[0012] Wherein, the transaction-related information of the scanned device also includes a flash feedback information code; accordingly, after the step of determining the first recognition results corresponding to each of the two-dimensional code video frames, the transaction payment processing method also includes:

[0013] Determine a flash light flashing mode according to the flash light feedback information code, control the flash light flashing according to the flash light flashing mode, and record the first moment when the flash light flashing starts, so that the scanned device can display the flash light flashing change information;

[0014] Identify the flash light flickering change information to obtain a second moment of obtaining a flash light flickering change information identification result;

[0015] Determine, according to the second moment and the first moment, second recognition results corresponding to each of the two-dimensional code video frames;

[0016] The first recognition result, the second recognition result and the corresponding transaction information corresponding to each QR code video frame are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to the first recognition result, the second recognition result and the corresponding transaction information corresponding to each QR code video frame.

[0017] The determining, according to the second moment and the first moment, second recognition results respectively corresponding to each two-dimensional code video frame includes:

[0018] If it is determined that a second time interval between the second moment and the first moment is greater than a second preset time length, determining that the second recognition result is abnormal;

[0019] If it is determined that a second time interval between the second moment and the first moment is less than or equal to a second preset duration, the second recognition result is determined to be normal.

[0020] In one aspect, the present invention provides a transaction payment processing method, comprising:

[0021] receiving a device synchronization request forwarded by the server, and performing clock synchronization on each two-dimensional code video frame in the two-dimensional code video stream;

[0022] Adding transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server;

[0023] The transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0024] Receive a feedback transaction payment processing result fed back by the server based on the first identification result and transaction information.

[0025] The scanned device further includes a second display area for displaying changes in flash light, and the transaction-related information of the scanned device further includes a flash feedback information code; accordingly, the transaction payment processing method further includes:

[0026] In response to the main scanning device controlling the flash to flash according to the flash feedback information code, displaying flash flash change information in the second display area so that the main scanning device can identify the second display area, obtain a second recognition result, and send the first recognition result, the second recognition result and the transaction information corresponding to each QR code video frame to the server;

[0027] Receive a feedback transaction payment processing result fed back by the server based on the first identification result, the second identification result and the transaction information.

[0028] In one aspect, the present invention provides a transaction payment processing device, comprising:

[0029] A scanning unit, used to scan a QR code video stream displayed by a scanned device to obtain a public key of the scanned device;

[0030] A sending unit, configured to send a device synchronization request to a server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device performs clock synchronization on each QR code video frame in the QR code video stream, and adds transaction-related information of the scanned device to each QR code video frame;

[0031] Wherein, the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0032] The identification unit is used to determine the first identification results corresponding to each QR code video frame according to the acquisition time and the timestamp corresponding to each QR code video frame if it is determined that the clock synchronization confirmation mark has passed the verification, and send each first identification result and the corresponding transaction information to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first identification result and the corresponding transaction information.

[0033] In one aspect, the present invention provides a transaction payment processing device, comprising:

[0034] A synchronization module, used for receiving a device synchronization request forwarded by the server, and performing clock synchronization on each QR code video frame in the QR code video stream;

[0035] an adding module, configured to add transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server;

[0036] The transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0037] The receiving module is used to receive the feedback transaction payment processing result fed back by the server based on the first identification result and transaction information.

[0038] In another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein:

[0039] The processor and the memory communicate with each other via the bus;

[0040] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the following method:

[0041] Scan the QR code video stream displayed by the scanned device to obtain the public key of the scanned device;

[0042] Sending a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device synchronizes the clock of each QR code video frame in the QR code video stream, and adds transaction-related information of the scanned device to each QR code video frame;

[0043] Wherein, the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0044] If it is determined that the clock synchronization confirmation mark passes the verification, the first recognition results corresponding to each QR code video frame are determined according to the acquisition time corresponding to each QR code video frame and the timestamp, and each first recognition result and corresponding transaction information are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first recognition result and the corresponding transaction information;

[0045] Alternatively, receiving a device synchronization request forwarded by the server, and performing clock synchronization on each two-dimensional code video frame in the two-dimensional code video stream;

[0046] Adding transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server;

[0047] The transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0048] Receive a feedback transaction payment processing result fed back by the server based on the first identification result and transaction information.

[0049] An embodiment of the present invention provides a non-transitory computer-readable storage medium, including:

[0050] The non-transitory computer-readable storage medium stores computer instructions, which cause the computer to execute the following method:

[0051] Scan the QR code video stream displayed by the scanned device to obtain the public key of the scanned device;

[0052] Sending a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device synchronizes the clock of each QR code video frame in the QR code video stream, and adds transaction-related information of the scanned device to each QR code video frame;

[0053] Wherein, the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0054] If it is determined that the clock synchronization confirmation mark passes the verification, the first recognition results corresponding to each QR code video frame are determined according to the acquisition time corresponding to each QR code video frame and the timestamp, and each first recognition result and corresponding transaction information are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first recognition result and the corresponding transaction information;

[0055] Alternatively, receiving a device synchronization request forwarded by the server, and performing clock synchronization on each two-dimensional code video frame in the two-dimensional code video stream;

[0056] Adding transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server;

[0057] The transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0058] Receive a feedback transaction payment processing result fed back by the server based on the first identification result and transaction information.

[0059] The transaction payment processing method and device provided by the embodiment of the present invention scan the two-dimensional code video stream displayed by the scanned device to obtain the public key of the scanned device; send a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device performs clock synchronization on each two-dimensional code video frame in the two-dimensional code video stream, and adds the transaction-related information of the scanned device to each two-dimensional code video frame; wherein the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information; if it is determined that the clock synchronization confirmation mark passes the verification, then according to the acquisition time corresponding to each two-dimensional code video frame and the timestamp, the first recognition result corresponding to each two-dimensional code video frame is determined, and each first recognition result and the corresponding transaction information are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first recognition result and the corresponding transaction information, which can ensure the security of transaction payment processing.

[0060] The transaction payment processing method and device provided by the embodiment of the present invention receive a device synchronization request forwarded by the server, and perform clock synchronization on each QR code video frame in the QR code video stream; add transaction-related information of the scanned device to each QR code video frame so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server; wherein the transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information; receiving feedback transaction payment processing results fed back by the server based on the first recognition result and transaction information can ensure the security of transaction payment processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0062] Figure 1 It is a flowchart of a transaction payment processing method provided by an embodiment of the present invention.

[0063] Figure 2 It is a schematic diagram for explaining a main scanning device and a scanned device provided in an embodiment of the present invention.

[0064] Figure 3 It is a flowchart of a transaction payment processing method provided by another embodiment of the present invention.

[0065] Figure 4 It is a schematic diagram of the identification process flow provided by an embodiment of the present invention.

[0066] Figure 5 It is a schematic diagram of a device synchronization process provided by an embodiment of the present invention.

[0067] Figure 6 It is a structural diagram of a transaction payment processing device provided in one embodiment of the present invention.

[0068] Figure 7 It is a structural diagram of a transaction payment processing device provided in another embodiment of the present invention.

[0069] Figure 8 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0070] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.

[0071] Figure 1 is a flow chart of a transaction payment processing method provided by an embodiment of the present invention, such as Figure 1 As shown, the transaction payment processing method provided by the embodiment of the present invention is executed in the main scanning device, including:

[0072] Step R1: Scan the QR code video stream displayed by the scanned device to obtain the public key of the scanned device.

[0073] Step R2: Sending a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device synchronizes the clock of each QR code video frame in the QR code video stream, and adds the transaction related information of the scanned device to each QR code video frame;

[0074] The transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information.

[0075] Step R3: If it is determined that the clock synchronization confirmation mark has passed the verification, the first recognition results corresponding to each QR code video frame are determined according to the acquisition time corresponding to each QR code video frame and the timestamp, and each first recognition result and the corresponding transaction information are sent to the server, so that the server can feedback the transaction payment processing results to the scanned device according to each first recognition result and the corresponding transaction information.

[0076] In the above step R1, the device scans the QR code video stream displayed by the scanned device to obtain the public key of the scanned device. The device can be a computer device that executes the method, for example, it can include a main scanning device, which can be a mobile phone or tablet computer used by the customer. It should be noted that the acquisition and analysis of data involved in the embodiments of the present invention are authorized by the user.

[0077] The scanned device can be a convenient device used by the bank to serve customer payment, such as a mobile device or a self-service machine, such as Figure 2 As shown, the main scanning device and the scanned device are described. The main scanning device E2 includes a flash light D1 and a camera D2. The flash light D1 is used to flash the flash light, and the camera D2 is used to recognize the QR code video stream.

[0078] The scanned device includes a first display area (corresponding to Figure 2 A2 in the figure shows the second display area (corresponding to Figure 2 in A1).

[0079] The QR code video stream displayed by the scanned device is composed of multiple QR code video frames, which include at least one QR code video frame containing the public key of the scanned device. Since the QR code video stream is continuously refreshed at the frame rate, when a QR code video frame containing the public key of the scanned device is scanned, the public key of the scanned device can be extracted from the QR code video frame.

[0080] In the above step R2, the apparatus sends a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device synchronizes the clock of each QR code video frame in the QR code video stream, and adds the transaction related information of the scanned device to each QR code video frame;

[0081] The transaction-related information of the scanned device includes at least a timestamp, a clock synchronization confirmation mark and transaction information. It is understandable that each scanned device has a corresponding scanned device public key. When the server obtains the scanned device public key, it can uniquely determine the scanned device that interacts with the main scanning device based on the scanned device public key.

[0082] The purpose of clock synchronization is to ensure the accuracy of the generation timestamp of each QR code video frame in each QR code video frame. The clock synchronization confirmation flag can be used to mark whether the clock synchronization of each QR code video frame is completed. When the clock synchronization of all QR code video frames is completed, the clock synchronization confirmation flag can be set to 1; when the clock synchronization of the QR code video frames is not completed, the clock synchronization confirmation flag can be set to 0.

[0083] In order to further ensure the security of transaction information, all transaction information can be split so that each split part corresponds to each QR code video frame respectively and added to the corresponding QR code video frame. Only when all QR code video frames are obtained can the split parts be combined into the entire transaction information.

[0084] The length of the video segment of the QR code video stream can be set independently according to actual conditions.

[0085] In the above step R3, if the device determines that the clock synchronization confirmation flag has passed the verification, the device determines the first recognition result corresponding to each QR code video frame according to the acquisition time and the timestamp corresponding to each QR code video frame, and sends each first recognition result and the corresponding transaction information to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first recognition result and the corresponding transaction information. Referring to the above description, the clock synchronization confirmation flag can be verified by verifying the flag bit value. For example, when the clock synchronization confirmation flag is set to 1, the clock synchronization confirmation flag passes the verification; when the clock synchronization confirmation flag is set to 0, the clock synchronization confirmation flag fails the verification.

[0086] The determining, according to the acquisition time and the timestamp corresponding to each of the two-dimensional code video frames, the first recognition result corresponding to each of the two-dimensional code video frames, comprises:

[0087] If it is determined that the first time interval between the acquisition time and the timestamp is greater than the first preset time length, the first recognition result is determined to be abnormal; the first preset time length can be set independently according to actual conditions. Since, in the method of the embodiment of the present invention, the main scanning device and the scanned device exchange data through a camera and a flash, and the data transmission speed is equivalent to the speed of light, the time interval between the scanning time and the timestamp of each two-dimensional code video frame is usually relatively close to the speed of light. However, when information is stolen through the network, due to network delay time, the time interval between the reception time of the two-dimensional code video frame obtained by the device through the network and the timestamp of the two-dimensional code video frame is too long. Therefore, it can be determined that if the first time interval is greater than the first preset time length, it means that there is a device that obtains the timestamp through the network, which will prompt that the recognition result is abnormal, and further, a first warning message can be sent to the scanned device.

[0088] If it is determined that the first time interval between the acquisition time and the timestamp is less than or equal to the first preset time length, the first recognition result is determined to be normal. Referring to the above description, it can be determined that if the first time interval is less than or equal to the first preset time length, it means that the device that obtains the timestamp by scanning is the main scanning device, and the recognition result will be prompted to be normal.

[0089] The server receives all the first recognition results and transaction information. If the first recognition result of at least one QR code video frame is abnormal, the transaction payment processing result is abnormal, and the payment transaction can be terminated.

[0090] If the first recognition results of all QR code video frames are normal, the transaction payment processing result is normal, and the payment transaction can be completed.

[0091] The transaction-related information of the scanned device also includes a flash feedback information code; the flash feedback information code can be a group of random character strings, and the flash light can flash this group of random character strings through Morse code.

[0092] Accordingly, after the step of determining the first recognition results corresponding to each of the two-dimensional code video frames, the transaction payment processing method further includes:

[0093] The flash flashing mode is determined according to the flash feedback information code, the flash flashing is controlled according to the flash flashing mode, and the first moment when the flash flashing starts is recorded so that the scanned device can display the flash flashing change information; different flash feedback information codes can correspond to different flash flashing modes, and different flash flashing modes can be reflected in flashing brightness and frequency, etc.

[0094] That is, the flash light can be controlled to flash according to different flash brightness and / or different frequencies. Since the flash light flashes are transmitted at the speed of light, the scanned device can instantly display the flash light flash change information through the second display area for displaying the flash light change.

[0095] The flash flickering change information is identified to obtain a second moment of obtaining the flash flickering change information identification result; the flash flickering change information is identified through a camera, and the identification content includes whether the flash flickering change is the same as the flash flickering mode. Usually, the existing method does not have the relevant technology of tampering with the flash flickering mode. If the flash flickering change is different from the flash flickering mode, it means that there is an abnormality, and a relevant prompt message can be generated.

[0096] If the flash light flickering change is the same as the flash light flickering mode, it means that the flash light flickering change information recognition result is normal.

[0097] Determining second recognition results corresponding to each two-dimensional code video frame according to the second moment and the first moment; determining second recognition results corresponding to each two-dimensional code video frame according to the second moment and the first moment includes:

[0098] If it is determined that the second time interval between the second moment and the first moment is greater than the second preset time length, the second recognition result is determined to be abnormal; the second preset time length can be set with reference to the first preset time length. If a video of transcribing flash flashing occurs, the transcribed video needs to be transmitted through the network. Affected by network delay, the time interval between the second moment and the first moment for obtaining the recognition result of the flash flashing change information is too long. Therefore, it can be determined that if the second time interval is greater than the second preset time length, it means that the flash flashing change information is recognized through the network, and it is not performed in the local main scanning device. It will prompt that the recognition result is abnormal, and a second warning message can be sent to the scanned device.

[0099] If it is determined that the second time interval between the second moment and the first moment is less than or equal to the second preset time length, the second recognition result is determined to be normal. Referring to the above description, it can be determined that if the second time interval is less than or equal to the second preset time length, it means that the flash light flickering change information recognition is completed by the main scanning device, and the recognition result will be prompted to be normal.

[0100] The first recognition result, the second recognition result and the corresponding transaction information corresponding to each QR code video frame are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to the first recognition result, the second recognition result and the corresponding transaction information corresponding to each QR code video frame.

[0101] The server receives all first recognition results, all second recognition results and transaction information. If at least one first recognition result or second recognition result of a QR code video frame is abnormal, the transaction payment processing result is abnormal, and the payment transaction can be terminated.

[0102] If the first recognition results and the second recognition results of all QR code video frames are normal, the transaction payment processing result is normal, and the payment transaction can be completed.

[0103] The transaction payment processing method provided by the embodiment of the present invention scans the QR code video stream displayed by the scanned device to obtain the public key of the scanned device; sends a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device performs clock synchronization on each QR code video frame in the QR code video stream, and adds the transaction related information of the scanned device to each QR code video frame; wherein, the transaction related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information; if it is determined that the clock synchronization confirmation mark passes the verification, then according to the acquisition time corresponding to each QR code video frame and the timestamp, the first recognition result corresponding to each QR code video frame is determined, and each first recognition result and the corresponding transaction information are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first recognition result and the corresponding transaction information, which can ensure the security of transaction payment processing.

[0104] Further, determining the first recognition result corresponding to each of the two-dimensional code video frames according to the acquisition time corresponding to each of the two-dimensional code video frames and the timestamp includes:

[0105] If it is determined that the first time interval between the acquisition time and the timestamp is greater than a first preset time length, the first recognition result is determined to be abnormal; the description may refer to the above embodiment and will not be repeated here.

[0106] If it is determined that the first time interval between the acquisition time and the timestamp is less than or equal to the first preset time length, the first recognition result is determined to be normal. The above embodiment can be referred to for description and will not be repeated here.

[0107] The transaction payment processing method provided by the embodiment of the present invention can ensure the accuracy of the first recognition result.

[0108] Furthermore, the transaction-related information of the scanned device also includes a flash feedback information code; accordingly, after the step of determining the first recognition results corresponding to each of the two-dimensional code video frames, the transaction payment processing method also includes:

[0109] The flash flashing mode is determined according to the flash feedback information code, the flash flashing is controlled according to the flash flashing mode, and the first moment when the flash flashing starts is recorded so that the scanned device can display the flash flashing change information; please refer to the above embodiment for description and no further details will be given.

[0110] The flash light flickering change information is identified to obtain a second moment of obtaining the flash light flickering change information identification result; the description may refer to the above embodiment and will not be repeated here.

[0111] According to the second moment and the first moment, second recognition results respectively corresponding to each two-dimensional code video frame are determined; the above-mentioned embodiment can be referred to for description and will not be repeated here.

[0112] The first recognition result and the second recognition result and the corresponding transaction information corresponding to each QR code video frame are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to the first recognition result and the second recognition result and the corresponding transaction information corresponding to each QR code video frame. The above embodiment can be referred to for explanation and will not be repeated here.

[0113] The transaction payment processing method provided by the embodiment of the present invention can further ensure the security of transaction payment processing.

[0114] Further, the determining, according to the second moment and the first moment, second recognition results respectively corresponding to each two-dimensional code video frame includes:

[0115] If it is determined that the second time interval between the second moment and the first moment is greater than a second preset duration, the second recognition result is determined to be abnormal; the description may refer to the above embodiment and will not be repeated here.

[0116] If it is determined that the second time interval between the second moment and the first moment is less than or equal to a second preset time length, the second recognition result is determined to be normal.

[0117] The transaction payment processing method provided by the embodiment of the present invention can ensure the accuracy of the second recognition result.

[0118] Figure 3 FIG. 1 is a flow chart of a transaction payment processing method provided by an embodiment of the present invention. Figure 3 As shown, the transaction payment processing method provided by the embodiment of the present invention is executed in the scanned device, and the scanned device includes a first display area for displaying a QR code video stream, including:

[0119] Step T1: receiving a device synchronization request forwarded by the server, and performing clock synchronization on each two-dimensional code video frame in the two-dimensional code video stream.

[0120] Step T2: adding transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server;

[0121] The transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information.

[0122] Step T3: receiving a feedback transaction payment processing result fed back by the server based on the first identification result and transaction information.

[0123] In the above step T1, the device receives the device synchronization request forwarded by the server, and performs clock synchronization on each QR code video frame in the QR code video stream. The device may be a computer device that executes the method, for example, it may include a scanned device. It should be noted that the acquisition and analysis of data involved in the embodiment of the present invention is authorized by the user. Performing clock synchronization on each QR code video frame in the QR code video stream may include:

[0124] Through 5G communication technology (low latency), the clock of the timing center is synchronized to ensure that the clock of the scanned device is always accurate and avoid interference from third parties.

[0125] In the above step T2, the device adds the transaction-related information of the scanned device to each QR code video frame, so that the main scanning device scans the first display area, obtains the transaction-related information of the scanned device, and sends the first recognition result and transaction information corresponding to each QR code video frame to the server;

[0126] The transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information. Please refer to the relevant description of the main scanning device above.

[0127] In the above step T3, the device receives the feedback transaction payment processing result fed back by the server based on the first identification result and the transaction information. The transaction payment processing result can be received through 5G communication technology (low latency), thereby realizing transaction payment processing.

[0128] The scanned device further includes a second display area for displaying changes in flash light, and the transaction-related information of the scanned device further includes a flash feedback information code; accordingly, the transaction payment processing method further includes:

[0129] In response to the main scanning device controlling the flash to flash according to the flash feedback information code, displaying flash flash change information in the second display area so that the main scanning device can identify the second display area, obtain a second recognition result, and send the first recognition result, the second recognition result and the transaction information corresponding to each QR code video frame to the server;

[0130] The transaction payment processing result is received by the server based on the first recognition result, the second recognition result and the transaction information. The transaction payment processing result can be received through 5G communication technology (low latency), thereby realizing transaction payment processing.

[0131] The transaction payment processing method provided in the embodiment of the present invention can be implemented on a modular basis, and for the scanned device, includes:

[0132] QR code video stream generation module:

[0133] It is a square video display area of ​​a QR code, including a video display module that generates QR codes and refreshes them at a certain frame rate to generate sequential QR codes. Each frame of the QR code image contains a timestamp, a synchronization confirmation mark, a flash feedback information code (a string of random characters), and transaction information. The randomness of the QR code generation is dynamically generated by the scanned device ID and the current natural clock. Each QR code can display millisecond timestamp information for synchronization calibration and detection of network delay time.

[0134] Clock synchronization module:

[0135] Synchronize with the clock of the timing center through 5G communication technology (low latency) to ensure that the device clock is always consistent with the accurate time and avoid interference from third parties.

[0136] Feedback receiving module:

[0137] Verification feedback information is received from the server through 5G communication technology (low latency), confirming that the QR code video stream has completed verification.

[0138] For the main scanning device, it includes:

[0139] QR code video stream recognition module:

[0140] The camera continuously scans the video stream generated by the QR code video generation module of the scanned device, continuously identifies information, and determines the timestamp, flash feedback information code (a string of random characters), synchronization confirmation mark and transaction information. At the same time, the light brightness changes in the screen area around the QR code video stream are identified by video to determine the flash response flicker.

[0141] Flash Sync Module:

[0142] After the main scanning device recognizes the flash feedback information code (a string of random characters) through the QR code video stream recognition module, it synchronizes the string of random characters through the flash light through Morse code flashing. After the flash is superimposed on the QR code video stream, it ensures that the main scanning device and the scanned device are in the same physical space.

[0143] Flash light recognition module:

[0144] The main scanning device recognizes the flash light flickering changes.

[0145] like Figure 4 As shown, the identification process is explained.

[0146] Furthermore, to ensure information security, synchronization between the main scanning device and the scanned device can be achieved by encrypting and decrypting relevant information, such as Figure 5 As shown, the synchronization process between the scanned device E1 and the main scanning device E2 is as follows:

[0147] (1) Server S1 generates a public key for encrypting information between devices.

[0148] (2) Server S1 distributes the generated public key, and devices E1 and E2 receive it.

[0149] (3) The scanned device E1 generates a key pair for its own device, which is used to transmit transaction information.

[0150] (4) The scanned device E1 uses the public key distributed by S1 to encrypt the public key it generates.

[0151] (5) The information encrypted in step 4 is displayed in the form of a QR code through a video stream.

[0152] (6) The main scanning device scans the QR code video stream displayed on the screen of the scanned device.

[0153] (7) Decrypt through S1-KEY to obtain the public key E1-PublicKey of the scanned device E1.

[0154] (8) The main scanning device E2 applies for interaction with the scanned device.

[0155] (9) The server forwards the synchronization request and generates a clock synchronization confirmation flag.

[0156] (10) The information is encrypted using the E1-PrivateKey private key and displayed through the video stream.

[0157] (11) Scan the video stream.

[0158] (12) Decrypt the E1-PublicKey to obtain transaction-related information of the scanned device.

[0159] (13) The process of steps 10-12 is repeated to realize information display and transmission of each QR code video frame.

[0160] (14) The transaction is completed and the key pair generated by the E1 scanned device is invalidated.

[0161] The transaction payment processing method provided by the embodiment of the present invention receives a device synchronization request forwarded by the server, and performs clock synchronization on each QR code video frame in the QR code video stream; adds transaction-related information of the scanned device to each QR code video frame so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server; wherein the transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information; and receives feedback transaction payment processing results fed back by the server based on the first recognition result and transaction information, thereby ensuring the security of transaction payment processing.

[0162] Furthermore, the scanned device further includes a second display area for displaying changes in flash light, and the transaction-related information of the scanned device further includes a flash feedback information code; accordingly, the transaction payment processing method further includes:

[0163] In response to the main scanning device controlling the flash to flash according to the flash feedback information code, the flash flash change information is displayed in the second display area so that the main scanning device can identify the second display area, obtain the second recognition result, and send the first recognition result, the second recognition result and the transaction information corresponding to each QR code video frame to the server; please refer to the above embodiment for description and will not repeat them here.

[0164] Receiving a feedback transaction payment processing result fed back by the server based on the first recognition result, the second recognition result and the transaction information. The above-mentioned embodiment can be referred to for explanation and will not be described in detail.

[0165] The transaction payment processing method provided by the embodiment of the present invention can further ensure the security of transaction payment processing.

[0166] It should be noted that the transaction payment processing method provided in the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiment of the present invention does not limit the application field of the transaction payment processing method.

[0167] The transaction payment processing method provided by the embodiment of the present invention has the following beneficial technical effects:

[0168] 1. The present invention overcomes the limitation that a single QR code image can be easily transmitted and secretly photographed and cracked. It uses a QR code video stream to transmit transaction verification information, supports a larger amount of information for the carrier of transaction verification information, and can provide more verification extension methods for payment services that use QR code video stream verification, thereby enhancing security in the payment field.

[0169] 2. Compared with a static picture such as a QR code, the QR code video stream of the present invention is presented in the form of a dynamic video, which is difficult for an attacker to crack and generate a fake video of the same form in a short time, greatly increasing the difficulty of cracking.

[0170] 3. The present invention transmits various types of transaction verification information through a two-dimensional code video stream. There is an objective time sequence in the video stream display process. The overall authentication process cannot be completed by intercepting part of the information, which increases the difficulty of partially intercepting the verification information and cracking it, thereby enhancing the security verification factor.

[0171] 4. The present invention performs interactive dynamic two-way verification by displaying the QR code video stream on the scanned device and flashing the main scanning device, which is an effective improvement on the one-way verification method of QR code image verification. The flash flash is transmitted at the speed of light, and the sensor can be used to detect the flash flash to determine whether there is a video transcription delay.

[0172] 5. The present invention detects whether there is a network delay in illegally recording and transcribing the video by identifying delayed scanning, and can also ensure that the main scanning device and the scanned device are in the same physical space.

[0173] 6. The present invention has a wide coverage and can be applied to identity recognition and verification of various self-service machines.

[0174] Figure 6 FIG. 1 is a schematic diagram of the structure of a transaction payment processing device provided by an embodiment of the present invention. Figure 6 As shown, the transaction payment processing device provided by the embodiment of the present invention includes a scanning unit 601, a sending unit 602 and an identification unit 603, wherein:

[0175] The scanning unit 601 is used to scan the QR code video stream displayed by the scanned device to obtain the public key of the scanned device; the sending unit 602 is used to send a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device performs clock synchronization on each QR code video frame in the QR code video stream, and adds the transaction-related information of the scanned device to each QR code video frame; wherein the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information; the identification unit 603 is used to determine the first identification results corresponding to each QR code video frame according to the acquisition time corresponding to each QR code video frame and the timestamp if it is determined that the clock synchronization confirmation mark has passed the verification, and send each first identification result and the corresponding transaction information to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first identification result and the corresponding transaction information.

[0176] Specifically, the scanning unit 601 in the device is used to scan the two-dimensional code video stream displayed by the scanned device to obtain the public key of the scanned device; the sending unit 602 is used to send a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device performs clock synchronization on each two-dimensional code video frame in the two-dimensional code video stream, and adds the transaction-related information of the scanned device to each two-dimensional code video frame; wherein the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information; the identification unit 603 is used to determine the first identification results corresponding to each two-dimensional code video frame according to the acquisition time corresponding to each two-dimensional code video frame and the timestamp if it is determined that the clock synchronization confirmation mark has passed the verification, and send each first identification result and the corresponding transaction information to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first identification result and the corresponding transaction information.

[0177] The transaction payment processing device provided by the embodiment of the present invention scans the two-dimensional code video stream displayed by the scanned device to obtain the public key of the scanned device; sends a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device performs clock synchronization on each two-dimensional code video frame in the two-dimensional code video stream, and adds the transaction-related information of the scanned device to each two-dimensional code video frame; wherein, the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information; if it is determined that the clock synchronization confirmation mark has passed the verification, then according to the acquisition time corresponding to each two-dimensional code video frame and the timestamp, the first recognition result corresponding to each two-dimensional code video frame is determined, and each first recognition result and the corresponding transaction information are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first recognition result and the corresponding transaction information, which can ensure the security of transaction payment processing.

[0178] Furthermore, the identification unit 603 is specifically used for:

[0179] If it is determined that a first time interval between the acquisition time and the timestamp is greater than a first preset time length, determining that the first recognition result is abnormal;

[0180] If it is determined that a first time interval between the acquisition time and the timestamp is less than or equal to a first preset duration, then the first recognition result is determined to be normal.

[0181] The transaction payment processing device provided by the embodiment of the present invention can ensure the accuracy of the first recognition result.

[0182] Furthermore, the transaction-related information of the scanned device also includes a flash feedback information code; accordingly, after the step of determining the first recognition results corresponding to each of the two-dimensional code video frames, the transaction payment processing device is further used to:

[0183] Determine a flash light flashing mode according to the flash light feedback information code, control the flash light flashing according to the flash light flashing mode, and record the first moment when the flash light flashing starts, so that the scanned device can display the flash light flashing change information;

[0184] Identify the flash light flickering change information to obtain a second moment of obtaining a flash light flickering change information identification result;

[0185] Determine, according to the second moment and the first moment, second recognition results corresponding to each of the two-dimensional code video frames;

[0186] The first recognition result, the second recognition result and the corresponding transaction information corresponding to each QR code video frame are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to the first recognition result, the second recognition result and the corresponding transaction information corresponding to each QR code video frame.

[0187] The transaction payment processing device provided by the embodiment of the present invention can further ensure the security of transaction payment processing.

[0188] Furthermore, the transaction payment processing device is also specifically used for:

[0189] If it is determined that a second time interval between the second moment and the first moment is greater than a second preset time length, determining that the second recognition result is abnormal;

[0190] If it is determined that a second time interval between the second moment and the first moment is less than or equal to a second preset duration, the second recognition result is determined to be normal.

[0191] The transaction payment processing device provided by the embodiment of the present invention can ensure the accuracy of the second recognition result.

[0192] Figure 7 is a schematic diagram of the structure of a transaction payment processing device provided by another embodiment of the present invention. Figure 7 As shown, the transaction payment processing device provided by the embodiment of the present invention includes a synchronization module 701, an adding module 702 and a receiving module 703, wherein:

[0193] The synchronization module 701 is used to receive the device synchronization request forwarded by the server and perform clock synchronization on each QR code video frame in the QR code video stream; the adding module 702 is used to add the transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain the transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server; wherein the transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information; the receiving module 703 is used to receive the feedback transaction payment processing result fed back by the server based on the first recognition result and transaction information.

[0194] Specifically, the synchronization module 701 is used to receive a device synchronization request forwarded by the server, and perform clock synchronization on each QR code video frame in the QR code video stream; the adding module 702 is used to add transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server; wherein the transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information; the receiving module 703 is used to receive feedback transaction payment processing results fed back by the server based on the first recognition result and transaction information.

[0195] The transaction payment processing device provided by the embodiment of the present invention receives a device synchronization request forwarded by the server, and performs clock synchronization on each QR code video frame in the QR code video stream; adds transaction-related information of the scanned device to each QR code video frame so that the main scanning device can scan the first display area to obtain transaction-related information of the scanned device, and sends the first recognition result and transaction information corresponding to each QR code video frame to the server; wherein the transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information; and receives feedback transaction payment processing results fed back by the server based on the first recognition result and transaction information, thereby ensuring the security of transaction payment processing.

[0196] Furthermore, the scanned device further includes a second display area for displaying changes in flash light, and the transaction-related information of the scanned device further includes a flash feedback information code; accordingly, the transaction payment processing apparatus is further used for:

[0197] In response to the main scanning device controlling the flash to flash according to the flash feedback information code, displaying flash flash change information in the second display area so that the main scanning device can identify the second display area, obtain a second recognition result, and send the first recognition result, the second recognition result and the transaction information corresponding to each QR code video frame to the server;

[0198] Receive a feedback transaction payment processing result fed back by the server based on the first identification result, the second identification result and the transaction information.

[0199] The transaction payment processing device provided by the embodiment of the present invention can further ensure the security of transaction payment processing.

[0200] The transaction payment processing device provided in the embodiment of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments. Its functions are not described in detail here, and reference can be made to the detailed description of the above-mentioned method embodiments.

[0201] Figure 8 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Figure 8 As shown, the electronic device includes: a processor (processor) 801, a memory (memory) 802 and a bus 803;

[0202] The processor 801 and the memory 802 communicate with each other via a bus 803;

[0203] The processor 801 is used to call the program instructions in the memory 802 to execute the methods provided by the above method embodiments, for example, including:

[0204] Scan the QR code video stream displayed by the scanned device to obtain the public key of the scanned device;

[0205] Sending a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device synchronizes the clock of each QR code video frame in the QR code video stream, and adds transaction-related information of the scanned device to each QR code video frame;

[0206] Wherein, the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0207] If it is determined that the clock synchronization confirmation mark passes the verification, the first recognition results corresponding to each QR code video frame are determined according to the acquisition time corresponding to each QR code video frame and the timestamp, and each first recognition result and corresponding transaction information are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first recognition result and the corresponding transaction information;

[0208] Alternatively, receiving a device synchronization request forwarded by the server, and performing clock synchronization on each two-dimensional code video frame in the two-dimensional code video stream;

[0209] Adding transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server;

[0210] The transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0211] Receive a feedback transaction payment processing result fed back by the server based on the first identification result and transaction information.

[0212] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can perform the methods provided by the above method embodiments, for example, including:

[0213] Scan the QR code video stream displayed by the scanned device to obtain the public key of the scanned device;

[0214] Sending a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device synchronizes the clock of each QR code video frame in the QR code video stream, and adds transaction-related information of the scanned device to each QR code video frame;

[0215] Wherein, the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0216] If it is determined that the clock synchronization confirmation mark passes the verification, the first recognition results corresponding to each QR code video frame are determined according to the acquisition time corresponding to each QR code video frame and the timestamp, and each first recognition result and corresponding transaction information are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first recognition result and the corresponding transaction information;

[0217] Alternatively, receiving a device synchronization request forwarded by the server, and performing clock synchronization on each two-dimensional code video frame in the two-dimensional code video stream;

[0218] Adding transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server;

[0219] The transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0220] Receive a feedback transaction payment processing result fed back by the server based on the first identification result and transaction information.

[0221] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables the computer to execute the methods provided by the above method embodiments, for example, including:

[0222] Scan the QR code video stream displayed by the scanned device to obtain the public key of the scanned device;

[0223] Sending a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device synchronizes the clock of each QR code video frame in the QR code video stream, and adds transaction-related information of the scanned device to each QR code video frame;

[0224] Wherein, the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0225] If it is determined that the clock synchronization confirmation mark passes the verification, the first recognition results corresponding to each QR code video frame are determined according to the acquisition time corresponding to each QR code video frame and the timestamp, and each first recognition result and corresponding transaction information are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first recognition result and the corresponding transaction information;

[0226] Alternatively, receiving a device synchronization request forwarded by the server, and performing clock synchronization on each two-dimensional code video frame in the two-dimensional code video stream;

[0227] Adding transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server;

[0228] The transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information;

[0229] Receive a feedback transaction payment processing result fed back by the server based on the first identification result and transaction information.

[0230] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented 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.

[0231] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0232] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0233] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0234] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0235] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A transaction payment processing method, characterized in that: The transaction payment processing method is executed in the main scanning device, including: Scan the QR code video stream displayed by the scanned device to obtain the public key of the scanned device; Sending a device synchronization request to the server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device synchronizes the clock of each QR code video frame in the QR code video stream, and adds transaction-related information of the scanned device to each QR code video frame; Wherein, the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information; If it is determined that the clock synchronization confirmation mark has passed the verification, the first recognition results corresponding to each QR code video frame are determined according to the acquisition time corresponding to each QR code video frame and the timestamp, and each first recognition result and the corresponding transaction information are sent to the server, so that the server can feedback the transaction payment processing results to the scanned device according to each first recognition result and the corresponding transaction information.

2. The transaction payment processing method according to claim 1, characterized in that: The determining, according to the acquisition time and the timestamp corresponding to each of the two-dimensional code video frames, the first recognition result corresponding to each of the two-dimensional code video frames, comprises: If it is determined that a first time interval between the acquisition time and the timestamp is greater than a first preset time length, determining that the first recognition result is abnormal; If it is determined that a first time interval between the acquisition time and the timestamp is less than or equal to a first preset duration, then the first recognition result is determined to be normal.

3. The transaction payment processing method according to claim 1, characterized in that: The transaction-related information of the scanned device also includes a flash feedback information code; accordingly, after the step of determining the first recognition results corresponding to each of the two-dimensional code video frames, the transaction payment processing method also includes: Determine a flash light flashing mode according to the flash light feedback information code, control the flash light flashing according to the flash light flashing mode, and record the first moment when the flash light flashing starts, so that the scanned device can display the flash light flashing change information; Identify the flash light flickering change information to obtain a second moment of obtaining a flash light flickering change information identification result; Determine, according to the second moment and the first moment, second recognition results corresponding to each of the two-dimensional code video frames; The first recognition result, the second recognition result and the corresponding transaction information corresponding to each QR code video frame are sent to the server, so that the server can feedback the transaction payment processing result to the scanned device according to the first recognition result, the second recognition result and the corresponding transaction information corresponding to each QR code video frame.

4. The transaction payment processing method according to claim 3, characterized in that: The determining, according to the second moment and the first moment, second recognition results respectively corresponding to each two-dimensional code video frame includes: If it is determined that a second time interval between the second moment and the first moment is greater than a second preset time length, determining that the second recognition result is abnormal; If it is determined that a second time interval between the second moment and the first moment is less than or equal to a second preset duration, the second recognition result is determined to be normal.

5. A transaction payment processing method, characterized in that: The transaction payment processing method is executed in a scanned device, and the scanned device includes a first display area for displaying a QR code video stream, including: receiving a device synchronization request forwarded by the server, and performing clock synchronization on each QR code video frame in the QR code video stream; Adding transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server; The transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information; Receive a feedback transaction payment processing result fed back by the server based on the first identification result and transaction information.

6. The transaction payment processing method according to claim 5, characterized in that: The scanned device further includes a second display area for displaying changes in flash light, and the transaction-related information of the scanned device further includes a flash feedback information code; accordingly, the transaction payment processing method further includes: In response to the main scanning device controlling the flash to flash according to the flash feedback information code, displaying flash flash change information in the second display area so that the main scanning device can identify the second display area, obtain a second recognition result, and send the first recognition result, the second recognition result and the transaction information corresponding to each QR code video frame to the server; Receive a feedback transaction payment processing result fed back by the server based on the first identification result, the second identification result and the transaction information.

7. A transaction payment processing device, characterized in that: The transaction payment processing device is a main scanning device, including: A scanning unit, used to scan a QR code video stream displayed by a scanned device to obtain a public key of the scanned device; A sending unit, configured to send a device synchronization request to a server; the device synchronization request carries the public key of the scanned device, so that the server forwards the device synchronization request to the scanned device according to the public key of the scanned device, so that the scanned device performs clock synchronization on each QR code video frame in the QR code video stream, and adds transaction-related information of the scanned device to each QR code video frame; Wherein, the transaction-related information of the scanned device at least includes a timestamp, a clock synchronization confirmation mark and transaction information; The identification unit is used to determine the first identification results corresponding to each QR code video frame according to the acquisition time and the timestamp corresponding to each QR code video frame if it is determined that the clock synchronization confirmation mark has passed the verification, and send each first identification result and the corresponding transaction information to the server, so that the server can feedback the transaction payment processing result to the scanned device according to each first identification result and the corresponding transaction information.

8. A transaction payment processing device, characterized in that: The transaction payment processing device is a scanned device, and the scanned device includes a first display area for displaying a QR code video stream, including: A synchronization module, used for receiving a device synchronization request forwarded by a server, and performing clock synchronization on each QR code video frame in the QR code video stream; an adding module, configured to add transaction-related information of the scanned device to each QR code video frame, so that the main scanning device can scan the first display area, obtain transaction-related information of the scanned device, and send the first recognition result and transaction information corresponding to each QR code video frame to the server; The transaction-related information of the scanned device includes a timestamp, a clock synchronization confirmation mark and transaction information; The receiving module is used to receive the feedback transaction payment processing result fed back by the server based on the first identification result and transaction information.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 or 5 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 or 5 to 6 are implemented.

Citation Information

Patent Citations

  • Method and apparatus for information transmission by use of flash lamp

    CN105577765A

  • Timestamp-based transaction verification method

    CN107301545A

  • Light two-dimensional code payment device, system and method

    CN107545427A

  • Two-dimensional code security verification method

    CN107808286A

  • Payment method based on dynamic two-dimensional codes

    CN107886322A