Payment score determination method and device and electronic equipment
By receiving payment requests and determining multiple score deduction methods, combining sub-functions and objective functions to optimize the deduction combination, the user's problems of high manual calculation costs and inconvenient operation caused by the diversified score deduction methods are solved, and efficient and accurate payment operations are achieved.
Patent Information
- Application Number
- CN202411812544.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-10
AI Technical Summary
Users face the diversification of score deduction methods, which leads to high cost of manual calculation and inconvenient operation.
By receiving payment requests, determine the multiple score deduction methods of the target account on the target platform, retrieve the corresponding subfunction, determine the subfunction constraints based on the score to be paid and the payment parameters, comprehensively consider the constraints of multiple subfunctions and deduction methods, and use the objective function to select the optimal deduction combination to minimize the score to be paid.
The combination of multiple deduction methods has been realized, which reduces the complex operations manually selected by users, improves the efficiency and accuracy of payment, and ensures the best utilization of payment resources.
Smart Images

Figure CN119831651A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a payment score determination method, device and electronic equipment. Background Art
[0002] In the related technology, users are faced with a variety of ways to reduce points, and there are technical problems such as high manual calculation costs and inconvenient operations.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a payment score determination method, device and electronic device to at least solve the technical problems in the related art that users face a variety of score deduction methods, and there are high manual calculation costs and inconvenient operations.
[0005] According to one aspect of an embodiment of the present invention, a payment score determination method is provided, comprising: receiving a payment request, wherein the payment request is used to request payment based on a target account, and the payment request carries a platform identifier of a target platform and a score to be paid; in response to the payment request, determining a plurality of score deduction methods corresponding to the target account on the target platform; calling sub-functions corresponding to the plurality of score deduction methods; determining sub-function constraints corresponding to the plurality of sub-functions respectively according to the score to be paid and the payment parameters of the target account on the target platform; determining a target function and a target constraint corresponding to the target function according to the plurality of sub-functions, wherein the target constraint includes a plurality of sub-function constraints and a deduction method constraint between the plurality of score deduction methods, the target function is used to select different deduction combinations to deduct the score to be paid, and the target function takes minimizing the score to be paid as a target; and obtaining a target payment score under the target deduction combination according to the score to be paid and the target function under the target constraint.
[0006] Optionally, the target payment score under the target deduction combination is obtained based on the score to be paid and the objective function under the target constraint, including: determining, based on the score to be paid, multiple variable values corresponding to multiple sub-functions under the target constraint to obtain multiple payment variable combinations; determining, based on the objective function, the payment scores to be selected corresponding to the multiple payment variable combinations; determining the target payment score with the lowest score from the multiple payment scores to be selected; and determining the payment variable combination corresponding to the target payment score as the target deduction combination.
[0007] Optionally, determining the candidate payment scores corresponding to the multiple payment variable combinations respectively based on the objective function includes: for each sub-function, determining the sub-deduction score corresponding to the second variable value based on the sub-deduction score corresponding to the first variable value, until the sub-deduction scores corresponding to the multiple variable values are determined, wherein the first variable value is the variable value of the previous stage of the second variable value; determining the candidate payment scores corresponding to the multiple payment variable combinations respectively based on the objective function and the sub-deduction scores corresponding to the multiple variable values of each sub-function.
[0008] Optionally, calling the sub-functions corresponding to the multiple score deduction methods includes: determining a deduction complexity index based on the platform identifier and the multiple score deduction methods; and calling the sub-functions corresponding to the multiple score deduction methods when the deduction complexity index is greater than a first predetermined threshold.
[0009] Optionally, after obtaining the target payment score under the target deduction combination based on the score to be paid and the target function under the target constraint conditions, it also includes: determining multiple payment methods for the target account; determining the deduction points corresponding to the multiple payment methods; and determining the target payment method from the multiple payment methods based on the deduction points corresponding to the multiple payment methods.
[0010] Optionally, after obtaining the target payment score under the target deduction combination based on the score to be paid and the objective function under the target constraint condition, it also includes: determining a security index corresponding to the target deduction combination; when the security index is greater than a second predetermined threshold, sending first deduction combination information to the target account, wherein the first deduction combination information includes the target deduction combination and the target payment score.
[0011] Optionally, after obtaining the target payment score under the target deduction combination based on the score to be paid and the target function under the target constraint condition, it includes: determining a time limit for using the target deduction combination; sending second deduction combination information to the target account, wherein the second deduction combination information includes the target deduction combination, the target payment score and the time limit.
[0012] According to one aspect of an embodiment of the present invention, a payment score determination device is provided, comprising: a receiving module, configured to receive a payment request, wherein the payment request is used to request payment based on a target account, and the payment request carries a platform identifier of a target platform and a score to be paid; a first determining module, configured to determine, in response to the payment request, a plurality of score deduction methods corresponding to the target account on the target platform; a calling module, configured to call sub-functions corresponding to the plurality of score deduction methods; a second determining module, configured to determine, based on the score to be paid and the payment parameters of the target account on the target platform, sub-function constraints corresponding to the plurality of sub-functions respectively; a third determining module, configured to determine, based on the plurality of sub-functions, a target function and a target constraint corresponding to the target function, wherein the target constraint includes a plurality of sub-function constraints and a deduction method constraint between the plurality of score deduction methods, the target function is configured to select different deduction combinations to deduct the score to be paid, and the target function is configured to minimize the score to be paid; and a fourth determining module, configured to obtain, based on the score to be paid and the target function under the target constraint, a target payment score under the target deduction combination.
[0013] According to one aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement any one of the payment score determination methods described above.
[0014] According to one aspect of an embodiment of the present invention, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute any of the payment score determination methods described above.
[0015] In an embodiment of the present invention, a payment request is received, wherein the payment request is used to request payment based on a target account, and the payment request carries a platform identifier of the target platform and a score to be paid; in response to the payment request, multiple score deduction methods corresponding to the target account on the target platform are determined; sub-functions corresponding to the multiple score deduction methods are retrieved; based on the score to be paid and the payment parameters of the target account on the target platform, sub-function constraints corresponding to the multiple sub-functions are determined; based on the multiple sub-functions, a target function and a target constraint corresponding to the target function are determined, wherein the target constraint includes multiple sub-function constraints and a deduction method constraint between multiple score deduction methods, and the target function is used to select different deduction combinations to deduct the score to be paid, and the target function aims to minimize the score to be paid; based on the score to be paid, the target function under the target constraint condition is used to obtain the target payment score under the target deduction combination. A payment request initiated by a target account is received, and according to the target platform identifier and target account information in the payment request, the payment operation is ensured to be performed accurately for a specific platform and a specific payment score. By determining the multiple score deduction methods available to the account on the target platform, for each score deduction method, calling the corresponding sub-function, and determining the constraints applicable to each sub-function according to the score to be paid and the payment parameters of the target account on the target platform, the conditions for each score deduction method are clearly defined, ensuring that subsequent payment operations are carried out within the scope of legality and compliance. Based on multiple sub-functions, the target function is determined. The target function comprehensively considers multiple sub-function constraints and the deduction method constraints between multiple score deduction methods, enhancing the stability and reliability of subsequent payment operations, and based on the full use of multiple sub-function constraints and deduction method constraints, the target function is used to automatically optimize the combination of multiple deduction methods, reducing the complex operation of manual selection by users. According to the score to be paid, under the target constraint condition, the optimal target deduction combination is calculated through the objective function, and the target payment score under the combination is obtained. Under the premise of ensuring the legality and feasibility of the target payment score, the best utilization of payment resources is achieved, and the user's operational burden is reduced, thereby improving the efficiency and accuracy of payment, and further solving the technical problems in related technologies that users face a variety of score deduction methods, high manual calculation costs, and inconvenient operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0017] Figure 1 is a flow chart of a payment score determination method according to an embodiment of the present invention;
[0018] Figure 2 is a timing diagram of a payment score determination system provided in an optional embodiment of the present invention;
[0019] Figure 3 is a functional diagram of a payment score determination system provided in an optional embodiment of the present invention;
[0020] Figure 4 is a timing diagram of a payment score determination method provided in an optional embodiment of the present invention;
[0021] Figure 5 4 is a structural block diagram of a device for determining payment points according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0025] Dynamic programming algorithm: Dynamic programming algorithm is a method for solving complex problems. It efficiently finds the optimal solution by breaking down a large problem into a series of interdependent small problems and storing the results of solved sub-problems to avoid repeated calculations. This method is widely used in computer science and engineering fields, such as path planning, resource allocation, sequence alignment, etc. Its core idea is to use "divide and conquer" and "memorized search" to improve the efficiency of the algorithm.
[0026] Greedy algorithm: A greedy algorithm is an algorithm that takes the best or optimal (i.e., most favorable) option in the current state at each step, hoping that the result will be the best or optimal globally. It is usually used to solve optimization problems, such as the knapsack problem, the activity selection problem, etc., but it does not guarantee that the global optimal solution can always be found, because the local optimal choice may not necessarily constitute the global optimal solution.
[0027] Off-chain computing: is a method of performing calculations outside the blockchain to improve the performance and efficiency of the system while reducing the burden on the blockchain. It performs complex computing tasks outside the blockchain and only records the necessary results and verification information on the blockchain.
[0028] Example 1
[0029] According to an embodiment of the present invention, an embodiment of a method for determining a payment score is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] Figure 1 is a flow chart of a method for determining payment points according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0031] S102, receiving a payment request, wherein the payment request is used to request payment based on a target account, and the payment request carries a platform identifier of the target platform and a score to be paid;
[0032] In step S102 provided in the present application, a payment request is received.
[0033] Among them, a payment request is involved, which is a collection of request information initiated by the target account to complete the payment operation. For example, the payment request submitted by the target account when purchasing goods through a mobile payment platform includes account information, payment amount, and payment target.
[0034] Among them, the target account is involved, and the target account is the account that initiates the payment request during the payment process and is used to perform the payment operation.
[0035] Among them, the target platform is involved, which is related to the payment request and the platform where the target account performs the payment behavior. It is usually associated with the payment request.
[0036] Among them, the platform identification is involved, and the platform identification is the identification information used to distinguish the specific execution platform of the payment operation.
[0037] Among them, the pending payment score is involved, and the pending payment score is the specific amount included in the payment request and needs to be paid.
[0038] By receiving a payment request, which is used to request payment based on the target account and carries the platform identifier of the target platform and the score to be paid, an accurate data basis is provided for the follow-up, so that the payment score can be determined based on these specific information, which helps to ensure that the payment logic of the correct target platform and the relevant payment information of the target account are matched according to the payment request, and further helps to solve the technical problems in related technologies, such as high manual calculation costs and inconvenient operations faced by users due to the diversity of score deduction methods and the complexity of discount information.
[0039] It should be noted that there is no specific restriction on the method of receiving payment requests, and customized settings can be made according to actual applications and scenarios.
[0040] S104, in response to the payment request, determining a plurality of points deduction methods corresponding to the target account on the target platform;
[0041] In step S104 provided in the present application, a payment request is responded to, and a plurality of point deduction methods corresponding to the target account on the target platform are determined.
[0042] Among them, the point deduction method is involved. The point deduction method refers to various deduction methods that the target account can use to pay the points to be paid during the payment process, including the use of points, coupons, discounts, etc. For example, point payment, full-discount coupons, etc., while ensuring the flexibility of payment, help provide users with personalized payment options, help users maximize the use of payment resources, and improve user payment efficiency and convenience.
[0043] By responding to payment requests and determining the various points deduction methods corresponding to the target account on the target platform, we can understand the various deduction methods that the target account can be used to pay the points to be paid during the payment process, including points, coupons, discounts, etc., providing data and logic support for the subsequent construction of the target function, thereby effectively solving the problems of high logical complexity, great adaptation difficulty, and low computing efficiency in multiple payment scenarios, and achieving the beneficial technical effects of improving the flexibility of the payment system, optimizing computing efficiency, and enhancing user payment experience.
[0044] It should be noted that there is no specific restriction on the method of determining the various points deduction methods corresponding to the target account on the target platform, and customized settings can be made according to actual applications and scenarios.
[0045] S106, calling sub-functions corresponding to a plurality of score reduction methods;
[0046] In step S106 provided in the present application, sub-functions corresponding to a plurality of score deduction methods are called.
[0047] Among them, a sub-function is involved, which is designed for each score deduction method and is a function that determines the payment score according to the payment rules or logic of the score deduction method.
[0048] By calling sub-functions corresponding to a variety of score deduction methods, each score deduction method has independent calculation logic, providing data and logic support for the construction of subsequent objective functions, thereby effectively solving problems such as high logic complexity, great adaptation difficulty, and low calculation efficiency in multiple payment scenarios, and achieving the beneficial technical effects of improving the flexibility of the payment system, optimizing calculation efficiency, and enhancing user payment experience.
[0049] It should be noted that there is no specific restriction on the method of calling sub-functions corresponding to various score deduction methods, and customized settings can be made according to actual applications and scenarios.
[0050] S108, determining sub-function constraint conditions corresponding to the plurality of sub-functions respectively according to the score to be paid and the payment parameters of the target account on the target platform;
[0051] In step S108 provided in the present application, sub-function constraints corresponding to the plurality of sub-functions are determined.
[0052] Among them, payment parameters are involved, which are parameters reflecting the payment information of the deduction method adopted by the target account on the target platform, such as the points balance.
[0053] Among them, sub-function constraints are involved, which refer to the restrictions set for the calculation logic of each point deduction method. For example, the constraint of the point payment sub-function can be that the point payment must not exceed the account point balance, and the constraint of the coupon sub-function can be that the coupon is only valid for specific products and must meet the minimum consumption amount.
[0054] By determining constraints for each score deduction method (corresponding sub-function) based on the payment parameters of the score to be paid and the target account, a clear behavioral boundary is provided for each deduction method. Through the constraints, the feasible scope and conditions of each deduction method in the payment scenario can be clarified. By combining these constraints, the boundary conditions of the payment logic can be established and the rationality of determining the target payment score can be improved, thereby providing an accurate basis for the subsequent objective function optimization, ensuring the legitimacy and feasibility of determining the target payment score, and thus achieving the purpose of helping users maximize the use of payment resources and optimizing the user payment experience. The beneficial technical effect.
[0055] In addition, this method supports adding new deduction methods in the future, which can be seamlessly integrated by simply defining the corresponding sub-functions and constraints.
[0056] It should be noted that the method for determining the sub-function constraint conditions corresponding to multiple sub-functions is not specifically limited here, and can be customized according to actual applications and scenarios.
[0057] S110, determining an objective function and an objective constraint condition corresponding to the objective function based on the multiple sub-functions, wherein the objective constraint condition includes multiple sub-function constraint conditions and a deduction method constraint condition between multiple score deduction methods, and the objective function is used to select different deduction combinations to deduct the score to be paid, and the objective function aims to minimize the score to be paid;
[0058] In step S110 provided in the present application, the objective function and the objective constraint conditions corresponding to the objective function are determined.
[0059] Among them, an objective function is involved, which is determined based on multiple sub-functions. It measures the pros and cons of a certain combination of deduction methods and takes minimizing the score to be paid as the optimization goal.
[0060] Among them, the target constraint condition is involved, which is the constraint condition corresponding to multiple sub-functions involved in the process of minimizing the score to be paid as the optimization goal by measuring the pros and cons of the deduction results of different deduction combinations on the score to be paid.
[0061] Among them, the deduction method constraint condition is involved, which is the restriction condition corresponding to the deduction method adopted when the target account can be used to pay the points to be paid during the payment process.
[0062] Among them, a deduction combination is involved, which is a combination of allocating and deducting the points to be paid by combining multiple deduction methods (such as points, coupons, etc.).
[0063] Through the conditions and logic provided by the sub-functions, combined with the payment constraints, the objective function and the corresponding objective constraints are determined. The objective function comprehensively considers multiple sub-function constraints and the deduction method constraints between multiple score deduction methods, and can clearly identify the conflicts in the deduction combination that minimizes the score to be paid. On the basis of making full use of multiple sub-function constraints and deduction method constraints, the objective function is used to automatically optimize the combination of multiple deduction methods, reducing the complex operation of manual selection by users. And by minimizing the score to be paid through the objective function, the deduction combination obtained not only meets the constraints but also makes the most of the user's payment resources, meets the user's cost-saving needs, and improves payment efficiency.
[0064] It should be noted that there is no specific limitation on the method of determining the objective function and the objective constraint conditions corresponding to the objective function, and the settings can be customized according to the actual application and scenario.
[0065] S112, according to the score to be paid and the objective function under the target constraint condition, obtain the target payment score under the target deduction combination.
[0066] In step S112 provided in the present application, the target payment score under the target deduction combination is obtained.
[0067] Among them, a target deduction combination is involved, which is a combination of deduction methods corresponding to the minimum score to be paid determined based on the objective function while meeting the target constraint conditions.
[0068] Among them, the target payment score is involved, which is the minimum score to be paid determined based on the objective function while meeting the target constraints, that is, the payment score corresponding to the target deduction combination.
[0069] By determining the target deduction combination corresponding to the minimum score to be paid based on the score to be paid, combined with the objective function and the objective constraints, the optimal allocation of various deduction methods such as points and coupons is achieved, and the specific allocation of deduction methods that users can choose when paying is clarified, achieving the best use of payment resources. By determining the target payment score corresponding to the target deduction combination under the objective constraints, the legality and feasibility of the target payment score are ensured, the user's operating burden is reduced, the payment process is simplified, and the efficiency and accuracy of payment are improved, which effectively solves the technical problems in related technologies that users face the diversification of score deduction methods and the complexity of preferential information, and there are high manual calculation costs and inconvenient operations.
[0070] It should be noted that there is no specific restriction on the method of obtaining the target payment score under the target deduction combination based on the score to be paid and the objective function under the target constraint conditions, and it can be customized according to the actual application and scenario.
[0071] Through the above steps S102-S112, a payment request is received, wherein the payment request is used to request payment based on the target account, and the payment request carries the platform identifier of the target platform and the score to be paid; in response to the payment request, multiple score deduction methods corresponding to the target account on the target platform are determined; sub-functions corresponding to the multiple score deduction methods are retrieved; based on the score to be paid and the payment parameters of the target account on the target platform, the sub-function constraints corresponding to the multiple sub-functions are determined; based on the multiple sub-functions, the target function and the target constraint corresponding to the target function are determined, wherein the target constraint includes multiple sub-function constraints and the deduction method constraints between the multiple score deduction methods, and the target function is used to select different deduction combinations to deduct the score to be paid, and the target function aims to minimize the score to be paid; based on the score to be paid, the target function under the target constraint condition is used to obtain the target payment score under the target deduction combination. A payment request initiated by the target account is received, and according to the target platform identifier and target account information in the payment request, the payment operation is ensured to be performed accurately for a specific platform and a specific payment score. By determining the multiple score deduction methods available to the account on the target platform, for each score deduction method, calling the corresponding sub-function, and determining the constraints applicable to each sub-function according to the score to be paid and the payment parameters of the target account on the target platform, the conditions for each score deduction method are clearly defined, ensuring that subsequent payment operations are carried out within the scope of legality and compliance. Based on multiple sub-functions, the target function is determined. The target function comprehensively considers multiple sub-function constraints and the deduction method constraints between multiple score deduction methods, enhancing the stability and reliability of subsequent payment operations, and based on the full use of multiple sub-function constraints and deduction method constraints, the target function is used to automatically optimize the combination of multiple deduction methods, reducing the complex operation of manual selection by users. According to the score to be paid, under the target constraint condition, the optimal target deduction combination is calculated through the objective function, and the target payment score under the combination is obtained. Under the premise of ensuring the legality and feasibility of the target payment score, the best utilization of payment resources is achieved, and the user's operational burden is reduced, thereby improving the efficiency and accuracy of payment, and further solving the technical problems in related technologies that users face a variety of score deduction methods, high manual calculation costs, and inconvenient operations.
[0072] As an optional embodiment, based on the score to be paid and the objective function under the target constraint condition, a target payment score under the target deduction combination is obtained, including: based on the score to be paid, determining under the target constraint condition, multiple variable values corresponding to multiple sub-functions respectively, to obtain multiple payment variable combinations; based on the objective function, determining the payment scores to be selected corresponding to the multiple payment variable combinations respectively; determining the target payment score with the lowest score from the multiple payment scores to be selected; and determining the payment variable combination corresponding to the target payment score as the target deduction combination.
[0073] In this embodiment, specific steps are described for obtaining a target payment score under a target deduction combination based on the score to be paid and the target function under target constraints.
[0074] Among them, the variable value is involved. The variable value is the value of the specific deduction method parameter in the sub-function corresponding to a certain deduction method, that is, the specific degree or amount of use (such as usage ratio, discount rate, exemption amount, etc.). For example, for the point payment sub-function, the variable value can be 100 points, which is the number of points used for this payment.
[0075] Among them, payment variable combinations are involved. The payment variable combination is formed by combining multiple variable values corresponding to multiple sub-functions under the target constraint conditions based on the points to be paid. Each combination represents a possible payment solution. For example, 100 points, a coupon worth 50-10 points, and 30 yuan in cash are used as a payment variable combination.
[0076] Among them, it involves the payment score to be selected, which is determined by using the objective function for the payment variable combination, and is the score that needs to be paid in the payment variable combination and is used for the subsequent selection.
[0077] In the steps involved in this embodiment, variable values are determined for multiple sub-functions according to the scores to be paid and a series of target constraints to obtain multiple groups of payment variable combinations. The target function is used to determine the corresponding payment score to be selected for each payment variable combination. After obtaining multiple payment scores to be selected, a comparative analysis is performed to find the lowest score as the target payment score, and the payment variable combination corresponding to the target payment score is determined. This combination is determined as the target deduction combination.
[0078] By determining variable values for multiple sub-functions according to the scores to be paid and the target constraints, multiple groups of payment variable combinations are obtained, which solves the resource allocation and combination optimization problems in complex payment scenarios. By combining the usage of each deduction method to generate multiple payment variable combinations, and calculating the payment scores to be selected under multiple payment variable combinations, the target deduction combination with the lowest payment score is screened out according to the target function, and the user's final payment score is determined accordingly. It is realized that the lowest-cost payment plan is automatically selected for the user according to various constraints and deduction methods, thereby saving payment fees, avoiding the tedious process of manual selection and calculation, and improving the efficiency of payment processing.
[0079] As an optional embodiment, based on the objective function, the candidate payment scores corresponding to the multiple payment variable combinations are determined, including: for each sub-function, based on the sub-deduction score corresponding to the first variable value, the sub-deduction score corresponding to the second variable value is determined, until the sub-deduction scores corresponding to the multiple variable values are determined, wherein the first variable value is the variable value of the previous stage of the second variable value; based on the objective function and the sub-deduction scores corresponding to the multiple variable values of each sub-function, the candidate payment scores corresponding to the multiple payment variable combinations are determined.
[0080] In this embodiment, specific steps of determining the candidate payment scores corresponding to the plurality of payment variable combinations respectively according to the objective function are described.
[0081] Among them, sub-deduction points are involved, which reflect the deduction effect of a certain deduction method on the payment points. The corresponding sub-function calculates the actual deduction points based on the specific variable value.
[0082] In the steps involved in this embodiment, for each sub-function, the sub-deduction scores of the second variable value and more variable values in the subsequent stages are determined in turn according to the sub-deduction scores of the first variable value in the previous stage, until the sub-deduction scores of all stages are determined, and then, these sub-deduction scores and the objective function are used to calculate the selected payment scores corresponding to each payment variable combination.
[0083] By calculating the sub-deduction score based on the first variable value for each payment sub-function (such as point payment, coupon payment), and then recursively calculating the second variable value and its sub-deduction score based on the first variable value, until the sub-deduction score corresponding to all possible variable values of the sub-function is generated, it is ensured that the deduction effect of each deduction method is accurately quantified, thereby realizing the accurate determination of the payment cost under different payment variable combinations, and providing accurate data support for selecting the optimal payment plan. On this basis, the sub-deduction scores of the objective function and each sub-function under different variable values are further used to calculate the payment scores corresponding to multiple payment variable combinations, thereby realizing the cost comparison between different payment plans, and automatically screening out the lowest cost payment plan for users according to various constraints and deduction methods, effectively saving payment costs. This greatly simplifies the payment processing process, avoids the tediousness and time-consuming traditional manual selection and calculation, and significantly improves the efficiency of payment processing.
[0084] As an optional embodiment, sub-functions corresponding to multiple score deduction methods are called, including: determining a deduction complexity index based on a platform identifier and multiple score deduction methods; when the deduction complexity index is greater than a first predetermined threshold, calling sub-functions corresponding to multiple score deduction methods.
[0085] In this embodiment, specific steps for calling sub-functions corresponding to a variety of score deduction methods are described.
[0086] Among them, the deduction complexity index is involved, which is a quantitative index used to reflect the complexity of determining the score deduction method based on the score to be paid in the payment scenario. For example, in the payment scenario, only one score deduction method (such as point deduction) is involved, then the corresponding deduction complexity index is low.
[0087] Among them, the first predetermined threshold is involved. The first predetermined threshold is a predetermined threshold used to define whether the complexity of the score deduction method is sufficient. Through the first predetermined threshold, it can be determined whether it is necessary to subsequently call sub-functions corresponding to multiple score deduction methods for processing. For example, for simple scenarios (such as only point deductions), if the deduction complexity index is less than the predetermined threshold, no additional calculation is required and the payment is completed directly.
[0088] In the steps involved in this embodiment, a deduction complexity index that reflects the complexity of executing the payment deduction operation is determined based on the platform identification and multiple score deduction methods. When the determined deduction complexity index exceeds a predetermined threshold, it means that the current payment deduction operation is relatively complex and requires more refined processing, then a series of sub-functions corresponding to these multiple score deduction methods are called.
[0089] By determining the deduction complexity index based on the platform identifier and the score deduction method, the complexity of the score deduction method corresponding to the current payment scenario can be accurately quantified, thereby determining whether it is necessary to call a more complex processing logic, so that different methods of determining target payment scores and target payment combinations can be flexibly determined for payment scenarios of different complexity. When the deduction complexity index is low, the target payment score that the user needs to pay can be directly determined based on the current score deduction method without calling additional sub-functions, which helps to avoid unnecessary calculations and waste of resources. When the deduction complexity index is high, the corresponding sub-function is called to perform subsequent steps to automatically determine the best target payment combination and target payment score, avoiding manual intervention and manual calculations, significantly improving the efficiency and accuracy of payment processing, and maximizing the user's payment discount, thereby improving the user's payment experience and satisfaction.
[0090] In addition, the design also takes into account the possibility of multiple platform identifications and point deduction methods, so that it can flexibly adapt to different payment scenarios and needs. With the continuous development and innovation of the deduction methods, its functionality can be expanded by adding new sub-functions without the need for large-scale modification or reconstruction of the overall process, and it has strong flexibility and scalability.
[0091] As an optional embodiment, after obtaining the target payment score under the target deduction combination based on the score to be paid and the objective function under the target constraint conditions, it also includes: determining multiple payment methods for the target account; determining the deduction points corresponding to the multiple payment methods; and determining the target payment method from the multiple payment methods based on the deduction points corresponding to the multiple payment methods.
[0092] In this embodiment, the specific steps after obtaining the target payment score under the target deduction combination based on the score to be paid and the target function under the target constraint condition are explained.
[0093] Among them, it involves deduction points, which are the payment methods under the target account, and the corresponding points deducted during the payment process.
[0094] Among them, the target payment method is involved, which is determined according to the deduction points corresponding to multiple payment methods, and can minimize the user's payment cost.
[0095] In the steps involved in this embodiment, first, multiple payment methods supported by the target account are determined, which may include but are not limited to bank card payment, third-party payment platform, account balance payment, credit payment, etc. Then, according to each payment method, the deduction points corresponding to these payment methods are determined under the target payment score. Finally, according to the deduction points corresponding to the multiple payment methods, these payment methods are compared to determine the target payment method that can minimize the user's payment cost.
[0096] By calculating the target payment score, we can ensure that the optimal target deduction combination is found under various payment preferential conditions, and determine the multiple payment methods supported by the target account, providing a selection basis for further determining the deduction score and selecting the payment method. By determining the deduction scores corresponding to each payment method under the target payment score, we can clarify the preferential amount of each payment method under the target payment score. By quantifying the preferential degree of each payment method, we can provide a basis for comparing and selecting payment methods. According to the deduction scores corresponding to various payment methods, these payment methods are compared. By comparing the deduction scores of different payment methods, the payment cost is minimized, ensuring that users can enjoy the maximum payment discount. At the same time, by automatically completing the selection of payment methods, payment efficiency and user satisfaction are improved.
[0097] As an optional embodiment, after obtaining the target payment score under the target deduction combination based on the score to be paid and the objective function under the target constraint conditions, it also includes: determining a security index corresponding to the target deduction combination; when the security index is greater than a second predetermined threshold, sending first deduction combination information to the target account, wherein the first deduction combination information includes the target deduction combination and the target payment score.
[0098] In this embodiment, the specific steps after obtaining the target payment score under the target deduction combination based on the score to be paid and the target function under the target constraint condition are explained.
[0099] Among them, the security index is involved, which is an indicator used to evaluate the payment security faced by the target deduction combination when making payments. The measurement of the security index can be based on a variety of factors, such as the reputation of the deduction method, historical transaction records, user behavior patterns, etc.
[0100] Among them, a second predetermined threshold is involved, which is a pre-set threshold for defining payment security. When the target deduction combination security index is higher than the second predetermined threshold, the target deduction combination can be considered to be sufficiently secure and can be further processed. When the target deduction combination security index is lower than the second predetermined threshold, additional security measures may be required or the transaction may be rejected.
[0101] Among them, the first deduction combination information is involved, and the first deduction combination information is used to send to the user, including information of the target deduction combination and the target payment score.
[0102] In the steps involved in this embodiment, after determining the target payment score and the target deduction combination, a security assessment is performed on the target deduction combination to determine the security index of the target deduction combination. This security index is compared with a preset second predetermined threshold value. If the security index is higher than the second predetermined threshold value, then it can be considered that the target deduction combination is sufficiently secure and the next step can be performed. Conversely, if the security index is lower than the threshold value, additional security measures can be taken, or the use of the payment combination can be rejected. After confirming that the target deduction combination is sufficiently secure, that is, greater than the second predetermined threshold value, a first deduction combination information containing the target deduction combination and the target payment score is sent to the target account, and the user can complete the payment operation according to the instructions after receiving this information.
[0103] After determining the target payment score and the target deduction combination, a security assessment is performed on the target deduction combination. By determining the security index of the target deduction combination and comparing it with the second predetermined threshold, it is possible to identify and filter out potential high-risk payment combinations, reduce the risk of fraud or errors that may occur during the payment process, and thus improve the reliability and stability of the entire payment process. When the target deduction combination is greater than the second predetermined threshold, the first deduction combination information containing the target deduction combination and the target payment score is sent to the user, which can provide accurate and timely payment information to the user while ensuring the security of the user's funds, helping the user to quickly understand and confirm the payment details, reducing the user's waiting time and operation complexity during the payment process. After receiving accurate and timely payment information, the user can complete the payment operation more smoothly, thereby enhancing the user's payment experience.
[0104] As an optional embodiment, after obtaining the target payment score under the target deduction combination based on the score to be paid and the target function under the target constraint conditions, it includes: determining the limit time for using the target deduction combination; sending second deduction combination information to the target account, wherein the second deduction combination information includes the target deduction combination, the target payment score and the limit time.
[0105] In this embodiment, specific steps are described for obtaining a target payment score under a target deduction combination based on the score to be paid and the target function under target constraints.
[0106] Among them, a time limit is involved, which is the validity period for using the target deduction combination for payment. That is, the user must use the target deduction combination to complete the payment within the specified time range, otherwise the combination may become invalid or can no longer be used.
[0107] Among them, the second deduction combination information is involved, and the second deduction combination information is used to send to the target account, including the target deduction combination, the target payment score and the payment information of the limit time.
[0108] In the steps involved in this embodiment, after obtaining the target payment score under the target deduction combination based on the score to be paid and the target function under the target constraint condition, the time limit for the user to complete the payment using the deduction combination is determined. A second deduction combination information is sent to the user's target account. This information is a comprehensive notification that contains all the key payment information that the user needs to know: the target deduction combination, the target payment score, and the time limit (i.e., the deadline within which the user must complete the payment). After receiving this information, the user can clearly understand the payment combination he / she has selected, the amount to be paid, and the validity period of the payment, so as to complete the payment operation according to this information within this deadline.
[0109] According to the score to be paid and the target constraint conditions, the target deduction combination is determined through the objective function, which avoids manual intervention and manual calculation, and realizes the maximum utilization of preferential resources in the deduction method. Determining the limit time of the target deduction combination ensures that the user can complete the payment within the validity period, which helps to avoid the expiration and waste of preferential resources, and also helps to prevent potential payment fraud. By sending the second deduction combination information containing the target deduction combination, the target payment score and the limit time to the user, it can ensure that the user obtains complete payment information, so as to complete the payment operation more accurately, so that the user can make the payment operation with a full understanding of the payment details, reducing the confusion and uncertainty of the user in the payment process, thereby improving the success rate of payment, and enhancing the user's payment experience.
[0110] Based on the above embodiments and optional embodiments, an optional implementation is provided, which is described in detail below.
[0111] In related technologies, users are faced with a variety of ways to deduct points, and there are technical problems such as high manual calculation costs and inconvenient operations.
[0112] To address the above-mentioned problems, no effective solution has been proposed yet.
[0113] In view of this, an optional implementation of the present invention provides a payment score determination method and system, which can also be called a wallet payment method and system, which can effectively solve the technical problems in related technologies that users face a variety of score deduction methods, high manual calculation costs, and inconvenient operations.
[0114] Figure 2 is a timing diagram of a payment score determination system provided in an optional embodiment of the present invention, Figure 3 is a functional diagram of a payment score determination system provided in an optional embodiment of the present invention, Figure 4 is a timing diagram of a payment score determination method provided in an optional embodiment of the present invention, such as Figure 2 , Figure 3 as well as Figure 4 As shown, the details will be introduced below.
[0115] 1. Method for determining payment points
[0116] S1. Receive a payment request, wherein the payment request is used to request payment based on a target account, and the payment request carries a platform identifier of the target platform and a score to be paid;
[0117] For example, relevant data is collected from users, deduction methods, and promotional activities, and stored in an off-chain database. The off-chain database contains user information, deduction methods, promotional activities, and transaction records, and accepts payment requests initiated by users.
[0118] S2. In response to the payment request, determine a plurality of points deduction methods corresponding to the target account on the target platform;
[0119] For example, after a user initiates a payment request, the payment request is processed and sent to the off-chain computing module for discount calculation (same as the above-mentioned point deduction method). The off-chain computing module is responsible for processing payment requests, calculating discounts, and selecting deduction methods. High-performance computing frameworks (such as Apache Spark and Apache Flink) can be used to handle large-scale data computing tasks.
[0120] S3, call the sub-function corresponding to the multiple score deduction methods;
[0121] S31. Determine the deduction complexity index based on the platform identification and various score deduction methods;
[0122] For example, using a greedy algorithm, for simple discounts, the optimal solution is directly selected, reducing unnecessary calculation steps.
[0123] S32. When the deduction complexity index is greater than a first predetermined threshold, call sub-functions corresponding to a plurality of score deduction methods.
[0124] For example, dynamic programming and greedy algorithms are combined to comprehensively consider various types of discounts to ensure the optimal payment selection (the same as the above target payment combination).
[0125] S4. Determine sub-function constraints corresponding to the multiple sub-functions respectively according to the score to be paid and the payment parameters of the target account on the target platform;
[0126] S5. Determine the objective function and the objective constraint conditions corresponding to the objective function based on the multiple sub-functions, wherein the objective constraint conditions include the multiple sub-function constraint conditions and the deduction method constraint conditions between the multiple score deduction methods, and the objective function is used to select different deduction combinations to deduct the scores to be paid, and the objective function aims to minimize the scores to be paid;
[0127] S6. Based on the score to be paid and the objective function under the target constraint conditions, the target payment score under the target deduction combination is obtained.
[0128] For example, based on the preferential calculation results, the off-chain calculation module selects the optimal deduction method (the same as the above target payment combination).
[0129] Specifically, S6 also includes:
[0130] S61. Determine, based on the score to be paid, multiple variable values corresponding to the multiple sub-functions under the target constraint condition, and obtain multiple payment variable combinations;
[0131] S62, determining the payment scores to be selected corresponding to the plurality of payment variable combinations respectively according to the objective function;
[0132] Specifically, S62 also includes:
[0133] S621. For each sub-function, determine the sub-deduction score corresponding to the second variable value according to the sub-deduction score corresponding to the first variable value, until the sub-deduction score corresponding to the plurality of variable values are determined, wherein the first variable value is the variable value of the previous stage of the second variable value;
[0134] S622. Determine the payment scores to be selected corresponding to the multiple payment variable combinations according to the objective function and the sub-deduction scores corresponding to the multiple variable values of each sub-function.
[0135] S63, determining the lowest target payment score from a plurality of payment scores to be selected;
[0136] S64. Determine the payment variable combination corresponding to the target payment score as the target deduction combination.
[0137] For example, dynamic programming is used to implement this process. Dynamic programming can effectively handle complex preferential combinations, making it possible to calculate the optimal solution under multiple preferential thresholds. The state transition equation in dynamic programming refers to a mathematical equation or recursive relationship that describes how the state of a problem is transferred from one stage to the next. It is the core part of the dynamic programming algorithm and is used to calculate the optimal solution or optimal strategy for each stage. The details are as follows:
[0138] A1. Define the status:
[0139] First, we need to define the state of the problem. The state is usually represented by one or more variables, which describe the current decision state or calculation state of the problem. In the example of preferential calculation, the state can be defined as:
[0140] dp[i] represents the optimal solution or optimal value at the i-th stage (or threshold).
[0141] A2. Determine the state transfer equation:
[0142] The state transition equation describes how the problem transitions from one state to the next. It calculates the state value at each stage through recursion or iteration based on the dynamic characteristics of the problem.
[0143] Typically, the state transfer equation has the following form:
[0144] dp[i]=f(dp[i-1],…,other_parameters)
[0145] Among them, dp[i] is the state value at the current stage i, dp[i-1] is the state value at the previous stage i-1, other_parameters are other parameters related to state transition, and f() represents a certain corresponding relationship.
[0146] In dynamic programming, the state transition equation can be designed according to the characteristics of the specific problem. For example, in the discount calculation, the state transition equation can be to calculate the optimal solution for selecting the next discount combination (same as the target payment combination mentioned above) based on the currently selected discount combination and the remaining payment amount.
[0147] For example: dp[i]=max(dp[i],dp[i-coupon_amount]+coupon_value)
[0148] Where dp[i] represents the optimal discount amount when the total payment amount is i, coupon_amount is the coupon amount currently being considered, and coupon_value is the discount value provided by the coupon. The purpose of the state transition equation is to update and calculate the optimal value of the next state dp[i-coupon_amount]+coupon_value based on the current state dp[i].
[0149] A3. Initialization state:
[0150] Dynamic programming algorithms usually need to initialize one or more state values as starting conditions in order to start calculation. In the preferential calculation, the state when the payment amount is 0 can be initialized, that is, dp[0] = 0, indicating that the payment amount is 0 when there is no preferential treatment.
[0151] A4. Recursive calculation:
[0152] By recursively or iteratively calculating the state transfer equation, the optimal solution or optimal strategy for each stage is calculated in turn. A loop structure is usually used to implement the calculation of the state transfer equation to ensure that the state value of each stage can be correctly updated and advanced.
[0153] A5. Obtaining the optimal solution:
[0154] Finally, the dynamic programming algorithm can obtain the optimal solution or optimal strategy (the same as the above target payment score and the corresponding target deduction combination) by calculating the state value dp[i].
[0155] In discount calculation, the optimal solution can be the maximum discount amount obtained under a given payment amount, or the minimum payment amount, etc., depending on the definition of the problem.
[0156] Specifically, after S6, S71 is also included, and S71 includes:
[0157] S711. Determine various deduction methods for target accounts;
[0158] S712, determining deduction points corresponding to the multiple deduction methods;
[0159] S713. Determine a target deduction method from among the multiple deduction methods based on the deduction points corresponding to the multiple deduction methods.
[0160] Specifically, after S6, S72 is also included, and S72 includes:
[0161] S721. Determine the safety index corresponding to the target deduction combination;
[0162] S722. When the security index is greater than a second predetermined threshold, send first deduction combination information to the target account, wherein the first deduction combination information includes a target deduction combination and a target payment score.
[0163] Specifically, after S6, S73 is also included, and S73 includes:
[0164] S731, determining the time limit for using the target deduction combination;
[0165] S732. Send the second deduction combination information to the target account, wherein the second deduction combination information includes the target deduction combination, the target payment score and the limit time.
[0166] For example, after the calculation is completed, the off-chain calculation module sends the optimal deduction method and preferential information to the blockchain. The smart contract on the blockchain receives the result and records the transaction information to ensure the transparency and security of the transaction. Then the payment is executed, that is, the user confirms the deduction method, and the system completes the payment through the payment execution module. The payment execution module feeds back the payment result to the user and updates the payment record in the off-chain database.
[0167] 2. Payment Point Determination System
[0168] The system mainly includes data collection and analysis module, personalized recommendation module, promotion management module, decision-making and execution module, real-time update and notification module, and security and privacy protection module.
[0169] Among them, the data collection and analysis module is used to collect and analyze data such as user behavior, payment records, and payment preferences.
[0170] The personalized recommendation module is used to analyze the user's interests, preferences and behavior patterns based on the data provided by the data collection and analysis module, and recommend content to the user based on the analysis results.
[0171] The promotion management module is used to manage various promotions, such as discounts, coupons, etc., monitor the execution and effect of the activities, adjust the activity strategies in time, and provide statistics and analysis of activity data.
[0172] The decision-making and execution module is used to transmit and execute payment information in real time to ensure that the system operates in accordance with the decision direction.
[0173] The real-time update and notification module is used to track and update system data in real time to ensure that users obtain the latest information. For example, various notifications are sent to users, such as order status updates, promotion reminders, etc.
[0174] The security and privacy protection module is used to ensure the confidentiality, integrity and availability of user data, prevent data leakage and abuse, and protect the legitimate rights and interests of users.
[0175] For example, suppose user A is using the payment score determination system to pay for shopping. User A is ready to buy an item on an e-commerce application. He opens the e-commerce application and adds the item to the shopping cart. On the checkout page, user A chooses to pay using the payment score determination system. The system displays multiple payment methods and the option to export to other applications. User A chooses to export the payment information to his financial management application.
[0176] In this scenario, the decision-making and execution modules play an important role. The system first processes user A's payment information to ensure the security and accuracy of the information. Then, user A chooses to output it to the financial management application. The system transmits the payment information to user A's financial management application in real time through the decision-making and execution modules. In the financial management application, user A can see the amount of this consumption, the deduction method, and the information of the purchased goods. At the same time, the financial management application will automatically record this consumption, which is convenient for user A to conduct subsequent financial management and budget control. Through the decision-making and execution modules, the payment score determination system outputs the wallet system to other applications, realizing seamless connection and data sharing with other applications. In this way, users do not need to switch the deduction method or manually record consumption information when using other applications, which improves the convenience and efficiency of use.
[0177] Optionally, the payment score determination system is also configured as a system including an aggregate payment module, a bank card activity module, a points payment module, a phone charging module, a travel payment module, a financial management payment module, a loan payment module and a personalized preferential reward module.
[0178] Among them, the aggregate payment module is used to integrate multiple payment methods to provide users with more convenient payment options; the bank card activity module is used to display bank card promotion information and can choose the most favorable payment method; the points payment module is used to support users to use points for payment; the phone recharge module is used to provide users with phone recharge services; the travel payment module is used to support users to use wallet payment for travel payments, such as taxis, public transportation, etc.; the financial payment module is used to support users to purchase and manage financial products; the loan payment module is used to support users to borrow and repay loans; the personalized preferential reward module generates personalized preferential and reward plans in real time by monitoring users' consumption behavior and situations, providing users with a more personalized payment experience; the joint login module is used to realize the function of accessing multiple applications with one login.
[0179] The corresponding operations are adaptively adjusted according to the above modules.
[0180] Through the above optional implementation, at least the following beneficial effects can be achieved:
[0181] (1) Compared with the related art, the present invention determines the multiple score deduction methods available to the account on the target platform, calls the corresponding sub-function for each score deduction method, and determines the constraints applicable to each sub-function according to the score to be paid and the payment parameters of the target account on the target platform, thereby achieving a clear definition of the conditions for each score deduction method and ensuring that subsequent payment operations are carried out within the scope of legality and compliance. Based on multiple sub-functions, an objective function is determined, which comprehensively considers multiple sub-function constraints and the deduction method constraints between multiple score deduction methods, thereby enhancing the stability and reliability of subsequent payment operations, and based on the full use of multiple sub-function constraints and deduction method constraints, the objective function is used to automatically optimize the combination of multiple deduction methods, thereby reducing the complex operation of manual selection by users. According to the points to be paid, under the target constraints, the optimal target deduction combination is calculated through the objective function, and the target payment score under the combination is obtained. Under the premise of ensuring the legality and feasibility of the target payment score, the best utilization of payment resources is achieved, and the user's operational burden is reduced, thereby improving the efficiency and accuracy of payment, and further solving the technical problems in related technologies that users face the diversity of score deduction methods and the complexity of preferential information, and there are high manual calculation costs and inconvenient operations.
[0182] (2) Compared with the related art, the present invention solves the resource allocation and combination optimization problems in complex payment scenarios by determining variable values for multiple sub-functions according to the scores to be paid and the target constraints, thereby obtaining multiple groups of payment variable combinations. The present invention generates multiple payment variable combinations by combining the usage of each deduction method, calculates the payment scores to be selected under the multiple payment variable combinations, and then selects the target deduction combination with the lowest payment score based on the target function, thereby determining the user's final payment score. This realizes the automatic selection of the lowest-cost payment plan for the user based on various constraints and deduction methods, thereby saving payment fees, avoiding the tedious process of manual selection and calculation, and improving the efficiency of payment processing.
[0183] (3) Compared with the related art, the present invention calculates the sub-deduction score based on the first variable value for each payment sub-function (such as point payment, coupon payment), and then recursively calculates the second variable value and its sub-deduction score based on the first variable value, until the sub-deduction score corresponding to all possible variable values of the sub-function is generated, ensuring that the deduction effect of each deduction method is accurately quantified, thereby realizing the accurate determination of the payment cost under different payment variable combinations, and providing accurate data support for selecting the optimal payment plan. On this basis, the objective function and the sub-deduction scores of each sub-function under different variable values are further used to calculate the payment scores corresponding to multiple payment variable combinations, thereby realizing the cost comparison between different payment plans, automatically screening out the lowest cost payment plan for users according to various constraints and deduction methods, and effectively saving payment costs. In addition, the payment processing process is greatly simplified, avoiding the tediousness and time-consuming traditional manual selection and calculation, and significantly improving the efficiency of payment processing.
[0184] (4) Compared with the related art, the present invention can accurately quantify the complexity of the corresponding score deduction method in the current payment scenario by determining the deduction complexity index according to the platform identifier and the score deduction method, so as to determine whether it is necessary to call a more complex processing logic, so as to flexibly determine different methods of determining the target payment score and target payment combination for payment situations of different complexity. When the deduction complexity index is low, the target payment score that the user needs to pay can be directly determined according to the current score deduction method without calling additional sub-functions, which helps to avoid unnecessary calculations and waste of resources. When the deduction complexity index is high, the corresponding sub-function is called to perform subsequent steps to automatically determine the best target payment combination and target payment score, avoiding manual intervention and manual calculation, significantly improving the efficiency and accuracy of payment processing, and maximizing the user's payment discount, thereby improving the user's payment experience and satisfaction.
[0185] (5) Compared with the related art, the present invention can identify and filter out potential high-risk payment combinations by determining the safety index of the target deduction combination and comparing it with the second predetermined threshold, thereby reducing the risk of fraud or errors that may occur during the payment process, thereby improving the reliability and stability of the entire payment process. When the target deduction combination is greater than the second predetermined threshold, the first deduction combination information including the target deduction combination and the target payment score is sent to the user, which can provide accurate and timely payment information to the user while ensuring the safety of the user's funds, helping the user to quickly understand and confirm the payment details, reducing the user's waiting time and operation complexity during the payment process. After receiving accurate and timely payment information, the user can complete the payment operation more smoothly, thereby enhancing the user's payment experience.
[0186] (6) Compared with the related art, the present invention avoids manual intervention and manual calculation by determining the target deduction combination based on the target function according to the score to be paid and the target constraint conditions, thereby maximizing the use of preferential resources in the deduction method. Determining the time limit of the target deduction combination ensures that the user can complete the payment within the validity period, which helps to avoid the expiration and waste of preferential resources, and also helps to prevent potential payment fraud. By sending the second deduction combination information containing the target deduction combination, the target payment score and the time limit to the user, it can ensure that the user obtains complete payment information, thereby completing the payment operation more accurately, allowing the user to perform the payment operation with a full understanding of the payment details, reducing the confusion and uncertainty of the user in the payment process, thereby improving the success rate of payment, and enhancing the user's payment experience.
[0187] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0188] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0189] Example 2
[0190] According to an embodiment of the present invention, a device for implementing the above payment score determination method is also provided. Figure 5 is a structural block diagram of a device for determining payment points according to an embodiment of the present invention. Figure 5 As shown, the device includes: a receiving module 502, a first determining module 504, a calling module 506, a second determining module 508, a third determining module 510 and a fourth determining module 512. The device is described in detail below.
[0191] The receiving module 502 is used to receive a payment request, wherein the payment request is used to request payment based on the target account, and the payment request carries the platform identifier of the target platform and the score to be paid; the first determining module 504 is connected to the above-mentioned receiving module 502, and is used to respond to the payment request and determine the multiple score deduction methods corresponding to the target account on the target platform; the calling module 506 is connected to the above-mentioned first determining module 504, and is used to call the sub-functions corresponding to the multiple score deduction methods; the second determining module 508 is connected to the above-mentioned calling module 506, and is used to determine the multiple sub-function deduction methods according to the score to be paid and the payment parameters of the target account on the target platform. The third determining module 510 is connected to the second determining module 508 and is used to determine the target function and the target constraint conditions corresponding to the target function based on multiple sub-functions, wherein the target constraint conditions include multiple sub-function constraint conditions and deduction method constraint conditions between multiple score deduction methods, and the target function is used to select different deduction combinations to deduct the score to be paid, and the target function aims to minimize the score to be paid; the fourth determining module 512 is connected to the third determining module 510 and is used to obtain the target payment score under the target deduction combination based on the score to be paid and the target function under the target constraint conditions.
[0192] It should be noted here that the above-mentioned receiving module 502, first determination module 504, calling module 506, second determination module 508, third determination module 510 and fourth determination module 512 correspond to steps S102 to S112 in implementing the payment score determination method, and the instances and application scenarios implemented by the multiple modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.
[0193] Example 3
[0194] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement any of the above payment score determination methods.
[0195] Example 4
[0196] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute any of the above payment score determination methods.
[0197] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0198] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0199] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, 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 units or modules, which can be electrical or other forms.
[0200] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0201] In addition, each functional unit in each embodiment of the present invention 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.
[0202] 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 invention, in essence, 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 for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0203] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for determining payment points, characterized in that: include: Receiving a payment request, wherein the payment request is used to request payment based on a target account, and the payment request carries a platform identifier of the target platform and a score to be paid; In response to the payment request, determining a plurality of point deduction methods corresponding to the target account on the target platform; Retrieving sub-functions corresponding to the multiple score deduction methods; Determining sub-function constraint conditions corresponding to the plurality of sub-functions respectively according to the score to be paid and the payment parameters of the target account on the target platform; Determine an objective function and an objective constraint condition corresponding to the objective function according to the multiple sub-functions, wherein the objective constraint condition includes multiple sub-function constraint conditions and a deduction method constraint condition between multiple score deduction methods, the objective function is used to select different deduction combinations to deduct the score to be paid, and the objective function aims to minimize the score to be paid; According to the score to be paid and the objective function under the target constraint condition, the target payment score under the target deduction combination is obtained.
2. The method according to claim 1, characterized in that The target payment score under the target deduction combination is obtained based on the target function under the target constraint condition according to the score to be paid, including: According to the score to be paid, determining multiple variable values corresponding to the multiple sub-functions respectively under the target constraint condition, and obtaining multiple payment variable combinations; Determining, according to the objective function, payment scores to be selected corresponding to the plurality of payment variable combinations respectively; Determine the target payment score with the lowest score from multiple payment scores to be selected; A payment variable combination corresponding to the target payment score is determined as the target deduction combination.
3. The method according to claim 2, characterized in that The step of determining the payment scores to be selected corresponding to the plurality of payment variable combinations respectively according to the objective function includes: For each sub-function, according to the sub-deduction score corresponding to the first variable value, determine the sub-deduction score corresponding to the second variable value, until the sub-deduction score corresponding to a plurality of variable values are determined, wherein the first variable value is the variable value of the previous stage of the second variable value; Based on the objective function and the sub-deduction scores corresponding to the multiple variable values of each sub-function, the payment scores to be selected corresponding to the multiple payment variable combinations are determined.
4. The method according to claim 1, characterized in that: The calling of sub-functions corresponding to the multiple score deduction methods includes: Determine a deduction complexity index based on the platform identifier and the multiple score deduction methods; When the deduction complexity index is greater than a first predetermined threshold, sub-functions corresponding to the multiple score deduction methods are called.
5. The method according to claim 1, characterized in that After obtaining the target payment score under the target deduction combination based on the score to be paid and the target function under the target constraint condition, the method further includes: determining a plurality of payment methods of the target account; Determining deduction points corresponding to the multiple payment methods; A target payment method is determined from the multiple payment methods based on the deduction points corresponding to the multiple payment methods.
6. The method according to claim 1, characterized in that After obtaining the target payment score under the target deduction combination based on the score to be paid and the target function under the target constraint condition, the method further includes: Determine the safety index corresponding to the target deduction combination; In a case where the security index is greater than a second predetermined threshold, first deduction combination information is sent to the target account, wherein the first deduction combination information includes a target deduction combination and the target payment score.
7. The method according to any one of claims 1 to 6, characterized in that: After obtaining the target payment score under the target deduction combination based on the score to be paid and the target function under the target constraint condition, the method includes: Determine the time limit for using the target deduction combination; Sending second deduction combination information to the target account, wherein the second deduction combination information includes the target deduction combination, the target payment score and the limit time.
8. A payment score determination device, characterized in that: include: A receiving module, configured to receive a payment request, wherein the payment request is used to request payment based on a target account, and the payment request carries a platform identifier of the target platform and a score to be paid; A first determination module, configured to determine, in response to the payment request, a plurality of point deduction methods corresponding to the target account on the target platform; A calling module, used for calling sub-functions corresponding to the multiple score deduction methods; A second determination module is used to determine sub-function constraint conditions corresponding to the plurality of sub-functions respectively according to the score to be paid and the payment parameters of the target account on the target platform; A third determination module is used to determine an objective function and an objective constraint condition corresponding to the objective function based on the multiple sub-functions, wherein the objective constraint condition includes multiple sub-function constraint conditions and a deduction method constraint condition between multiple score deduction methods, the objective function is used to select different deduction combinations to deduct the score to be paid, and the objective function aims to minimize the score to be paid; The fourth determination module is used to obtain the target payment score under the target deduction combination according to the score to be paid and the target function under the target constraint condition.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the payment score determination method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the payment score determination method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device of payment processing, medium and computing equipment
CN107622394A
Information recommendation method and system based on payment behavior
CN116433287A
Settlement support system
JP2021117614A
System for recommending optimal payment option and method for recommending optimal payment option using the same
KR1020140133240A
Ordering method and system supporting coupon verification integration
WO2020207301A1