Transaction compensation method and device
A transaction and compensation time technology, applied in the field of transaction compensation methods and devices, can solve problems such as affecting the user's payment experience and affecting the competitiveness of payment products.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] see figure 1 , this embodiment provides a transaction compensation method, including:
[0048] Obtain transaction orders with status changes from the business system; calculate the compensation initiation time of each transaction order based on the update time of the transaction order and the compensation time of the corresponding transaction order in the task configuration table; cache the transaction orders in the order of the compensation initiation time To the memory queue; regularly scan the order tasks in the memory queue, and notify the business system to initiate a compensation action to the corresponding transaction order when the compensation initiation time is reached.
[0049] In the transaction compensation method provided in this embodiment, firstly, the transaction orders whose status has changed and are abnormal are obtained from the business system, and the compensation time corresponding to these transaction orders is extracted from the task configurat...
Embodiment 2
[0074] This embodiment provides a transaction compensation device, including:
[0075] The real-time data replication unit is used to obtain transaction orders with status changes from the business system;
[0076] A streaming message processing unit, configured to calculate the compensation initiation time of each transaction order based on the update time of the transaction order and the compensation time of the corresponding transaction order in the task configuration table;
[0077] A queue cache unit, configured to cache the transaction orders in the memory queue according to the order of compensation initiation time;
[0078] The task processing unit is configured to regularly scan the order tasks in the memory queue, and notify the business system to initiate a compensation action to the corresponding transaction order when the compensation initiation time is reached.
[0079] Compared with the prior art, the beneficial effects of the transaction compensation device pr...
Embodiment 3
[0081] This embodiment provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, the steps of the above transaction compensation method are executed.
[0082] Compared with the prior art, the beneficial effect of the computer-readable storage medium provided by this embodiment is the same as the beneficial effect of the transaction compensation method provided by the above-mentioned technical solution, which will not be repeated here.
[0083] Those of ordinary skill in the art can understand that all or part of the steps in the above inventive method can be completed by instructing related hardware through a program. The above program can be stored in a computer-readable storage medium. When the program is executed, it includes: For each step of the method in the foregoing embodiments, the foregoing storage medium may be: ROM / RAM, magnetic disk, optical disk, memory card, ...
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