Reconciliation method and device of payment system, equipment and medium

By generating and updating bills, determining unaccounted sub-bills and performing reconciliation, the difficulty of reconciliation between payment institutions and merchant terminals caused by complex campus payment scenarios is solved, and the reliability and accuracy of reconciliation is improved.

CN119067647APending Publication Date: 2024-12-03BEIJING DATALOOK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410949390.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The fragmentation of campus payment scenarios leads to complex payment settlement system, which in turn makes it difficult for payment institutions to reconcile accounts with merchant terminals.

Method used

By generating and comparing bills of multiple order data, unaccounted sub-bills are determined, and bills are updated based on order status information, and a reference bill for reconciliation is generated to improve the reconciliation reliability between the payment system and the merchant terminal.

Benefits of technology

It improves the reconciliation reliability between the payment system and the merchant terminal, ensures the accuracy and consistency of billing data, and solves the reconciliation difficulties caused by complex payment scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119067647A_ABST
    Figure CN119067647A_ABST
Patent Text Reader

Abstract

The account checking method and device for the payment system, the equipment and the medium provided by the embodiment of the invention comprise the following steps: generating a first bill according to received first order data of successful payment of each payment terminal; obtaining second order data from the database of each payment terminal, and generating a second bill according to the second order data; according to the order information corresponding to each label identifier in the first bill and the order information corresponding to each label identifier in the second bill, determining a non-posted second sub-bill; and determining a first target bill according to the non-posted second sub-bill and the order state information corresponding to the order state label identifier of the non-posted second sub-bill. The first bill is updated, the first target bill is obtained, the obtained first target bill is the reference bill for account checking between the payment system and the merchant terminal, and the reliability of account checking between the payment system and the merchant terminal is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of computer technology and related technologies, and in particular to a reconciliation method, device, equipment and medium applicable to a payment system. Background Art

[0002] Payment is an indispensable part of campus life and a key link in the closed loop of the campus ecological model.

[0003] In the traditional era, campus payment scenarios were concentrated offline, and payment was mainly made through cash and swiping campus cards. Today, in the era of mobile Internet, new payment methods such as mobile payment, WeChat, Alipay, code scanning, face scanning payment, and electronic receipts are increasingly accepted by the public, and their share of business continues to increase. Payment scenarios in the triple space of cards, codes, and faces coexist and overlap with each other. Campus payment users are distributed at various traffic entrances offline, PC, and mobile terminals at the same time, and the payment scenarios involved have also collapsed and fragmented. The changes in payment scenarios make the payment settlement system more complicated, which in turn leads to certain difficulties in reconciliation between payment institutions and merchant terminals. Summary of the invention

[0004] The embodiments described herein provide a payment system reconciliation method, apparatus, device, and medium to solve the problems existing in the prior art.

[0005] In a first aspect, according to the present disclosure, a payment system reconciliation method is provided, comprising:

[0006] Generate a first bill according to the first order data received from each payment terminal that has been successfully paid, wherein the first bill includes a plurality of first sub-bills, and the bill information of the first bill includes an order label identifier, an order time label identifier, an order merchant label identifier, an order amount label identifier, and order information corresponding to each label identifier;

[0007] Acquire the second order data from the database of each payment terminal, and generate a second bill according to the second order data, wherein the second bill includes a plurality of second sub-bills, and the bill information of the second bill includes an order time label identifier, an order merchant label identifier, an order amount label identifier, an order status label identifier, and order information corresponding to each label identifier;

[0008] Determine the uncredited second sub-bill according to the order information corresponding to each tag identifier in the first bill and the order information corresponding to each tag identifier in the second bill;

[0009] The first target bill is determined according to the unbilled second sub-bill and the order status information corresponding to the order status tag identifier of the unbilled second sub-bill.

[0010] In some embodiments of the present disclosure, it also includes:

[0011] Acquire third order data from a database of the merchant terminal, and generate a third bill according to the third order data, wherein the third order data includes an order time label identifier, an order merchant label identifier, an order amount label identifier, an order status label identifier, and order information corresponding to each label identifier;

[0012] Reconcile the first target bill with the third bill and generate a third target bill.

[0013] In some embodiments of the present disclosure, determining the uncredited second sub-bill according to the order information corresponding to each tag identifier in the first bill and the order information corresponding to each tag identifier in the second bill includes:

[0014] Determine, according to the order information corresponding to each tag identifier in the first invoice and the order information corresponding to each tag identifier in the second invoice, an association relationship between a first sub-bill in the first invoice and a second sub-bill in the second invoice;

[0015] According to the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill, it is determined that the second sub-bill has not been credited.

[0016] In some embodiments of the present disclosure, determining the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill according to the order information corresponding to each tag identifier in the first bill and the order information corresponding to each tag identifier in the second bill includes:

[0017] sorting the first sub-bills according to the order time corresponding to the order time tag identifier of each first sub-bill in the first bill, and selecting one first sub-bill as the first target sub-bill in turn based on the sorting result of the first sub-bills;

[0018] Selecting from the second bills a plurality of second sub-bills having the same order time as that corresponding to the order time tag identifier of the first target sub-bill to form a second sub-bill group;

[0019] When the order merchant code corresponding to the order merchant tag identifier of the second target sub-bill is the same as the order merchant code corresponding to the order merchant tag identifier of the first target sub-bill and the order time corresponding to the order time tag identifier of the second target sub-bill is the same as the order time corresponding to the order time tag identifier of the first target sub-bill, an association relationship is established between the second target sub-bill and the first target sub-bill, wherein the second target sub-bill is a second sub-bill in the second sub-bill group.

[0020] In some embodiments of the present disclosure, determining the uncredited second sub-bill according to the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill includes:

[0021] According to the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill, obtaining from the second bill the second sub-bill that is not associated with each first sub-bill in the first bill;

[0022] According to the second sub-bill in the second bill which has not established an association relationship with each first sub-bill in the first bill, it is determined that the second sub-bill has not been recorded.

[0023] In some embodiments of the present disclosure, determining the first target bill according to the unbilled second sub-bill and the order status information corresponding to the order status tag identifier of the unbilled second sub-bill includes:

[0024] Obtaining order status information corresponding to the order status tag identifier of the uncredited second sub-bill;

[0025] Determine the second sub-bill to be credited according to the order status information corresponding to the order status tag identifier of the second sub-bill that has not been credited;

[0026] The bill information corresponding to the second sub-bill to be credited is added to the first bill to obtain a first target bill.

[0027] In some embodiments of the present disclosure, determining the second sub-bill to be credited according to the order status information corresponding to the order status tag identifier of the uncredited second sub-bill includes:

[0028] When the order status information corresponding to the order status tag identifier of the uncredited second sub-bill is overdue payment, determining that the unpaid second sub-bill is a second sub-bill to be credited;

[0029] When the order status information corresponding to the order status tag identifier of the uncredited second sub-bill is unpaid and payment failed, the unpaid second sub-bill is determined to be a non-pending second sub-bill.

[0030] In a second aspect, according to the present disclosure, a reconciliation device of a payment system is provided, comprising:

[0031] A first bill generating module, configured to generate a first bill according to first order data received from each payment terminal that has been successfully paid, wherein the first bill includes a plurality of first sub-bills, and the bill information of the first bill includes an order label identifier, an order time label identifier, an order merchant label identifier, an order amount label identifier, and order information corresponding to each label identifier;

[0032] A second bill generating module, configured to obtain second order data from a database of each of the payment terminals, and generate a second bill according to the second order data, wherein the second bill includes a plurality of second sub-bills, and the bill information of the second bill includes an order time label identifier, an order merchant label identifier, an order amount label identifier, an order status label identifier, and order information corresponding to each label identifier;

[0033] An uncredited second sub-bill determining module, configured to determine an uncredited second sub-bill based on order information corresponding to each tag identifier in the first bill and order information corresponding to each tag identifier in the second bill;

[0034] The first target bill determination module is used to determine the first target bill according to the uncredited second sub-bill and the order status information corresponding to the order status tag identifier of the uncredited second sub-bill.

[0035] In a third aspect, according to the present disclosure, there is provided a computer device, including:

[0036] one or more processors;

[0037] a storage device for storing one or more programs,

[0038] When the one or more programs are executed by the one or more processors, the one or more processors implement any method as described in the first aspect.

[0039] In a fourth aspect, according to the content of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, it implements any method as described in the first aspect.

[0040] The payment system reconciliation method, device, equipment and medium provided by the embodiment of the present disclosure generates a first bill according to the first order data of each payment terminal successfully paid received; obtains the second order data from the database of each payment terminal, and generates the second bill according to the second order data; determines the unrecorded second sub-bill according to the order information corresponding to each tag identifier in the first bill and the order information corresponding to each tag identifier in the second bill; determines the first target bill according to the order status information corresponding to the order status tag identifier of the unrecorded second sub-bill and the order status tag identifier of the unrecorded second sub-bill. Based on the order information corresponding to each tag identifier in the determined first bill and the order information corresponding to each tag identifier in the second bill, the unrecorded second sub-bill is determined, and then the second sub-bill to be recorded can be screened out from the unrecorded second sub-bill, and then the bill information corresponding to the screened second sub-bill to be recorded is added to the first bill to update the first bill, and the first target bill is obtained. The obtained first target bill is a reference bill for the payment system to reconcile with the merchant terminal, thereby improving the reliability of the reconciliation between the payment system and the merchant terminal.

[0041] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure, wherein:

[0043] Figure 1 It is a flowchart of a reconciliation method of a payment system provided by an embodiment of the present disclosure;

[0044] Figure 2 It is a structural schematic diagram of a reconciliation device of a payment system provided by an embodiment of the present disclosure;

[0045] Figure 3 It is a structural diagram of a computer device provided in an embodiment of the present disclosure.

[0046] In the drawings, reference numerals with the same last two digits correspond to the same elements. It should be noted that the elements in the drawings are schematic and not drawn to scale. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.

[0048] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by a person skilled in the art to which the subject matter of the present disclosure belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the specification and the relevant art, and will not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together directly or through one or more intermediate components.

[0049] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiments" in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0050] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists, A and B exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0051] Furthermore, in all embodiments of the present disclosure, terms such as “first” and “second” are used only to distinguish one component (or a part of a component) from another component (or another part of a component).

[0052] In the description of the present application, unless otherwise specified, "plurality" means more than two (including two), and similarly, "multiple groups" means more than two groups (including two).

[0053] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0054] Based on the problems existing in the prior art, the present disclosure provides a payment system reconciliation method. Figure 1 is a flow chart of a reconciliation method of a payment system provided in an embodiment of the present disclosure, such as Figure 1 As shown, the payment system reconciliation methods include:

[0055] S110: Generate a first bill based on first order data received from each payment terminal that has successfully paid.

[0056] Among them, the first bill includes multiple first sub-bills, and the billing information of the first bill includes an order label identifier, an order time label identifier, an order merchant label identifier, an order amount label identifier, and order information corresponding to each label identifier.

[0057] In the reconciliation method of the payment system provided in the embodiment of the present disclosure, the payment system is communicated with the payment terminal and the merchant terminal respectively, the payment terminal includes at least a first payment terminal, a second payment terminal and a third payment terminal, students' consumption orders on campus are paid through the payment terminal, the merchant terminal is communicated with the merchants covered by the campus, and the merchant terminal can obtain the incoming orders of the merchants covered by the campus.

[0058] In the reconciliation method of the payment system provided in the embodiment of the present disclosure, order data of successful payment by the payment terminal will be submitted to the payment system, and the order data of successful payment by the payment terminal is also the first order data. The first order data includes multiple first sub-order data, that is, one order data successfully paid by the payment terminal is a first sub-order data in the first order data. The payment system generates a first bill based on the first order data submitted by the payment terminal, and one first sub-bill in the first bill corresponds to a bill for one first sub-order data. Since each first sub-order data includes an order code, an order time, an order merchant code and an order amount, the first bill generated based on the first order data includes an order label identifier, an order time label identifier, an order merchant label identifier, an order amount label identifier and order information corresponding to each label identifier, wherein the order information corresponding to the order label identifier is the order code, the order information corresponding to the order time label identifier is the order time, the order information corresponding to the order merchant label identifier is the order merchant code, and the order information corresponding to the order amount label identifier is the order amount.

[0059] S120: Acquire second order data from a database of each payment terminal, and generate a second bill according to the second order data.

[0060] Among them, the second bill includes multiple second sub-bills, and the billing information of the second bill includes an order time label identifier, an order merchant label identifier, an order amount label identifier, an order status label identifier, and the order information corresponding to each label identifier.

[0061] The payment system generates a first bill based on the first order data received and submitted by each payment terminal, and obtains second order data from the database of the payment terminal and generates a second bill based on the second order data.

[0062] Since the second order data stored in the database of the payment terminal includes all order data submitted by students, the multiple second sub-bills included in the second bill may include bills corresponding to successfully paid orders, orders to be paid, failed payment orders and timed payment orders. Therefore, compared with the first bill generated based on the first order data, the second bill generated based on the second order data includes a greater number of second sub-bills than the first sub-bills included in the first bill.

[0063] S130. Determine the uncredited second sub-bill based on the order information corresponding to each tag identifier in the first invoice and the order information corresponding to each tag identifier in the second invoice.

[0064] In a specific implementation, the second sub-bill that has not been recorded is determined based on the order information corresponding to each label identifier in the first bill and the order information corresponding to each label identifier in the second bill, including: determining the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill based on the order information corresponding to each label identifier in the first bill and the order information corresponding to each label identifier in the second bill; determining the second sub-bill that has not been recorded based on the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill.

[0065] Among them, according to the order information corresponding to each label identifier in the first bill and the order information corresponding to each label identifier in the second bill, the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill is determined, including: sorting the first sub-bills according to the order time corresponding to the order time label identifier of each first sub-bill in the first bill, and selecting one first sub-bill as the first target sub-bill in turn based on the sorting result of the first sub-bill; selecting multiple second sub-bills with the same order time corresponding to the order time label identifier of the first target sub-bill from the second bill to form a second sub-bill group; when the order merchant code corresponding to the order merchant label identifier of the second target sub-bill is the order merchant code corresponding to the order merchant label identifier of the first target sub-bill and the order time corresponding to the order time label identifier of the second target sub-bill is the same as the order time corresponding to the order time label identifier of the first target sub-bill, an association relationship is established between the second target sub-bill and the first target sub-bill, wherein the second target sub-bill is a second sub-bill in the second sub-bill group.

[0066] Since both the first bill and the second bill include an order time tag identifier, an order merchant tag identifier and an order amount tag identifier, the association relationship between the first sub-bill and the second sub-bill can be determined by matching the order time corresponding to the order time tag identifier of the first sub-bill of the first bill with the order time corresponding to the order time tag identifier of the second sub-bill of the second bill, the order merchant code corresponding to the order merchant tag identifier of the first sub-bill of the first bill with the order merchant code corresponding to the order merchant tag identifier of the second sub-bill of the second bill, and the order amount corresponding to the order amount tag identifier of the first sub-bill of the first bill with the order amount corresponding to the order amount tag identifier of the second sub-bill of the second bill, to determine whether the first sub-bill and the second sub-bill are generated from the same order data.

[0067] As a preferred implementation, in the embodiment of the present disclosure, in the process of determining the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill, firstly, the first sub-bills in the first bill are sorted according to the order time corresponding to the order time tag identifier of each first sub-bill in the first bill, and then, based on the sorting result of the first sub-bill, one first sub-bill is selected each time as the first target sub-bill to match with the second sub-bill in the second bill.

[0068] Since the second bill is determined based on the second order data in the database of the payment terminal, and the second order data includes all order data submitted by the student, the multiple second sub-bills included in the second bill may include bills corresponding to successfully paid orders, pending payment orders, failed payment orders, and timed payment orders. Therefore, the number of second sub-bills included in the second bill is compared with the number of first sub-bills included in the first bill. By screening out multiple second sub-bills with the same order time as the order time tag identifier of the first target sub-bill from the second bill to form a second sub-bill group, in the process of determining the second target sub-bill matching the first target sub-bill, the second target sub-bill matching the first target sub-bill can be determined from the second sub-bill group, thereby improving the efficiency of determining the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill.

[0069] Specifically, when the second sub-bill group includes a second sub-bill, the order merchant code corresponding to the order merchant tag identifier of the second sub-bill is the same as the order merchant code corresponding to the order merchant tag identifier of the first target sub-bill, and the order time corresponding to the order time tag identifier of the second sub-bill is the same as the order time corresponding to the order time tag identifier of the first target sub-bill, then the second sub-bill is a second target sub-bill that has an associated relationship with the first target sub-bill.

[0070] In addition, in an embodiment of the present disclosure, determining the un-accounted second sub-bill based on the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill includes: obtaining the second sub-bill that has not established an association relationship with each first sub-bill in the first bill from the second bill based on the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill; determining the sub-bill to be accounted based on the second sub-bill in the second bill that has not established an association relationship with each first sub-bill in the first bill.

[0071] Since the first bill is generated based on the first order data, the first order data is the first order data of successful payment by the payment terminal, and the second bill is generated based on the second order data, the second order data is obtained from the database of the payment terminal, and the second order data includes data corresponding to successfully paid orders, orders to be paid, failed payment orders and timed payment orders, therefore, compared with the first bill generated based on the first order data, the second bill generated based on the second order data includes a greater number of second sub-bills than the first bill generated based on the first order data.

[0072] After determining the association between the first sub-bill in the first bill and the second sub-bill in the second bill, there will be some second sub-bills in the second bill that are not associated with the first sub-bill in the first bill, for example, the second sub-bills corresponding to the pending payment orders, payment failure orders and timed payment orders are not associated with the first sub-bill in the first bill, wherein the pending payment orders and payment failure orders do not participate in the reconciliation, and the timed payment orders are due to the user's payment timeout, and the payment system performs multiple pollings within the payment time, but still does not receive the payment success message from the payment terminal. Therefore, the generated first bill does not include the first sub-bill corresponding to the timed payment order, and the timed payment order will participate in the reconciliation. Therefore, before determining the first target bill, the second sub-bill that has not established an association relationship with each first sub-bill in the first bill is obtained from the second bill to determine the unrecorded second sub-bill, and the unrecorded second sub-bill includes the second sub-bill corresponding to the order status information corresponding to the order status label identifier as timed payment, unpaid and payment failure.

[0073] S140: Determine the first target bill according to the uncredited second sub-bill and the order status information corresponding to the order status tag identifier of the uncredited second sub-bill.

[0074] In a specific implementation, the first target bill is determined based on the order status information corresponding to the order status label identifier of the uncredited second sub-bill and the uncredited second sub-bill, including: obtaining the order status information corresponding to the order status label identifier of the uncredited second sub-bill; determining the second sub-bill to be credited based on the order status information corresponding to the order status label identifier of the uncredited second sub-bill; and adding the bill information corresponding to the second sub-bill to be credited to the first bill to obtain the first target bill.

[0075] Among them, the second sub-bill to be credited is determined according to the order status information corresponding to the order status label identifier of the uncredited second sub-bill, including: when the order status information corresponding to the order status label identifier of the uncredited second sub-bill is timed out payment, the unpaid second sub-bill is determined to be the second sub-bill to be credited; when the order status information corresponding to the order status label identifier of the uncredited second sub-bill is unpaid and payment failed, the unpaid second sub-bill is determined to be a second sub-bill not to be credited.

[0076] The billing information of the second bill includes an order time tag identifier, an order merchant tag identifier, an order amount tag identifier and an order status tag identifier. The order status of multiple second sub-bills in the second bill can be determined through the order status of multiple second sub-bills in the second bill. Through the order status of multiple second sub-bills in the second bill, the second sub-bills to be credited can be screened out from the uncredited second sub-bills, and then the billing information corresponding to the screened second sub-bills to be credited is added to the first bill to update the first bill and obtain the first target bill. The obtained first target bill is a reference bill for reconciliation between the payment system and the merchant terminal, thereby improving the reliability of reconciliation between the payment system and the merchant terminal.

[0077] The payment system reconciliation method provided by the embodiment of the present disclosure generates a first bill according to the first order data of each payment terminal that has been successfully paid; obtains the second order data from the database of each payment terminal, and generates a second bill according to the second order data; determines the unrecorded second sub-bill according to the order information corresponding to each tag identifier in the first bill and the order information corresponding to each tag identifier in the second bill; determines the first target bill according to the order status information corresponding to the unrecorded second sub-bill and the order status tag identifier of the unrecorded second sub-bill. Based on the order information corresponding to each tag identifier in the determined first bill and the order information corresponding to each tag identifier in the second bill, the unrecorded second sub-bill is determined, and then the second sub-bill to be recorded can be screened out from the unrecorded second sub-bill, and then the bill information corresponding to the screened second sub-bill to be recorded is added to the first bill to update the first bill and obtain the first target bill. The obtained first target bill is a reference bill for the payment system to reconcile with the merchant terminal, thereby improving the reliability of the reconciliation between the payment system and the merchant terminal.

[0078] On the basis of the above embodiments, the method provided by the embodiments of the present disclosure also includes: obtaining third order data from the database of the merchant terminal, and generating a third bill based on the third order data, wherein the third order data includes an order time label identifier, an order merchant label identifier, an order amount label identifier, an order status label identifier, and order information corresponding to each label identifier; reconciling the third bill with the first target bill, and generating a third target bill.

[0079] After the first target bill is determined, the first target bill is used as a benchmark to reconcile with the third bill generated based on the third order data obtained from the database of the merchant terminal, so as to update the third bill and obtain the third target bill. Then, when the target merchant needs to make a bill query, the bill data of the target merchant is obtained from the third target bill to ensure the accuracy of the provided bill data.

[0080] It should be noted that the process of obtaining the third target bill by reconciling the first target bill with the third bill is the same as the process of obtaining the first target bill by updating the first bill based on the second bill, and the embodiments of the present disclosure do not provide specific examples for this.

[0081] Based on the above embodiments, the present disclosure also provides a payment system reconciliation device. Figure 2 is a schematic diagram of the structure of the reconciliation device of the payment system provided by the embodiment of the present disclosure, such as Figure 2 As shown, the reconciliation device of the payment system includes:

[0082] A first bill generating module 210 is used to generate a first bill according to the first order data of each payment terminal that has been successfully paid, wherein the first bill includes a plurality of first sub-bills, and the bill information of the first bill includes an order label identifier, an order time label identifier, an order merchant label identifier, an order amount label identifier, and order information corresponding to each label identifier;

[0083] The second bill generating module 220 is used to obtain the second order data from the database of each payment terminal, and generate a second bill according to the second order data, wherein the second bill includes a plurality of second sub-bills, and the bill information of the second bill includes an order time label identifier, an order merchant label identifier, an order amount label identifier, an order status label identifier, and order information corresponding to each label identifier;

[0084] An uncredited second sub-bill determining module 230 is used to determine an uncredited second sub-bill based on order information corresponding to each tag identifier in the first bill and order information corresponding to each tag identifier in the second bill;

[0085] The first target bill determining module 240 is used to determine the first target bill according to the uncredited second sub-bill and the order status information corresponding to the order status tag identifier of the uncredited second sub-bill.

[0086] The reconciliation device of the payment system provided by the embodiment of the present disclosure generates a first bill according to the first order data of each payment terminal that has been successfully paid; obtains the second order data from the database of each payment terminal, and generates the second bill according to the second order data; determines the unrecorded second sub-bill according to the order information corresponding to each tag identifier in the first bill and the order information corresponding to each tag identifier in the second bill; determines the first target bill according to the order status information corresponding to the order status tag identifier of the unrecorded second sub-bill and the order status tag identifier of the unrecorded second sub-bill. Based on the order information corresponding to each tag identifier in the determined first bill and the order information corresponding to each tag identifier in the second bill, the unrecorded second sub-bill is determined, and then the second sub-bill to be recorded can be screened out from the unrecorded second sub-bill, and then the bill information corresponding to the screened second sub-bill to be recorded is added to the first bill to update the first bill and obtain the first target bill. The obtained first target bill is a reference bill for the payment system to reconcile with the merchant terminal, thereby improving the reliability of the reconciliation between the payment system and the merchant terminal.

[0087] In a specific embodiment, it also includes:

[0088] Acquire the third order data from the database of the merchant terminal, and generate a third bill according to the third order data, wherein the third order data includes an order time label identifier, an order merchant label identifier, an order amount label identifier, an order status label identifier, and order information corresponding to each label identifier;

[0089] The first target bill is reconciled with the third bill, and a third target bill is generated.

[0090] In a specific implementation manner, determining the uncredited second sub-bill according to the order information corresponding to each tag identifier in the first bill and the order information corresponding to each tag identifier in the second bill includes:

[0091] Determine, based on the order information corresponding to each tag identifier in the first invoice and the order information corresponding to each tag identifier in the second invoice, an association relationship between a first sub-invoice in the first invoice and a second sub-invoice in the second invoice;

[0092] According to the association between the first sub-bill in the first bill and the second sub-bill in the second bill, it is determined that the second sub-bill has not been recorded.

[0093] In a specific implementation, determining the association relationship between a first sub-bill in the first bill and a second sub-bill in the second bill according to order information corresponding to each tag identifier in the first bill and order information corresponding to each tag identifier in the second bill includes:

[0094] The first sub-bills are sorted according to the order time corresponding to the order time tag identifier of each first sub-bill in the first bill, and one first sub-bill is selected in turn as the first target sub-bill based on the sorting result of the first sub-bills;

[0095] Selecting from the second bills a plurality of second sub-bills having the same order time as that corresponding to the order time tag identifier of the first target sub-bill to form a second sub-bill group;

[0096] When the order merchant code corresponding to the order merchant tag identifier of the second target sub-bill is the same as the order merchant code corresponding to the order merchant tag identifier of the first target sub-bill and the order time corresponding to the order time tag identifier of the second target sub-bill is the same as the order time corresponding to the order time tag identifier of the first target sub-bill, an association relationship is established between the second target sub-bill and the first target sub-bill, wherein the second target sub-bill is a second sub-bill in the second sub-bill group.

[0097] In a specific implementation manner, determining the uncredited second sub-bill according to the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill includes:

[0098] According to the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill, obtaining from the second bill a second sub-bill which is not associated with each first sub-bill in the first bill;

[0099] According to the second sub-bill in the second bill that has not established an association relationship with each first sub-bill in the first bill, it is determined that the second sub-bill has not been recorded.

[0100] In a specific implementation, determining the first target bill according to the uncredited second sub-bill and the order status information corresponding to the order status tag identifier of the uncredited second sub-bill includes:

[0101] Get the order status information corresponding to the order status tag identifier of the second sub-bill that has not been credited;

[0102] Determine the second sub-bill to be credited according to the order status information corresponding to the order status tag identifier of the second sub-bill that has not been credited;

[0103] The bill information corresponding to the second sub-bill to be credited is added to the first bill to obtain the first target bill.

[0104] In a specific implementation manner, determining the second sub-bill to be credited according to the order status information corresponding to the order status tag identifier of the uncredited second sub-bill includes:

[0105] When the order status information corresponding to the order status tag identifier of the uncredited second sub-bill is timed payment, determining the unpaid second sub-bill as the second sub-bill to be credited;

[0106] When the order status information corresponding to the order status label identifier of the uncredited second sub-bill is unpaid and payment failed, the unpaid second sub-bill is determined to be a second sub-bill not to be credited.

[0107] The present application also provides a computer device. Figure 3 , Figure 3 This is a basic structural block diagram of the computer device in this embodiment.

[0108] The computer device includes a memory 510 and a processor 520 that are connected to each other through a system bus. It should be noted that the figure only shows a computer device with components 510-520, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0109] Computer devices can be computing devices such as desktop computers, notebooks, PDAs, and cloud servers. Computer devices can interact with users through keyboards, mice, remote controls, touch pads, or voice control devices.

[0110] The memory 510 includes at least one type of readable storage medium, and the readable storage medium includes a non-volatile memory or a volatile memory, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc., and the RAM may include a static RAM or a dynamic RAM. In some embodiments, the memory 510 may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device. In other embodiments, the memory 510 may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, or a flash card (Flash Card), etc., equipped on the computer device. Of course, the memory 510 may also include both an internal storage unit of the computer device and an external storage device thereof. In this embodiment, the memory 510 is generally used to store an operating system and various application software installed on the computer device, such as the program code of the above method, etc. In addition, the memory 510 may also be used to temporarily store various data that have been output or are to be output.

[0111] The processor 520 is generally used to perform the overall operation of the computer device. In this embodiment, the memory 510 is used to store program codes or instructions, the program code includes computer operation instructions, and the processor 520 is used to execute the program codes or instructions stored in the memory 510 or process data, such as running the program code of the above method.

[0112] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0113] Another embodiment of the present application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads a computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or a combination of steps in the above method; and generate a device for implementing the functional actions specified in each block or a combination of blocks in the block diagram.

[0114] Computer-readable media include but are not limited to electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any appropriate combination of the foregoing, the memory is used to store program codes or instructions, the program codes include computer operating instructions, and the processor is used to execute the program codes or instructions of the above methods stored in the memory.

[0115] For the definitions of memory and processor, please refer to the description of the aforementioned computer device embodiment and will not be repeated here.

[0116] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0117] Each functional unit or module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0118] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0119] Unless the context clearly indicates otherwise, the singular form of the words used herein and in the appended claims includes the plural and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the words "comprise" and "include" are to be interpreted as inclusive rather than exclusive. Likewise, the terms "include" and "or" should be interpreted as inclusive unless such interpretation is expressly prohibited herein. Where the term "example" is used herein, particularly when it is located after a group of terms, the "example" is merely exemplary and illustrative and should not be considered exclusive or comprehensive.

[0120] Further aspects and scopes of adaptability become apparent from the description provided herein. It should be understood that various aspects of the present application can be implemented individually or in combination with one or more other aspects. It should also be understood that the description and specific embodiments herein are intended for purposes of illustration only and are not intended to limit the scope of the present application.

[0121] Several embodiments of the present disclosure are described in detail above, but it is obvious that those skilled in the art can make various modifications and variations to the embodiments of the present disclosure without departing from the spirit and scope of the present disclosure. The protection scope of the present disclosure is defined by the attached claims.

Claims

1. A payment system reconciliation method, It is characterized in that include: Generate a first bill according to the first order data received from each payment terminal that has been successfully paid, wherein the first bill includes a plurality of first sub-bills, and the bill information of the first bill includes an order label identifier, an order time label identifier, an order merchant label identifier, an order amount label identifier, and order information corresponding to each label identifier; Acquire the second order data from the database of each payment terminal, and generate a second bill according to the second order data, wherein the second bill includes a plurality of second sub-bills, and the bill information of the second bill includes an order time label identifier, an order merchant label identifier, an order amount label identifier, an order status label identifier, and order information corresponding to each label identifier; Determine the uncredited second sub-bill according to the order information corresponding to each tag identifier in the first bill and the order information corresponding to each tag identifier in the second bill; The first target bill is determined according to the unbilled second sub-bill and the order status information corresponding to the order status tag identifier of the unbilled second sub-bill.

2. The method according to claim 1, It is characterized in that Also includes: Acquire third order data from a database of the merchant terminal, and generate a third bill according to the third order data, wherein the third order data includes an order time label identifier, an order merchant label identifier, an order amount label identifier, an order status label identifier, and order information corresponding to each label identifier; Reconcile the first target bill with the third bill and generate a third target bill.

3. The method according to claim 1, It is characterized in that The determining the uncredited second sub-bill according to the order information corresponding to each tag identifier in the first bill and the order information corresponding to each tag identifier in the second bill includes: Determine, according to the order information corresponding to each tag identifier in the first invoice and the order information corresponding to each tag identifier in the second invoice, an association relationship between a first sub-bill in the first invoice and a second sub-bill in the second invoice; According to the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill, it is determined that the second sub-bill has not been credited.

4. The method according to claim 3, It is characterized in that The determining, according to the order information corresponding to each tag identifier in the first bill and the order information corresponding to each tag identifier in the second bill, an association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill includes: sorting the first sub-bills according to the order time corresponding to the order time tag identifier of each first sub-bill in the first bill, and selecting one first sub-bill as the first target sub-bill in turn based on the sorting result of the first sub-bills; Selecting from the second bills a plurality of second sub-bills having the same order time as that corresponding to the order time tag identifier of the first target sub-bill to form a second sub-bill group; When the order merchant code corresponding to the order merchant tag identifier of the second target sub-bill is the same as the order merchant code corresponding to the order merchant tag identifier of the first target sub-bill and the order time corresponding to the order time tag identifier of the second target sub-bill is the same as the order time corresponding to the order time tag identifier of the first target sub-bill, an association relationship is established between the second target sub-bill and the first target sub-bill, wherein the second target sub-bill is a second sub-bill in the second sub-bill group.

5. The method according to claim 3, It is characterized in that The determining the uncredited second sub-bill according to the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill includes: According to the association relationship between the first sub-bill in the first bill and the second sub-bill in the second bill, obtaining from the second bill the second sub-bill that is not associated with each first sub-bill in the first bill; According to the second sub-bill in the second bill which has not established an association relationship with each first sub-bill in the first bill, it is determined that the second sub-bill has not been recorded.

6. The method according to claim 1, It is characterized in that The determining the first target bill according to the uncredited second sub-bill and the order status information corresponding to the order status tag identifier of the uncredited second sub-bill includes: Obtaining order status information corresponding to the order status tag identifier of the uncredited second sub-bill; Determine the second sub-bill to be credited according to the order status information corresponding to the order status tag identifier of the second sub-bill that has not been credited; The bill information corresponding to the second sub-bill to be credited is added to the first bill to obtain a first target bill.

7. The method according to claim 6, It is characterized in that The determining the second sub-bill to be credited according to the order status information corresponding to the order status tag identifier of the uncredited second sub-bill includes: When the order status information corresponding to the order status tag identifier of the uncredited second sub-bill is overdue payment, determining that the unpaid second sub-bill is a second sub-bill to be credited; When the order status information corresponding to the order status tag identifier of the uncredited second sub-bill is unpaid and payment failed, the unpaid second sub-bill is determined to be a non-pending second sub-bill.

8. A reconciliation device for a payment system, It is characterized in that include: A first bill generating module, configured to generate a first bill according to first order data received from each payment terminal that has been successfully paid, wherein the first bill includes a plurality of first sub-bills, and the bill information of the first bill includes an order label identifier, an order time label identifier, an order merchant label identifier, an order amount label identifier, and order information corresponding to each label identifier; A second bill generating module, configured to obtain second order data from a database of each of the payment terminals, and generate a second bill according to the second order data, wherein the second bill includes a plurality of second sub-bills, and the bill information of the second bill includes an order time label identifier, an order merchant label identifier, an order amount label identifier, an order status label identifier, and order information corresponding to each label identifier; An uncredited second sub-bill determining module, configured to determine an uncredited second sub-bill based on order information corresponding to each tag identifier in the first bill and order information corresponding to each tag identifier in the second bill; The first target bill determination module is used to determine the first target bill according to the uncredited second sub-bill and the order status information corresponding to the order status tag identifier of the uncredited second sub-bill.

9. A computer device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.