Invention content
To overcome the problems in correlation technique, present description provides method, apparatus and clothes that identification repeats payment
Business equipment.
According to this specification embodiment in a first aspect, provide it is a kind of identification repeat payment method, the method includes:
Pending payment document is obtained, the pending payment document generates after payment business is initiated, and includes payment business
Information;
Based on the consistency of payment business information, judge whether the pending payment document matches with specified document;
Judging result is exported, the judging result indicates whether the pending payment document belongs to repetition payment.
Optionally, the specified document meets following one or more conditions:
In preset time range storage, it is identical as the payment account information of pending payment document or with the pending payment
The Payment Amount information of document is identical.
Optionally, the payment business information, including it is following one or more:
Payment Amount information, payment account information, collecting account information, the identity information of Send only Account, collecting account
Identity information, means of payment information, product information or payment cause information.
Optionally, described to judge whether the pending payment document matches with specified document, it is based on identical payment business information
Number or priority and determine.
Optionally, described to judge whether the pending payment document matches with specified document, including:
If any payment business information is different, the pending payment document is mismatched with specified document;
If all payment business information are identical, the pending payment document is matched with specified document.
According to the second aspect of this specification embodiment, a kind of device of identification repetition payment is provided, described device includes:
Acquisition module is used for:Pending payment document is obtained, the pending payment document generates after payment business is initiated, and
Include payment business information;
Judgment module is used for:Based on the consistency of payment business information, judge that the pending payment document and specified document are
No matching;
Output module is used for:Judging result is exported, the judging result indicates whether the pending payment document belongs to repetition
Payment.
Optionally, the specified document meets following one or more conditions:
In preset time range storage, it is identical as the payment account information of pending payment document or with the pending payment
The Payment Amount information of document is identical.
Optionally, the payment business information, including it is following one or more:
Payment Amount information, payment account information, collecting account information, the identity information of Send only Account, collecting account
Identity information, means of payment information, product information or payment cause information.
Optionally, described to judge whether the pending payment document matches with specified document, it is based on identical payment business information
Number or priority and determine.
Optionally, described to judge whether the pending payment document matches with specified document, including:
If any payment business information is different, the pending payment document is mismatched with specified document;
If all payment business information are identical, the pending payment document is matched with specified document.
According to the third aspect of this specification embodiment, a kind of equipment that identification repeats payment is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Pending payment document is obtained, the pending payment document generates after payment business is initiated, and includes payment business
Information;
Based on the consistency of payment business information, judge whether the pending payment document matches with specified document;
Judging result is exported, the judging result indicates whether the pending payment document belongs to repetition payment.
The technical solution that the embodiment of this specification provides can include the following benefits:
This specification embodiment provides a kind of method, apparatus and equipment of identification repetition payment, it is contemplated that two differences
The service attribute that is possessed of payment request it is completely the same possibility it is very low, this embodiment scheme can compare pending payment list
Whether the payment business information in is consistent with the payment business information of specified document, and then judges whether pending payment document repeats
Payment.In practical application, break down if initiating method, system, it is possible to multiple payment request is initiated for the payment of same pen, and
Different payment applications number is distributed in each payment request, in such cases, the present embodiment uses the ratio of payment business information
It is right, it can accurately find to repeat phenomenon of paying the bill.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
This specification can be limited.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is the purpose only merely for description specific embodiment in the term that this specification uses, is not intended to be limiting this explanation
Book.The "an" of used singulative, " described " and "the" are also intended to packet in this specification and in the appended claims
Most forms are included, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein is
Refer to and include one or more associated list items purposes any or all may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not taking off
In the case of this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determination ".
As shown in Figure 1, being a kind of payment processing schematic diagram of a scenario of this specification shown according to an exemplary embodiment.Figure
1 includes payment initiator and payment receiving party, by way of example, payment receiving party can be Third-party payment service side, this
Tripartite payment services side provides payment services to the user, and user can install Third-party payment service side offer in personal device
Payment APP (Application, application program), serviced, can also be set using individual using the APP login service devices
The standby service page for logging in Third-party payment service side and providing.In other examples, payment initiator can be towards mechanism or quotient
Relevant financial system or payment and settlement system (doing capital settlement towards mechanism) etc. are settled accounts in family, and payment receiving party can be
Operation system etc. with payment ability.
By taking trade company settles accounts scene as an example, personal device registering service system may be used in trade company, as initiator side, business
System can be in the case where user triggers, and operation system generates pending payment document and is stored in database, which includes
Much information, such as payment initiator ask with the unique payment application number (also referred to as idempotent number) for receiving party's agreement of paying the bill, payment
It asks and initiates time, payment time, O/No., Payment Amount, Send only Account, collecting account, the identity information of Send only Account, receipts
Identity information, means of payment information, product information or payment cause information of money account etc..The operation system of initiator can base
Payment request is generated in the pending payment document, information some or all of as above can be carried in payment application.
After payment receiving party receives the payment request, payment request can be converted to a pending payment document, and preserve
Into database.Optionally, pending payment document be in addition to that may include in payment request other than some or all of entrained information,
May also include the other information of payment receiving party's write-in, such as the receiving time of payment request, payment deadline, document
State etc..As an example, document status may include pending payment, received payment, keep accounts, and payment receiving party is according to payment industry
The executive condition of the operation flows such as business, can correspondingly change the state of this bar document.After payment receiving party accepts payment request,
Start flow of withholing, the result that will withhold later returns to payment receiving party.
Due to network timeout or the influence of other factors, it may occur that payment request does not return to the feelings of definite result
Condition, initiator can repeat to initiate payment application.It repeats to pay the bill in order to prevent, payment initiator can identify this using idempotent number
Whether payment request belongs to repetition payment.However, in actual use, it is possible to which the system failure, payment hair occurs in the initiator that pays the bill
It plays side to have initiated twice or multiple payment request one payment, and is assigned with different idempotents to each payment request
Number, it will be unable to recognize problems at this time, ultimately cause repetition payment.
This specification embodiment provides a kind of scheme of identification repetition payment, it is contemplated that two different payment request institutes
The completely the same possibility of the service attribute that possesses is very low, and this embodiment scheme can compare the payment industry in pending payment document
Whether information of being engaged in is consistent with the payment business information of specified document, and then judges whether pending payment document repeats to pay the bill.Actually answer
It in, breaks down if initiating method, system, it is possible to initiate multiple payment request for the payment of same pen, and be asked in each payment
Different payment applications number is distributed when asking, in such cases, the present embodiment uses the comparison of payment business information, can be accurately
It was found that repeating payment phenomenon.Next this specification embodiment is described in detail.
As shown in Figure 2 A, Fig. 2A is the side that a kind of identification of this specification shown according to an exemplary embodiment repeats payment
The flow chart of method, includes the following steps:
In step 202, pending payment document is obtained, the pending payment document generates after payment business is initiated, and wraps
Contain payment business information.
In step 204, the consistency based on payment business information judges whether are the pending payment document and specified document
Matching.
In step 206, judging result is exported, the judging result indicates whether the pending payment document belongs to repetition and pay
Money.
The method of this specification embodiment can be applied to payment initiator, payment receiving party be can also be applied to, as example
Son, payment initiator using the method for the present embodiment can repeat the identification of payment after generating pending payment document;Another
In some examples, payment receiving party can receive the payment request of payment initiator, according to the information that is carried in payment request and
Payment business needs after generating pending payment document, using the method for the present embodiment repeat the identification of payment.This bar document can
To include much information, such as payment initiator and the unique payment application number for receiving party's agreement of paying the bill (are also referred to as idempotent
Number), the identity of Payment Amount information, payment account information, collecting account information, the identity information of Send only Account, collecting account
Information, means of payment information, product information or payment cause information etc..
This embodiment scheme based on payment business information repeat the identification of payment, and payment business information includes payment gold
Volume information, payment account information, collecting account information, the identity information of Send only Account, the identity information of collecting account, payer
Formula information, product information or payment cause information etc..In this embodiment scheme, it is contemplated that two different payment order are possessed
Payment business attribute it is completely the same possibility it is very low, if find two payment order between payment business information it is complete
Unanimously, then having sufficiently large probability it is thought that repeating to pay the bill.
Therefore, the design of this embodiment scheme is:It is this kind of without industry not compare payment odd numbers, idempotent number, payment status etc.
It is engaged in meaning or be attribute information with uniqueness.The reason is that if to identify that repetition is paid the bill, using idempotent number, payment order
Number this kind of information inherently with uniqueness be can not make accurate identification, if because since repetition has occurred in system problem
The phenomenon that payment, payment initiator have initiated multiple payment request, and the information such as idempotent number of these documents are different certainly
Because they are the unique attributes of document, by judge these attributes it is inconsistent be None- identified go out repetition payment.Cause
This, the present embodiment is identified using payment business information, and payment business information can refer to a kind of description payment business characteristic
Information, this type of information with business meaning, with nonuniqueness.Repetition payment is identified and judgeed through this embodiment, if
It was found that the payment business information between two documents is completely the same, then having sufficiently large probability it is thought that repeating to pay the bill.It is logical
It crosses this method and identifies and judges repetition payment, independent of the influence of technical factor, can efficiently solve due to technological deficiency
It is caused to repeat payment problems.
As an example, it is illustrated for certain payment business information.Wherein, the identity information of Send only Account can be paid
Title, phone number or contact address of money user etc..The identity information of collecting account can be the title of gathering user, receive
Money bank card number, phone number or contact address etc..The means of payment used by means of payment information representation payment user, can
To include credit card (such as card number, bank of deposit's title etc.), deposit card (such as card number, bank of deposit's title etc.) etc..One
In a little examples, user is likely to purchase some product, then product information can be carried in payment request, to characterize this payment institute
Related products.In other examples, it is also possible to carry payment cause information in pending payment document, which uses
In the cause for describing this payment, such as credit card repayment, charges for water and electricity are paid, registration fee etc..Include in pending payment document
Such attribute information is used as identification basis with payment business meaning and with nonuniqueness using payment business information.
Above-mentioned payment business information describes service attribute possessed by pending payment document, it is contemplated that two different payments
The completely the same possibility of single payment business attribute possessed is very low, therefore can identify weight using payment business information
Multiple payment.Assuming that the system failure occurs in payment initiator, multiple payment request is initiated for the payment of same pen, since being same
Pen is paid the bill, and entrained payment business information should be consistent in payment request, all be the same Send only Account, the same receipts
Money account, same Payment Amount or same payment reason etc..
Based on this, in some instances, can pay the bill initiator before payment request is sent to receiving party, first identify
Whether this pending payment document belongs to repetition payment;In other examples, can also be that payment receiving party is directed to pending payment document,
Before business is withholdd in startup, it can first identify whether this pending payment document belongs to repetition payment.It, can according to this embodiment scheme
With the consistency based on payment business information, judge whether the pending payment document matches with specified document.Therefore to judge to work as
Whether the pending payment document of preceding payment request belongs to repetition payment, need from documentary, searched whether in database with
The matched document of pending payment document.In some instances, which can be stored any document in database, can
Payment business information the payment business information of pending payment document to have been stored to document with each compares.At other
In example, in order to improve judging efficiency, can first exclusive segment can not possibly be with the matched document of pending payment document, then will be remaining single
Document is specified to carry out subsequent judgement according to as this.
As an example, in the present embodiment, it can judge whether the pending payment document matches it with specified document described
Before, part document is found out from database as this and specifies document, for example, the specified document satisfaction is following one or more
Condition:
In preset time range storage, it is identical as the payment account information of pending payment document or with the pending payment
The Payment Amount information of document is identical.
Wherein, which may be with the matched document quantity of pending payment document from time upper limit, this is pre-
If time range can be specifically arranged according to the characteristics of business scenario, for example, under some business scenarios, occur to repeat to pay the bill
Time span can be a few minutes, then preset time range could be provided as a few minutes apart from pending payment document storage time
It is interior, in other examples, it can also be several days or tens days etc., it can be with flexible configuration in practical application.
For the condition of " having identical Send only Account with the pending payment document ", which limits from Send only Account
May be with the matched document quantity of pending payment document, factor is that same payment application is by same user the considerations of the condition
It initiates, therefore two document payment account informations having the same.
For the condition of " having identical Payment Amount with the pending payment document ", which limits from Payment Amount can
Can be with the matched document quantity of pending payment document, factor is same payment request payment having the same the considerations of the condition
Amount information.
Based on any of the above-described condition or arbitrary combination, specified document can be fished for out from database, after then carrying out
Continuous judgement flow can be specifically to compare each single item payment business information of pending payment document, each single item with specified document
Whether payment business information is identical.
Pass through comparison, it can be determined that whether the pending payment document matches with specified document, in practical application, if matching
Strategy can flexible configuration as needed.In some instances, number that can be based on identical payment business information is preferential
Grade and determine, for example, it may be:As long as wherein N number of payment business information is identical, then it is assumed that pending payment document and specified document
Match, N is setting numerical value;It can also be that the higher payment business information of wherein M priority is identical, it is believed that pending payment document and finger
Order is according to matching etc..In other examples, more stringent strategy can also be set, to prevent false judgment, the plan of configuration
Slightly can be:If any payment business information is different, the pending payment document is mismatched with specified document;If all payment industry
Information of being engaged in is identical, then the pending payment document is matched with specified document.In practical application, those skilled in the art can be in conjunction with tool
Body business scenario and flexible configuration, the present embodiment do not limit this.
Next it is illustrated again by an embodiment, is this specification according to an exemplary embodiment as shown in Figure 2 B
A kind of identification shown repeats the flow chart of mode of payment, includes the following steps:
step1:Using pending payment document as input (hereinafter referred to as enter to join payment order).
step2:All payment order consistent with the Payment Amount of pending payment document are inquired in the local database.Wherein,
It is also stored in database due to entering to join payment order, can enter join payment order comprising this in query result.
step3:A payment order is taken out from query result.
step4:Whether inspection has currently had stepped through all query results.Terminate flow if having had stepped through,
Otherwise enter step5.
step5:Judge whether current payment order and the idempotent number for entering to join payment order are consistent.Since idempotent number is each payment
Individually and unique mark illustrates current payment so if current payment order is consistent with the idempotent number for entering to join payment order
It is exactly singly into joining payment order, such case just terminates follow-up step, returns to step3;If current payment order is paid with ginseng is entered
The idempotent number of money list is inconsistent, illustrates current payment order and enter to join payment order not to be same payment order, into next step.
step6:Compare payment order and enters to join whether payment order matches.The method compared is:Only paying in comparison payment order
It is this kind of without business meaning or with uniqueness not compare payment odd numbers, idempotent number, payment status etc. for money business information
Attribute.If it is determined that the payment business information of two payment order is not all of unanimously, illustrate that two payment order are not belonging to repeat to pay
Money returns to step3 steps and continues more next payment order.
step7,step8:If the payment business information of two payment order is all consistent, then judging two payment order, have can
Can repeat to pay the bill, export judging result, terminate flow.
Corresponding with the aforementioned repetition payment knowledge embodiment of method for distinguishing, this specification additionally provides repetition payment identification
The embodiment of device and its equipment applied.
The embodiment for the device that this specification identification repeats payment can be applied in equipment, such as server etc..Device
Embodiment can also be realized by software realization by way of hardware or software and hardware combining.For implemented in software,
It is that the processor for repeating to pay the bill by identification where it will be right in nonvolatile memory as the device on a logical meaning
The computer program instructions answered read what operation in memory was formed.For hardware view, as shown in figure 3, being this specification
A kind of hardware structure diagram of equipment where identification repeats the device of payment, in addition to processor 310 shown in Fig. 3, memory 330, net
Except network interface 320 and nonvolatile memory 340, the equipment such as server in embodiment where device 331, usual root
According to the actual functional capability of the service equipment, it can also include other hardware, this is repeated no more.
As shown in figure 4, Fig. 4 is the device that a kind of identification of this specification shown according to an exemplary embodiment repeats payment
Block diagram, described device includes:
Acquisition module 41, is used for:Pending payment document is obtained, the pending payment document generates after payment business is initiated,
And include payment business information;
Judgment module 42, is used for:Based on the consistency of payment business information, the pending payment document and specified document are judged
Whether match;
Output module 43, is used for:Judging result is exported, the judging result indicates whether the pending payment document belongs to weight
Multiple payment.
Optionally, the specified document meets following one or more conditions:
In preset time range storage, it is identical as the payment account information of pending payment document or with the pending payment
The Payment Amount information of document is identical.
Optionally, the payment business information, including it is following one or more:
Payment Amount information, payment account information, collecting account information, the identity information of Send only Account, collecting account
Identity information, means of payment information, product information or payment cause information.
Optionally, described to judge whether the pending payment document matches with specified document, it is based on identical payment business information
Number or priority and determine.
Optionally, described to judge whether the pending payment document matches with specified document, including:
If any payment business information is different, the pending payment document is mismatched with specified document;
If all payment business information are identical, the pending payment document is matched with specified document.
According to the third aspect of this specification embodiment, a kind of equipment that identification repeats payment is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Pending payment document is obtained, the pending payment document generates after payment business is initiated, and includes payment business
Information;
Based on the consistency of payment business information, judge whether the pending payment document matches with specified document;
Judging result is exported, the judging result indicates whether the pending payment document belongs to repetition payment.
Above-mentioned identification repeats the function of modules and the realization process of effect in the device paid the bill and specifically refers to above-mentioned knowledge
The realization process of step is corresponded in the method that Chong Fu do not pay the bill, details are not described herein.
For identification repeats the device embodiment of payment, since it corresponds essentially to embodiment of the method, so related
Place illustrates referring to the part of embodiment of the method.The apparatus embodiments described above are merely exemplary, wherein institute
It states the module illustrated as separating component may or may not be physically separated, the component shown as module can
To be or may not be physical module, you can be located at a place, or may be distributed on multiple network modules.
Some or all of module therein can be selected according to the actual needs to realize the purpose of this specification scheme.This field is general
Logical technical staff is without creative efforts, you can to understand and implement.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the action recorded in detail in the claims or step can be come according to different from the sequence in embodiment
It executes and desired result still may be implemented.In addition, the process described in the accompanying drawings not necessarily require show it is specific suitable
Sequence or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing be also can
With or it may be advantageous.
Those skilled in the art will readily occur to this specification after considering specification and putting into practice the invention applied here
Other embodiments.This specification is intended to cover any variations, uses, or adaptations of this specification, these modifications,
Purposes or adaptive change follow the general principle of this specification and include that this specification is not applied in the art
Common knowledge or conventional techniques.The description and examples are only to be considered as illustrative, the true scope of this specification and
Spirit is indicated by the following claims.
It should be understood that this specification is not limited to the precision architecture for being described above and being shown in the accompanying drawings,
And various modifications and changes may be made without departing from the scope thereof.The range of this specification is only limited by the attached claims
System.
The foregoing is merely the preferred embodiments of this specification, all in this explanation not to limit this specification
Within the spirit and principle of book, any modification, equivalent substitution, improvement and etc. done should be included in the model of this specification protection
Within enclosing.