Specific embodiment
Mobile payment be exactly allow user using its mobile terminal (usually mobile phone) to the commodity consumed or service into
A kind of method of service of row account payment.Unit or it is personal by mobile device, internet or closely sense directly or
It connects to bank and other financial mechanism and sends payment instruction, the behavior of currency payment and fund transfer is generated, to realize mobile payment
Function.Mobile payment blends terminal device, internet, application provider and financial institution, provides currency branch for user
Pay, payment etc. financial business.
However, the problem of being limited to the stability of mobile network and electronic fare payment system, paying failure still occurs often.Example
Such as, due to network fluctuation, server-side is caused not receive the payment request of client transmission, and then payment is caused to fail, in this
The individual bankroll of user may be damaged simultaneously, such as user has completed during client is paid in server-side
Payment result is returned to client by payment operation, server-side, but due to network fluctuation, client does not receive server-side and returns
At this moment the payment result returned can prompt user to pay failure in client, user pays again, the actual situation is that taking
Payment operation is completed in business end, and individual subscriber fund is impaired, is related to subsequent reimbursement operation.Therefore the case where paying failure
Under, it is badly in need of analyzing the concrete reason for causing payment to fail, takes different processing modes for the concrete reason of payment failure
Payment is unsuccessfully handled, and subsequent can provide support for the transformation and upgrade of electronic fare payment system.
The content as described in above-mentioned background technique can only be looked into manually afterwards it is found that at present when occurring the problem of payment failure
Look for the running log of the simultaneously payment system of analysis distribution on different devices, the concrete reason of positioning payment failure, according to payment
The concrete reason of failure unsuccessfully takes corresponding processing mode to be handled for payment.Since running log is distributed in difference
Equipment on, manually search and the concrete reason for analyzing payment failure need to expend more time and efforts, thus can not
Corresponding processing mode is unsuccessfully taken to be handled for payment in time.
In view of the above-mentioned problems, this specification embodiment provides a kind of technical solution, it can be during user pays i.e.
The concrete reason for navigating to payment failure is carved, according to classification belonging to the concrete reason of payment failure, is unsuccessfully arranged for payment
Corresponding processing mode, and show the concrete reason of payment failure, so that operation personnel is according to set processing mode to branch
It pays and is unsuccessfully handled, thus avoid the running log for manually searching the simultaneously payment system of analysis distribution on different devices,
The time and efforts of operation maintenance personnel is saved, and payment unsuccessfully can be handled in time.
Specifically, the technical solution that this specification embodiment provides is as follows:
For multiple processing links that payment flow includes, payment flow is monitored in the processing status of each processing links;
When the processing status for listening to currently processed link meets preset condition, by the processing status of currently processed link and currently
The processing status of processing links before processing links is associated, and the currently processed link payment flow includes
Any processing links;According to the place before the processing status and currently processed link of the currently processed link after association
The processing status for managing link determines the reason of payment fails;Classification belonging to the reason of determining the payment failure;According to described
Payment is classified as belonging to the reason of payment failure, corresponding processing mode is unsuccessfully set, so that operation maintenance personnel is according to set
Processing mode unsuccessfully handles payment.
In order to make those skilled in the art more fully understand the technical solution in this specification embodiment, below in conjunction with this
Attached drawing in specification embodiment is described in detail the technical solution in this specification embodiment, it is clear that described
Embodiment is only a part of the embodiment of this specification, instead of all the embodiments.The embodiment of base in this manual,
Those of ordinary skill in the art's every other embodiment obtained, all should belong to the range of protection.
As shown in Figure 1, a kind of implementation flow chart of the payment fail processing method provided for this specification embodiment, the party
Method can specifically include following steps:
S101 monitors payment flow in the processing of each processing links for multiple processing links that payment flow includes
State;
Payment flow includes multiple processing links, for relatively common payment flow, such as client and server-side it
Between payment interaction flow, delivery operation is initiated in client as shown in Fig. 2, may include: user, such as in Alipay client
Initiate delivery operation;Payment request is generated in client;Payment request is sent to server-side by client, is taken as Alipay is paid
Business device;Server-side receives payment request transmitted by client;Server-side handles payment request, and processing here can be with
It is to generate order, payment etc.;Server-side will be back to client to the processing result of payment request;Client receives server-side and returns
The processing result to payment request returned.
Monitor is arranged in each processing links of above-mentioned described payment flow in this specification embodiment, can be according to branch
Corresponding branch can all be generated for every transaction in the processing status of each processing links by paying mark monitoring payment flow
Serial number is paid, the processing status that payment flow is directed to the transaction in each processing links can be monitored according to payment serial number.
Such as monitor according to payment serial number whether client normally generates payment request, monitor whether client is sent out payment request
Out, monitor whether server-side receives payment request etc..Mean the multiple processing links for including for payment flow, all may be used
To listen to every transaction in the processing status of each processing links according to payment serial number.It is worth noting that processing here
State meaning representated by each processing links may be different, such as are generating payment request link, and processing status can be
It generates payment request success or generates payment request failure, in the processing links of payment request, processing status can be processing
Success or processing failure.
S102, when the processing status for listening to currently processed link meets preset condition, by currently processed link
The processing status of processing status and the processing links before currently processed link is associated, and the currently processed link is described
Any processing links that payment flow includes;
By the step in above-mentioned S101, in the payment processing stage, the processing status of each processing links is monitored, monitoring is worked as
When meeting preset condition to the processing status of currently processed link, triggering payment failure handling mechanism.The condition here preset at
It is related with the processing links of payment flow, such as currently processed link is the processing links of payment request, then preset condition can
To be processing failure, such as currently processed link is that the processing result of payment request is back to client link, then preset item
Part can be return failure.
After triggering payment failure handling mechanism, before the processing status of currently processed link and currently processed link
The corresponding processing status of processing links is associated.By be associated with currently processed link processing status and currently processed link it
The corresponding processing status of preceding processing links, to portray complete payment failure scene.
Wherein, when the processing status for listening to currently processed link meets preset condition, according to currently processed link
Pay mark by the processing status of the processing links before the processing status of currently processed link and currently processed link into
Row association.Here pay mark can be payment serial number, it is meant that can be current by payment flow according to payment serial number
The processing status of the processing status of processing links pre-treatment link therewith is together in series, and establishes for the reason of subsequent determining payment failure
Fixed basis.
S103, according to the place before the processing status and currently processed link of the currently processed link after association
The processing status for managing link determines the reason of payment fails;
For the association results in S102, can according to the processing status of currently processed link and currently processed link it
The processing status of preceding processing links determines the reason of payment failure.
For example, in above-mentioned payment flow shown in Fig. 2, at the place that the processing result of payment request is back to client
It manages in link (processing result return link), the processing result of payment request is back to the result of client to return by server-side
Success, in the processing links (receiving processing result link) that client receives the processing result of payment request, client is not connect
The processing result of the payment request of server-side return is received, then is tied according to the processing status and processing that receive processing result link
The payment that the reason of fruit returns to the processing status of link, can determine payment failure does not receive server-side return for client is asked
The processing result asked, causing the factor of this result may be network fluctuation.
S104 determines classification belonging to the reason of payment fails;
The reason of for the payment failure determined in S103, classification belonging to the reason of payment fails is determined, wherein determining
The specific mode of classification belonging to the reason of payment failure are as follows: in preset payment failure cause classification chart, looked into every class
Classification belonging to the reason of the reason of looking for the payment to fail is to determine payment failure, wherein can be according to preset classifying rules
Classification is carried out to the reason of payment failure and generates the preset payment failure cause classification chart.
Wherein classify to the reason of payment failure according to preset classifying rules, it is former to generate preset payment failure
Because of classification chart, such as payment flow as shown in Figure 2, the reason of payment that can will be present failure, is divided into 3 major class, wherein can be with
The processing result that the processing result failure of server-side return payment request, client do not receive payment request is divided into C class, is taken
Processing payment request in business end is unsuccessfully divided into B class, and the link before remaining is divided into A class, and in addition payment flow is related to calling external
The reason of service (bank side), malloc failure malloc is divided into D class, the payment failure that can be will be present is divided into 4 major class.
In preset payment failure cause classification chart, the reason of payment fails is searched in every class to determine the payment
Classification belonging to the reason of failure.For example, the reason of payment failure, does not receive the processing result of payment request for client, then
The reason of payment failure can be successively searched in above-mentioned A class, B class, C class, determines that the reason of payment fails belongs to C class.
S105 is classified as payment described the reason of paying failure belonging to and corresponding processing mode is unsuccessfully arranged, with
Handle operation maintenance personnel unsuccessfully payment according to set processing mode.
Point belonging to the reason of classification belonging to the reason of for payment failure identified in S104, determining payment failure
Corresponding processing mode is unsuccessfully arranged for payment, so that operation maintenance personnel is according to set processing side in the corresponding processing mode of class
Formula unsuccessfully handles payment.
For example, the reason of determining payment failure belongs to C class, the corresponding processing mode of C class is reimbursement operation, is wrapped in C class
The processing result failure of the return payment request containing server-side, client do not receive the processing result of payment request, but practical
Operation of withholing is had occurred and that in payment request processing links, payment is caused to fail due in C class, and C class is corresponding
Processing mode is reimbursement operation, and corresponding for payment, unsuccessfully setting reimbursement is operated, so that operation maintenance personnel subsequent execution reimbursement operates.
In another example the reason of determining payment failure belongs to D class, the corresponding processing mode of D class is the calling of external service
Link detecting operation, the corresponding calling link detecting operation that external service is unsuccessfully set for payment, so that operation maintenance personnel is subsequent
Execute the calling link detecting operation of external service.
On the basis of the above method, as shown in figure 3, the technical solution that this specification embodiment provides can be further
Include:
S106 shows the reason of payment fails and the corresponding processing mode for payment failure setting.
The reason of for payment failure and the corresponding processing mode for payment failure setting, can be gone out with real-time exhibition
Come, it is subsequent that explanation data can be provided for customer service, explain concrete reason and corresponding treatment measures that payment fails, accordingly
Failure cause really can also be paid to customer responsiveness in real time, user is made really to recognize the original of true payment failure
Cause can promote the payment experience of user.
It, can be during user pays i.e. by the description of the above-mentioned technical solution provided this specification embodiment
The concrete reason for navigating to payment failure is carved, according to classification belonging to the concrete reason of payment failure, is unsuccessfully arranged for payment
Corresponding processing mode, and show the concrete reason of payment failure, so that operation personnel is according to set processing mode to branch
It pays and is unsuccessfully handled, thus avoid the running log for manually searching the simultaneously payment system of analysis distribution on different devices,
The time and efforts of operation maintenance personnel is saved, and payment unsuccessfully can be handled in time.
Relative to above method embodiment, this specification embodiment additionally provides a kind of payment failure handling device, such as Fig. 4
It is shown, it may include: status monitoring module 410, state relation module 420, reason determining module 430, classification determining module
440, setup module 450.
Status monitoring module 410, multiple processing links for including for payment flow monitor payment flow each
The processing status of processing links;
State relation module 420, for inciting somebody to action when the processing status for listening to currently processed link meets preset condition
The processing status of currently processed link and the processing status of the processing links before currently processed link are associated, described current
Processing links are any processing links that the payment flow includes;
Reason determining module 430, for according to the processing status for passing through the currently processed link after being associated with and currently
The processing status of processing links before processing links determines the reason of payment failure;
Classification determining module 440, for determining classification belonging to the reason of payment fails;
Setup module 450, for according to it is described payment failure the reason of belonging to be classified as payment be unsuccessfully arranged it is corresponding
Processing mode, so that operation maintenance personnel is unsuccessfully handled payment according to set processing mode.
According to a kind of specific embodiment that this specification provides, the state relation module 420 is specifically used for:
When the processing status for listening to currently processed link meets preset condition, according to the payment of currently processed link
The processing status of processing links before the processing status of currently processed link and currently processed link is associated by mark.
According to a kind of specific embodiment that this specification provides, the classification determining module 440 is specifically used for:
In preset payment failure cause classification chart, the reason of payment fails is searched in every class described in determination
Classification belonging to the reason of payment failure, wherein carrying out classification to the reason of payment failure according to preset classifying rules generates institute
State preset payment failure cause classification chart.
According to a kind of specific embodiment that this specification provides, the setup module 450 is specifically used for:
The corresponding processing mode of classification belonging to the reason of determining the payment failure;
The corresponding processing mode is unsuccessfully set for payment, so that operation maintenance personnel is according to set processing mode to branch
It pays and is unsuccessfully handled.
According to a kind of specific embodiment that this specification provides, described device further include:
Display module 460, the corresponding processing for showing the reason of payment fails and for payment failure setting
Mode.
The function of modules and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
It, can be during user pays i.e. by the description of the above-mentioned technical solution provided this specification embodiment
The concrete reason for navigating to payment failure is carved, according to classification belonging to the concrete reason of payment failure, is unsuccessfully arranged for payment
Corresponding processing mode, and show the concrete reason of payment failure, so that operation personnel is according to set processing mode to branch
It pays and is unsuccessfully handled, thus avoid the running log for manually searching the simultaneously payment system of analysis distribution on different devices,
The time and efforts of operation maintenance personnel is saved, and payment unsuccessfully can be handled in time.
This specification embodiment also provides a kind of computer equipment, as shown in figure 5, the equipment may include: processor
510, memory 520, input/output interface 530, communication interface 540 and bus 550.Wherein processor 510, memory 520,
Input/output interface 530 and communication interface 540 pass through the communication connection between the realization of bus 550 inside equipment.
Processor 510 can use general CPU (Central Processing Unit, central processing unit), micro process
Device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one or
The modes such as multiple integrated circuits are realized, for executing relative program, to realize technical solution provided by this specification embodiment.
Memory 520 can use ROM (Read Only Memory, read-only memory), RAM (RandomAccess
Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 520 can store
Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware
When, relevant program code is stored in memory 520, and execution is called by processor 510.
Input/output interface 530 is for connecting input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,
Loudspeaker, vibrator, indicator light etc..
Communication interface 540 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment
Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly
(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 550 includes an access, in various components (such as the processor 510, memory 520, input/output of equipment
Interface 530 and communication interface 540) between transmit information.
It should be noted that although above equipment illustrates only processor 510, memory 520, input/output interface
530, communication interface 540 and bus 550, but in the specific implementation process, which can also include realizing to operate normally
Necessary other assemblies.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising realizing in above equipment
Component necessary to this specification example scheme, without including all components shown in figure.
This specification embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
Payment fail processing method above-mentioned is realized when sequence is executed by processor.This method includes at least:
A kind of payment fail processing method, this method comprises:
For multiple processing links that payment flow includes, payment flow is monitored in the processing status of each processing links;
When the processing status for listening to currently processed link meets preset condition, by the processing shape of currently processed link
The processing status of state and the processing links before currently processed link is associated, and the currently processed link is the flow of payments
Any processing links that journey includes;
According to the processing ring before the processing status and currently processed link of the currently processed link after association
The processing status of section determines the reason of payment failure;
Classification belonging to the reason of determining the payment failure;
Corresponding processing mode is unsuccessfully arranged in the payment that is classified as belonging to according to the reason of the payment failure, so that O&M
Personnel are unsuccessfully handled payment according to set processing mode.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitorymedia), such as the data-signal and carrier wave of modulation.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
Embodiment can be realized by means of software and necessary general hardware platform.Based on this understanding, this specification is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are to make
It is each to obtain computer equipment (can be personal computer, server or the network equipment etc.) execution this specification embodiment
Method described in certain parts of a embodiment or embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description
Module may or may not be physically separated, can be each module when implementing this specification example scheme
Function realize in the same or multiple software and or hardware.Can also select according to the actual needs part therein or
Person's whole module achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not the case where making the creative labor
Under, it can it understands and implements.
The above is only the specific embodiment of this specification embodiment, it is noted that for the general of the art
For logical technical staff, under the premise of not departing from this specification embodiment principle, several improvements and modifications can also be made, this
A little improvements and modifications also should be regarded as the protection scope of this specification embodiment.