Balance sharing method and system for splitting order
By responding to the merchant’s account split request, determining and matching the unsubscribed amount of the order to be distributed, and performing the account split operation at the payment institution, the cumbersome and inflexible account splitting in the existing technology is solved, and efficient and accurate fund splitting and management is achieved.
Patent Information
- Application Number
- CN202510448770.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-10
- Publication Date
- 2025-07-11
AI Technical Summary
In the prior art, non-bank acquiring institutions and banking institutions have problems such as cumbersome interface calls, accounting division exceeds the time limit, not suitable for complex accounting division rules scenarios, and lack of flexibility, and the collection orders and account flow are lacking direct correlation.
By responding to the business request of the merchant side, the remaining undistributed amount of the order to be distributed is determined, and the amount to be distributed is matched based on the amount and the set amount of the merchant side is set, the matching result is generated, and sent to the payment institution to perform the split operation, and determine whether the split is completed based on the split result, and the set split amount is injected into the account of the payment institution.
It realizes accurate fund sharing, improves the efficiency of account sharing, ensures the accuracy of fund management and supervision, is applicable to complex account sharing rules and scenarios, and improves the flexibility and efficiency of account sharing.
Smart Images

Figure CN120298090A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and particularly to a balance sharing method and system for splitting orders in the technical field of data processing. Background Art
[0002] At present, there are mainly the following two ways for non-bank acquiring institutions and bank institutions to share the account funds: sharing the funds to the sharing parties on demand based on payment orders and performing the sharing according to the payment orders; or after pooling the acquiring funds into one account, sharing the funds to the sharing parties on demand by means of balance payment or transfer and performing the sharing according to the account balance. However, when performing the sharing according to payment orders, there are problems such as cumbersome interface calls, sharing exceeding the time limit, inapplicability to complex sharing rule scenarios, and lack of flexibility. When performing the sharing according to the account balance, there is no direct association between the collection order and the account flow, only the final flow of funds. Summary of the Invention
[0003] The purpose of the present invention is to provide a balance sharing method and system for splitting orders, and the specific technical solutions adopted are as follows:
[0004] In a first aspect, an embodiment of the present invention provides a balance sharing method for splitting orders, and the method includes:
[0005] Responding to a sharing service request sent by a merchant side, determining the remaining unshared amount of the current order to be shared;
[0006] Based on the remaining unshared amount and the set sharing amount of the merchant side, performing a sharing service matching on the sharing object specified by the merchant side to obtain a matching result;
[0007] Sending the sharing service request and the matching result to a payment institution so that the payment institution performs a sharing operation;
[0008] Based on the sharing result returned by the payment institution, determining whether the sharing is completed;
[0009] Responding to the sharing result indicating that the sharing is completed, injecting the set sharing amount into the account of the sharing object in the payment institution.
[0010] In a second aspect, a balance sharing system for splitting orders is provided, and the balance sharing system for splitting orders includes:
[0011] A first determination module, configured to respond to a sharing service request sent by a merchant side and determine the remaining unshared amount of the current order to be shared;
[0012] A matching module, configured to perform a splitting business matching on the objects to be split specified by the merchant side based on the remaining unsplit amount and the set splitting amount on the merchant side, so as to obtain a matching result;
[0013] A sending module, configured to send the splitting business request and the matching result to a payment institution, so that the payment institution performs a splitting operation;
[0014] A second determination module, configured to determine whether the splitting is completed based on the splitting result returned by the payment institution;
[0015] An injection module, configured to inject the set splitting amount into the account of the object to be split in the payment institution in response to the splitting result indicating that the splitting is completed.
[0016] In a third aspect, a computer program product is provided, which includes: computer program code, when the computer program code runs on a computer, enabling the computer to execute the method in the first aspect or any one of the possible implementation manners described in the first aspect.
[0017] In a fourth aspect, a computer-readable storage medium is provided, which stores computer program code, when the computer program code runs on a computer, enabling the computer to execute the method in the first aspect or any one of the possible implementation manners described in the first aspect.
[0018] The present invention has the following beneficial effects: In response to a splitting business request sent by the merchant side, the background can accurately determine the remaining unsplit amount of the current order to be split; and perform a splitting business matching on the objects to be split specified by the merchant side based on the remaining unsplit amount and the set splitting amount on the merchant side, so as to obtain a matching result; in this way, the remaining unsplit amount and the set splitting amount on the merchant side can be made more matched. Then, the splitting business request and the matching result are sent to the payment institution, so that the payment institution performs a splitting operation; and it is determined whether the splitting is completed based on the splitting result returned by the payment institution; if the splitting result indicates that the splitting is completed, the set splitting amount is injected into the account of the object to be split in the payment institution. In this way, after the merchant side completes order collection, the splitting of funds can be completed through this splitting method, improving the efficiency of splitting, and at the same time realizing the supervision and management of funds. Description of the Drawings
[0019] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0020] Figure 1 It is a schematic diagram of the implementation process of a balance sharing method for split orders provided by an embodiment of the present invention;
[0021] Figure 2 It is another schematic diagram of the implementation process of a balance sharing method for split orders provided by an embodiment of the present invention;
[0022] Figure 3 It is yet another schematic diagram of the implementation process of a balance sharing method for split orders provided by an embodiment of the present invention;
[0023] Figure 4 It is a schematic diagram of the application scenario of a balance sharing method for split orders provided by an embodiment of the present invention;
[0024] Figure 5 It is still another schematic diagram of the implementation process of a balance sharing method for split orders provided by an embodiment of the present invention;
[0025] Figure 6 It is a schematic diagram of the composition structure of a balance sharing system for split orders provided by an embodiment of the present invention;
[0026] Figure 7 It is a schematic diagram of the structure of a computer device provided by an embodiment of the present invention. Detailed implementation manners
[0027] To further elaborate on the technical means and effects adopted by the present invention to achieve the intended invention purpose, the following, in combination with the accompanying drawings and preferred embodiments, details the specific implementation manners, structures, features, and effects of a balance sharing method for split orders proposed according to the present invention. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. In addition, the specific features, structures, or characteristics in one or more embodiments can be combined in any suitable form.
[0028] Among them, in the description of the embodiments of the present invention, unless otherwise specified, " / " means "or". For example, A / B may mean A or B. The "and / or" in the text is only a relational description of associated objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present invention, "a plurality of" means two or more than two.
[0029] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs.
[0031] The following specifically describes the specific solution of a balance sharing method for splitting orders provided by the present invention with reference to the accompanying drawings. Please refer to Figure 1 , which shows a schematic diagram of the implementation process of a balance sharing method for splitting orders provided by an embodiment of the present invention, applied to a control device. The method includes:
[0032] 101. In response to a balance sharing service request sent by the merchant side, determine the remaining unshared amount of the current order to be shared.
[0033] Here, the merchant side sends a balance sharing service request to the background. The background, in response to the balance sharing service request sent by the merchant side, determines the remaining unshared amount of the current order to be shared. In some possible implementation manners, first, the merchant and the balance sharer complete merchant network access and registration in a third-party payment institution in advance, and open an electronic account and bind a bank card for fund withdrawal. Only after the merchant is networked in the payment institution does it have the ability to receive payments. Second, the merchant starts operating its business, sells goods / services to the buyer side, and charges fees for the goods / services. The buyer side makes payments to the buyer side through payment methods provided by the merchant, such as online payment, sales terminal (POS) card swiping, bank transfer, etc. Each payment exists and is recorded in the form of a payment order. After the order payment is successful, the funds of the buyer side will enter the deposit account opened by the merchant in the payment institution. The payment-successful order is in an unshared state. For example, if 100 yuan is successfully paid, the unshared balance of this order is 100 yuan. Finally, the merchant initiates an operation for balance sharing in the background. At this time, the merchant has not yet submitted an instruction for balance sharing. In this way, the background receives the balance sharing service request sent by the merchant side.
[0034] In some possible implementations, step 101 above can be implemented through the following steps 111 and 112 (not shown in the figure):
[0035] 111. In response to the profit sharing service request sent by the merchant side, summarize the remaining unshared amount of the current order to be profit shared.
[0036] 112. Display the remaining unshared amount to the merchant side.
[0037] Here, after the background receives the profit sharing service request, it calculates and summarizes the remaining unshared amount of the current order to be profit shared and displays it to the merchant. For example, for payment order 1, 100 yuan has been paid and 50 yuan remains unshared; for payment order 2, 200 yuan has been paid and 200 yuan remains unshared. Then the total remaining unshared amount is 250 yuan. The 250 yuan is the total amount available for profit sharing and will be presented in the form of account balance. In this way, by summarizing the remaining unshared amount of the current order to be profit shared and displaying it to the merchant side, the merchant side can be made more clear and definite about the remaining unshared amount.
[0038] 102. Based on the remaining unshared amount and the set profit sharing amount of the merchant side, perform profit sharing service matching for the profit sharing object specified by the merchant side to obtain a matching result.
[0039] Here, the profit sharing object is the profit sharer. The background first performs business processing on the profit sharing object, and then based on the processing result, performs profit sharing service matching for the profit sharing object specified by the merchant side according to the remaining unshared amount and the set profit sharing amount of the merchant side to obtain a matching result. The matching result includes the amount to be profit shared with the profit sharing object.
[0040] In some possible implementation manners, the merchant side designates the objects to be split (i.e., the objects to be split the accounts) within the operation window and sets the split amount. The set split amount cannot exceed the current remaining account balance, that is, the total remaining unsplit amount. For example, it is set that Party A for splitting the accounts gets 50 yuan, Party B for splitting the accounts gets 80 yuan, and Party C for splitting the accounts gets 100 yuan. The total split amount for this split is 230 yuan. The merchant side submits the instruction operation for splitting the accounts. The background starts to execute the instruction for splitting the accounts. The background mainly performs the following business processes: First, it detects the objects to be split to obtain detection information; for example, the detection of the parties for splitting the accounts, such as whether the parties for splitting the accounts exist and whether the set split amount is correct; then, when the detection information meets the preset conditions, it determines whether the set split amount exceeds the remaining unsplit amount; that is, the preset conditions are that the parties for splitting the accounts exist and the set split amount is correct. It determines whether the set split amount exceeds the current remaining unsplit amount. Finally, when the set split amount does not exceed the remaining unsplit amount, based on the remaining unsplit amount and the set split amount of the merchant side, it performs an account splitting service matching for the objects to be split designated by the merchant side to obtain a matching result. For example, the background sequentially matches the set split amount of the parties for splitting the accounts with the remaining unsplit amount of the order to be split, so as to determine the amount that the objects to be split need to have the accounts split, and use it as the matching result.
[0041] In some possible implementation manners, it can be achieved through Figure 2 the steps shown to perform the account splitting service matching for the objects to be split designated by the merchant side:
[0042] 201. When the set split amount does not exceed the remaining unsplit amount, obtain the amount being processed and the amount with successful account splitting for the objects to be split.
[0043] Here, set the split amount for each party for splitting the accounts (i.e., the set split amount), the amount with successful account splitting (already submitted to the payment institution for processing) for the parties for splitting the accounts (i.e., the amount with successful account splitting), the amount being processed (already submitted to the payment institution for processing) for the parties for splitting the accounts (i.e., the amount being processed), and the amount with failed account splitting (already submitted to the payment institution for processing) for the parties for splitting the accounts.
[0044] 202. Determine the first amount difference among the set split amount, the amount being processed, and the amount with successful account splitting.
[0045] Here, subtract the amount being processed and the amount with successful account splitting from the set split amount to obtain the first amount difference.
[0046] 203. If the first amount difference is greater than or equal to the remaining unsplit amount, assign the remaining unsplit amount to the objects to be split to obtain the matching result.
[0047] Here, when (the set sharing amount - the amount being processed - the successfully shared amount) of the sharing party ≥ the remaining unshared amount of the payment order, the entire remaining unshared amount of this payment order is shared with this sharing party.
[0048] 204. If the amount difference is less than the remaining unshared amount, determine a candidate sharing amount that meets the amount difference within the remaining unshared amount.
[0049] Here, when (the set sharing amount - the amount being processed - the successfully shared amount) of the sharing party < the remaining unshared amount of the payment order, take (the set sharing amount - the amount being processed - the successfully shared amount) from the remaining unshared amount of this payment order and share it with this sharing party.
[0050] 205. Assign the candidate sharing amount to the object to be shared, so as to obtain the matching result.
[0051] For example, Payment Order 1 pays 100 yuan and there is 100 yuan remaining unshared; Payment Order 2 pays 200 yuan and there is 200 yuan remaining unshared. Sharing Party A is to share 50 yuan, Sharing Party B is to share 80 yuan, and Sharing Party C is to share 100 yuan. The sharing amount of Sharing Party A is 50 yuan, the successfully shared amount is 0 yuan, and the amount being processed is 0 yuan. (50 - 0 - 0) of the sharing party < the remaining unshared amount of Payment Order 1 which is 100 yuan, then 50 yuan of the remaining unshared amount in Payment Order 1 is shared with A. Output the sharing method based on the payment order: In Payment Order 1, Sharing Party A, sharing amount 50 yuan. And mark the amount being processed of Sharing Party A as 50 yuan. In this way, by analyzing the numerical size relationship between the first amount difference and the remaining unshared amount, it is possible to accurately determine the amount to be shared for the object to be shared, so as to improve the accuracy of the matching result.
[0052] 103. Send the sharing service request and the matching result to the payment institution, so that the payment institution performs the sharing operation.
[0053] Here, after the background receives the sharing service request, it sends the sharing service request and the matching result to a third - party payment structure together, so that the payment structure performs the sharing operation.
[0054] In some possible implementation manners, the above step 103 can be implemented through steps 131 and 132 (not shown in the figure):
[0055] 131. Invoke the sharing interface of the payment institution.
[0056] Here, the background invokes the sharing interface of the payment institution and transmits the sharing service request to the payment institution to perform the sharing operation.
[0057] 132. Using the above-mentioned profit sharing interface, send the profit sharing service request and the matching result to the payment institution so that the payment institution performs the profit sharing operation.
[0058] Here, the profit sharing service request and the matching result can be Payment Order 1, profit sharer A, and profit sharing amount of 50 yuan. Send "Payment Order 1, profit sharer A, profit sharing amount of 50 yuan" to the payment structure so that the payment structure performs the profit sharing operation. After the payment structure completes this profit sharing operation, it feeds back the profit sharing result to the merchant side. In this way, by calling the profit sharing interface of the payment structure, sending the profit sharing service request and the matching result to the payment structure, the profit sharing operation is performed through the payment structure, and the profit sharing process for the object to be profit shared is completed.
[0059] 104. Based on the profit sharing result returned by the payment institution, determine whether the profit sharing is completed.
[0060] Here, the profit sharing result includes: ① Order processing. ② Order successful. ③ Order failed. After the background receives the profit sharing result fed back by the payment structure, by parsing this profit sharing result, determine whether the profit sharing is completed, that is, whether to perform profit sharing for the next profit sharer, or whether to end the profit sharing process.
[0061] In some possible implementation manners, the above step 104 can be implemented through Figure 3 the steps shown below:
[0062] 301. Based on the profit sharing result, update the in-processing amount and the successfully profit shared amount of the object to be profit shared, and obtain the updated in-processing amount and the updated successfully profit shared amount.
[0063] Here, by analyzing the status of the current order to be split represented by the split result, the amount being processed and the successfully split amount are increased or decreased, so as to obtain the updated amount being processed and the updated successfully split amount. In some possible implementation manners, if the split result represents that the current order to be split is in the order processing state, the query interface provided by the payment institution is called to obtain the order processing result of the current order to be split; for example, if the split result is that the order is being processed, exception handling needs to be triggered. For example, the query interface provided by the payment institution is called to obtain the split result (success or failure), and business update processing is performed. In the case where the order processing result represents that the order processing fails, the amount being processed is decreased to obtain the updated amount being processed; in the case where the order processing result represents that the order processing succeeds, the successfully split amount is increased, and the amount being processed is decreased, to obtain the updated successfully split amount and the updated amount being processed. For example, if the split result is that the order is successful, the cumulative successfully split amount of split party A is updated and increased, and the amount being processed by split party A is updated and decreased. 50 yuan is credited to the accounting account balance of split party A. If the split institution is that the order fails, the amount being processed by split party A is updated and decreased.
[0064] 302. Determine a second amount difference among the set split amount, the updated amount being processed, and the updated successfully split amount.
[0065] Here, the set split amount is subtracted from the updated amount being processed and the updated successfully split amount to obtain the second amount difference.
[0066] 303. Based on the second amount difference, determine whether the splitting is completed.
[0067] Here, by judging the numerical size relationship between the second amount difference and 0, it is determined whether the splitting is completed. In some possible implementation manners, if the second amount difference is greater than 0, it is determined that the object to be split is not split completely; if the second amount difference is equal to 0, it is determined that the object to be split is split completely, and the splitting of the next object to be split is continued. For example, after the background business processing is completed, the following judgment processing also needs to be performed: ① For the current split party, whether (set split amount - amount being processed - successfully split amount) is greater than 0; if the second amount difference > 0, it means that the split of this split party is not completed and the splitting of this split party needs to be continued; if the second amount difference = 0, it means that the split of this split party is completed and the splitting of the next split party is continued; ② Whether all split parties are split completely. If not, the splitting of the next split party is continued. If it has been completed, the splitting ends.
[0068] 105. In response to the indication of the completed revenue sharing result, inject the set revenue sharing amount into the account of the object to be revenue shared at the payment institution.
[0069] Here, according to the judgment result of step 104 above, check whether to return to step 102 to continue the revenue sharing of this revenue sharing party or execute the revenue sharing of the next revenue sharing party. After all revenue sharing parties have completed the revenue sharing, the merchant can view the revenue sharing result and the revenue sharing details of each payment order in the merchant background. For example, for payment order 1, 100 yuan is paid and 100 yuan remains unshared; for payment order 2, 200 yuan is paid and 200 yuan remains unshared. Revenue sharing party A shares 50 yuan, revenue sharing party B shares 80 yuan, and revenue sharing party C shares 100 yuan. After the revenue sharing is completed, the following revenue sharing details should be output:
[0070] ① Payment order 1, revenue sharing party A, revenue sharing amount 50 yuan;
[0071] ② Payment order 1, revenue sharing party B, revenue sharing amount 50 yuan;
[0072] ③ Payment order 2, revenue sharing party B, revenue sharing amount 30 yuan;
[0073] ④ Payment order 2, revenue sharing party C, revenue sharing amount 100 yuan;
[0074] As Figure 4 shown, for order 1 at the buyer side: 100 yuan is paid, and for order 2: 200 yuan is paid; the remaining account balance is 300 yuan. The set revenue sharing amounts for the revenue sharing parties are: A: 50 yuan; B: 80 yuan; C: 100 yuan; the revenue sharing result is: revenue sharing order 1: payment order 1, revenue sharing party A, revenue sharing amount 50 yuan; revenue sharing order 2: payment order 1, revenue sharing party B, revenue sharing amount 50 yuan; revenue sharing order 3: payment order 2, revenue sharing party B, revenue sharing amount 30 yuan; revenue sharing order 4: payment order 2, revenue sharing party C, revenue sharing amount 100 yuan. In this way, after the revenue sharing is completed, the funds enter the e-accounts opened by the revenue sharing parties at the payment institution.
[0075] In an embodiment of the present invention, in response to a fund splitting business request sent by a merchant terminal, the background can accurately determine the remaining unsplit amount of the current order to be split; and perform a fund splitting business matching on the splitting object specified by the merchant terminal through the remaining unsplit amount and the set splitting amount specified by the merchant terminal to obtain a matching result; in this way, the remaining unsplit amount and the set splitting amount specified by the merchant terminal can be made more matched. Then, the fund splitting business request and the matching result are sent to a payment institution so that the payment institution performs a fund splitting operation; and based on the fund splitting result returned by the payment institution, it is determined whether the fund splitting is completed; if the fund splitting result indicates that the fund splitting is completed, the set splitting amount is injected into the account of the splitting object in the payment institution. In this way, after the merchant completes order collection, the fund splitting can be completed through this fund splitting method, improving the efficiency of fund splitting and realizing the supervision and management of funds at the same time.
[0076] In some embodiments, the balance splitting method for splitting an order can be implemented through Figure 5 the steps shown below:
[0077] 501. The merchant terminal and the splitting party complete merchant network access and registration in a third-party payment institution in advance, and open an electronic account and bind a bank card for fund withdrawal.
[0078] 502. The merchant terminal starts operating its business, sells goods / services to the buyer terminal, and collects fees for the goods / services accordingly.
[0079] 503. The merchant terminal initiates a fund splitting operation in the background.
[0080] 504. The background calculates and summarizes the remaining unsplit amount of the current order to be split and displays it to the merchant terminal.
[0081] 505. The merchant terminal specifies the splitting object and the set splitting amount within the operation window.
[0082] 506. The background starts to execute the fund splitting instruction.
[0083] 507. The background calls the fund splitting interface of the payment institution and transmits the fund splitting instruction to the payment institution to perform the fund splitting operation.
[0084] 508. The background receives the fund splitting result returned by the payment institution and performs business processing.
[0085] 509. According to the judgment result in step 508, it is determined whether to return to step 506 to continue performing the fund splitting of this splitting party or to perform the fund splitting of the next splitting party. In this way, the above software and system can improve the efficiency of merchant fund splitting and provide convenience for merchants while meeting the requirements of fund supervision.
[0086] An embodiment of the present invention provides a balance splitting system for splitting an order. Please refer toFigure 6 , which shows a schematic diagram of the composition structure of a balance sharing system for splitting orders provided by an embodiment of the present invention. The system 600 includes: a first determination module 601, configured to determine the remaining unshared amount of the current order to be shared in response to a sharing service request sent by the merchant side; a matching module 602, configured to perform a sharing service matching on the sharing object specified by the merchant side based on the remaining unshared amount and the set sharing amount of the merchant side, and obtain a matching result; a sending module 603, configured to send the sharing service request and the matching result to a payment institution, so that the payment institution performs a sharing operation; a second determination module 604, configured to determine whether the sharing is completed based on the sharing result returned by the payment institution; an injection module 605, configured to inject the set sharing amount into the account of the sharing object in the payment institution in response to the sharing result indicating that the sharing is completed.
[0087] In some possible implementation manners, the matching module 602 is further configured to detect the sharing object to obtain detection information; in the case where the detection information meets a preset condition, determine whether the set sharing amount exceeds the remaining unshared amount; in the case where the set sharing amount does not exceed the remaining unshared amount, perform a sharing service matching on the sharing object specified by the merchant side based on the remaining unshared amount and the set sharing amount of the merchant side, and obtain a matching result.
[0088] In some possible implementation manners, the matching module 602 is further configured to, in the case where the set sharing amount does not exceed the remaining unshared amount, obtain the amount in process and the successfully shared amount of the sharing object; determine a first amount difference between the set sharing amount, the amount in process, and the successfully shared amount; if the first amount difference is greater than or equal to the remaining unshared amount, assign the remaining unshared amount to the sharing object to obtain the matching result.
[0089] In some possible implementation manners, the matching module 602 is further configured to, if the amount difference is less than the remaining unshared amount, determine a candidate sharing amount that meets the amount difference in the remaining unshared amount; assign the candidate sharing amount to the sharing object to obtain the matching result.
[0090] In some possible implementation manners, the sending module 603 is further configured to call the sharing interface of the payment institution; use the sharing interface to send the sharing service request and the matching result to the payment institution, so that the payment institution performs a sharing operation.
[0091] In some possible implementations, the first determination module 601 is further configured to, in response to a revenue sharing service request sent by a merchant terminal, aggregate the remaining unshared amount of the currently to-be-revenue-shared order; and display the remaining unshared amount to the merchant terminal.
[0092] In some possible implementations, the second determination module 604 is further configured to, based on the revenue sharing result, update the amount being processed and the successfully revenue-shared amount of the to-be-revenue-shared object to obtain the updated amount being processed and the updated successfully revenue-shared amount; determine a second amount difference among the set revenue sharing amount, the updated amount being processed, and the updated successfully revenue-shared amount; and determine whether the revenue sharing is completed based on the second amount difference.
[0093] In some possible implementations, the second determination module 604 is further configured to, if the second amount difference is greater than 0, determine that the revenue sharing of the to-be-revenue-shared object is not completed; if the second amount difference is equal to 0, determine that the revenue sharing of the to-be-revenue-shared object is completed, and continue to perform revenue sharing on the next to-be-revenue-shared object.
[0094] In some possible implementations, the second determination module 604 is further configured to, if the revenue sharing result indicates that the currently to-be-revenue-shared order is in the order processing state, call the query interface provided by the payment institution to obtain the order processing result of the currently to-be-revenue-shared order; in the case where the order processing result indicates that the order processing fails, reduce the amount being processed to obtain the updated amount being processed; in the case where the order processing result indicates that the order processing succeeds, increase the successfully revenue-shared amount and reduce the amount being processed to obtain the updated successfully revenue-shared amount and the updated amount being processed.
[0095] Optionally, the transmission medium may be a wired link (such as, but not limited to, coaxial cable, optical fiber, and Digital Subscriber Line (DSL), etc.) or a wireless link (such as, but not limited to, Wireless Fidelity (WIFI), Bluetooth, and mobile device network, etc.). It should be noted that: the control device provided in the above embodiments is only illustrated by the division of the above respective functional modules. In practical applications, the above functions may be allocated to different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments and will not be elaborated here.
[0096] Figure 7 is a schematic structural diagram of a computer device provided by an embodiment of the present invention. Exemplarily, as Figure 7As shown in the figure, the computer device 700 includes: a memory 701, a processor 702, and a computer program 703 stored in the memory 701 and running on the processor 702. When the processor 702 executes the computer program 703, the computer device can execute any one of the balance sharing methods for splitting orders introduced above.
[0097] In addition, an embodiment of the present invention also protects a control device, which may include a memory and a processor. The memory stores executable program code, and the processor is used to call and execute the executable program code to execute a balance sharing method for splitting orders provided by an embodiment of the present invention. In this embodiment, the control device can be divided into functional modules according to the above method examples. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, only a logical function division, and there may be other division methods in actual implementation. It should be noted that all relevant contents of each step involved in the above method embodiment can be cited in the function description of the corresponding functional module, and will not be repeated here. It should be understood that the control device provided in this embodiment is used to execute the above balance sharing method for splitting orders, so the same effect as the above implementation method can be achieved. In the case of adopting an integrated unit, the control device may include a processing module and a storage module. Among them, when the control device is applied to a device, the processing module can be used to control and manage the actions of the device. The storage module can be used to support the device to execute mutual program codes, etc. Among them, the processing module can be a processor or a controller, which can implement or execute various exemplary logical blocks, modules, and circuits described in combination with the disclosure of the present invention. The processor can also be a combination that realizes computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory.
[0098] In addition, the control device provided by the embodiment of the present invention may specifically be a chip, a component, or a module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a balance sharing method for splitting orders provided by the above embodiment. This embodiment also provides a computer-readable storage medium, in which computer program code is stored. When the computer program code runs on a computer, the computer executes the above related method steps to implement a balance sharing method for splitting orders provided by the above embodiment.
[0099] This embodiment also provides a computer program product. When the computer program product runs on a computer, it causes the computer to execute the above-related steps to implement a balance sharing method for splitting orders provided in the above embodiment. Among them, the control device, computer-readable storage medium, computer program product, or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, which will not be elaborated here. Through the description of the above embodiments, those skilled in the art can understand that for the convenience and simplicity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the control device is divided into different functional modules to complete all or part of the functions described above. In the embodiments provided by the present invention, it should be understood that the disclosed control device and method can be implemented in other ways. For example, the control device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another control device, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the control device or unit can be electrical, mechanical, or other forms. It should be noted that the above sequence of the embodiments of the present invention is only for description and does not represent the superiority or inferiority of the embodiments. The processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired result. In some embodiments, multi-task processing and parallel processing are also possible or may be advantageous. Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. The above content is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should be covered by the protection scope of the present invention.
Claims
1. A balance sharing method for splitting orders, characterized in that The method includes: In response to the profit sharing service request sent by the merchant side, determining the remaining unshared amount of the current order to be profit shared; Based on the remaining unshared amount and the set profit sharing amount of the merchant side, performing profit sharing service matching on the profit sharing object specified by the merchant side to obtain a matching result; Sending the profit sharing service request and the matching result to the payment institution so that the payment institution performs the profit sharing operation; Based on the profit sharing result returned by the payment institution, determining whether the profit sharing is completed; In response to the profit sharing result indicating that the profit sharing is completed, injecting the set profit sharing amount into the account of the profit sharing object in the payment institution.
2. The method according to claim 1, characterized in that, The method further includes: Detecting the profit sharing object to obtain detection information; When the detection information meets the preset conditions, determining whether the set profit sharing amount exceeds the remaining unshared amount; When the set profit sharing amount does not exceed the remaining unshared amount, performing profit sharing service matching on the profit sharing object specified by the merchant side based on the remaining unshared amount and the set profit sharing amount of the merchant side to obtain a matching result.
3. The method according to claim 2, wherein The performing profit sharing service matching on the profit sharing object specified by the merchant side based on the remaining unshared amount and the set profit sharing amount of the merchant side to obtain a matching result when the set profit sharing amount does not exceed the remaining unshared amount includes: When the set profit sharing amount does not exceed the remaining unshared amount, obtaining the amount in processing and the successfully profit shared amount of the profit sharing object; Determining a first amount difference between the set profit sharing amount, the amount in processing, and the successfully profit shared amount; If the first amount difference is greater than or equal to the remaining unshared amount, assigning the remaining unshared amount to the profit sharing object to obtain the matching result.
4. The method according to claim 3, wherein The method further includes: If the amount difference is less than the remaining unshared amount, determining a candidate profit sharing amount that meets the amount difference from the remaining unshared amount; Assigning the candidate profit sharing amount to the profit sharing object to obtain the matching result.
5. The method according to claim 1, characterized in that The sending the profit sharing service request and the matching result to the payment institution so that the payment institution performs the profit sharing operation includes: Invoking the profit sharing interface of the payment institution; Using the profit sharing interface to send the profit sharing service request and the matching result to the payment institution so that the payment institution performs the profit sharing operation.
6. The method according to claim 1, characterized in that The determining the remaining unshared amount of the current order to be profit shared in response to the profit sharing service request sent by the merchant side includes: In response to the profit sharing service request sent by the merchant side, summarizing the remaining unshared amount of the current order to be profit shared; Displaying the remaining unshared amount to the merchant side.
7. The method according to claim 1, wherein The determining whether the profit sharing is completed based on the profit sharing result returned by the payment institution includes: Based on the profit sharing result, updating the amount in processing and the successfully profit shared amount of the profit sharing object to obtain the updated amount in processing and the updated successfully profit shared amount; Determining a second amount difference between the set profit sharing amount, the updated amount in processing, and the updated successfully profit shared amount; Based on the second amount difference, determine whether the account splitting is completed.
8. The method according to claim 7, wherein The determining whether the account splitting is completed based on the second amount difference includes: If the second amount difference is greater than 0, determine that the object to be split has not completed the account splitting; If the second amount difference is equal to 0, determine that the object to be split has completed the account splitting, and continue to perform account splitting on the next object to be split.
9. The method according to claim 7, wherein The updating the in - process amount and the successfully split amount of the object to be split based on the account splitting result to obtain the updated in - process amount and the updated successfully split amount includes: If the account splitting result indicates that the current order to be split is in the order - processing state, call the query interface provided by the payment institution to obtain the order - processing result of the current order to be split; In the case where the order - processing result indicates that the order - processing fails, reduce the in - process amount to obtain the updated in - process amount; In the case where the order - processing result indicates that the order - processing is successful, increase the successfully split amount and reduce the in - process amount to obtain the updated successfully split amount and the updated in - process amount.
10. A balance sharing system for splitting orders, characterized in that, The balance account - splitting system for splitting orders includes: A first determination module, configured to determine the remaining unsplit amount of the current order to be split in response to a account - splitting service request sent by the merchant side; A matching module, configured to perform account - splitting service matching on the object to be split specified by the merchant side based on the remaining unsplit amount and the set account - splitting amount of the merchant side to obtain a matching result; A sending module, configured to send the account - splitting service request and the matching result to the payment institution so that the payment institution performs the account - splitting operation; A second determination module, configured to determine whether the account splitting is completed based on the account - splitting result returned by the payment institution; An injection module, configured to inject the set account - splitting amount into the account of the object to be split in the payment institution in response to the account - splitting result indicating that the account splitting is completed.