CN-122022800-A - Recharging processing method and device, electronic equipment and storage medium
Abstract
The application provides a recharging processing method, a recharging processing device, electronic equipment and a storage medium, which are suitable for the technical field of recharging payment. The method comprises the steps of periodically scanning order records of each order according to a first preset time interval to determine the to-be-processed order, wherein the order records comprise order states and calling interfaces, the to-be-processed order comprises a first to-be-processed order with the order states to be paid, the calling interfaces corresponding to the first to-be-processed order are obtained based on the order records, callback information is obtained through the calling interfaces, the callback information comprises payment result notification, and the order records are updated based on the callback information. According to the embodiment of the application, the condition of callback loss or delay is compensated by polling compensation, so that the condition of manual account checking is effectively reduced or avoided, the cost is reduced, and the callback reliability and callback speed are improved.
Inventors
- SONG JIACHENG
- HU YANPING
- CHEN JIANWEI
Assignees
- 中消云(北京)物联网科技研究院有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260116
Claims (10)
- 1. A refill processing method, comprising: Periodically scanning order records of each order according to a first preset time interval to determine a to-be-processed order, wherein the order records comprise order states and a calling interface, and the to-be-processed order comprises a first to-be-processed order of which the order states are to-be-paid; acquiring a calling interface corresponding to the first order to be processed based on the order record; obtaining callback information through the calling interface, wherein the callback information comprises payment result notification; and updating the order record based on the callback information.
- 2. The refill processing method according to claim 1, characterized by further comprising: Generating order information in response to a recharging request of the terminal equipment, wherein the order information comprises an order number and a calling interface; Generating the order record based on the order information, and updating the order state of the order record to be paid; And returning pre-payment information to the terminal equipment based on the order information.
- 3. The recharging processing method according to claim 2, wherein the obtaining callback information through the calling interface includes: Acquiring encryption callback information through the call interface; and carrying out signature verification and decryption on the encrypted callback information based on the merchant certificate of the merchant corresponding to the recharging request to obtain callback information.
- 4. The refill processing method according to claim 1, wherein the order to be processed further includes a second order to be processed whose order state is that a time to be paid exceeds a preset threshold; the method comprises the steps of periodically scanning order records of each order according to a first preset time interval, and after determining the pending order, further comprising: sending a transaction ending instruction to terminal equipment corresponding to the second order to be processed; updating the order state corresponding to the second to-be-processed order to be closed; and recording an automatic closing log, wherein the automatic closing log is used for recording the processing process of the second to-be-processed order.
- 5. The refill processing method according to any one of claims 1 to 4 wherein the order record includes an amount to be credited; the updating the order record based on the callback information comprises the following steps: if the recharging is successful based on the callback information, calling an accounting function corresponding to the order record; Determining an account amount based on the account function and the recharge amount in the callback information, and recording the account amount to the order record; and updating the order state of the order record to be payment completion.
- 6. The recharging processing method according to any one of claims 1 to 4, wherein the obtaining callback information through the calling interface includes: periodically acquiring callback information through the calling interface according to a second preset time interval; If the number of times of obtaining the callback information is larger than the preset number of times, updating the order state corresponding to the first order to be processed to be closed.
- 7. The refill processing method according to any one of claims 1 to 4, further comprising: determining a risk index, wherein the risk index is an index related to the processing condition of the order to be processed; Detecting the health degree of the payment link based on the risk index; And when the health degree of the payment link is determined to not meet the requirement, carrying out risk warning.
- 8. A refill processing device, comprising: the system comprises a polling module, a processing module and a processing module, wherein the polling module is used for periodically scanning order records of each order according to a first preset time interval to determine the to-be-processed order, the order records comprise order states and a calling interface, and the to-be-processed order comprises a first to-be-processed order with the order states to be paid; the first acquisition module is used for acquiring a calling interface corresponding to the first order to be processed based on the order record; The second acquisition module is used for acquiring callback information through the calling interface, wherein the callback information comprises payment result notification; And the updating module is used for updating the order record based on the callback 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 the processor implements the steps of the method according to any one of claims 1 to 7 when the computer program is executed.
- 10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 7.
Description
Recharging processing method and device, electronic equipment and storage medium Technical Field The present application relates to the field of recharging payment technologies, and in particular, to a recharging processing method and apparatus, an electronic device, and a storage medium. Background At present, recharging payment through a mobile phone is more and more common in daily life, and the timeliness and the accuracy of bill updating are more and more important. The general recharging payment flow is to create an order, call a mobile phone program to order, wait for callback information and update an account. However, when the callback information is abnormal, such as lost or delayed, manual checking is required, which occupies a great deal of time cost and labor cost, and the cost is increased. Disclosure of Invention In view of the above, embodiments of the present application provide a recharging processing method, device, electronic device, and storage medium, so as to solve the problem in the prior art that the cost is increased due to the need of manual checking when the callback information is abnormal. A first aspect of an embodiment of the present application provides a recharging processing method, including: Periodically scanning order records of each order according to a first preset time interval to determine the to-be-processed order, wherein the order records comprise order states and calling interfaces, and the to-be-processed order comprises a first to-be-processed order with the order states to be paid; acquiring a calling interface corresponding to a first order to be processed based on the order record; the callback information is acquired through a calling interface, wherein the callback information comprises payment result notification; and updating the order record based on the callback information. In one possible implementation manner, the recharging processing method further includes: generating order information in response to a recharging request of the terminal equipment, wherein the order information comprises an order number and a calling interface; generating an order record based on the order information, and updating the order state of the order record to be paid; And returning pre-payment information to the terminal equipment based on the order information. In one possible implementation, obtaining callback information through a call interface includes: Acquiring encryption callback information through a calling interface; and carrying out signature verification and decryption on the encrypted callback information based on the merchant certificate of the merchant corresponding to the recharging request to obtain the callback information. In one possible implementation, the pending orders further include a second pending order whose order status is that the time to be paid exceeds a preset threshold; periodically scanning the order record of each order according to a first preset time interval, and after determining the pending order, further comprising: transmitting a transaction ending instruction to terminal equipment corresponding to the second order to be processed; updating the order state corresponding to the second to-be-processed order to be closed; and recording an automatic closing log which is used for recording the processing process of the second order to be processed. In one possible implementation, the order record includes an amount to be credited; Updating the order record based on the callback information, including: if the recharging is successful based on the callback information, calling an account entering function corresponding to the order record; Determining an account amount based on the account function and the recharge amount in the callback information, and recording the account amount to an order record; updating the order status of the order record to payment completion. In one possible implementation, obtaining callback information through a call interface includes: periodically acquiring callback information through a calling interface according to a second preset time interval; if the number of times of obtaining the callback information is larger than the preset number of times, updating the order state corresponding to the first order to be processed to be closed. In one possible implementation manner, the recharging processing method further includes: determining a risk index, wherein the risk index is an index related to the processing condition of an order to be processed; detecting the health degree of the payment link based on the risk index; and when the health degree of the payment link is determined to not meet the requirement, carrying out risk warning. A second aspect of an embodiment of the present application provides a recharging processing device, including: The system comprises a polling module, a processing module and a processing module, wherein the polling module is used for periodically scanning order records