Transaction data storage method, apparatus and device, and storage medium
A transaction data and transaction technology, applied in the field of data processing, can solve the problems of increased transaction time, inability to obtain transaction results, and increased access pressure on payment gateways, so as to reduce access pressure and improve data storage efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] Figure 1a It is a schematic flowchart of a transaction data storage method provided by Embodiment 1 of the present invention. The method is applicable to the situation of storing transaction data during network transactions, and the method can be executed by a transaction data storage device, which can be composed of hardware and / or software, and can generally be integrated in mobile phones, computers and all In the electronic equipment of the online transaction client. Specifically include the following steps:
[0030] S110. Buffer the acquired transaction data into a temporary queue, and request the payment gateway according to the transaction data, so as to obtain the transaction result returned by the payment gateway.
[0031] In this embodiment, the transaction data in this embodiment can be the data generated during the network transaction process, which generally refers to all data that can be stored asynchronously without affecting the main transaction process...
Embodiment 2
[0049] Figure 2a It is a schematic flowchart of a transaction data storage method provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments, and provides a preferred transaction data storage method, specifically, further optimizes the transaction data obtained from the archive queue and stored in the database. Specifically include the following:
[0050] S210. Buffer the acquired transaction data into a temporary queue, and request the payment gateway according to the transaction data, so as to acquire the transaction result returned by the payment gateway.
[0051] S220. If the transaction success result returned by the payment gateway is received, transfer the transaction data cached in the temporary queue to the archive queue.
[0052] S230. Acquire the quantity of transaction data in the archiving queue according to a first preset period.
[0053] In this embodiment, the first preset period may be a ...
Embodiment 3
[0065] image 3 It is a schematic structural diagram of a transaction data storage device provided by Embodiment 3 of the present invention. refer to image 3 , the transaction data storage device includes: a temporary cache module 310, a queue transfer module 320, and a data storage module 330, each module will be described in detail below.
[0066] Temporary caching module 310, configured to cache the acquired transaction data into a temporary queue, and request the payment gateway according to the transaction data, so as to obtain the transaction result returned by the payment gateway;
[0067] The queue transfer module 320 is configured to transfer the transaction data cached in the temporary queue to the archiving queue if the successful transaction result returned by the payment gateway is received;
[0068] The data storage module 330 is configured to obtain the transaction data from the archiving queue and store it in a database.
[0069] The transaction data storag...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com