WO2018228408A1 - Method and apparatus for settling transaction, server, and storage medium - Google Patents

Method and apparatus for settling transaction, server, and storage medium Download PDF

Info

Publication number
WO2018228408A1
WO2018228408A1 PCT/CN2018/090977 CN2018090977W WO2018228408A1 WO 2018228408 A1 WO2018228408 A1 WO 2018228408A1 CN 2018090977 W CN2018090977 W CN 2018090977W WO 2018228408 A1 WO2018228408 A1 WO 2018228408A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
settlement
rule
record
transaction record
Prior art date
Application number
PCT/CN2018/090977
Other languages
French (fr)
Chinese (zh)
Inventor
张帅
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018228408A1 publication Critical patent/WO2018228408A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP

Definitions

  • the present application relates to the field of transaction data processing technologies, and in particular, to a transaction settlement method, apparatus, server, and storage medium.
  • the payment platform After the transaction payment is completed based on the payment platform (eg, transfer, merchandise payment, cash withdrawal, etc.), the payment platform generates a transaction record, and the transaction record generally records the parties involved in the transaction, the payment method, the transaction platform, and the payment amount. And a variety of transaction information.
  • the payment platform performs transaction settlement (also called payment settlement) on the transaction record according to the transaction charging rule matched with the transaction record. For example, the payment platform determines the required deduction according to the charging rule matched with the transaction record. After the fee or service fee is deducted from the payment amount, the remaining payment amount is deposited into the designated account of the payee in the transaction to complete the transaction settlement.
  • transaction settlement also called payment settlement
  • the transaction settlement rules are not only related to the payee in the transaction, but also related to one or more of various factors such as payment method, trading platform and payment amount.
  • factors such as the payment method, trading platform and payment amount of the payee of the transaction often change, and once these factors change, there may be a transaction record in the payment platform that is not configured with the payee of the transaction.
  • the matching transaction settlement rules result in the inability to complete the settlement of the transaction, which in turn leads to delays in the settlement of the payee's settlement.
  • the present application provides a transaction settlement method, apparatus, server, and storage medium to reduce the occurrence of transaction settlement failure due to failure to match the transaction settlement rule, thereby reducing the payment settlement delay of the payee.
  • the present application provides a transaction settlement method, including:
  • Transaction settlement is performed on the transaction record based on the target transaction settlement rule.
  • the application provides a transaction settlement device, including:
  • a record acquisition unit for obtaining a transaction record to be settled
  • a rule matching unit configured to determine, by using a pre-trained rule matching model, a degree of matching between the transaction record and a preset plurality of transaction settlement rules, wherein the rule matching model is based on multiple history before the current time Transaction records and training settlement rules corresponding to the historical transaction records;
  • a rule determining unit configured to determine, according to a matching degree of the transaction record and a preset plurality of transaction settlement rules, from the preset plurality of transaction settlement rules, determining a transaction settlement required for the transaction record Target transaction settlement rules;
  • a transaction settlement unit configured to perform transaction settlement on the transaction record based on the target transaction settlement rule.
  • the application provides a server, including:
  • the processor is configured to execute a program stored in the memory
  • the memory is for storing a program, the program being at least for:
  • Transaction settlement is performed on the transaction record based on the target transaction settlement rule.
  • the present application also provides a storage medium having stored therein computer executable instructions for performing a transaction settlement method as described above.
  • the present application also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform a transaction settlement method as described above.
  • the rule matching model obtained by the pre-training may be used to determine the matching degree of the transaction record to the preset multiple transaction settlement rules respectively. And according to the matching degree of the transaction record with the preset multiple transaction settlement rules, from the plurality of transaction settlement rules, a transaction settlement rule is selected to perform transaction settlement on the transaction record, thereby reducing the occurrence of the payment platform.
  • the transaction settlement rules are missing, which makes it impossible to settle the transaction records, which reduces the delay in transaction settlement.
  • FIG. 1 is a schematic diagram showing a composition structure of an application scenario to which a transaction settlement method of the present application is applied;
  • FIG. 2 is a schematic diagram showing the structure of a server to which a transaction settlement method of the present application is applied;
  • FIG. 3 is a schematic flow chart showing an embodiment of a transaction settlement method of the present application.
  • FIG. 4 is a schematic diagram showing input parameters and output results of an RNN model of the present invention as a rule conversion model
  • FIG. 5 is a schematic diagram showing a training process of training an RNN model as a rule conversion model according to the present application
  • FIG. 6 is a schematic flow chart of a transaction settlement method of the present application in an application scenario
  • FIG. 7 is a schematic diagram showing an execution flow of a transaction settlement method of the present application.
  • FIG. 8 is a block diagram showing the structure of an embodiment of a transaction settlement device of the present application.
  • FIG. 1 is a schematic structural diagram of an application scenario in which the solution of the present application is applied, where the application scenario includes:
  • the payment platform 101 The payment platform 101, the transaction platform 102, and the user's terminal 103.
  • the payment platform 101 can include at least one payment server 1011.
  • the payment platform may be a third-party payment platform, or may be a platform for a payment system such as a bank that can realize transaction payment by both parties.
  • the trading platform 102 is a service platform that can complete product transactions between the provider and the user.
  • the trading platform 102 can include at least one trading server 1021.
  • the merchant in the trading platform 102 is a merchant registered with the payment platform 101, or a merchant having a contractual relationship with the payment platform 101.
  • the user is a registered user on the payment platform.
  • the user can access the trading platform 102 through the terminal 103 to conduct product transactions with the merchants in the trading platform, and after the product transaction is reached, send a payment request to the payment platform through the terminal 103, the payment request carrying the identifier of the paying party (ie, The user's identification), the identity of the payee (ie, the identity of the merchant), the transaction amount, the payment channel (eg, UnionPay card payment, credit card payment, account balance payment, etc.).
  • the payment request may also carry: an identification of the trading platform, a product type of the transaction, and the like.
  • the payment platform generates a transaction record according to the payment request submitted by the user, and the transaction record may include the identifier of the above payment party carried by the payment request, the identifier of the payee, the payment channel, the identifier of the transaction platform, and the product type of the transaction.
  • the payment platform may also store the access channel and the settlement mode as information in the transaction record according to the identifier of the payee, or the access channel and the settlement mode of the payee accessing the payment platform.
  • the access channel indicates a specific manner used by the payee to access the payment platform.
  • the access channel may include: accessing the payment platform through a mobile terminal or a wired network terminal, and the settlement mode indicates the type of the transaction, for example,
  • the settlement mode can include: transaction payment, transfer, and withdrawal.
  • the payment platform may set the frequency of transaction settlement according to needs, for example, one transaction settlement is performed every natural day, or the transaction settlement may be performed every specified time. Of course, the payment platform may also be different for different trading platforms or different.
  • the merchant sets the frequency of different transaction settlements.
  • the payment platform acquires at least one transaction record currently to be settled; for each transaction record, determines a transaction settlement rule matching the transaction record, and performs the transaction record according to the transaction settlement rule Transaction settlement.
  • the transaction settlement rule may be a charging rule for determining a service fee or a fee for deduction of the transaction record, and the deduction amount required for the payment settlement of the transaction record may be determined according to the charging rule. And deducting the deduction amount from the transaction amount of the transaction record, and storing the remaining transaction amount in the designated account of the payee corresponding to the transaction record.
  • the transaction platform included in the scenario is taken as an example, in which the transaction parties complete the transaction payment based on the payment platform after generating the product transaction.
  • the application scenario to which the solution of the present application is applied is not limited to that shown in FIG. 1.
  • the user pays according to the payment platform to the merchant, and the user withdraws the cash based on the payment platform.
  • the platform generates transaction records and settles transactions for transaction records when transaction settlement is required.
  • the inventor of the present application studies the transaction settlement process of the payment platform and finds that the transaction settlement rules are related to the payment channels set by the merchants, the merchants, the transaction platform to which the merchant belongs, the settlement mode set by the merchant, and the like.
  • the merchant changes one or more factors, if the management personnel of the payment platform fail to enter the corresponding transaction settlement rules in time, or establish the correspondence between the transaction settlement rules and the changed factors in time, it may result in The transaction settlement rules are missing, and the transaction settlement rules corresponding to the transaction records are not configured in the payment platform.
  • a merchant's payment channel includes credit card payment and debit card payment. If the merchant adds a UnionPay card to quickly pay for this payment channel, the payment platform does not correspond to the merchant and the UnionPay card quick payment.
  • the transaction settlement rule if there is a transaction record for the merchant and the UnionPay card is used for fast payment, the transaction settlement rule corresponding to the transaction record cannot be matched, and the transaction settlement fails.
  • the embodiment of the present application provides a transaction settlement method, and the transaction settlement method can be applied to payment.
  • the server of the platform to settle the payment records.
  • FIG. 2 a schematic structural diagram of a server of a payment platform to which the transaction settlement method of the embodiment of the present application is applied is shown.
  • the server 200 can include a processor 201, a memory 202, a communication interface 203, an input unit 204, a display 205, and a communication bus 206.
  • the processor 201 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), an application specific integrated circuit. (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic devices.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the processor can call a program stored in the memory 202.
  • the memory 202 is configured to store one or more programs, and the program may include program code, where the program code includes computer operation instructions.
  • the program code includes computer operation instructions.
  • at least the program for implementing the following functions is stored in the memory:
  • Transaction settlement is performed on the transaction record based on the target transaction settlement rule.
  • the memory 202 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the communication interface 203 can be an interface of a communication module, such as an interface of a GSM module.
  • the server of the present application may further include an input unit 204, which may include an input device such as a keyboard, a mouse, or the like.
  • the display 205 includes a display panel or the like.
  • server structure shown in FIG. 2 does not constitute a limitation on the server in the embodiment of the present application.
  • the server may include more or less components than those shown in FIG. 2, or combine some components.
  • FIG. 3 it is a schematic flowchart of an embodiment of a transaction settlement method according to the present application.
  • the method in this embodiment may be applied to a server of a payment platform, and the method may include:
  • the transaction record includes transaction information of at least one attribute.
  • the attributes (or dimensions) that may be involved in the transaction record may include: the payee of the transaction record, the transaction amount of the transaction record, the payment method of the transaction record, The trading platform of the transaction record, the payment channel of the transaction (also known as payment method, such as credit card payment, UnionPay card payment, etc.), the product type of the transaction, the access channel of the payee accessing the payment platform, and the settlement mode (eg Trade payment, transfer or withdrawal) and other attributes.
  • the transaction information may include transaction information of one or more of the above various attributes.
  • the transaction information of each attribute can be considered as the specific value of the transaction record under this attribute. For example, if the transaction record includes the transaction information under the attribute of the payee, the transaction record 1 records the transaction information of the payee A, and the transaction record 2 may record the payee B. Transaction information.
  • the payment platform is preset with a plurality of different transaction settlement rules, and each transaction settlement rule corresponds to at least one transaction information combination, the transaction information combination includes at least one transaction information, and the different transaction information combinations are included.
  • the type and amount of transaction information can vary.
  • the correspondence between the transaction settlement rules and the transaction information combination may include:
  • the transaction settlement rule is: the deduction amount required to be deducted is equal to the payment amount multiplied by the first billing rate (eg, the first billing fee) Rate is 0.6%);
  • the transaction settlement rule is: the deduction amount required to be deducted is the preset amount (for example, 1,000 yuan).
  • the transaction settlement rule is: the deduction amount required to be deducted is equal to the payment amount multiplied by the second charging rate (eg, the first billing rate) The rate is 1.5%).
  • the payment platform can also set which transaction information in the transaction record belongs to the key transaction information required to match the transaction settlement rule, and therefore, if there is a transaction information combination and a few included in the transaction record If the key transaction information is completely matched, the transaction settlement rule corresponding to the transaction information combination may be determined as the transaction settlement rule corresponding to the transaction record.
  • the payment platform may not be configured with the corresponding transaction settlement rules or the transaction settlement rules are missing in time when the transaction records are generated. There is currently no transaction settlement rule configured for the transaction record in the payment platform.
  • the embodiment of the present application can process the rule matching model, refer to S303.
  • the rule matching model needs to be trained.
  • a matching rule for determining the matching degree may be mined, and the matching rule may be: The degree of influence of the different transaction information contained in the attribute, and the matching of the transaction record with the preset multiple transaction settlement rules.
  • the attribute is the payee
  • the payee can have multiple possibilities, and different payees have different influences on the transaction record containing the payee and the matching of different transaction settlement rules.
  • the matching rule in the model and the transaction information of the at least one attribute in the transaction record may be matched according to the rule, and the rule matching model is used to calculate the transaction record and the preset multiple transaction settlement rules respectively.
  • each transaction includes different transaction information
  • the degree of influence on the transaction record matching the preset multiple transaction settlement rules may be: each transaction contains different transaction information respectively.
  • the matching scores matched by the preset multiple transaction settlement rules, and the different transaction information contained in each attribute affect the transaction records respectively with the preset multiple transaction settlement rules.
  • the information affects the influence weight of the transaction record matching the transaction settlement rule, and calculates a weighted sum of the matching scores corresponding to the transaction information of the at least one attribute included in the transaction record, thereby determining the calculated score as the transaction record The degree of matching with the transaction settlement rules.
  • the matching degree of the transaction record and the transaction settlement rule can be characterized by the matching probability.
  • the matching score referred to above may be a value greater than or equal to zero and less than 1.
  • the degree of matching by matching probability is only an implementation.
  • the degree of matching between transaction records and transaction settlement rules can also be scored (for example, the score can be from 0 to 100). Any numerical representation), wherein the higher the score, the higher the match between the transaction record and the transaction settlement rule.
  • the degree of matching between the transaction record and the transaction settlement rule can also be represented by the matching level between the transaction record and the transaction settlement rule, which is not limited herein.
  • the rule matching model is trained by using various transaction information included in a plurality of historical transaction records before the current time.
  • the transaction record before the current time is referred to as a historical transaction record.
  • the rule matching model obtained by training may have various possible situations.
  • the rule matching model may be a Recurrent Neural Networks (RNN) model.
  • RNN Recurrent Neural Networks
  • the rule matching model can also be obtained through other algorithms or model training, for example, based on Bayesian classifier model, Support Vector Machine (SVM) model, symbolic reasoning algorithm, and genetic algorithm based competition for elimination.
  • SVM Support Vector Machine
  • the rule matching model is trained by one or more of different algorithms or models, such as a deep learning algorithm and a heterogeneous learner, and is not limited herein.
  • the rule matching model obtained by the pre-training is used to determine the matching probability between the transaction record and the different transaction settlement rules as an example.
  • the rule matching model obtained by the pre-training can be used to determine the transaction. Record the probability of matching with different transaction settlement rules, in order to finally select a more suitable transaction settlement rule to settle the transaction record. Therefore, after the transaction record is acquired, the operation of step S302 may not be performed, and the rule matching model may be directly used to determine the matching probability between the transaction record and the different transaction settlement rules.
  • S304 Determine, according to the matching degree between the transaction record and the preset plurality of different transaction settlement rules, determine, from the preset plurality of different transaction settlement rules, the target transaction settlement with the highest degree of matching with the transaction record. rule.
  • the transaction matching rule with the highest matching degree is called the target transaction settlement rule.
  • the target transaction settlement rule can be used as a transaction settlement rule required for the transaction record of the transaction record.
  • the matching probability of the transaction settlement rule A matching the transaction record is 0.6
  • the matching probability of the transaction settlement rule B matching the transaction record is 0.3
  • the matching probability of the transaction settlement rule C matching the transaction record is 0.1
  • the present embodiment illustrates the matching degree between the transaction record and the transaction settlement rule by using the matching probability as an example, but it can be understood that when the transaction record and the transaction settlement rule are represented by the score or the rank.
  • the transaction settlement rule with the highest score or the highest matching level can be selected as the target transaction settlement rule.
  • a transaction settlement rule may be selected as the target transaction settlement from the transaction settlement rule whose matching probability or matching score exceeds the preset threshold. Rules, no restrictions here.
  • the transaction settlement rule After the target transaction settlement rule is determined, according to the transaction settlement rule, there may be multiple ways of settlement of the transaction record, which may be different according to different transaction settlement rules and application scenarios of transaction settlement. No restrictions.
  • the rule matching model obtained by the pre-training may be utilized, and at least two transaction information based on the transaction information of the at least one attribute included in the transaction record, Calculating a matching probability that the transaction record matches the preset multiple transaction settlement rules respectively, and using the target transaction settlement rules with the highest matching degree with the transaction record in the plurality of transaction settlement rules, the settlement of the transaction record, This reduces the delay in transaction settlement due to the inability to complete the transaction settlement of the transaction record.
  • the transaction estimation voucher may include: transaction information of at least one attribute included in the transaction record, a target transaction settlement rule corresponding to the transaction record, and a settlement amount for transaction settlement of the transaction record.
  • the settlement amount of the transaction record can be determined by the transaction settlement of the transaction record, and the amount determined to be transferred to the payee corresponding to the transaction record.
  • the transaction record includes at least the payee of the transaction.
  • the amount of the settlement of the most recent income after the current time can be compensated according to the deviation compensation amount.
  • the purpose of generating the transaction estimation voucher is that after completing the transaction settlement, the user (eg, the service maintenance personnel of the payment platform, etc.) can analyze the target transaction settlement rule corresponding to the transaction record and settle according to the transaction estimation voucher. The amount is correct. If there is a problem with the settlement amount due to an error in the target transaction settlement rule, the user re-configures the transaction with at least one attribute of the transaction record in the payment platform after analyzing the transaction settlement rule that actually matches the transaction record. The transaction settlement rule of the information matching, and the payment platform or the user recalculates the actual settlement amount corresponding to the transaction record through the terminal. For the sake of distinction, the settlement amount actually required for settlement of the transaction record is referred to as the actual settlement amount.
  • the amount of deviation between the settlement amount and the settlement amount can be calculated based on the actual settlement amount and the target transaction settlement rule, and the deviation compensation amount can be obtained.
  • the deviation compensation amount may be: calculating a difference between the settlement amount and the actual settlement amount by using a target transaction settlement rule.
  • the deviation compensation amount may be input or input into the server of the payment platform through the terminal. In this way, if the server acquires the transaction record corresponding to the payee again after the current time, then the transaction settlement of the transaction record is completed, and the account corresponding to the payee is transferred to the transaction settlement. Before the settlement amount, the sum of the deviation compensation amount and the settlement amount may be used as the amount to be transferred to the designated account.
  • the amount of 20 yuan deducted from the settlement amount of the income required by the payee after the current time may be The settlement amount after deducting 20 yuan will be deposited into the account designated by the payee.
  • the target transaction settlement rule corresponding to the transaction record is determined by the rule matching model obtained through the training, and the settlement amount required for the transaction record is calculated by using the target transaction settlement rule, and the transaction of the transaction record is completed.
  • the manner of adjusting the settlement amount of the transaction settlement required for the transaction record may be various, and is not limited to the implementation manners of step S306 and step S307.
  • steps S307 and S307 are optional steps, and the purpose thereof is only to improve the accuracy of transaction settlement for the transaction record, and if only the delay of the transaction settlement is reduced, the step S306 and the step S307 may not be performed.
  • the transaction settlement settlement corresponding to the transaction record may be directly calculated based on the transaction settlement rule corresponding to the transaction record. Amount, and complete the transaction settlement.
  • the RNN model obtained by training the rule matching model is taken as an example.
  • FIG. 4 shows a schematic diagram of input parameters and output results in the process of training the RNN model in the present application. .
  • the parameters of the RNN model to be trained during the training process include: a plurality of transaction information included in the historical transaction record, such as a merchant (or a payee), a trading platform, a product type of the transaction, Payment method, access channel, settlement mode, payment amount, etc., and the result of the RNN model output is: the probability of matching between the historical transaction record and a plurality of different transaction settlement rules.
  • the right side of the RNN model in Figure 4 represents a variety of transaction settlement rules.
  • 0.6% means that the transaction settlement rule is: the deduction amount is equal to the product of the transaction amount and the billing rate of 0.6%; for example, 1 yuan per pen.
  • the transaction settlement rule is: the deduction amount corresponding to each transaction record is 1 yuan; for example, the package amount is 10,000, indicating that the transaction settlement rule is: within a specified time period (such as one year or one month), if the deduction has been deducted If the payee of the transaction record has a fixed deduction amount of 10,000 yuan, there is no need to deduct the deduction amount from the transaction record.
  • the matching probability corresponding to each transaction settlement rule can be output through the RNN model.
  • the process of the training rule matching model of the present application is introduced by taking the rule matching model as the RNN model as an example.
  • the training of the present application is used to determine transaction records and different transaction settlement rules.
  • Schematic diagram of the training process of the RNN model of the matching probability the process may include:
  • S501 Acquire a plurality of historical transaction records required for training and actual transaction settlement rules that each historical transaction record actually matches.
  • each historical transaction record includes historical transaction information of at least one attribute.
  • each historical transaction record is used as a training sample in the training process, and the historical transaction information in the historical transaction record is the training data of the training sample.
  • the historical transaction record is a transaction record in which payment settlement has been completed before the current time, and the transaction settlement rule of each historical transaction record in the payment platform has been determined.
  • the transaction settlement rule adopted by the historical transaction record to complete the transaction settlement is referred to as the actual transaction settlement rule, wherein the actual transaction settlement rule may also be considered as the transaction settlement rule actually configured by the payment platform for the historical transaction record.
  • the historical transaction record sample is a historical transaction record of the historical transaction record that is not used as a training sample to train the RNN model.
  • the historical transaction record to be trained selected from the historical transaction record that has never been used as the training sample is called A historical transaction record, wherein the historical transaction record is the currently selected target historical transaction record to be trained on the RNN model.
  • a plurality of different transaction settlement rules are preset in the RNN model to be trained.
  • step S504 determining whether a matching probability between the historical transaction record sample output by the RNN model and the actual transaction settlement rule of the historical transaction record sample is greater than a preset threshold, and if yes, executing step S505; if not, adjusting the RNN
  • the parameter settings in the model are returned to step S503.
  • the preset threshold may be set as needed.
  • the preset threshold may be 0.9.
  • the matching probability between the historical transaction record sample outputted in the RNN model and the actual transaction settlement rule of the historical transaction record sample is larger. For example, greater than the preset threshold.
  • the probability of matching between the historical transaction record sample output by the RNN model and the actual transaction settlement rule of the historical transaction record sample is low, it indicates that the parameter set in the RNN model is unreasonable, resulting in the output of the historical transaction record and The deviation of the matching probability between each transaction settlement rule is large.
  • the historical transaction sample record is reused to train the RNN model until the matching probability between the historical transaction record sample output by the RNN model and its actual transaction settlement rule. Exceeded the preset threshold.
  • step S505. Detect whether there is a historical transaction record in the plurality of historical transaction records that has not been trained as a training sample, and if yes, return to step S502; if not, the training ends, and the training obtains an RNN model as a rule matching model. .
  • the trained RNN model can be used as a model for calculating the matching probability of the matching between the transaction record and the different transaction settlement rules.
  • FIG. 5 is only for the convenience of understanding, and the RNN model is taken as an example to introduce the training rule matching model process.
  • the rule matching model is another network model or classifier, the training process is similar, and no longer Narration.
  • FIG. 5 is an example of a training process.
  • the process of training the rule matching model may have other possible situations, which are not limited herein.
  • the rule matching model trained based on historical transaction records cannot accurately reflect the degree of matching between different transaction records and transaction settlement rules.
  • the rule matching model may be updated periodically.
  • the set collection period obtain a plurality of latest historical transaction records collected in the latest collection period before the current time, wherein the collection period may need to be set, for example, one day may be an acquisition period, or 4 Hours are an acquisition cycle, etc.
  • the historical transaction records collected in the most recent collection period before the current time are referred to as the latest historical transaction records, and the latest historical transaction records may belong to various transaction information of different attributes.
  • the rule matching model is trained to update the plurality of transaction information included in the latest historical transaction records collected in the most recent collection period.
  • Rule matching model The process of retraining the rule matching model by using the plurality of latest historical transaction records is similar to the process of training the rule matching model by using the historical transaction record, and details are not described herein.
  • the retraining time may be determined according to a retraining period corresponding to the rule matching model, so as to implement periodic updating of the rule matching model.
  • the historical transaction record collected before the most recent collection period and the latest historical transaction record collected in the latest collection period may be used to match the rule matching model.
  • Retrain to update the rule matching model when the rule matching model is retrained, the ratio of the historical transaction record and the latest transaction record before the latest collection period can be set as needed, and is not limited herein.
  • the rule matching model cannot be used to determine and be processed.
  • at least two pre-trained rule matching models may be preset, and the model retraining time of the at least two rule matching models is not completely the same, so that When the rule matching model needs to be called to determine the matching degree between the transaction record and the preset multiple transaction settlement rules, the rule matching model that is not currently in the training state may be selected from the preset at least two rule matching models.
  • FIG. 6 is a schematic flowchart of a transaction settlement method applied to an application scenario, and the method in this embodiment may include:
  • the transaction record may include transaction information of at least two attributes including the payee of the transaction and the transaction amount of the transaction.
  • the deduction is required from the transaction amount of the payee in the transaction settlement process, at least the specific values of the two attributes of the payee and the transaction amount need to be recorded in the transaction record.
  • the payee of the transaction may be the merchant or user responsible for collecting the payment; the merchant or user accepting the transfer; or the user who withdraws the money, and the like.
  • the transaction amount can be the payment amount paid during the transaction, the transfer amount of the transfer, or the cash withdrawal amount, etc.
  • the transaction record can record other information related to the transaction, in addition to the transaction record recorded under the two attributes of the transaction and the transaction amount, for example, the aforementioned transaction.
  • S602. Determine, according to the transaction information of the at least two attributes included in the transaction record, and use a rule matching model obtained by the pre-training to determine a matching probability between the transaction record and the preset multiple transaction settlement rules.
  • S603. Determine, according to the matching probability between the transaction record and the preset plurality of different transaction settlement rules, determine, from the preset plurality of different transaction settlement rules, the target transaction settlement with the highest degree of matching with the transaction record. rule.
  • the transaction settlement rule can be understood as a charging rule that the payment platform performs charging for the transaction record. According to the charging rule, the deduction amount that needs to be deducted from the transaction amount for the transaction record can be determined.
  • the transaction settlement rule is the product of the deduction amount equal to 0.6% of the transaction amount and the billing rate
  • the amount obtained by multiplying the transaction amount by 0.6% is the deduction amount; for example, for billing
  • the deduction amount for the transaction record is 1 yuan.
  • the settlement amount obtained by subtracting the transaction amount of the transaction record from the deduction amount is deposited into the account designated by the payee of the transaction record.
  • the transaction amount is 100 yuan and the deduction amount is 1 yuan
  • the remaining 99 yuan is deposited into the account specified by the payee in the transaction record to realize settlement of the transaction based on the payment platform.
  • the transaction estimation voucher is equivalent to the charging estimation voucher for estimating the transaction record.
  • At least the transaction information including the payee and the transaction amount included in the transaction record, the transaction information, the target settlement rule according to the transaction settlement, and the transaction settlement corresponding to the transaction record are stored in the transaction estimation voucher.
  • the amount is the deduction amount.
  • the user can analyze the target transaction settlement rule corresponding to the transaction record and whether the deduction amount is correct according to the transaction estimation voucher. If the transaction settlement rule is incorrect, after the user analyzes the transaction settlement rule that actually matches the transaction record, the transaction settlement rule corresponding to the transaction record is reconfigured in the payment platform.
  • the deviation compensation amount is determined according to the actual deduction amount and the deduction amount deducted in step S605.
  • the deviation compensation amount may be: using the target transaction settlement rule to calculate the difference between the deduction amount and the actual deduction amount.
  • the server deducts or increases the settlement amount of the income received by the payee after the current time according to the deviation compensation amount, to the payee Make amount compensation.
  • step S606 and the step S607 are also optional steps, and the steps S606 and S607 may be selected or not executed according to actual needs.
  • the transaction settlement process of the present application will be described below in conjunction with the execution flow of FIG.
  • the payment platform is described as an example of a third-party payment platform, but the same applies to the payment platform.
  • the transaction flow is started on the left side.
  • the third-party payment platform obtains the transaction flow, and the transaction flow is composed of a plurality of transaction records collected by the third-party payment platform at different times.
  • the third-party payment platform may lose data due to asynchronous delay accounting, rollback, etc., it is necessary to check the data in the transaction flow through the snapshot compensation module.
  • the data in the transaction stream is compensated by the snapshot compensation module, and then stored in the service snapshot module.
  • the service snapshot module stores a plurality of transaction records to be processed involved in the transaction stream.
  • the parser analyzes the transaction information of different attributes in the transaction record, and determines whether the billing configuration module of the third-party platform stores the transaction settlement rule having a mapping relationship with the transaction record.
  • the transaction settlement rule of the transaction record is obtained from the billing configuration module, and the transaction settlement rule is calculated based on the transaction settlement rule of the transaction record.
  • the billing of the transaction record ie, the deduction amount
  • the settlement of the transaction for the transaction record is completed.
  • a billing document is generated.
  • the "accounting" connected to the billing configuration module indicates the transaction record of the billing according to the transaction settlement rules configured in the billing configuration module.
  • the billing voucher may include a billing and a transaction settlement rule corresponding to the transaction record.
  • the transaction record included in the billing voucher and the transaction settlement rule of the transaction record can be used as the transaction transaction rule for training the rule matching model and the transaction settlement rule of the recent transaction record.
  • the billing certificate can be As a sample input of the sampler corresponding to the learner, the learner trained in the historical transaction record is trained to achieve the purpose of updating the learner.
  • the learner refers to a rule matching model that requires repeated training.
  • the third-party payment platform is exemplified by setting two learners, which are trained by using data corresponding to historical transaction records in advance.
  • a learner that is not currently in the training state is selected from the at least two learners obtained in advance.
  • the selected learner determines the degree of matching between the transaction record and the preset multiple transaction settlement rules, thereby determining the target transaction settlement rule with the highest degree of matching with the transaction record.
  • the transaction record is then billed and the transaction is settled using the target transaction settlement rules.
  • the "billing" (the third "billing" from left to right) connected to the billing configuration module by a dotted line in FIG. 7 by a broken line indicates a transaction record not configured with a transaction settlement rule.
  • a billing estimation voucher is also generated for the transaction record, as shown in FIG.
  • the estimation module stores the accounting estimation voucher corresponding to all the transaction records in which the transaction settlement rule is completed by the target transaction settlement rule learned by the learner.
  • the transaction record with the billing error can be manually analyzed, and the amount of the offset compensation required for the transaction record with the billing error can be manually determined, so as to subsequently receive the transaction record. The amount is deducted or compensated in the payment.
  • the user can analyze the transaction settlement rules actually required by the transaction record, and configure the transaction settlement rules actually needed for the transaction record in the billing configuration model.
  • a transaction settlement device provided by an embodiment of the present invention is described below.
  • a transaction settlement device described below may be associated with a transaction settlement method described above.
  • FIG. 8 a schematic structural diagram of an embodiment of a transaction settlement device of the present application is shown.
  • the device of this embodiment may include:
  • a record obtaining unit 801 configured to acquire a transaction record to be settled
  • the rule matching unit 802 is configured to determine, by using a pre-trained rule matching model, a degree of matching between the transaction record and a preset plurality of transaction settlement rules, where the rule matching model is based on multiple previous times The historical transaction record and the transaction settlement rules corresponding to the historical transaction record are trained;
  • the rule determining unit 803 is configured to determine, according to the matching degree of the transaction record and the preset plurality of transaction settlement rules, from the preset plurality of transaction settlement rules, determine the transaction settlement required for the transaction record Target transaction settlement rules;
  • the transaction settlement unit 804 is configured to perform transaction settlement on the transaction record based on the target transaction settlement rule.
  • the transaction record acquired by the record obtaining unit includes at least one attribute of transaction information
  • the rule matching unit is configured to determine, according to transaction information of at least one attribute in the transaction record and a matching rule that is mined in a pre-trained rule matching model, and use the rule matching model to determine the transaction record.
  • the apparatus further includes: a model training unit, configured to obtain the rule matching model by:
  • the target matching probability output by the rule matching model is less than or equal to a preset threshold, adjusting a parameter setting in the rule matching model, and returning to perform the historical transaction of the at least one attribute of the target historical transaction record
  • the information is input to an operation in the rule matching model to be trained, wherein the target matching probability is a matching probability between the target historical transaction record and the actual transaction settlement rule of the target historical transaction record;
  • the apparatus further includes:
  • a data collecting unit configured to acquire, according to a preset collection period, an latest historical transaction record in which the payment platform completes transaction settlement in the collection period and a transaction settlement rule corresponding to the latest historical transaction record;
  • a model retraining unit configured to use the latest historical transaction record collected in the latest collection period before the current time and the transaction settlement rule corresponding to the latest historical transaction record when the model retraining time corresponding to the rule matching model is reached And training the rule matching model to update the rule matching model.
  • the rule matching unit includes:
  • a model selection sub-unit configured to determine, from a plurality of pre-trained rule matching models, a rule matching model that is not currently in a training state
  • the rule matching sub-unit is configured to determine, by using a rule matching model that is not currently in the training state, a degree of matching between the transaction record and the preset multiple transaction settlement rules.
  • the rule determining unit is specifically configured to determine, from the preset plurality of transaction settlement rules, a target transaction settlement rule with the highest degree of matching with the transaction record.
  • the transaction record acquired by the record obtaining unit includes at least two types of transaction information belonging to different attributes, and the at least two pieces of transaction information include: a payee of the transaction record and the transaction record Transaction amount;
  • the transaction settlement unit includes:
  • a billing subunit configured to determine a deduction amount to be deducted from the transaction record based on the target transaction settlement rule
  • a settlement subunit configured to reduce the transaction amount in the transaction record by the deduction amount, and deposit the settlement amount into the account specified by the payee of the transaction record.
  • the transaction settlement device further includes:
  • An estimated voucher generating unit configured to generate a transaction estimation voucher for the transaction record after the transaction settlement unit performs transaction calculation on the transaction record, and store the transaction estimation voucher, the transaction estimation voucher
  • the method includes: the at least two transaction information in the transaction record, a target transaction settlement rule corresponding to the transaction record, and a settlement amount of the transaction record for settlement of the transaction;
  • the amount compensation unit is configured to store, when receiving the deviation compensation amount input by the user for the transaction estimation voucher, a correspondence between the deviation compensation amount and the payee of the transaction record, so as to compensate the amount according to the deviation And compensate the settlement party for the settlement amount of the latest income after the current time.
  • embodiment of the present application further provides a storage medium for storing program code, and the program code is used to execute the transaction settlement method described in any one of the above embodiments.
  • embodiments of the present invention also provide a computer program product comprising instructions that, when executed on a computer, cause the computer to perform transaction settlement as described in any of the above embodiments.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Marketing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

Disclosed are a method and apparatus for settling a transaction, a server, and a storage medium. The method comprises: acquiring a transaction record to be settled; using a rule matching model obtained by means of pre-training, to determine the matching degree of the transaction record respectively with pre-set multiple transaction settlement rules; according to the matching degree of the transaction record respectively with the pre-set multiple transaction settlement rules, determining, from the pre-set multiple transaction settlement rules, a target transaction settlement rule required for a transaction settlement of the transaction record; and based on the target transaction settlement rule, carrying out transaction settlement on the transaction record. The solution of the present application can reduce the cases in which a transaction settlement fails due to the inability to match a transaction settlement rule, thereby reducing a delay in settlement and entry of a payee in a payment platform.

Description

交易结算方法、装置、服务器以及存储介质Transaction settlement method, device, server, and storage medium
本申请要求于2017年06月16日提交中国专利局、申请号为201710457012.0、发明名称为“交易结算方法、装置、服务器以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application, filed on Jun. 16, 2017, the number of which is hereby incorporated by reference. In this application.
技术领域Technical field
本申请涉及交易数据处理技术领域,尤其涉及一种交易结算方法、装置、服务器以及存储介质。The present application relates to the field of transaction data processing technologies, and in particular, to a transaction settlement method, apparatus, server, and storage medium.
背景技术Background technique
随着网络技术的发展,第三方支付以及其他支付平台的应用日益广泛。With the development of network technology, the application of third-party payment and other payment platforms has become increasingly widespread.
在基于支付平台完成交易支付(如,转账、商品支付、提现等等)之后,该支付平台就会产生一条交易记录,交易记录中一般会记录交易的参与双方、支付方式、交易平台以及支付金额等多种交易信息。支付平台会依据与该交易记录匹配的交易计费规则,对该交易记录进行交易结算(也称为支付结算),如,支付平台依据与交易记录相匹配的计费规则,确定所需扣除的手续费或者服务费等费用,并在从支付金额中扣除所需费用之后,将剩余的支付金额存入到交易中收款方的指定账户内,以完成交易结算。After the transaction payment is completed based on the payment platform (eg, transfer, merchandise payment, cash withdrawal, etc.), the payment platform generates a transaction record, and the transaction record generally records the parties involved in the transaction, the payment method, the transaction platform, and the payment amount. And a variety of transaction information. The payment platform performs transaction settlement (also called payment settlement) on the transaction record according to the transaction charging rule matched with the transaction record. For example, the payment platform determines the required deduction according to the charging rule matched with the transaction record. After the fee or service fee is deducted from the payment amount, the remaining payment amount is deposited into the designated account of the payee in the transaction to complete the transaction settlement.
其中,交易结算规则不仅与交易中的收款方有关,还与支付方式、交易平台以及支付金额等多种因素中的一种或多种有关。然而交易的收款方所对应的支付方式、交易平台以及支付金额等因素经常会发生改变,而这些因素一旦发生变化,就可能出现支付平台中未配置有与该交易的收款方的交易记录相匹配的交易结算规则,从而导致无法完成交易结算,进而导致收款方的结算入账延迟。Among them, the transaction settlement rules are not only related to the payee in the transaction, but also related to one or more of various factors such as payment method, trading platform and payment amount. However, factors such as the payment method, trading platform and payment amount of the payee of the transaction often change, and once these factors change, there may be a transaction record in the payment platform that is not configured with the payee of the transaction. The matching transaction settlement rules result in the inability to complete the settlement of the transaction, which in turn leads to delays in the settlement of the payee's settlement.
发明内容Summary of the invention
有鉴于此,本申请提供了一种交易结算方法、装置、服务器以及存储介质,以减少由于无法匹配到交易结算规则而导致交易结算失败的情况发生,进而减少收款方结算入账延迟。In view of this, the present application provides a transaction settlement method, apparatus, server, and storage medium to reduce the occurrence of transaction settlement failure due to failure to match the transaction settlement rule, thereby reducing the payment settlement delay of the payee.
为实现上述目的,本申请提供了一种交易结算方法,包括:To achieve the above object, the present application provides a transaction settlement method, including:
获取待结算的交易记录;Obtain transaction records to be settled;
利用预先训练得到的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,其中,所述规则匹配模型为基于当前时刻之前的多条历史交易记录以及所述历史交易记录对应的交易结算规则训练得到的;Determining, by the pre-trained rule matching model, a degree of matching between the transaction record and a preset plurality of transaction settlement rules, wherein the rule matching model is based on a plurality of historical transaction records before the current time and the history The trading settlement rules corresponding to the transaction records are trained;
依据所述交易记录分别与预置的多种交易结算规则的匹配程度,从所述预置的多种交易结算规则中,确定对所述交易记录进行交易结算所需的目标交易结算规则;Determining a target transaction settlement rule required for transaction settlement of the transaction record from the preset plurality of transaction settlement rules according to a matching degree of the transaction record with a preset plurality of transaction settlement rules;
基于所述目标交易结算规则,对所述交易记录进行交易结算。Transaction settlement is performed on the transaction record based on the target transaction settlement rule.
本申请提供了一种交易结算装置,包括:The application provides a transaction settlement device, including:
记录获取单元,用于获取待结算的交易记录;a record acquisition unit for obtaining a transaction record to be settled;
规则匹配单元,用于利用预先训练得到的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,其中,所述规则匹配模型为基于当前时刻之前的多条历史交易记录以及所述历史交易记录对应的交易结算规则训练得到的;a rule matching unit, configured to determine, by using a pre-trained rule matching model, a degree of matching between the transaction record and a preset plurality of transaction settlement rules, wherein the rule matching model is based on multiple history before the current time Transaction records and training settlement rules corresponding to the historical transaction records;
规则确定单元,用于依据所述交易记录分别与预置的多种交易结算规则的匹配程度,从所述预置的多种交易结算规则中,确定对所述交易记录进行交易结算所需的目标交易结算规则;a rule determining unit, configured to determine, according to a matching degree of the transaction record and a preset plurality of transaction settlement rules, from the preset plurality of transaction settlement rules, determining a transaction settlement required for the transaction record Target transaction settlement rules;
交易结算单元,用于基于所述目标交易结算规则,对所述交易记录进行交易结算。a transaction settlement unit, configured to perform transaction settlement on the transaction record based on the target transaction settlement rule.
本申请提供了一种服务器,包括:The application provides a server, including:
处理器和存储器;Processor and memory;
其中,所述处理器用于执行所述存储器中存储的程序;Wherein the processor is configured to execute a program stored in the memory;
所述存储器用于存储程序,所述程序至少用于:The memory is for storing a program, the program being at least for:
获取待结算的交易记录;Obtain transaction records to be settled;
利用预先训练得到的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,其中,所述规则匹配模型为基于当前时刻之前的多条历史交易记录以及所述历史交易记录对应的交易结算规则训练得到的;Determining, by the pre-trained rule matching model, a degree of matching between the transaction record and a preset plurality of transaction settlement rules, wherein the rule matching model is based on a plurality of historical transaction records before the current time and the history The trading settlement rules corresponding to the transaction records are trained;
依据所述交易记录分别与预置的多种交易结算规则的匹配程度,从所述预置的多种交易结算规则中,确定对所述交易记录进行交易结算所需的目标交易结算规则;Determining a target transaction settlement rule required for transaction settlement of the transaction record from the preset plurality of transaction settlement rules according to a matching degree of the transaction record with a preset plurality of transaction settlement rules;
基于所述目标交易结算规则,对所述交易记录进行交易结算。Transaction settlement is performed on the transaction record based on the target transaction settlement rule.
本申请还提供了一种存储介质,该存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行如上所述的交易结算方法。The present application also provides a storage medium having stored therein computer executable instructions for performing a transaction settlement method as described above.
本申请还提供了一种包括指令的计算机程序产品,当其在计算机上运行时,使得所 述计算机执行如上所述的交易结算方法。The present application also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform a transaction settlement method as described above.
经由上述的技术方案可知,在本申请中,获取到待处理的交易记录之后,可以利用预先训练得到的规则匹配模型,确定出该交易记录分别与预置的多种交易结算规则匹配的匹配程度,并依据交易记录分别与预置的多种交易结算规则的匹配程度,从该多种交易结算规则中,选取出一个交易结算规则对该交易记录进行交易结算,从而减少了由于支付平台中出现交易结算规则缺失,而导致无法对交易记录进行交易结算的情况,进而减少了交易结算延迟的情况。According to the above technical solution, in the present application, after obtaining the transaction record to be processed, the rule matching model obtained by the pre-training may be used to determine the matching degree of the transaction record to the preset multiple transaction settlement rules respectively. And according to the matching degree of the transaction record with the preset multiple transaction settlement rules, from the plurality of transaction settlement rules, a transaction settlement rule is selected to perform transaction settlement on the transaction record, thereby reducing the occurrence of the payment platform. The transaction settlement rules are missing, which makes it impossible to settle the transaction records, which reduces the delay in transaction settlement.
附图说明DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only examples of the present application. One of ordinary skill in the art can also obtain other drawings based on the drawings provided without the inventive effort.
图1示出了本申请的一种交易结算方法所适用的一种应用场景的组成架构示意图;FIG. 1 is a schematic diagram showing a composition structure of an application scenario to which a transaction settlement method of the present application is applied;
图2示出了本申请的一种交易结算方法所适用的服务器的一种组成结构示意图;2 is a schematic diagram showing the structure of a server to which a transaction settlement method of the present application is applied;
图3示出了本申请一种交易结算方法一个实施例的流程示意图;3 is a schematic flow chart showing an embodiment of a transaction settlement method of the present application;
图4示出了本申请的一种训练作为规则转换模型的RNN模型时的输入参数以及输出结果的示意图;4 is a schematic diagram showing input parameters and output results of an RNN model of the present invention as a rule conversion model;
图5示出了本申请一种训练作为规则转换模型的RNN模型的训练流程示意图;FIG. 5 is a schematic diagram showing a training process of training an RNN model as a rule conversion model according to the present application; FIG.
图6示出了本申请一种交易结算方法在一种应用场景下的流程示意图;6 is a schematic flow chart of a transaction settlement method of the present application in an application scenario;
图7示出了本申请一种交易结算方法的执行流程示意图;FIG. 7 is a schematic diagram showing an execution flow of a transaction settlement method of the present application; FIG.
图8示出了本申请一种交易结算装置一个实施例的组成结构示意图。FIG. 8 is a block diagram showing the structure of an embodiment of a transaction settlement device of the present application.
具体实施方式detailed description
如图1,其示出了本申请的方案所适用的一种应用场景的组成架构示意图,在该应用场景中包括:FIG. 1 is a schematic structural diagram of an application scenario in which the solution of the present application is applied, where the application scenario includes:
支付平台101、交易平台102以及用户的终端103。The payment platform 101, the transaction platform 102, and the user's terminal 103.
其中,支付平台101可以包括至少一台支付服务器1011。如,该支付平台可以为第三方支付平台,也可以为银行等能够实现交易双方完成交易支付的支付系统所在的平台。其 中,交易平台102为可以提供商户与用户之间完成产品交易的服务平台。该交易平台102可以包括至少一台交易服务器1021。The payment platform 101 can include at least one payment server 1011. For example, the payment platform may be a third-party payment platform, or may be a platform for a payment system such as a bank that can realize transaction payment by both parties. The trading platform 102 is a service platform that can complete product transactions between the provider and the user. The trading platform 102 can include at least one trading server 1021.
该交易平台102中的商户为在支付平台101注册的商户,或者说是与支付平台101存在签约关系的商户。The merchant in the trading platform 102 is a merchant registered with the payment platform 101, or a merchant having a contractual relationship with the payment platform 101.
相应的,用户为支付平台上的注册用户。用户通过终端103可以访问交易平台102,以与交易平台中的商户进行产品交易,并在达成产品交易之后,通过终端103向支付平台发送支付请求,该支付请求携带有支付方的标识(即,该用户的标识),收款方的标识(即,该商户的标识)、交易金额、支付渠道(如,银联卡支付、信用卡支付、账户余额支付等等)。该支付请求还可以携带有:该交易平台的标识以及交易的产品类型等等。Accordingly, the user is a registered user on the payment platform. The user can access the trading platform 102 through the terminal 103 to conduct product transactions with the merchants in the trading platform, and after the product transaction is reached, send a payment request to the payment platform through the terminal 103, the payment request carrying the identifier of the paying party (ie, The user's identification), the identity of the payee (ie, the identity of the merchant), the transaction amount, the payment channel (eg, UnionPay card payment, credit card payment, account balance payment, etc.). The payment request may also carry: an identification of the trading platform, a product type of the transaction, and the like.
该支付平台根据用户提交的支付请求,生成交易记录,该交易记录中可以包括支付请求所携带以上支付方的标识、收款方的标识、支付渠道、交易平台的标识以及交易的产品类型等,该支付平台还可以根据收款方的标识,或者该收款方接入该支付平台的接入渠道以及结算模式,并将接入渠道以及结算模式存储为交易记录中的信息。其中,接入渠道表明收款方接入支付平台所采用的具体方式,如,接入渠道可以包括:通过移动终端或者有线网络终端接入该支付平台,结算模式表明该交易的类型,如,结算模式可以包括:交易支付、转账以及提现等。The payment platform generates a transaction record according to the payment request submitted by the user, and the transaction record may include the identifier of the above payment party carried by the payment request, the identifier of the payee, the payment channel, the identifier of the transaction platform, and the product type of the transaction. The payment platform may also store the access channel and the settlement mode as information in the transaction record according to the identifier of the payee, or the access channel and the settlement mode of the payee accessing the payment platform. The access channel indicates a specific manner used by the payee to access the payment platform. For example, the access channel may include: accessing the payment platform through a mobile terminal or a wired network terminal, and the settlement mode indicates the type of the transaction, for example, The settlement mode can include: transaction payment, transfer, and withdrawal.
其中,支付平台可以根据需要设定交易结算的频率,如,每个自然日执行一次交易结算,也可以是每指定时长执行一次交易结算,当然,支付平台还可以针对不同的交易平台或者不同的商户设置不同的交易结算的频率。The payment platform may set the frequency of transaction settlement according to needs, for example, one transaction settlement is performed every natural day, or the transaction settlement may be performed every specified time. Of course, the payment platform may also be different for different trading platforms or different. The merchant sets the frequency of different transaction settlements.
在当前满足交易结算的条件时,支付平台获取当前待结算的至少一条交易记录;针对每条交易记录,确定与该交易记录匹配的交易结算规则,并按照该交易结算规则,对该交易记录进行交易结算。如,交易结算规则可以为确定该交易记录所需扣除的服务费或者手续费等费用的计费规则,则可以按照该计费规则,确定对该交易记录的支付结算所需扣除的扣费金额,并从交易记录的交易金额中扣除该扣费金额,并将剩余的交易金额存储到交易记录对应的收款方的指定账户中。When the current settlement condition of the transaction is satisfied, the payment platform acquires at least one transaction record currently to be settled; for each transaction record, determines a transaction settlement rule matching the transaction record, and performs the transaction record according to the transaction settlement rule Transaction settlement. For example, the transaction settlement rule may be a charging rule for determining a service fee or a fee for deduction of the transaction record, and the deduction amount required for the payment settlement of the transaction record may be determined according to the charging rule. And deducting the deduction amount from the transaction amount of the transaction record, and storing the remaining transaction amount in the designated account of the payee corresponding to the transaction record.
可以理解的是,在图1所示的应用场景中,是以场景中包含交易平台为例进行介绍,在该场景中交易双方在产生产品交易之后,基于支付平台完成交易支付。但是可以理解的是,本申请方案所适用的应用场景并不限于图1所示,在实际应用中,用户基于支付平台向商户转账、以及用户基于支付平台进行提现等等场景的情况下,支付平台均会生成交易 记录,并在需要交易结算时,针对交易记录进行交易结算。It can be understood that, in the application scenario shown in FIG. 1 , the transaction platform included in the scenario is taken as an example, in which the transaction parties complete the transaction payment based on the payment platform after generating the product transaction. However, it can be understood that the application scenario to which the solution of the present application is applied is not limited to that shown in FIG. 1. In the actual application, the user pays according to the payment platform to the merchant, and the user withdraws the cash based on the payment platform. The platform generates transaction records and settles transactions for transaction records when transaction settlement is required.
本申请的发明人对支付平台的交易结算过程进行研究发现:交易结算规则与商户、商户所设置的支付渠道、商户所属的交易平台、商户所设置的结算模式等等因素均有关系,因此,在商户改变一种或多种因素时,如果支付平台的管理人员未及时录入相应的交易结算规则,或者及时建立交易结算规则与改变后的多种因素之间的对应关系,就可能会导致由于交易结算规则缺失,而出现支付平台中未配置有与交易记录对应的交易结算规则。The inventor of the present application studies the transaction settlement process of the payment platform and finds that the transaction settlement rules are related to the payment channels set by the merchants, the merchants, the transaction platform to which the merchant belongs, the settlement mode set by the merchant, and the like. When the merchant changes one or more factors, if the management personnel of the payment platform fail to enter the corresponding transaction settlement rules in time, or establish the correspondence between the transaction settlement rules and the changed factors in time, it may result in The transaction settlement rules are missing, and the transaction settlement rules corresponding to the transaction records are not configured in the payment platform.
如,假设一个商户所设置的支付渠道包括信用卡支付以及借记卡支付,如果该商户新增了银联卡快捷支付这一种支付渠道,而支付平台中没有与该商户以及银联卡快捷支付对应的交易结算规则,则后续存在针对该商户且采用银联卡快捷支付的交易记录时,就无法匹配到该交易记录对应的交易结算规则,从而导致交易结算失败。For example, suppose a merchant's payment channel includes credit card payment and debit card payment. If the merchant adds a UnionPay card to quickly pay for this payment channel, the payment platform does not correspond to the merchant and the UnionPay card quick payment. In the transaction settlement rule, if there is a transaction record for the merchant and the UnionPay card is used for fast payment, the transaction settlement rule corresponding to the transaction record cannot be matched, and the transaction settlement fails.
然而,在支付平台针对交易记录进行交易结算的过程中,如果无法查询到与该交易记录匹配的交易结算规则,则会将该条交易记录标记为结算异常的交易记录,并输出结算异常的报警提示,并等待专业人员的介入确认以及问题修复,导致无法及时完成交易结算,使得交易结算延迟。同时,在出现结算异常的情况时,对处理结算异常的人员的业务知识储备也有较高的要求,导致异常处理的复杂度较高。However, in the process of settlement of the transaction by the payment platform for the transaction record, if the transaction settlement rule matching the transaction record cannot be queried, the transaction record is marked as the transaction record of the settlement abnormality, and the alarm of the settlement abnormality is output. Prompt, and wait for the professional's intervention confirmation and problem repair, resulting in the inability to complete the transaction settlement in time, making the transaction settlement delay. At the same time, in the case of a settlement abnormality, there is also a high requirement for the business knowledge reserve of the person handling the settlement abnormality, resulting in a high complexity of the exception handling.
为了在出现结算异常时,能够及时处理计费异常,减少支付结算的延迟,并降低计费异常处理的复杂度,本申请实施例提供了一种交易结算方法,该交易结算方法可以应用于支付平台的服务器,以对交易记录进行支付结算。In order to solve the billing abnormality, reduce the delay of the payment settlement, and reduce the complexity of the billing abnormality processing when the settlement abnormality occurs, the embodiment of the present application provides a transaction settlement method, and the transaction settlement method can be applied to payment. The server of the platform to settle the payment records.
如,参见图2,其示出了本申请实施例的交易结算方法所适用的支付平台的服务器的一种组成结构示意图。For example, referring to FIG. 2, a schematic structural diagram of a server of a payment platform to which the transaction settlement method of the embodiment of the present application is applied is shown.
在图2中,该服务器200可以包括:处理器201、存储器202、通信接口203、输入单元204、显示器205和通信总线206。In FIG. 2, the server 200 can include a processor 201, a memory 202, a communication interface 203, an input unit 204, a display 205, and a communication bus 206.
处理器201、存储器202、通信接口203、输入单元204、显示器205、均通过通信总线206完成相互间的通信。The processor 201, the memory 202, the communication interface 203, the input unit 204, and the display 205 all communicate with each other via the communication bus 206.
在本申请实施例中,该处理器201,可以为中央处理器(Central Processing Unit,CPU),特定应用集成电路(application-specific integrated circuit,ASIC),数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件等。In the embodiment of the present application, the processor 201 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), an application specific integrated circuit. (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic devices.
该处理器可以调用存储器202中存储的程序。The processor can call a program stored in the memory 202.
存储器202中用于存放一个或者一个以上程序,程序可以包括程序代码,所述程序代码包括计算机操作指令,在本申请实施例中,该存储器中至少存储有用于实现以下功能的程序:The memory 202 is configured to store one or more programs, and the program may include program code, where the program code includes computer operation instructions. In the embodiment of the present application, at least the program for implementing the following functions is stored in the memory:
获取待结算的交易记录;Obtain transaction records to be settled;
利用预先训练得到的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,其中,所述规则匹配模型为基于当前时刻之前的多条历史交易记录以及所述历史交易记录对应的交易结算规则训练得到的;Determining, by the pre-trained rule matching model, a degree of matching between the transaction record and a preset plurality of transaction settlement rules, wherein the rule matching model is based on a plurality of historical transaction records before the current time and the history The trading settlement rules corresponding to the transaction records are trained;
依据所述交易记录分别与预置的多种交易结算规则的匹配程度,从所述预置的多种交易结算规则中,确定对所述交易记录进行交易结算所需的目标交易结算规则;Determining a target transaction settlement rule required for transaction settlement of the transaction record from the preset plurality of transaction settlement rules according to a matching degree of the transaction record with a preset plurality of transaction settlement rules;
基于所述目标交易结算规则,对所述交易记录进行交易结算。Transaction settlement is performed on the transaction record based on the target transaction settlement rule.
其中,该存储器202可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 202 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
该通信接口203可以为通信模块的接口,如GSM模块的接口。The communication interface 203 can be an interface of a communication module, such as an interface of a GSM module.
本申请的服务器还可以包括输入单元204,该输入单元可以包括键盘、鼠标等等输入装置。The server of the present application may further include an input unit 204, which may include an input device such as a keyboard, a mouse, or the like.
该显示器205包括显示面板等。The display 205 includes a display panel or the like.
当然,图2所示的服务器结构并不构成对本申请实施例中服务器的限定,在实际应用中服务器可以包括比图2所示的更多或更少的部件,或者组合某些部件。Of course, the server structure shown in FIG. 2 does not constitute a limitation on the server in the embodiment of the present application. In practical applications, the server may include more or less components than those shown in FIG. 2, or combine some components.
下面结合本申请的以上共性,对本申请实施例的交易结算方法进行详细介绍。The transaction settlement method of the embodiment of the present application will be described in detail below in conjunction with the above commonalities of the present application.
参见图3,其示出了本申请一种交易结算方法一个实施例的流程示意图,本实施例的方法可以应用于支付平台的服务器,该方法可以包括:Referring to FIG. 3, it is a schematic flowchart of an embodiment of a transaction settlement method according to the present application. The method in this embodiment may be applied to a server of a payment platform, and the method may include:
S301,获取待结算的交易记录。S301. Acquire a transaction record to be settled.
其中,该交易记录包括至少一种属性的交易信息。Wherein, the transaction record includes transaction information of at least one attribute.
其中,不同属性从不同维度表征交易记录的特征,如,交易记录所可能涉及到的属性(或者说维度)可以包括:交易记录的收款方、交易记录的交易金额、交易记录的支付方式、交易记录的交易平台、交易的支付渠道(也称为支付方式,如,信用卡支付、银联卡支付等)、交易的产品类型、收款方接入该支付平台的接入渠道、结算模式(如交易支付、转账或者提现)等等属性。Among them, different attributes characterize the transaction records from different dimensions. For example, the attributes (or dimensions) that may be involved in the transaction record may include: the payee of the transaction record, the transaction amount of the transaction record, the payment method of the transaction record, The trading platform of the transaction record, the payment channel of the transaction (also known as payment method, such as credit card payment, UnionPay card payment, etc.), the product type of the transaction, the access channel of the payee accessing the payment platform, and the settlement mode (eg Trade payment, transfer or withdrawal) and other attributes.
在本申请实施例中,该交易信息可以包括以上多种属性中的一种或者多种属性的交易信息。In this embodiment of the present application, the transaction information may include transaction information of one or more of the above various attributes.
每种属性的交易信息可以认为是交易记录在该种属性下的具体取值。举例说明,假设交易记录中包括收款方这一属性下的交易信息,那么交易记录1中记录有收款方A这一种交易信息,而交易记录2可能会记录有收款方B这一种交易信息。The transaction information of each attribute can be considered as the specific value of the transaction record under this attribute. For example, if the transaction record includes the transaction information under the attribute of the payee, the transaction record 1 records the transaction information of the payee A, and the transaction record 2 may record the payee B. Transaction information.
S302,依据该交易记录中至少一种属性的交易信息,检测支付平台中是否配置有该交易记录对应的交易结算规则。S302. Detect, according to the transaction information of the at least one attribute in the transaction record, whether the transaction settlement rule corresponding to the transaction record is configured in the payment platform.
如,支付平台预置有多种不同的交易结算规则,每一种交易结算规则至少对应一种交易信息组合,该交易信息组合中包括至少一种交易信息,且不同种交易信息组合所包含的交易信息的种类以及数量均可以不同。相应的,可以根据交易结算规则与交易信息组合之间的对应关系,检测是否存在与该交易记录中的至少一种属性的交易信息匹配的交易结算规则。For example, the payment platform is preset with a plurality of different transaction settlement rules, and each transaction settlement rule corresponds to at least one transaction information combination, the transaction information combination includes at least one transaction information, and the different transaction information combinations are included. The type and amount of transaction information can vary. Correspondingly, according to the correspondence between the transaction settlement rule and the transaction information combination, it is possible to detect whether there is a transaction settlement rule matching the transaction information of at least one attribute in the transaction record.
例如,交易结算规则与交易信息组合的对应关系可以包括:For example, the correspondence between the transaction settlement rules and the transaction information combination may include:
当交易信息组合为收款方A,且,支付渠道为信用卡支付时,交易结算规则为:所需扣除的扣费金额等于支付金额乘以第一计费费率(如,第一计费费率为0.6%);When the transaction information is combined into the payee A, and the payment channel is a credit card payment, the transaction settlement rule is: the deduction amount required to be deducted is equal to the payment amount multiplied by the first billing rate (eg, the first billing fee) Rate is 0.6%);
当交易信息组合为收款方A,支付金额大于M2,且,支付渠道为银联卡快捷支付时,交易结算规则为:所需扣除的扣费金额为预设金额(如,1千元)。When the transaction information is combined into the payee A, the payment amount is greater than M2, and the payment channel is the fast payment of the UnionPay card, the transaction settlement rule is: the deduction amount required to be deducted is the preset amount (for example, 1,000 yuan).
当交易信息组合为收款方B,且,支付渠道为银联卡支付时,交易结算规则为:所需扣除的扣费金额等于支付金额乘以第二计费费率(如,第一计费费率为1.5%)。When the transaction information is combined into the payee B, and the payment channel is a UnionPay card payment, the transaction settlement rule is: the deduction amount required to be deducted is equal to the payment amount multiplied by the second charging rate (eg, the first billing rate) The rate is 1.5%).
可以理解的是,在实际应用中,支付平台也可以设置交易记录中哪几种交易信息属于匹配交易结算规则所需的关键交易信息,因此,如果存在交易信息组合与该交易记录中包含的几种关键交易信息完全匹配,则可以将该交易信息组合所对应的交易结算规则,确定为与该交易记录对应的交易结算规则。It can be understood that, in practical applications, the payment platform can also set which transaction information in the transaction record belongs to the key transaction information required to match the transaction settlement rule, and therefore, if there is a transaction information combination and a few included in the transaction record If the key transaction information is completely matched, the transaction settlement rule corresponding to the transaction information combination may be determined as the transaction settlement rule corresponding to the transaction record.
可以理解的是,以上仅仅是以一种检测是否存储有与该交易记录对应的交易结算规则的方式为例进行说明,在实际应用中,还可以通过其他方式来检测是否存在与该交易记录对应的交易结算规则,在此不加以限制。It can be understood that the above is only an example of detecting whether a transaction settlement rule corresponding to the transaction record is stored. In an actual application, it is also possible to detect whether there is a corresponding transaction record by other means. The transaction settlement rules are not limited here.
需要说明的是,由于支付平台中签约商户的相关属性变更等多种因素,都可能会导致在产生交易记录时,支付平台尚未及时配置相应的交易结算规则,或者交易结算规则缺失等现象,而出现支付平台中当前不存在为该交易记录配置的交易结算规则,针对上述情 况,本申请实施例可以利用规则匹配模型对其进行处理,参考S303。It should be noted that due to various factors such as the change of the relevant attributes of the signing merchants in the payment platform, the payment platform may not be configured with the corresponding transaction settlement rules or the transaction settlement rules are missing in time when the transaction records are generated. There is currently no transaction settlement rule configured for the transaction record in the payment platform. For the above situation, the embodiment of the present application can process the rule matching model, refer to S303.
S303,当支付平台中不存在与该交易记录对应的交易结算规则时,利用预先训练得到的规则匹配模型,确定该交易记录分别与预置的多种交易结算规则之间的匹配程度;S303, when there is no transaction settlement rule corresponding to the transaction record in the payment platform, using a rule matching model obtained by the pre-training, determining a matching degree between the transaction record and the preset multiple transaction settlement rules;
可选的,在建立规则匹配模型后,需要对该规则匹配模型进行训练,在训练该规则匹配模型的过程中,可以挖掘出用于确定匹配程度的匹配规则,该匹配规则可以为:每种属性包含的不同交易信息,对交易记录分别与预置的多种交易结算规则匹配的影响程度。如,属性为收款方时,收款方可以有多种可能,不同的收款方对于包含该收款方的交易记录与不同交易结算规则匹配的影响程度是不同。相应的,可以基于该规则匹配模型中的该匹配规则以及该交易记录中的至少一种属性的交易信息,并利用该规则匹配模型,计算该交易记录分别与预置的多种交易结算规则之间的匹配程度。Optionally, after the rule matching model is established, the rule matching model needs to be trained. In the process of training the rule matching model, a matching rule for determining the matching degree may be mined, and the matching rule may be: The degree of influence of the different transaction information contained in the attribute, and the matching of the transaction record with the preset multiple transaction settlement rules. For example, when the attribute is the payee, the payee can have multiple possibilities, and different payees have different influences on the transaction record containing the payee and the matching of different transaction settlement rules. Correspondingly, the matching rule in the model and the transaction information of the at least one attribute in the transaction record may be matched according to the rule, and the rule matching model is used to calculate the transaction record and the preset multiple transaction settlement rules respectively. The degree of matching between.
如,在一种可能的实现方式中,每种属性包含的不同交易信息,对交易记录分别与预置的多种交易结算规则匹配的影响程度可以为:每种属性包含的不同交易信息分别与预置的多种交易结算规则匹配的匹配评分,以及每种属性包含的不同交易信息对于交易记录分别与预置的多种交易结算规则匹配的影响权重。这样,在得到交易记录包含的至少一种属性的交易信息之后,针对预置的每种交易结算规则,分别确定该交易记录包含的每种交易信息与交易结算规则匹配的匹配评分以及每种交易信息对影响该交易记录与该交易结算规则匹配的影响权重,并计算该交易记录包含的至少一种属性的交易信息所对应的匹配评分的加权和,从而将计算出的评分确定为该交易记录与该交易结算规则的匹配程度。For example, in a possible implementation manner, each transaction includes different transaction information, and the degree of influence on the transaction record matching the preset multiple transaction settlement rules may be: each transaction contains different transaction information respectively. The matching scores matched by the preset multiple transaction settlement rules, and the different transaction information contained in each attribute affect the transaction records respectively with the preset multiple transaction settlement rules. In this way, after obtaining the transaction information of the at least one attribute included in the transaction record, respectively, for each of the preset transaction settlement rules, respectively determine the matching scores of each transaction information included in the transaction record and the transaction settlement rules, and each transaction. The information affects the influence weight of the transaction record matching the transaction settlement rule, and calculates a weighted sum of the matching scores corresponding to the transaction information of the at least one attribute included in the transaction record, thereby determining the calculated score as the transaction record The degree of matching with the transaction settlement rules.
可以理解的是,可以通过匹配概率表征交易记录与交易结算规则的匹配程度,在这种情况下,以上所涉及到的匹配评分可以为大于等于零且小于1的数值。但是可以理解的是,通过匹配概率来表征匹配程度仅仅是一种实现方式,在实际应用中,交易记录与交易结算规则之间的匹配程度也可以通过评分(如,评分可以为从0到100的任意数值)表征,其中,评分越高,交易记录与该交易结算规则之间的匹配程度越高。当然,还可以通过交易记录与该交易结算规则之间的匹配等级来表征交易记录与该交易结算规则之间的匹配程度,在此不加以限制。It can be understood that the matching degree of the transaction record and the transaction settlement rule can be characterized by the matching probability. In this case, the matching score referred to above may be a value greater than or equal to zero and less than 1. However, it can be understood that the degree of matching by matching probability is only an implementation. In practical applications, the degree of matching between transaction records and transaction settlement rules can also be scored (for example, the score can be from 0 to 100). Any numerical representation), wherein the higher the score, the higher the match between the transaction record and the transaction settlement rule. Of course, the degree of matching between the transaction record and the transaction settlement rule can also be represented by the matching level between the transaction record and the transaction settlement rule, which is not limited herein.
需要说明的是,此处仅仅是为了便于理解,以一种匹配规则的可能情况为例进行介绍,但是在实际应用中,根据规则匹配模型所采用的网络模型的不同,该规则匹配模型中所挖掘出的匹配规则的具体实现方式可能会更为复杂。It should be noted that, here, for the sake of easy understanding, an example of a matching rule is introduced as an example, but in practical applications, according to the difference of the network model adopted by the rule matching model, the rule matches the model. The specific implementation of the mining rules that are mined may be more complicated.
在本申请实施例中,该规则匹配模型为利用当前时刻之前的多条历史交易记录中各 自包含的多种交易信息训练得到的。其中,为了便于区分,将当前时刻之前的交易记录称为历史交易记录。In the embodiment of the present application, the rule matching model is trained by using various transaction information included in a plurality of historical transaction records before the current time. Among them, in order to facilitate the distinction, the transaction record before the current time is referred to as a historical transaction record.
其中,训练得到的该规则匹配模型可以有多种可能的情况,如,该规则匹配模型可以为循环神经网络(Recurrent Neural Networks,RNN)模型。当然,还可以通过其他算法或模型训练得到该规则匹配模型,如,可以基于贝叶斯分类器模型、支持向量机(Support Vector Machine,SVM)模型、符号推理算法、基于遗传算法的进行竞争淘汰机制、基于深度学习算法以及异构学习器等等不同算法或模型中的一种或多种来训练得到该规则匹配模型,在此不加以限制。Among them, the rule matching model obtained by training may have various possible situations. For example, the rule matching model may be a Recurrent Neural Networks (RNN) model. Of course, the rule matching model can also be obtained through other algorithms or model training, for example, based on Bayesian classifier model, Support Vector Machine (SVM) model, symbolic reasoning algorithm, and genetic algorithm based competition for elimination. The rule matching model is trained by one or more of different algorithms or models, such as a deep learning algorithm and a heterogeneous learner, and is not limited herein.
需要说明的是,在本实施例是以在获取到交易记录之后,依据交易记录中的至少一种属性的交易信息,检测支付平台中是否配置有与该交易记录对应的交易结算规则,并在支付平台不存在与该交易记录对应的交易结算规则时,利用预先训练得到的规则匹配模型,确定该交易记录与不同种交易结算规则之间的匹配概率为例进行说明。但是可以理解的是,在实际应用中,即使支付平台中配置有与该交易记录对应的交易结算规则,在获取到该交易记录之后,仍可以利用预先训练得到的规则匹配模型,来确定该交易记录与不同种交易结算规则之间的匹配概率,以便最终选取一个更为适合的交易结算规则来对该交易记录进行交易结算。因此,在获取到该交易记录之后,也可以不执行步骤S302的操作,而直接利用该规则匹配模型,确定该交易记录与不同种交易结算规则之间的匹配概率。It should be noted that, in this embodiment, after the transaction record is acquired, according to the transaction information of at least one attribute in the transaction record, it is detected whether a transaction settlement rule corresponding to the transaction record is configured in the payment platform, and When the payment platform does not have a transaction settlement rule corresponding to the transaction record, the rule matching model obtained by the pre-training is used to determine the matching probability between the transaction record and the different transaction settlement rules as an example. However, it can be understood that, in practical applications, even if the transaction settlement rule corresponding to the transaction record is configured in the payment platform, after obtaining the transaction record, the rule matching model obtained by the pre-training can be used to determine the transaction. Record the probability of matching with different transaction settlement rules, in order to finally select a more suitable transaction settlement rule to settle the transaction record. Therefore, after the transaction record is acquired, the operation of step S302 may not be performed, and the rule matching model may be directly used to determine the matching probability between the transaction record and the different transaction settlement rules.
S304,依据该交易记录分别与预置的多种不同交易结算规则之间的匹配程度,从该预置的该多种不同交易结算规则中,确定出与该交易记录匹配程度最高的目标交易结算规则。S304. Determine, according to the matching degree between the transaction record and the preset plurality of different transaction settlement rules, determine, from the preset plurality of different transaction settlement rules, the target transaction settlement with the highest degree of matching with the transaction record. rule.
为了便于区分,将匹配程度最高的交易结算规则称为目标交易结算规则。其中,该目标交易结算规则可以作为用于对该交易记录进行交易记录所需的交易结算规则。In order to facilitate the distinction, the transaction matching rule with the highest matching degree is called the target transaction settlement rule. Wherein, the target transaction settlement rule can be used as a transaction settlement rule required for the transaction record of the transaction record.
例如,交易结算规则A与该交易记录匹配的匹配概率为0.6,而交易结算规则B与该交易记录匹配的匹配概率为0.3,而交易结算规则C与该交易记录匹配的匹配概率为0.1,则将匹配概率最高的交易结算规则A作为该目标交易结算规则。For example, the matching probability of the transaction settlement rule A matching the transaction record is 0.6, and the matching probability of the transaction settlement rule B matching the transaction record is 0.3, and the matching probability of the transaction settlement rule C matching the transaction record is 0.1, then The transaction settlement rule A with the highest matching probability is taken as the target transaction settlement rule.
可以理解的是,本实施例是以匹配概率来表征交易记录与交易结算规则之间的匹配程度为例进行说明,但是可以理解的是,当通过评分或者等级来表征交易记录与交易结算规则之间的匹配程度时,同样可以选取出评分最高或者匹配等级最高的交易结算规则作为目标交易结算规则。It can be understood that the present embodiment illustrates the matching degree between the transaction record and the transaction settlement rule by using the matching probability as an example, but it can be understood that when the transaction record and the transaction settlement rule are represented by the score or the rank. When the matching degree is the same, the transaction settlement rule with the highest score or the highest matching level can be selected as the target transaction settlement rule.
当然,选取匹配程度最高的目标交易结算规则仅仅是一种优选方式,在实际应用中,也可以从匹配概率或者匹配评分超过预设阈值的交易结算规则中,选取一个交易结算规则作为目标交易结算规则,在此不加以限制。Of course, selecting the target transaction settlement rule with the highest matching degree is only a preferred method. In the actual application, a transaction settlement rule may be selected as the target transaction settlement from the transaction settlement rule whose matching probability or matching score exceeds the preset threshold. Rules, no restrictions here.
S305,按照目标交易结算规则,对该交易记录进行交易结算。S305, the transaction settlement is performed on the transaction record according to the target transaction settlement rule.
在确定出目标交易结算规则之后,依据该交易结算规则,对该交易记录进行交易结算的方式可以有多种,具体根据交易结算规则的不同以及交易结算的应用场景不同而有所不同,在此不加以限制。After the target transaction settlement rule is determined, according to the transaction settlement rule, there may be multiple ways of settlement of the transaction record, which may be different according to different transaction settlement rules and application scenarios of transaction settlement. No restrictions.
可见,在本申请实施例中,在获取到待处理的交易记录之后,可以利用预先训练得到的规则匹配模型,并基于该交易记录所包含的至少一种属性的交易信息至少两种交易信息,计算出该交易记录分别与预置的多种交易结算规则匹配的匹配概率,并利用该多种交易结算规则中,与该交易记录匹配程度最高的目标交易结算规则,对该交易记录的结算,从而减少了由于无法完成交易记录的交易结算,而导致交易结算延迟的情况。It can be seen that, in the embodiment of the present application, after acquiring the transaction record to be processed, the rule matching model obtained by the pre-training may be utilized, and at least two transaction information based on the transaction information of the at least one attribute included in the transaction record, Calculating a matching probability that the transaction record matches the preset multiple transaction settlement rules respectively, and using the target transaction settlement rules with the highest matching degree with the transaction record in the plurality of transaction settlement rules, the settlement of the transaction record, This reduces the delay in transaction settlement due to the inability to complete the transaction settlement of the transaction record.
S306,为该交易记录生成交易预估凭证,并存储该交易预估凭证。S306. Generate a transaction estimation voucher for the transaction record, and store the transaction estimation voucher.
其中,该交易预估凭证可以包括:该交易记录所包含的至少一种属性的交易信息、该交易记录对应的目标交易结算规则以及对该交易记录进行交易结算的结算金额。该交易记录的结算金额可以通过对该交易记录进行交易结算,而确定出的需要转入到该交易记录对应的收款方的金额。为了确定出交易的收款方,在需要生成交易预估凭证的情况下,该交易记录中至少包括交易的收款方。The transaction estimation voucher may include: transaction information of at least one attribute included in the transaction record, a target transaction settlement rule corresponding to the transaction record, and a settlement amount for transaction settlement of the transaction record. The settlement amount of the transaction record can be determined by the transaction settlement of the transaction record, and the amount determined to be transferred to the payee corresponding to the transaction record. In order to determine the payee of the transaction, in the case where a transaction estimate voucher needs to be generated, the transaction record includes at least the payee of the transaction.
S307,当接收到用户针对该交易预估凭证所输入的偏差补偿金额时,存储该偏差补偿金额与该交易记录的收款方之间的对应关系,以便依据该偏差补偿金额,对该收款方在当前时刻之后收入的结算金额进行补偿。S307. When receiving the deviation compensation amount input by the user for the transaction estimation voucher, storing a correspondence between the deviation compensation amount and the payee of the transaction record, so as to receive the payment according to the deviation compensation amount. The party will compensate for the settlement amount of income after the current time.
如,可以依据该偏差补偿金额,对该收款方在当前时刻之后最近一次收入的结算金额进行补偿。For example, the amount of the settlement of the most recent income after the current time can be compensated according to the deviation compensation amount.
其中,生成该交易预估凭证的目的是为了在完成交易结算之后,用户(如,支付平台的业务维护人员等)可以根据该交易预估凭证来分析该交易记录对应的目标交易结算规则以及结算金额是否正确。如果出现由于目标交易结算规则错误而导致结算金额出现问题,则用户分析出与该交易记录实际所需匹配的交易结算规则之后,重新向支付平台中配置与该交易记录中至少一种属性的交易信息匹配的交易结算规则,并由支付平台或者用户通过终端重新计算出该交易记录所对应的实际结算金额。为了便于区分,将该交易记录实 际所需结算的结算金额称为实际结算金额。The purpose of generating the transaction estimation voucher is that after completing the transaction settlement, the user (eg, the service maintenance personnel of the payment platform, etc.) can analyze the target transaction settlement rule corresponding to the transaction record and settle according to the transaction estimation voucher. The amount is correct. If there is a problem with the settlement amount due to an error in the target transaction settlement rule, the user re-configures the transaction with at least one attribute of the transaction record in the payment platform after analyzing the transaction settlement rule that actually matches the transaction record. The transaction settlement rule of the information matching, and the payment platform or the user recalculates the actual settlement amount corresponding to the transaction record through the terminal. For the sake of distinction, the settlement amount actually required for settlement of the transaction record is referred to as the actual settlement amount.
相应的,可以基于该实际结算金额与利用目标交易结算规则计算出结算金额之间的金额偏差,得到偏差补偿金额。如,偏差补偿金额可以为:利用目标交易结算规则计算出该结算金额与该实际结算金额的差值。Correspondingly, the amount of deviation between the settlement amount and the settlement amount can be calculated based on the actual settlement amount and the target transaction settlement rule, and the deviation compensation amount can be obtained. For example, the deviation compensation amount may be: calculating a difference between the settlement amount and the actual settlement amount by using a target transaction settlement rule.
用户确定出该偏差补偿金额之后,可以将该偏差补偿金额输入或者通过终端输入到该支付平台的服务器中。这样,如果该服务器在当前时刻之后,再次获取到该收款方对应的交易记录,那么,在完成对交易记录的交易结算,且在向该收款方指定账户转入该交易结算所对应的结算金额之前,可以将该偏差补偿金额与该结算金额之和作为需要转入该指定账户的金额。After the user determines the offset compensation amount, the deviation compensation amount may be input or input into the server of the payment platform through the terminal. In this way, if the server acquires the transaction record corresponding to the payee again after the current time, then the transaction settlement of the transaction record is completed, and the account corresponding to the payee is transferred to the transaction settlement. Before the settlement amount, the sum of the deviation compensation amount and the settlement amount may be used as the amount to be transferred to the designated account.
例如,利用目标交易结算规则计算出结算金额与该实际结算金额相减所得的偏差补偿金额为-20元,则可以从当前时刻之后该收款方所需收入的结算金额中扣除的20元,并将扣除20元之后的结算金额存入到该收款方指定的账户中。For example, if the deviation compensation amount obtained by subtracting the settlement amount from the actual settlement amount by the target transaction settlement rule is -20 yuan, the amount of 20 yuan deducted from the settlement amount of the income required by the payee after the current time may be The settlement amount after deducting 20 yuan will be deposited into the account designated by the payee.
可以理解的是,在通过训练得到的规则匹配模型确定出交易记录所对应的目标交易结算规则,并利用该目标交易结算规则计算出该交易记录所需的结算金额,完成对该交易记录的交易结算之后,后续对该交易记录所需的交易结算的结算金额进行调整的方式可以有多种,并不限于步骤S306和步骤S307的实现方式。It can be understood that the target transaction settlement rule corresponding to the transaction record is determined by the rule matching model obtained through the training, and the settlement amount required for the transaction record is calculated by using the target transaction settlement rule, and the transaction of the transaction record is completed. After the settlement, the manner of adjusting the settlement amount of the transaction settlement required for the transaction record may be various, and is not limited to the implementation manners of step S306 and step S307.
需要说明的是,该步骤S307和S307为可选步骤,其目的仅仅为了提高对交易记录进行交易结算的精度,而如果仅为了减少交易结算的延迟,也可以不执行该步骤S306和步骤S307。It should be noted that the steps S307 and S307 are optional steps, and the purpose thereof is only to improve the accuracy of transaction settlement for the transaction record, and if only the delay of the transaction settlement is reduced, the step S306 and the step S307 may not be performed.
另外,在实施例的S302中,如果检测到支付平台中存在与该交易记录对应的交易结算规则时,则可以直接基于与该交易记录对应的交易结算规则,计算该交易记录对应的扣除交易结算金额,并完成交易结算。In addition, in S302 of the embodiment, if it is detected that there is a transaction settlement rule corresponding to the transaction record in the payment platform, the transaction settlement settlement corresponding to the transaction record may be directly calculated based on the transaction settlement rule corresponding to the transaction record. Amount, and complete the transaction settlement.
为了便于理解训练规则匹配模型的过程,下面以规则匹配模型为训练得到的RNN模型为例进行介绍,如,参见图4,其示出了本申请训练RNN模型过程中输入参数以及输出结果的示意图。In order to facilitate the process of understanding the training rule matching model, the RNN model obtained by training the rule matching model is taken as an example. For example, referring to FIG. 4, it shows a schematic diagram of input parameters and output results in the process of training the RNN model in the present application. .
在图4中,在训练过程中输入待训练的RNN模型的参数包括:历史交易记录所包含的多种交易信息,如,商户(或者说,收款方)、交易平台、交易的产品类型、支付方式、接入渠道、结算模式、支付金额等等,而RNN模型输出的结果为:该历史交易记录分别与多种不同交易结算规则之间的匹配概率。例如,图4中RNN模型的右侧代表多种交易结算规 则,如,0.6%表示交易结算规则为:扣费金额等于交易金额与计费费率0.6%的乘积;又如,每笔1元表示交易结算规则为:每笔交易记录所对应的扣费金额为1元;又如,包量1万表示交易结算规则为:在指定时长内(如一年或者一个月),如果已经扣除了该交易记录的收款方的固定的扣费金额1万元,则无需从该交易记录中扣除扣费金额。针对不同的交易结算规则,通过该RNN模型可以输出每种交易结算规则所对应的匹配概率。In FIG. 4, the parameters of the RNN model to be trained during the training process include: a plurality of transaction information included in the historical transaction record, such as a merchant (or a payee), a trading platform, a product type of the transaction, Payment method, access channel, settlement mode, payment amount, etc., and the result of the RNN model output is: the probability of matching between the historical transaction record and a plurality of different transaction settlement rules. For example, the right side of the RNN model in Figure 4 represents a variety of transaction settlement rules. For example, 0.6% means that the transaction settlement rule is: the deduction amount is equal to the product of the transaction amount and the billing rate of 0.6%; for example, 1 yuan per pen. Indicates that the transaction settlement rule is: the deduction amount corresponding to each transaction record is 1 yuan; for example, the package amount is 10,000, indicating that the transaction settlement rule is: within a specified time period (such as one year or one month), if the deduction has been deducted If the payee of the transaction record has a fixed deduction amount of 10,000 yuan, there is no need to deduct the deduction amount from the transaction record. For different transaction settlement rules, the matching probability corresponding to each transaction settlement rule can be output through the RNN model.
下面结合图4,以规则匹配模型为RNN模型为例,对本申请训练规则匹配模型的过程进行介绍,如,参见图5,其示出了本申请训练用于确定交易记录与不同交易结算规则之间的匹配概率的RNN模型的训练过程示意图,该过程可以包括:The process of the training rule matching model of the present application is introduced by taking the rule matching model as the RNN model as an example. For example, referring to FIG. 5, the training of the present application is used to determine transaction records and different transaction settlement rules. Schematic diagram of the training process of the RNN model of the matching probability, the process may include:
S501,获取训练所需的多条历史交易记录以及每条历史交易记录实际匹配的实际交易结算规则。S501: Acquire a plurality of historical transaction records required for training and actual transaction settlement rules that each historical transaction record actually matches.
其中,每条历史交易记录包括至少一种属性的历史交易信息。Wherein each historical transaction record includes historical transaction information of at least one attribute.
其中,在训练过程中分别将每个历史交易记录作为训练样本,而历史交易记录中的历史交易信息为训练样本的训练数据。Among them, each historical transaction record is used as a training sample in the training process, and the historical transaction information in the historical transaction record is the training data of the training sample.
其中,历史交易记录为当前时刻之前已经完成支付结算的交易记录,在该支付平台中每个历史交易记录的交易结算规则是已经确定。为了便于区分,将历史交易记录完成交易结算所采用的交易结算规则称为实际交易结算规则,其中,该实际交易结算规则也可以认为是支付平台为该历史交易记录实际配置的交易结算规则。The historical transaction record is a transaction record in which payment settlement has been completed before the current time, and the transaction settlement rule of each historical transaction record in the payment platform has been determined. In order to facilitate the distinction, the transaction settlement rule adopted by the historical transaction record to complete the transaction settlement is referred to as the actual transaction settlement rule, wherein the actual transaction settlement rule may also be considered as the transaction settlement rule actually configured by the payment platform for the historical transaction record.
S502,从多个历史交易记录中,选取出当前待训练的历史交易记录样本。S502. Select, from a plurality of historical transaction records, a historical transaction record sample to be trained.
其中,该历史交易记录样本为该历史交易记录中未作为训练样本训练RNN模型的历史交易记录,为了便于区分,将从未作为训练样本的历史交易记录中选取出的待训练的历史交易记录称为历史交易记录样本,其中,该历史交易记录也就是当前选取出的待对RNN模型进行训练的目标历史交易记录。The historical transaction record sample is a historical transaction record of the historical transaction record that is not used as a training sample to train the RNN model. For the sake of distinction, the historical transaction record to be trained selected from the historical transaction record that has never been used as the training sample is called A historical transaction record, wherein the historical transaction record is the currently selected target historical transaction record to be trained on the RNN model.
S503,将该历史交易记录样本所包含至少一种属性的历史交易信息输入到待训练的该RNN模型中,并获取该RNN模型所输出的该历史交易记录样本分别与预置的多种不同交易结算规则的匹配概率。S503. Enter historical transaction information of the at least one attribute included in the historical transaction record sample into the RNN model to be trained, and obtain the historical transaction record sample output by the RNN model separately from the preset multiple different transactions. The probability of matching the settlement rules.
其中,该待训练的RNN模型中预置了多种不同交易结算规则。Among them, a plurality of different transaction settlement rules are preset in the RNN model to be trained.
S504,判断该RNN模型所输出的该历史交易记录样本与该历史交易记录样本的实际交易结算规则之间的匹配概率是否大于预设阈值,如果是,则执行步骤S505;如果否,则调整RNN模型中的参数设置,并返回执行步骤S503。S504, determining whether a matching probability between the historical transaction record sample output by the RNN model and the actual transaction settlement rule of the historical transaction record sample is greater than a preset threshold, and if yes, executing step S505; if not, adjusting the RNN The parameter settings in the model are returned to step S503.
其中,该预设阈值可以根据需要设定,如,该预设阈值可以为0.9。The preset threshold may be set as needed. For example, the preset threshold may be 0.9.
可以理解的是,如果该RNN模型中的参数设置较为合理,则该RNN模型中输出的该历史交易记录样本与该历史交易记录样本的实际交易结算规则之间的匹配概率的取值较大,如,大于该预设阈值。It can be understood that if the parameter setting in the RNN model is reasonable, the matching probability between the historical transaction record sample outputted in the RNN model and the actual transaction settlement rule of the historical transaction record sample is larger. For example, greater than the preset threshold.
如果该RNN模型输出的该历史交易记录样本与该历史交易记录样本的实际交易结算规则之间的匹配概率较低,则说明该RNN模型中设置的参数不合理,导致输出的该历史交易记录与各个交易结算规则之间的匹配概率的偏差较大。在该种情况下,需要调整该RNN模型中的参数之后,重新利用该历史交易样本记录训练该RNN模型,直至该RNN模型所输出的该历史交易记录样本与其实际交易结算规则之间的匹配概率超过预设阈值。If the probability of matching between the historical transaction record sample output by the RNN model and the actual transaction settlement rule of the historical transaction record sample is low, it indicates that the parameter set in the RNN model is unreasonable, resulting in the output of the historical transaction record and The deviation of the matching probability between each transaction settlement rule is large. In this case, after adjusting the parameters in the RNN model, the historical transaction sample record is reused to train the RNN model until the matching probability between the historical transaction record sample output by the RNN model and its actual transaction settlement rule. Exceeded the preset threshold.
S505,检测该多个历史交易记录中,是否存在尚未作为训练样本训练RNN模型的历史交易记录,如果是,则返回执行步骤S502;如果否,则训练结束,训练得到作为规则匹配模型的RNN模型。S505. Detect whether there is a historical transaction record in the plurality of historical transaction records that has not been trained as a training sample, and if yes, return to step S502; if not, the training ends, and the training obtains an RNN model as a rule matching model. .
依次将该多个历史交易记录作为训练样本对该RNN模型进行训练之后,训练得到的RNN模型便可以作为用于计算交易记录与不同交易结算规则之间匹配的匹配概率的模型。After the plurality of historical transaction records are sequentially trained as training samples for the RNN model, the trained RNN model can be used as a model for calculating the matching probability of the matching between the transaction record and the different transaction settlement rules.
需要说明的是,图5仅仅是为了便于理解,以RNN模型为例来介绍训练规则匹配模型的过程,但是当规则匹配模型为其他网络模型或者分类器时,其训练过程类似,在此不再赘述。同时,图5是以一种训练过程为例进行说明,但是在实际应用中,训练该规则匹配模型的过程还可以有其他可能情况,在此不加以限制。It should be noted that FIG. 5 is only for the convenience of understanding, and the RNN model is taken as an example to introduce the training rule matching model process. However, when the rule matching model is another network model or classifier, the training process is similar, and no longer Narration. At the same time, FIG. 5 is an example of a training process. However, in practical applications, the process of training the rule matching model may have other possible situations, which are not limited herein.
可以理解的是,考虑到支付平台中经常会由于新增签约商户以及已签约商户变更相应的交易结算规则等原因导致新增交易业务场景,在该种情况下,如果历史交易记录的生成时刻距离当前时刻的时间较长,那么基于历史交易记录训练出的该规则匹配模型无法准确反映出不同交易记录与交易结算规则之间的匹配程度。为了使得训练出的规则匹配模型能够更为精准的确定出不同交易记录所匹配的交易结算规则,在基于历史交易记录训练出该规则匹配模型之后,还可以定期对该规则匹配模型进行更新。It can be understood that, considering that the payment platform often adds new transaction business scenarios due to new contracted merchants and contracted merchants changing corresponding transaction settlement rules, etc., in this case, if the historical transaction record is generated at a time distance The current time is longer, then the rule matching model trained based on historical transaction records cannot accurately reflect the degree of matching between different transaction records and transaction settlement rules. In order to make the trained rule matching model more accurately determine the transaction settlement rules matched by different transaction records, after the rule matching model is trained based on the historical transaction records, the rule matching model may be updated periodically.
如,按照设定的采集周期,获取当前时刻之前最近一个采集周期内采集到的多条最新历史交易记录,其中,该采集周期可以需要设定,如可以以一天为一个采集周期,或者以4个小时为一个采集周期等。为了便于区分,将为当前时刻之前最近一个采集周期内采集到的历史交易记录称为最新历史交易记录,该最新历史交易记录中可以属于不同属性的多种交易信息。这样,在到达该规则匹配模型对应的重训练时刻时,利用该最近一个采集 周期采集到的多条最新历史交易记录所各自包含的多种交易信息,对该规则匹配模型进行训练,以更新该规则匹配模型。其中,利用该多条最新历史交易记录对该规则匹配模型进行再次训练的过程与前面利用历史交易记录对规则匹配模型进行训练的过程相似,在此不再赘述。For example, according to the set collection period, obtain a plurality of latest historical transaction records collected in the latest collection period before the current time, wherein the collection period may need to be set, for example, one day may be an acquisition period, or 4 Hours are an acquisition cycle, etc. For the sake of distinction, the historical transaction records collected in the most recent collection period before the current time are referred to as the latest historical transaction records, and the latest historical transaction records may belong to various transaction information of different attributes. In this way, when the retraining time corresponding to the rule matching model is reached, the rule matching model is trained to update the plurality of transaction information included in the latest historical transaction records collected in the most recent collection period. Rule matching model. The process of retraining the rule matching model by using the plurality of latest historical transaction records is similar to the process of training the rule matching model by using the historical transaction record, and details are not described herein.
其中,该重训练时刻可以按照规则匹配模型对应的重训练周期来确定,以实现周期性的对该规则匹配模型进行更新。The retraining time may be determined according to a retraining period corresponding to the rule matching model, so as to implement periodic updating of the rule matching model.
可选的,在到达规则匹配模型对应的模型重训练时刻时,还可以是利用最近一个采集周期之前采集到的历史交易记录以及最近一次采集周期内采集到最新历史交易记录来对该规则匹配模型进行重新训练,以更新该规则匹配模型。其中,在重新训练该规则匹配模型时,该最近一个采集周期之前的历史交易记录与最新交易记录的数量比例可以根据需要设定,在此不加以限制。Optionally, when the model retraining time corresponding to the rule matching model is reached, the historical transaction record collected before the most recent collection period and the latest historical transaction record collected in the latest collection period may be used to match the rule matching model. Retrain to update the rule matching model. Wherein, when the rule matching model is retrained, the ratio of the historical transaction record and the latest transaction record before the latest collection period can be set as needed, and is not limited herein.
可以理解的是,在需要更新规则匹配模型的情况下,由于训练规则匹配模型所需的时间较长,为了避免由于规则匹配模型尚未完成训练,而导致无法利用该规则匹配模型确定与待处理的交易记录匹配的交易结算规则,在本申请实施例中,可以预置至少两个预先训练得到的规则匹配模型,且设定该至少两个规则匹配模型的模型重训练时刻不完全相同,这样,当需要调用规则匹配模型,以确定交易记录与预置的多个交易结算规则的匹配程度时,可以从预置的至少两个规则匹配模型中,选取当前未处于训练状态的规则匹配模型。It can be understood that, in the case that the rule matching model needs to be updated, since the time required for the training rule to match the model is long, in order to avoid that the rule matching model has not completed the training, the rule matching model cannot be used to determine and be processed. In the embodiment of the present application, at least two pre-trained rule matching models may be preset, and the model retraining time of the at least two rule matching models is not completely the same, so that When the rule matching model needs to be called to determine the matching degree between the transaction record and the preset multiple transaction settlement rules, the rule matching model that is not currently in the training state may be selected from the preset at least two rule matching models.
为了便于理解,以对交易记录进行交易结算的过程中,需要依据交易结算规则,确定从交易记录的交易金额中扣除服务费等相关费用,然后才可以最终完成对交易记录的交易结算为例进行介绍,如,参见图6,其示出了本申请一种交易结算方法应用于一种应用场景中的流程示意图,本实施例的方法可以包括:In order to facilitate understanding, in the process of transaction settlement of transaction records, it is necessary to determine the transaction fee and other related expenses from the transaction amount of the transaction record according to the transaction settlement rule, and then finally complete the transaction settlement of the transaction record as an example. For example, refer to FIG. 6 , which is a schematic flowchart of a transaction settlement method applied to an application scenario, and the method in this embodiment may include:
S601,获取待结算的交易记录。S601: Obtain a transaction record to be settled.
其中,该交易记录可以包括交易的收款方以及该交易的交易金额在内的至少两种属性的交易信息。在本实施例中,由于在交易结算过程中,需要从收款方的交易金额中进行扣费,所以交易记录中至少需要记录收款方以及交易金额这两个属性的具体取值。The transaction record may include transaction information of at least two attributes including the payee of the transaction and the transaction amount of the transaction. In this embodiment, since the deduction is required from the transaction amount of the payee in the transaction settlement process, at least the specific values of the two attributes of the payee and the transaction amount need to be recorded in the transaction record.
如,交易的收款方可以为交易双方中负责收取支付款的商户或者用户;接受转账的商户或用户;或者是,提现的用户等等。相应的,交易金额可以为交易过程中支付的支付 金额,转账的转账金额,或者是,提现的提现金额等等。For example, the payee of the transaction may be the merchant or user responsible for collecting the payment; the merchant or user accepting the transfer; or the user who withdraws the money, and the like. Correspondingly, the transaction amount can be the payment amount paid during the transaction, the transfer amount of the transfer, or the cash withdrawal amount, etc.
可以理解的是,该交易记录除了记录有交易的收款方以及交易金额这两种属性下的交易记录之外,还可以根据需要记录与该交易相关的其他信息,如,前面提到的交易的付款方、交易的支付渠道、交易的产品类型等等属性的交易信息。It can be understood that the transaction record can record other information related to the transaction, in addition to the transaction record recorded under the two attributes of the transaction and the transaction amount, for example, the aforementioned transaction. The transaction information of the payer, the payment channel of the transaction, the product type of the transaction, and the like.
S602,依据该交易记录包括的至少两种属性的交易信息,并利用预先训练得到的规则匹配模型,确定该交易记录分别与预置的多种交易结算规则之间的匹配概率。S602. Determine, according to the transaction information of the at least two attributes included in the transaction record, and use a rule matching model obtained by the pre-training to determine a matching probability between the transaction record and the preset multiple transaction settlement rules.
S603,依据该交易记录分别与预置的多种不同交易结算规则之间的匹配概率,从该预置的该多种不同交易结算规则中,确定出与该交易记录匹配程度最高的目标交易结算规则。S603. Determine, according to the matching probability between the transaction record and the preset plurality of different transaction settlement rules, determine, from the preset plurality of different transaction settlement rules, the target transaction settlement with the highest degree of matching with the transaction record. rule.
其中,该步骤S602和S603可以参见前面实施例的相关介绍,在此不再赘述。For the steps S602 and S603, reference may be made to related descriptions of the foregoing embodiments, and details are not described herein again.
S604,按照该目标交易结算规则,计算该交易记录所需扣除的扣费金额。S604. Calculate the deduction amount to be deducted from the transaction record according to the target transaction settlement rule.
在本实施例中,交易结算规则可以理解为该支付平台针对交易记录进行计费的计费规则,依据该计费规则,可以确定针对该交易记录需要从交易金额中扣除的扣费金额。In this embodiment, the transaction settlement rule can be understood as a charging rule that the payment platform performs charging for the transaction record. According to the charging rule, the deduction amount that needs to be deducted from the transaction amount for the transaction record can be determined.
如,以交易结算规则为扣费金额等于交易金额与计费费率0.6%的乘积,则可以将该交易金额乘以0.6%所得到的金额即为该扣费金额;又如,以计费金额为每笔交易为1元,则该交易记录的扣费金额为1元。For example, if the transaction settlement rule is the product of the deduction amount equal to 0.6% of the transaction amount and the billing rate, the amount obtained by multiplying the transaction amount by 0.6% is the deduction amount; for example, for billing If the amount is 1 yuan per transaction, the deduction amount for the transaction record is 1 yuan.
S605,将该交易记录的交易金额减去扣费金额所得到的结算金额存入到该交易记录的收款方指定的账户。S605, the settlement amount obtained by subtracting the transaction amount of the transaction record from the deduction amount is deposited into the account designated by the payee of the transaction record.
如,交易金额为100元,扣费金额为1元,则将剩余的99元存入到该交易记录中收款方所指定的账户内,以实现基于该支付平台的交易结算。For example, if the transaction amount is 100 yuan and the deduction amount is 1 yuan, the remaining 99 yuan is deposited into the account specified by the payee in the transaction record to realize settlement of the transaction based on the payment platform.
可以理解的是,在计算出该交易记录所需扣除的扣费金额之后,基于该交易记录的交易金额以及该扣费金额,可以完成对该交易记录的交易结算。It can be understood that after calculating the deduction amount required for the transaction record, based on the transaction amount of the transaction record and the deduction amount, the transaction settlement of the transaction record can be completed.
S606,为该交易记录生成交易预估凭证,并存储该交易预估凭证。S606, generating a transaction estimation voucher for the transaction record, and storing the transaction estimation voucher.
在本申请实施例中,该交易预估凭证相当于对交易记录进行预估计费的计费预估凭证。在该交易预估凭证中至少存储该交易记录包含的收款方、交易金额等多种属于不同属性的交易信息,交易记录进行交易结算所依据的目标结算规则,以及该交易记录对应的交易结算金额即是扣费金额。In the embodiment of the present application, the transaction estimation voucher is equivalent to the charging estimation voucher for estimating the transaction record. At least the transaction information including the payee and the transaction amount included in the transaction record, the transaction information, the target settlement rule according to the transaction settlement, and the transaction settlement corresponding to the transaction record are stored in the transaction estimation voucher. The amount is the deduction amount.
S607,当接收到用户针对该交易预估凭证所输入的偏差补偿金额时,存储该偏差补偿金额与该交易记录的收款方之间的对应关系,以便依据该偏差补偿金额,对该收款方在 当前时刻之后收入的结算金额进行补偿。S607. When receiving the deviation compensation amount input by the user for the transaction estimation voucher, storing a correspondence between the deviation compensation amount and the payee of the transaction record, so as to receive the payment according to the deviation compensation amount. The party will compensate for the settlement amount of income after the current time.
与前面实施例相似,在服务器中存储了该交易记录的交易预估凭证之后,用户可以根据该交易预估凭证来分析该交易记录对应的目标交易结算规则以及扣费金额是否正确。如果交易结算规则有误,在用户分析出与该交易记录实际所需匹配的交易结算规则之后,在支付平台中重新配置该交易记录所对应的交易结算规则。Similar to the previous embodiment, after the transaction estimation voucher of the transaction record is stored in the server, the user can analyze the target transaction settlement rule corresponding to the transaction record and whether the deduction amount is correct according to the transaction estimation voucher. If the transaction settlement rule is incorrect, after the user analyzes the transaction settlement rule that actually matches the transaction record, the transaction settlement rule corresponding to the transaction record is reconfigured in the payment platform.
同时,如果扣费金额有误,则可以重新计算该交易记录所需扣除的实际扣费金额,并根据实际扣费金额以及步骤S605中计费出的扣费金额,来确定偏差补偿金额。如,偏差补偿金额可以为:利用目标交易结算规则计算出扣费金额与该实际扣费金额的差值。相应的,在将该偏差补偿金额输入到支付平台的服务器之后,服务器依据该偏差补偿金额,对该收款方在当前时刻之后收入的结算金额进行扣费或者增加金额,以对该收款方进行金额补偿。Meanwhile, if the deduction amount is incorrect, the actual deduction amount to be deducted from the transaction record may be recalculated, and the deviation compensation amount is determined according to the actual deduction amount and the deduction amount deducted in step S605. For example, the deviation compensation amount may be: using the target transaction settlement rule to calculate the difference between the deduction amount and the actual deduction amount. Correspondingly, after the deviation compensation amount is input to the server of the payment platform, the server deducts or increases the settlement amount of the income received by the payee after the current time according to the deviation compensation amount, to the payee Make amount compensation.
与前面实施例相似,该步骤S606和步骤S607同样为可选步骤,具体可以根据实际需要选择执行或者不执行该步骤S606和S607。Similar to the previous embodiment, the step S606 and the step S607 are also optional steps, and the steps S606 and S607 may be selected or not executed according to actual needs.
为了便于理解本申请的交易结算方法的执行流程,下面结合图7的执行流程对本申请的交易结算过程进行介绍。在该流程中以支付平台为第三方支付平台为例进行说明,但是对于支付平台为其他情况也同样适用。In order to facilitate the understanding of the execution flow of the transaction settlement method of the present application, the transaction settlement process of the present application will be described below in conjunction with the execution flow of FIG. In the process, the payment platform is described as an example of a third-party payment platform, but the same applies to the payment platform.
在图7中交易结算过程中左侧获取交易流水开始,结合图7可知,第三方支付平台获取到交易流水,交易流水为第三方支付平台在不同时刻采集到的多条交易记录组成。In the transaction settlement process in FIG. 7, the transaction flow is started on the left side. As shown in FIG. 7, the third-party payment platform obtains the transaction flow, and the transaction flow is composed of a plurality of transaction records collected by the third-party payment platform at different times.
由于第三方支付平台中可能会由于异步延迟入账、回滚等原因导致数据丢失,因此,需要通过快照补偿模块对交易流水中的数据进行核对补偿。Because the third-party payment platform may lose data due to asynchronous delay accounting, rollback, etc., it is necessary to check the data in the transaction flow through the snapshot compensation module.
交易流水中的数据经过快照补偿模块进行补偿之后,存储到业务快照模块中,该业务快照模块存储该交易流水中所涉及到的,待处理的多条交易记录。The data in the transaction stream is compensated by the snapshot compensation module, and then stored in the service snapshot module. The service snapshot module stores a plurality of transaction records to be processed involved in the transaction stream.
通过解析器对交易记录中不同属性的交易信息进行分析,确定第三方平台的计费配置模块是否存储有与该交易记录具有映射关系的交易结算规则。The parser analyzes the transaction information of different attributes in the transaction record, and determines whether the billing configuration module of the third-party platform stores the transaction settlement rule having a mapping relationship with the transaction record.
一方面,如果解析器解析出第三方支付平台配置有该交易记录的交易结算规则,则从计费配置模块中获取该交易记录的交易结算规则,并基于该交易记录的交易结算规则,计算该交易记录的计费(即,扣费金额),并完成对该交易记录的交易结算。在完成交易结算之后,生成一个计费凭证。如图7所示,与计费配置模块通过实现相连的“计费”表 示按照计费配置模块中配置的交易结算规则进行计费的交易记录。On one hand, if the parser parses out the transaction settlement rule configured by the third-party payment platform with the transaction record, the transaction settlement rule of the transaction record is obtained from the billing configuration module, and the transaction settlement rule is calculated based on the transaction settlement rule of the transaction record. The billing of the transaction record (ie, the deduction amount) and the settlement of the transaction for the transaction record is completed. After the transaction settlement is completed, a billing document is generated. As shown in FIG. 7, the "accounting" connected to the billing configuration module indicates the transaction record of the billing according to the transaction settlement rules configured in the billing configuration module.
其中,该计费凭证中可以包括该交易记录所对应的计费以及交易结算规则。其中,该计费凭证所包含的交易记录以及交易记录的交易结算规则可以作为用于对规则匹配模型进行训练的最近交易记录以及最近交易记录的交易结算规则,如图7中,计费凭证可以作为学习器对应的采样器的样本输入,以对预先利用历史交易记录训练得到的学习器进行训练,达到更新该学习器的目的。在图7中学习器就是指需要不断重复训练的规则匹配模型。The billing voucher may include a billing and a transaction settlement rule corresponding to the transaction record. The transaction record included in the billing voucher and the transaction settlement rule of the transaction record can be used as the transaction transaction rule for training the rule matching model and the transaction settlement rule of the recent transaction record. As shown in FIG. 7, the billing certificate can be As a sample input of the sampler corresponding to the learner, the learner trained in the historical transaction record is trained to achieve the purpose of updating the learner. In Figure 7, the learner refers to a rule matching model that requires repeated training.
在图7中该第三方支付平台以设置有两个学习器为例,这两个学习器为预先利用历史交易记录所对应的数据训练得到。In FIG. 7, the third-party payment platform is exemplified by setting two learners, which are trained by using data corresponding to historical transaction records in advance.
另一方面,如果解析器解析出第三方支付平台未配置有该交易记录的交易结算规则,则从预先训练得到的至少两个学习器中,选取一个当前未处于训练状态的学习器。通过选取出的学习器确定该交易记录分别与预置的多种交易结算规则的匹配程度,从而确定出与该交易记录匹配程度最高的目标交易结算规则。然后,利用该目标交易结算规则对该交易记录进行计费以及交易结算。如图7中通过虚线与计费配置模块通过虚线相连的“计费”(从左到右的第3个“计费”)表示未配置有交易结算规则的交易记录。On the other hand, if the parser resolves the transaction settlement rule in which the third-party payment platform is not configured with the transaction record, a learner that is not currently in the training state is selected from the at least two learners obtained in advance. The selected learner determines the degree of matching between the transaction record and the preset multiple transaction settlement rules, thereby determining the target transaction settlement rule with the highest degree of matching with the transaction record. The transaction record is then billed and the transaction is settled using the target transaction settlement rules. The "billing" (the third "billing" from left to right) connected to the billing configuration module by a dotted line in FIG. 7 by a broken line indicates a transaction record not configured with a transaction settlement rule.
同时,对于通过学习器学习出目标交易结算规则的交易记录而言,在完成对该交易记录的交易结算之后,还会为该交易记录生成计费预估凭证,如图7中,计费预估模块中存储有利用学习器学习的目标交易结算规则完成交易结算的所有交易记录对应的计费预估凭证。At the same time, for the transaction record that learns the target transaction settlement rule through the learner, after completing the transaction settlement of the transaction record, a billing estimation voucher is also generated for the transaction record, as shown in FIG. The estimation module stores the accounting estimation voucher corresponding to all the transaction records in which the transaction settlement rule is completed by the target transaction settlement rule learned by the learner.
通过人为对该计费预估凭证进行监督,可以人为分析出存在计费错误的交易记录,并人为确定该存在计费错误的交易记录所需的偏差补偿金额,以便后续从该交易记录的收款方中扣除或者补偿相应的金额。同时,用户根据计费预估凭证包含的交易记录,可以分析该交易记录实际所需配置的交易结算规则,并向计费配置模型中配置交易记录实际所需的交易结算规则。By artificially supervising the billing estimated voucher, the transaction record with the billing error can be manually analyzed, and the amount of the offset compensation required for the transaction record with the billing error can be manually determined, so as to subsequently receive the transaction record. The amount is deducted or compensated in the payment. At the same time, according to the transaction record included in the billing estimation voucher, the user can analyze the transaction settlement rules actually required by the transaction record, and configure the transaction settlement rules actually needed for the transaction record in the billing configuration model.
下面对本发明实施例提供的一种交易结算装置进行介绍,下文描述的一种交易结算装置可与上文描述的一种交易结算方法相互对应参照。A transaction settlement device provided by an embodiment of the present invention is described below. A transaction settlement device described below may be associated with a transaction settlement method described above.
如,参见图8,其示出了本申请一种交易结算装置一个实施例的组成结构示意图,本实施例的装置可以包括:For example, referring to FIG. 8, a schematic structural diagram of an embodiment of a transaction settlement device of the present application is shown. The device of this embodiment may include:
记录获取单元801,用于获取待结算的交易记录;a record obtaining unit 801, configured to acquire a transaction record to be settled;
规则匹配单元802,用于利用预先训练得到的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,其中,所述规则匹配模型为基于当前时刻之前的多条历史交易记录以及所述历史交易记录对应的交易结算规则训练得到的;The rule matching unit 802 is configured to determine, by using a pre-trained rule matching model, a degree of matching between the transaction record and a preset plurality of transaction settlement rules, where the rule matching model is based on multiple previous times The historical transaction record and the transaction settlement rules corresponding to the historical transaction record are trained;
规则确定单元803,用于依据所述交易记录分别与预置的多种交易结算规则的匹配程度,从所述预置的多种交易结算规则中,确定对所述交易记录进行交易结算所需的目标交易结算规则;The rule determining unit 803 is configured to determine, according to the matching degree of the transaction record and the preset plurality of transaction settlement rules, from the preset plurality of transaction settlement rules, determine the transaction settlement required for the transaction record Target transaction settlement rules;
交易结算单元804,用于基于所述目标交易结算规则,对所述交易记录进行交易结算。The transaction settlement unit 804 is configured to perform transaction settlement on the transaction record based on the target transaction settlement rule.
其中,所述记录获取单元获取到的所述交易记录包括至少一种属性的交易信息;The transaction record acquired by the record obtaining unit includes at least one attribute of transaction information;
所述规则匹配单元,用于,基于所述交易记录中至少一种属性的交易信息以及预先训练得到的规则匹配模型中挖掘出的匹配规则,并利用所述规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,其中,所述匹配规则包括:每种属性包含的不同交易信息,对交易记录分别与预置的多种交易结算规则匹配的影响程度。The rule matching unit is configured to determine, according to transaction information of at least one attribute in the transaction record and a matching rule that is mined in a pre-trained rule matching model, and use the rule matching model to determine the transaction record. The degree of matching with the preset plurality of transaction settlement rules, wherein the matching rule includes: different transaction information included in each attribute, and the degree of influence of the transaction record on the preset multiple transaction settlement rules.
在一种实现方式中,所述装置还包括:模型训练单元,用于通过如下方式训练得到所述规则匹配模型:In an implementation manner, the apparatus further includes: a model training unit, configured to obtain the rule matching model by:
获取训练所需的多条历史交易记录以及每条历史交易记录的实际交易结算规则,所述实际交易结算规则为所述历史交易记录完成交易结算所采用的交易结算规则,所述历史交易记录包括至少一种属性的历史交易信息;Obtaining a plurality of historical transaction records required for training and an actual transaction settlement rule of each historical transaction record, wherein the actual transaction settlement rule is a transaction settlement rule adopted by the historical transaction record to complete transaction settlement, and the historical transaction record includes Historical transaction information of at least one attribute;
从所述多条历史交易记录中,选取出当前待训练的目标历史交易记录;Selecting, from the plurality of historical transaction records, a historical transaction record of the target to be trained;
将所述目标历史交易记录的至少一种属性的历史交易信息输入到待训练的规则匹配模型中,并获取所述规则匹配模型输出的所述目标历史交易记录分别与预置的多种不同交易结算规则的匹配概率;Inputting historical transaction information of at least one attribute of the target historical transaction record into a rule matching model to be trained, and acquiring the target historical transaction records output by the rule matching model and different presets respectively The matching probability of the settlement rule;
当所述规则匹配模型输出的目标匹配概率小于或等于预设阈值,则调整所述规则匹配模型中的参数设置,并返回执行所述将所述目标历史交易记录的至少一种属性的历史交易信息输入到待训练的规则匹配模型中的操作,其中,目标匹配概率为所述目标历史交易记录与所述目标历史交易记录的实际交易结算规则之间的匹配概率;And when the target matching probability output by the rule matching model is less than or equal to a preset threshold, adjusting a parameter setting in the rule matching model, and returning to perform the historical transaction of the at least one attribute of the target historical transaction record The information is input to an operation in the rule matching model to be trained, wherein the target matching probability is a matching probability between the target historical transaction record and the actual transaction settlement rule of the target historical transaction record;
当所述规则匹配模型输出的目标匹配概率不小于所述预设阈值时,则返回执行所述从所述多条历史交易记录中,选取出当前待训练的目标历史交易记录的操作,直至所述多条历史交易记录中不存在尚未训练的历史交易记录。When the target matching probability output by the rule matching model is not less than the preset threshold, returning to performing the operation of selecting the current historical transaction record to be trained from the plurality of historical transaction records until the There are no historical transaction records that have not been trained in the historical transaction records.
在一种实现方式中,该装置还包括:In one implementation, the apparatus further includes:
数据采集单元,用于按照预设的采集周期,获取支付平台在所述采集周期内完成交易结算的最新历史交易记录以及所述最新历史交易记录对应的交易结算规则;a data collecting unit, configured to acquire, according to a preset collection period, an latest historical transaction record in which the payment platform completes transaction settlement in the collection period and a transaction settlement rule corresponding to the latest historical transaction record;
模型重训练单元,用于在到达所述规则匹配模型对应的模型重训练时刻时,利用当前时刻之前最近一个采集周期内采集到的最新历史交易记录以及所述最新历史交易记录对应的交易结算规则,对所述规则匹配模型进行训练,以更新所述规则匹配模型。a model retraining unit, configured to use the latest historical transaction record collected in the latest collection period before the current time and the transaction settlement rule corresponding to the latest historical transaction record when the model retraining time corresponding to the rule matching model is reached And training the rule matching model to update the rule matching model.
在一种实现方式中,所述规则匹配单元,包括:In an implementation manner, the rule matching unit includes:
模型选取子单元,用于从多个预先训练得到的规则匹配模型中,确定当前未处于训练状态的规则匹配模型;a model selection sub-unit, configured to determine, from a plurality of pre-trained rule matching models, a rule matching model that is not currently in a training state;
规则匹配子单元,用于利用当前未处于训练状态的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度。The rule matching sub-unit is configured to determine, by using a rule matching model that is not currently in the training state, a degree of matching between the transaction record and the preset multiple transaction settlement rules.
可选的,所述规则确定单元,具体用于从所述预置的多种交易结算规则中,确定与所述交易记录的匹配程度最高的目标交易结算规则。Optionally, the rule determining unit is specifically configured to determine, from the preset plurality of transaction settlement rules, a target transaction settlement rule with the highest degree of matching with the transaction record.
可选的,所述记录获取单元获取到的所述交易记录包括属于不同属性的至少两种交易信息,且所述至少两种交易信息包括:所述交易记录的收款方以及所述交易记录的交易金额;Optionally, the transaction record acquired by the record obtaining unit includes at least two types of transaction information belonging to different attributes, and the at least two pieces of transaction information include: a payee of the transaction record and the transaction record Transaction amount;
所述交易结算单元,包括:The transaction settlement unit includes:
计费子单元,用于基于所述目标交易结算规则,确定所述交易记录所需扣除的扣费金额;a billing subunit, configured to determine a deduction amount to be deducted from the transaction record based on the target transaction settlement rule;
结算子单元,用于将所述交易记录中的交易金额减去所述扣费金额所得的结算金额,存入所述交易记录的收款方指定的账户中。And a settlement subunit, configured to reduce the transaction amount in the transaction record by the deduction amount, and deposit the settlement amount into the account specified by the payee of the transaction record.
在一种实现方式中,所述交易结算装置还包括:In an implementation manner, the transaction settlement device further includes:
预估凭证生成单元,用于在所述交易结算单元对所述交易记录进行交易计算之后,为所述交易记录生成交易预估凭证,并存储所述交易预估凭证,所述交易预估凭证包括:所述交易记录中的所述至少两种交易信息、所述交易记录对应的目标交易结算规则以及所述交易记录进行交易结算的结算金额;An estimated voucher generating unit, configured to generate a transaction estimation voucher for the transaction record after the transaction settlement unit performs transaction calculation on the transaction record, and store the transaction estimation voucher, the transaction estimation voucher The method includes: the at least two transaction information in the transaction record, a target transaction settlement rule corresponding to the transaction record, and a settlement amount of the transaction record for settlement of the transaction;
金额补偿单元,用于当接收到用户针对所述交易预估凭证输入的偏差补偿金额时,存储所述偏差补偿金额与该交易记录的收款方之间的对应关系,以便依据该偏差补偿金额,对所述收款方在当前时刻之后最近一次收入的结算金额进行补偿。The amount compensation unit is configured to store, when receiving the deviation compensation amount input by the user for the transaction estimation voucher, a correspondence between the deviation compensation amount and the payee of the transaction record, so as to compensate the amount according to the deviation And compensate the settlement party for the settlement amount of the latest income after the current time.
另一方面,本申请实施例还提供了一种存储介质,该存储介质用于存储程序代码,所述程序代码用于执行以上任意一个实施例所描述的交易结算方法。另一方面,本发明实施例还提供了一种包括指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以上任意一个实施例所描述的交易结算。On the other hand, the embodiment of the present application further provides a storage medium for storing program code, and the program code is used to execute the transaction settlement method described in any one of the above embodiments. In another aspect, embodiments of the present invention also provide a computer program product comprising instructions that, when executed on a computer, cause the computer to perform transaction settlement as described in any of the above embodiments.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that each embodiment in the specification is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the embodiments are referred to each other. can. For the device type embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element defined by the phrase "comprising a ..." without further limitation does not exclude the presence of additional identical elements in the process, method, article, or device that comprises the element.
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but the scope of the invention is to be accorded
以上仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. These improvements and retouchings should also be considered. It is the scope of protection of the present invention.

Claims (17)

  1. 一种交易结算方法,包括:A transaction settlement method, including:
    获取待结算的交易记录;Obtain transaction records to be settled;
    利用预先训练得到的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,其中,所述规则匹配模型为基于当前时刻之前的多条历史交易记录以及所述历史交易记录对应的交易结算规则训练得到的;Determining, by the pre-trained rule matching model, a degree of matching between the transaction record and a preset plurality of transaction settlement rules, wherein the rule matching model is based on a plurality of historical transaction records before the current time and the history The trading settlement rules corresponding to the transaction records are trained;
    依据所述交易记录分别与预置的多种交易结算规则的匹配程度,从所述预置的多种交易结算规则中,确定对所述交易记录进行交易结算所需的目标交易结算规则;Determining a target transaction settlement rule required for transaction settlement of the transaction record from the preset plurality of transaction settlement rules according to a matching degree of the transaction record with a preset plurality of transaction settlement rules;
    基于所述目标交易结算规则,对所述交易记录进行交易结算。Transaction settlement is performed on the transaction record based on the target transaction settlement rule.
  2. 根据权利要求1所述的交易结算方法,所述交易记录包括至少一种属性的交易信息;The transaction settlement method according to claim 1, wherein the transaction record includes transaction information of at least one attribute;
    所述利用预先训练得到的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,包括:Determining, by using a pre-trained rule matching model, a degree of matching between the transaction record and a preset plurality of transaction settlement rules, including:
    基于所述交易记录中所述至少一种属性的交易信息以及预先训练得到的规则匹配模型中挖掘出的匹配规则,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,其中,所述匹配规则包括:每种属性包含的不同交易信息,对交易记录分别与预置的多种交易结算规则匹配的影响程度。Determining, according to the transaction information of the at least one attribute in the transaction record and the matching rule excerpted in the pre-trained rule matching model, the degree of matching between the transaction record and the preset multiple transaction settlement rules, wherein The matching rule includes: different transaction information included in each attribute, and a degree of influence on matching the transaction record with the preset multiple transaction settlement rules.
  3. 根据权利要求1所述的交易结算方法,还包括:The transaction settlement method according to claim 1, further comprising:
    获取训练所需的多条历史交易记录以及每条历史交易记录的实际交易结算规则,所述实际交易结算规则为所述历史交易记录完成交易结算所采用的交易结算规则,所述历史交易记录包括至少一种属性的历史交易信息;Obtaining a plurality of historical transaction records required for training and an actual transaction settlement rule of each historical transaction record, wherein the actual transaction settlement rule is a transaction settlement rule adopted by the historical transaction record to complete transaction settlement, and the historical transaction record includes Historical transaction information of at least one attribute;
    从所述多条历史交易记录中,选取出当前待训练的目标历史交易记录;Selecting, from the plurality of historical transaction records, a historical transaction record of the target to be trained;
    将所述目标历史交易记录的至少一种属性的历史交易信息输入到待训练的规则匹配模型中,并获取所述待训练的规则匹配模型输出的所述目标历史交易记录分别与预置的多种不同交易结算规则的匹配概率;Inputting historical transaction information of at least one attribute of the target historical transaction record into a rule matching model to be trained, and acquiring the target historical transaction record output by the rule matching model to be trained respectively and preset Matching probability of different transaction settlement rules;
    当所述待训练的规则匹配模型输出的目标匹配概率小于或等于预设阈值,则调整所述待训练的规则匹配模型中的参数设置,并返回执行所述将所述目标历史交易记录的至少一种属性的历史交易信息输入到待训练的规则匹配模型中的操作,其中,目标匹配概率为所述目标历史交易记录与所述目标历史交易记录的实际交易结算规则之间的匹配概率;And when the target matching probability output by the rule matching model to be trained is less than or equal to a preset threshold, adjusting a parameter setting in the rule matching model to be trained, and returning to perform performing at least the target historical transaction record An operation of inputting historical transaction information of an attribute into a rule matching model to be trained, wherein the target matching probability is a matching probability between the target historical transaction record and an actual transaction settlement rule of the target historical transaction record;
    当所述待训练的规则匹配模型输出的目标匹配概率不小于所述预设阈值时,则返回执行所述从所述多条历史交易记录中,选取出当前待训练的目标历史交易记录的操作,直至所述多条历史交易记录中不存在尚未训练的历史交易记录。When the target matching probability output by the rule matching model to be trained is not less than the preset threshold, returning to performing the operation of selecting the current historical transaction record to be trained from the plurality of historical transaction records Until there are no historical transaction records that have not been trained in the plurality of historical transaction records.
  4. 根据权利要求1或3所述的交易结算方法,还包括:The transaction settlement method according to claim 1 or 3, further comprising:
    按照预设的采集周期,获取在所述采集周期内完成交易结算的最新历史交易记录以及所述最新历史交易记录对应的交易结算规则;Obtaining, according to a preset collection period, an latest historical transaction record that completes transaction settlement in the collection period and a transaction settlement rule corresponding to the latest historical transaction record;
    在到达所述规则匹配模型对应的模型重训练时刻时,利用当前时刻之前最近一个采集周期内采集到的最新历史交易记录以及所述最新历史交易记录对应的交易结算规则,对所述规则匹配模型进行训练,以更新所述规则匹配模型。When the model retraining time corresponding to the rule matching model is reached, the latest historical transaction record collected in the latest collection period before the current time and the transaction settlement rule corresponding to the latest historical transaction record are used to match the rule matching model. Training is performed to update the rule matching model.
  5. 根据权利要求4所述的交易结算方法,所述利用预先训练得到的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,包括:The transaction settlement method according to claim 4, wherein the pre-trained rule matching model is used to determine a degree of matching between the transaction record and a preset plurality of transaction settlement rules, including:
    从多个预先训练得到的规则匹配模型中,确定当前未处于训练状态的规则匹配模型;Determining a rule matching model that is not currently in a training state from a plurality of pre-trained rule matching models;
    利用当前未处于训练状态的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度。The degree of matching between the transaction record and the preset plurality of transaction settlement rules is determined by using a rule matching model that is not currently in the training state.
  6. 根据权利要求1所述的交易结算方法,所述交易记录包括属于不同属性的至少两种交易信息,且所述至少两种交易信息包括:所述交易记录的收款方以及所述交易记录的交易金额;The transaction settlement method according to claim 1, wherein the transaction record includes at least two transaction information belonging to different attributes, and the at least two transaction information includes: a payee of the transaction record and the transaction record Amount of the transaction;
    所述基于所述目标交易结算规则,对所述交易记录进行交易结算,包括:The transaction settlement of the transaction record based on the target transaction settlement rule comprises:
    基于所述目标交易结算规则,确定所述交易记录所需扣除的扣费金额;Determining a deduction amount to be deducted from the transaction record based on the target transaction settlement rule;
    将所述交易记录中的交易金额减去所述扣费金额所得的结算金额,存入所述交易记录的收款方指定的账户中。The settlement amount obtained by subtracting the transaction amount in the transaction record from the deduction amount is deposited in the account designated by the payee of the transaction record.
  7. 根据权利要求6所述的交易结算方法,在所述基于所述目标交易结算规则,对所述交易记录进行交易结算之后,还包括:The transaction settlement method according to claim 6, after the transaction settlement of the transaction record based on the target transaction settlement rule, further comprising:
    为所述交易记录生成交易预估凭证,并存储所述交易预估凭证,所述交易预估凭证包括:所述交易记录中的所述至少两种交易信息、所述交易记录对应的目标交易结算规则以及所述交易记录进行交易结算的结算金额;Generating a transaction estimation voucher for the transaction record, and storing the transaction estimation voucher, the transaction estimation voucher including: the at least two transaction information in the transaction record, and a target transaction corresponding to the transaction record The settlement rule and the settlement amount of the transaction record for settlement of the transaction;
    当接收到用户针对所述交易预估凭证输入的偏差补偿金额时,存储所述偏差补偿金额与该交易记录的收款方之间的对应关系,以便依据该偏差补偿金额,对所述收款方在当前时刻之后的结算金额进行补偿。And when a deviation compensation amount input by the user for the transaction estimation voucher is received, storing a correspondence between the deviation compensation amount and a payee of the transaction record, so as to receive the payment according to the deviation compensation amount The party will compensate for the settlement amount after the current time.
  8. 一种交易结算装置,包括:A transaction settlement device comprising:
    记录获取单元,用于获取待结算的交易记录;a record acquisition unit for obtaining a transaction record to be settled;
    规则匹配单元,用于利用预先训练得到的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,其中,所述规则匹配模型为基于当前时刻之前的多条历史交易记录以及所述历史交易记录对应的交易结算规则训练得到的;a rule matching unit, configured to determine, by using a pre-trained rule matching model, a degree of matching between the transaction record and a preset plurality of transaction settlement rules, wherein the rule matching model is based on multiple history before the current time Transaction records and training settlement rules corresponding to the historical transaction records;
    规则确定单元,用于依据所述交易记录分别与预置的多种交易结算规则的匹配程度,从所述预置的多种交易结算规则中,确定对所述交易记录进行交易结算所需的目标交易结算规则;a rule determining unit, configured to determine, according to a matching degree of the transaction record and a preset plurality of transaction settlement rules, from the preset plurality of transaction settlement rules, determining a transaction settlement required for the transaction record Target transaction settlement rules;
    交易结算单元,用于基于所述目标交易结算规则,对所述交易记录进行交易结算。a transaction settlement unit, configured to perform transaction settlement on the transaction record based on the target transaction settlement rule.
  9. 根据权利要求8所述的交易结算装置,所述记录获取单元获取到的所述交易记录包括至少一种属性的交易信息;The transaction settlement device according to claim 8, wherein the transaction record acquired by the record acquisition unit includes transaction information of at least one attribute;
    所述规则匹配单元,用于基于所述交易记录中所述至少一种属性的交易信息以及预先训练得到的规则匹配模型中挖掘出的匹配规则,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,其中,所述匹配规则包括:每种属性包含的不同交易信息,对交易记录分别与预置的多种交易结算规则匹配的影响程度。The rule matching unit is configured to determine, according to the transaction information of the at least one attribute in the transaction record and the matching rule excerpted in the pre-trained rule matching model, to determine the transaction record and the preset multiple The matching degree of the transaction settlement rule, wherein the matching rule includes: different transaction information included in each attribute, and the degree of influence of the transaction record on the preset multiple transaction settlement rules.
  10. 根据权利要求8所述的交易结算装置,还包括:The transaction settlement device of claim 8 further comprising:
    数据采集单元,用于按照预设的采集周期,获取在所述采集周期内完成交易结算的最新历史交易记录以及所述最新历史交易记录对应的交易结算规则;a data collecting unit, configured to acquire, according to a preset collection period, an latest historical transaction record that completes transaction settlement in the collection period and a transaction settlement rule corresponding to the latest historical transaction record;
    模型重训练单元,用于在到达所述规则匹配模型对应的模型重训练时刻时,利用当前时刻之前最近一个采集周期内采集到的最新历史交易记录以及所述最新历史交易记录对应的交易结算规则,对所述规则匹配模型进行训练,以更新所述规则匹配模型。a model retraining unit, configured to use the latest historical transaction record collected in the latest collection period before the current time and the transaction settlement rule corresponding to the latest historical transaction record when the model retraining time corresponding to the rule matching model is reached And training the rule matching model to update the rule matching model.
  11. 根据权利要求10所述的交易结算装置,所述规则匹配单元,包括:The transaction settlement device according to claim 10, wherein the rule matching unit comprises:
    模型选取子单元,用于从多个预先训练得到的规则匹配模型中,确定当前未处于训练状态的规则匹配模型;a model selection sub-unit, configured to determine, from a plurality of pre-trained rule matching models, a rule matching model that is not currently in a training state;
    规则匹配子单元,用于利用当前未处于训练状态的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度。The rule matching sub-unit is configured to determine, by using a rule matching model that is not currently in the training state, a degree of matching between the transaction record and the preset multiple transaction settlement rules.
  12. 根据权利要求8所述的交易结算装置,所述记录获取单元获取到的所述交易记录包括属于不同属性的至少两种交易信息,且所述至少两种交易信息包括:所述交易记录的收款方以及所述交易记录的交易金额;The transaction settlement device according to claim 8, wherein the transaction record acquired by the record acquisition unit includes at least two transaction information belonging to different attributes, and the at least two transaction information includes: receipt of the transaction record The amount of the transaction and the transaction amount of the transaction record;
    所述交易结算单元,包括:The transaction settlement unit includes:
    计费子单元,用于基于所述目标交易结算规则,确定所述交易记录所需扣除的扣费金额;a billing subunit, configured to determine a deduction amount to be deducted from the transaction record based on the target transaction settlement rule;
    结算子单元,用于将所述交易记录中的交易金额减去所述扣费金额所得的结算金额,存入所述交易记录的收款方指定的账户中。And a settlement subunit, configured to reduce the transaction amount in the transaction record by the deduction amount, and deposit the settlement amount into the account specified by the payee of the transaction record.
  13. 根据权利要求12所述的交易结算装置,所述交易结算装置还包括:The transaction settlement device according to claim 12, wherein the transaction settlement device further comprises:
    预估凭证生成单元,用于在所述交易结算单元对所述交易记录进行交易结算之后,为所述交易记录生成交易预估凭证,并存储所述交易预估凭证,所述交易预估凭证包括:所述交易记录中的所述至少两种交易信息、所述交易记录对应的目标交易结算规则以及所述交易记录进行交易结算的结算金额;An estimated voucher generating unit, configured to generate a transaction estimation voucher for the transaction record after the transaction settlement unit performs transaction settlement on the transaction record, and store the transaction estimation voucher, the transaction estimation voucher The method includes: the at least two transaction information in the transaction record, a target transaction settlement rule corresponding to the transaction record, and a settlement amount of the transaction record for settlement of the transaction;
    金额补偿单元,用于当接收到用户针对所述交易预估凭证输入的偏差补偿金额时,存储所述偏差补偿金额与该交易记录的收款方之间的对应关系,以便依据该偏差补偿金额,对所述收款方在当前时刻之后的结算金额进行补偿。The amount compensation unit is configured to store, when receiving the deviation compensation amount input by the user for the transaction estimation voucher, a correspondence between the deviation compensation amount and the payee of the transaction record, so as to compensate the amount according to the deviation , the settlement amount of the payee after the current time is compensated.
  14. 一种服务器,包括:A server that includes:
    处理器和存储器;Processor and memory;
    其中,所述处理器用于执行所述存储器中存储的程序;Wherein the processor is configured to execute a program stored in the memory;
    所述存储器用于存储程序,所述程序至少用于:The memory is for storing a program, the program being at least for:
    获取待结算的交易记录;Obtain transaction records to be settled;
    利用预先训练得到的规则匹配模型,确定所述交易记录分别与预置的多种交易结算规则的匹配程度,其中,所述规则匹配模型为基于当前时刻之前的多条历史交易记录以及所述历史交易记录对应的交易结算规则训练得到的;Determining, by the pre-trained rule matching model, a degree of matching between the transaction record and a preset plurality of transaction settlement rules, wherein the rule matching model is based on a plurality of historical transaction records before the current time and the history The trading settlement rules corresponding to the transaction records are trained;
    依据所述交易记录分别与预置的多种交易结算规则的匹配程度,从所述预置的多种交易结算规则中,确定对所述交易记录进行交易结算所需的目标交易结算规则;Determining a target transaction settlement rule required for transaction settlement of the transaction record from the preset plurality of transaction settlement rules according to a matching degree of the transaction record with a preset plurality of transaction settlement rules;
    基于所述目标交易结算规则,对所述交易记录进行交易结算。Transaction settlement is performed on the transaction record based on the target transaction settlement rule.
  15. 一种交易结算方法,所述方法应用于服务器,所述方法包括:A transaction settlement method, the method being applied to a server, the method comprising:
    所述服务器执行上述权利要求1-7任意一项所述的交易结算方法。The server performs the transaction settlement method according to any one of claims 1 to 7.
  16. 一种存储介质,所述存储介质用于存储程序代码,所述程序代码用于执行权利要求1-7任意一项所述的交易结算方法。。A storage medium for storing program code for performing the transaction settlement method of any one of claims 1-7. .
  17. 一种包括指令的计算机程序产品,当其在计算机上运行时,使得所述计算机执行 权利要求1-7任意一项所述的交易结算方法。A computer program product comprising instructions which, when run on a computer, cause the computer to perform the transaction settlement method of any of claims 1-7.
PCT/CN2018/090977 2017-06-16 2018-06-13 Method and apparatus for settling transaction, server, and storage medium WO2018228408A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710457012.0 2017-06-16
CN201710457012.0A CN109146440B (en) 2017-06-16 2017-06-16 Transaction settlement method, device, server and storage medium

Publications (1)

Publication Number Publication Date
WO2018228408A1 true WO2018228408A1 (en) 2018-12-20

Family

ID=64660906

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/090977 WO2018228408A1 (en) 2017-06-16 2018-06-13 Method and apparatus for settling transaction, server, and storage medium

Country Status (2)

Country Link
CN (1) CN109146440B (en)
WO (1) WO2018228408A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110288366A (en) * 2019-04-28 2019-09-27 阿里巴巴集团控股有限公司 A kind of resource provides the appraisal procedure and device of model
CN110288334A (en) * 2019-05-16 2019-09-27 阿里巴巴集团控股有限公司 Project charging method, calculates equipment and computer readable storage medium at device
CN111199464A (en) * 2019-12-02 2020-05-26 泰康保险集团股份有限公司 Receipt data processing system, receipt data processing method, device, and medium
CN112016967A (en) * 2020-08-28 2020-12-01 中国银联股份有限公司 Transaction data processing method and device
CN113763141A (en) * 2021-02-10 2021-12-07 北京沃东天骏信息技术有限公司 Settlement method, settlement device, electronic equipment and storage medium
CN113935574A (en) * 2021-09-07 2022-01-14 中金支付有限公司 Abnormal transaction monitoring method and device, computer equipment and storage medium
CN115102873A (en) * 2022-08-23 2022-09-23 深圳市乙辰科技股份有限公司 Data processing method and system based on IP address analysis

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110163764B (en) * 2019-05-17 2021-08-10 泰康保险集团股份有限公司 Premium payment processing method, device and storage medium
CN110489705B (en) * 2019-07-23 2023-04-28 深圳手回科技集团有限公司 Method, device, terminal equipment and storage medium for calculating brokerage fee
CN110415118A (en) * 2019-07-29 2019-11-05 中国工商银行股份有限公司 Processing method and its device, electronic equipment and medium
CN112527402A (en) * 2019-08-27 2021-03-19 马上消费金融股份有限公司 Settlement method and related device
CN110880101A (en) * 2019-10-18 2020-03-13 中国平安财产保险股份有限公司 Data processing method, device, server and storage medium thereof
CN111429144B (en) * 2020-03-25 2024-04-12 中国工商银行股份有限公司 Abnormal remittance transaction identification method and device
CN111476651B (en) * 2020-04-07 2023-07-18 中国民航信息网络股份有限公司 Data settlement method and device, storage medium and electronic equipment
CN112508547A (en) * 2020-12-21 2021-03-16 浙江吉利控股集团有限公司 Cash withdrawal execution method, system, computer device and storage medium
CN115564544B (en) * 2022-10-10 2023-05-19 杭州申能信息科技有限公司 Intelligent accounting business processing method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765078A (en) * 2008-12-25 2010-06-30 华为技术有限公司 Method, device and system for telecommunication service settlement
CN101840560A (en) * 2010-05-04 2010-09-22 重庆市公众城市一卡通中心 Electronic voucher purchase and payment system and method based on all-in-one card platform
CN104318466A (en) * 2014-10-20 2015-01-28 深圳市深信信息技术有限公司 Transaction system and transaction settlement method
CN106651677A (en) * 2016-12-08 2017-05-10 杭州销冠网络科技有限公司 Intelligent calculation method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5819226A (en) * 1992-09-08 1998-10-06 Hnc Software Inc. Fraud detection using predictive modeling
CN105808580B (en) * 2014-12-29 2019-08-13 中国移动通信集团公司 A kind of information determination method and equipment based on prior model
CN104932804B (en) * 2015-06-19 2017-03-29 济南大学 A kind of intelligent virtual assembles action identification method
CN105160483A (en) * 2015-09-10 2015-12-16 国家电网公司 Secondary apparatus fault diagnosis method based on data excavation
CN105718726B (en) * 2016-01-18 2019-01-11 沈阳工业大学 Lab test systematic knowledge based on rough set obtains and inference method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765078A (en) * 2008-12-25 2010-06-30 华为技术有限公司 Method, device and system for telecommunication service settlement
CN101840560A (en) * 2010-05-04 2010-09-22 重庆市公众城市一卡通中心 Electronic voucher purchase and payment system and method based on all-in-one card platform
CN104318466A (en) * 2014-10-20 2015-01-28 深圳市深信信息技术有限公司 Transaction system and transaction settlement method
CN106651677A (en) * 2016-12-08 2017-05-10 杭州销冠网络科技有限公司 Intelligent calculation method and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110288366A (en) * 2019-04-28 2019-09-27 阿里巴巴集团控股有限公司 A kind of resource provides the appraisal procedure and device of model
CN110288366B (en) * 2019-04-28 2023-07-04 创新先进技术有限公司 Evaluation method and device of resource distribution model
CN110288334A (en) * 2019-05-16 2019-09-27 阿里巴巴集团控股有限公司 Project charging method, calculates equipment and computer readable storage medium at device
CN110288334B (en) * 2019-05-16 2023-09-19 创新先进技术有限公司 Project deduction method, apparatus, computing device and computer readable storage medium
CN111199464B (en) * 2019-12-02 2023-06-30 泰康保险集团股份有限公司 Processing system of collection data, processing method, device and medium of collection data
CN111199464A (en) * 2019-12-02 2020-05-26 泰康保险集团股份有限公司 Receipt data processing system, receipt data processing method, device, and medium
CN112016967A (en) * 2020-08-28 2020-12-01 中国银联股份有限公司 Transaction data processing method and device
CN112016967B (en) * 2020-08-28 2023-09-05 中国银联股份有限公司 Transaction data processing method and device
CN113763141A (en) * 2021-02-10 2021-12-07 北京沃东天骏信息技术有限公司 Settlement method, settlement device, electronic equipment and storage medium
CN113935574A (en) * 2021-09-07 2022-01-14 中金支付有限公司 Abnormal transaction monitoring method and device, computer equipment and storage medium
CN113935574B (en) * 2021-09-07 2023-09-29 中金支付有限公司 Abnormal transaction monitoring method, device, computer equipment and storage medium
CN115102873B (en) * 2022-08-23 2022-11-18 深圳市乙辰科技股份有限公司 Data processing method and system based on IP address analysis
CN115102873A (en) * 2022-08-23 2022-09-23 深圳市乙辰科技股份有限公司 Data processing method and system based on IP address analysis

Also Published As

Publication number Publication date
CN109146440A (en) 2019-01-04
CN109146440B (en) 2020-06-05

Similar Documents

Publication Publication Date Title
WO2018228408A1 (en) Method and apparatus for settling transaction, server, and storage medium
CN108133372B (en) Method and device for evaluating payment risk
CN108846520B (en) Loan overdue prediction method, loan overdue prediction device and computer-readable storage medium
CN109242261B (en) Method for evaluating security risk based on big data and terminal equipment
WO2017139688A1 (en) Peer-to-peer financial transactions using a private distributed ledger
KR20200031662A (en) Transaction processing method and system through full crypto auditability
US20120078790A1 (en) Real-time interchange fee estimation
CN110008716B (en) Block chain transaction method and device, electronic equipment and storage medium
WO2016084642A1 (en) Credit examination server, credit examination system, and credit examination program
WO2019196257A1 (en) Automatic repayment method and system, and terminal device
CN111784341A (en) Block chain transaction method and device, electronic equipment and storage medium
CN109146148B (en) Method and device for determining reason of balance prediction deviation
CN111932354A (en) Method for calculating balance adjustment table
US20090192810A1 (en) Fraud detection system & method
KR20180023603A (en) System for loan intermediation and intermediation server therefor
CN112767153A (en) Block chain transaction method and device, electronic equipment and storage medium
US20200349654A1 (en) Transaction Lifecycle Monitoring
US11276065B2 (en) Transaction lifecycle monitoring
US20190279178A1 (en) Systems, methods and computer program products for automated bill payment
US20210366004A1 (en) Money management system, money management method, donation management system, donation management method and program
US12002022B2 (en) Interchange code prediction system for processing credit card transactions
US11861666B2 (en) Stochastic apparatus and method for estimating credit card type when predicting interchange code to process credit card transactions
EP3933738A1 (en) Funds management system, funds management method, contribution management system, contribution management method, and program
CN113191887A (en) Abnormal account early warning method and device
CN113159789A (en) Cross-bank transfer and remittance method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18817646

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18817646

Country of ref document: EP

Kind code of ref document: A1