Disclosure of Invention
The embodiment of the invention provides a payment verification method, a payment verification device and electronic equipment, and aims to at least solve the technical problem that when payment verification is carried out in the related technology, a personalized verification mode and a verification interface are difficult to determine according to a target object.
According to an aspect of an embodiment of the present invention, there is provided a payment verification method, including: receiving a payment verification request sent by a target client, wherein the payment verification request carries target object identity data and order data to be paid; responding to the payment verification request, and determining a target verification mode and a target verification interface corresponding to the target verification mode according to the target object identity data and the order data to be paid; determining a link address corresponding to a target verification interface based on the target verification interface corresponding to the target verification mode; sending an identity authentication request to the target client, wherein the identity authentication request carries a link address corresponding to the target authentication interface, so that the target client opens the link address to perform identity authentication; receiving verification data sent by the target client; and obtaining a payment verification result based on the payment verification request according to the verification data.
Optionally, the determining, in response to the payment verification request, a target verification manner and a target verification interface corresponding to the target verification manner according to the target object identity data and the order data to be paid includes: determining the target verification mode according to the target object identity data and the order data to be paid; and determining the target verification interface corresponding to the target verification mode according to the order data to be paid.
Optionally, the determining, according to the order data to be paid, a target verification interface corresponding to the target verification manner includes: determining a template verification interface corresponding to the target verification mode; and obtaining the target verification interface according to the order data to be paid and the template verification interface.
Optionally, the determining a template verification interface corresponding to the target verification manner includes: determining an initial template verification interface corresponding to the target verification mode and a predetermined rich text file package corresponding to the initial template verification interface; sending the predetermined rich text file packet to the target client, wherein the predetermined rich text file packet comprises annotations to predetermined codes; receiving an edited rich text file package sent by the target client, wherein the edited rich text file package is a file package obtained after the predetermined rich text file package is edited; and determining the template verification interface corresponding to the target verification mode according to the edited rich text file package.
Optionally, the determining, according to the edited rich text file package, the template verification interface corresponding to the target verification mode includes: under the condition that the template verification interface corresponding to the verification mode fails according to the edited rich text file package, sending failure setting information to the target client; and determining the initial template verification interface as the template verification interface corresponding to the target verification mode.
Optionally, the obtaining the target verification interface according to the data of the order to be paid and the template verification interface includes: obtaining key field data according to the order data to be paid; and filling the keyword field data into the template verification interface to obtain the target verification interface.
Optionally, the determining the target verification manner according to the target object identity data and the order data to be paid includes: determining the type of the order to be paid and the amount of the order to be paid according to the order data to be paid; and determining the target verification mode according to the target object identity data, the type of the order to be paid and the amount of the order to be paid.
According to an aspect of an embodiment of the present invention, there is provided a payment verification apparatus including: the payment verification system comprises a first receiving module, a second receiving module and a payment verification module, wherein the first receiving module is used for receiving a payment verification request sent by a target client, and the payment verification request carries target object identity data and order data to be paid; the first determining module is used for responding to the payment verification request, and determining a target verification mode and a target verification interface corresponding to the target verification mode according to the target object identity data and the order data to be paid; the second determining module is used for determining a link address corresponding to the target verification interface based on the target verification interface corresponding to the target verification mode; the sending module is used for sending an authentication request to the target client, wherein the authentication request carries a link address corresponding to the target authentication interface, so that the target client opens the link address to perform authentication; the second receiving module is used for receiving the verification data sent by the target client; and the acquisition module is used for acquiring a payment verification result based on the payment verification request according to the verification data.
According to an aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the payment verification methods described above.
According to an aspect of an embodiment of the present invention, there is provided a computer-readable storage medium, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform any one of the above described payment verification methods.
In the embodiment of the invention, a payment verification request sent by a target client side is received, wherein the payment verification request carries target object identity data and order data to be paid, a target verification mode and a target verification interface corresponding to the target verification mode are determined according to the target object identity data and the order data to be paid in response to the payment verification request, a link address corresponding to the target verification interface is determined based on the target verification interface corresponding to the target verification mode, the authentication request is sent to the target client side, wherein the link address corresponding to the target verification interface is carried in the authentication request, so that the target client side opens the link address for authentication, receives verification data sent by the target client side, and obtains a payment verification result based on the payment verification request according to the verification data. Because the target verification mode and the target verification interface corresponding to the target verification mode are determined according to the target object identity data and the order data to be paid, the personalized verification mode and the personalized verification interface are determined according to the target object, and the technical problem that the personalized verification mode and the personalized verification interface are difficult to determine according to the target object when payment verification is carried out in the related technology is solved.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a payment verification method, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system, such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flow chart of a payment verification method according to an embodiment of the present invention, as shown in fig. 1, the method comprising the steps of:
step S102, receiving a payment verification request sent by a target client, wherein the payment verification request carries target object identity data and order data to be paid;
step S104, responding to the payment verification request, and determining a target verification mode and a target verification interface corresponding to the target verification mode according to the target object identity data and the order data to be paid;
step S106, determining a link address corresponding to the target verification interface based on the target verification interface corresponding to the target verification mode;
step S108, an identity authentication request is sent to a target client, wherein the identity authentication request carries a link address corresponding to a target authentication interface, so that the target client opens the link address to perform identity authentication;
step S110, receiving verification data sent by a target client;
and step S112, obtaining a payment verification result based on the payment verification request according to the verification data.
Through the steps, the server receives a payment verification request sent by a target client, wherein the payment verification request carries target object identity data and order data to be paid, the server responds to the payment verification request, determines a target verification mode and a target verification interface corresponding to the target verification mode according to the target object identity data and the order data to be paid, determines a link address corresponding to the target verification interface based on the target verification interface corresponding to the target verification mode, and sends the authentication request to the target client, wherein the authentication request carries the link address corresponding to the target verification interface, so that the target client opens the link address to perform authentication, receives verification data sent by the target client, and obtains a payment verification result based on the payment verification request according to the verification data. Because the target verification mode and the target verification interface corresponding to the target verification mode are determined according to the target object identity data and the order data to be paid, the personalized verification mode and the personalized verification interface are determined according to the target object, and the technical problem that the personalized verification mode and the personalized verification interface are difficult to determine according to the target object when payment verification is carried out in the related technology is solved.
As an optional embodiment, a payment verification request sent by a target client is received, where the payment verification request carries target object identity data and order data to be paid. The received payment verification request may be sent by the target client after the target client receives the payment operation of the target object.
As an optional embodiment, in response to the payment verification request, a target verification method and a target verification interface corresponding to the target verification method are determined according to the target object identity data and the order data to be paid. The corresponding target verification mode and the target verification interface corresponding to the target verification mode can be determined according to the target object and the specific order, so that the payment verification is personalized and has pertinence.
As an optional embodiment, in response to the payment verification request, when the target verification manner and the target verification interface corresponding to the target verification manner are determined according to the target object identity data and the order data to be paid, the target verification manner may be determined according to the target object identity data and the order data to be paid, and after the target verification manner is determined, the target verification interface corresponding to the target verification manner is determined according to the order data to be paid. The target verification method may include short message verification, password verification, face recognition, fingerprint verification, and the like, which is not limited herein.
As an alternative embodiment, the target verification manner may be determined according to the target object identity data and the data of the order to be paid, for example, according to the data of the order to be paid, the type of the order to be paid and the amount of the order to be paid are determined, and according to the target object identity data, the type of the order to be paid and the amount of the order to be paid, the target verification manner is determined. The target object can be determined according to the target object, for example, the target object A sets password authentication and face recognition, and then the target authentication mode is determined according to the type of the order to be paid in the order data to be paid and the amount of the order to be paid. Thereby achieving personalized payment verification. And when the target verification interface corresponding to the target verification mode is determined according to the order data to be paid, part of data in the order data to be paid is also displayed in the target verification interface, so that when the target object sees the interface at the target client, the approximate information of the order can be clear, and verification and payment can be completed conveniently. The whole payment process is safer and more perfect.
As an optional embodiment, when the target verification interface corresponding to the target verification mode is determined according to the order data to be paid, the template verification interface corresponding to the target verification mode may be determined, and the target verification interface is obtained according to the order data to be paid and the template verification interface. Namely, different verification modes can have different template verification interfaces, and partial data in the order data to be paid can be filled in the template verification interfaces to obtain target verification interfaces. By acquiring the template verification interface, the process of acquiring the target verification interface can be faster, and the efficiency of payment verification is accelerated.
As an optional embodiment, when determining the template verification interface corresponding to the target verification manner, an initial template verification interface corresponding to the target verification manner and a predetermined rich text file package corresponding to the initial template verification interface may be determined first, and the predetermined rich text file package is sent to the target client, where the predetermined rich text file package includes an annotation for a predetermined code, so that the target client receives the predetermined rich text file package, and the target object edits the code in the predetermined rich text file package according to the annotation, so as to obtain an edited rich text file package. And then receiving an edited rich text file packet sent by the target client, and determining a template verification interface corresponding to the target verification mode according to the edited rich text file packet. And the personalized setting is really realized. The technical effect that different target objects are different is achieved.
The rich text file package is convenient to freely customize, small in size and convenient to integrate. Based on the principle of JS dynamic integration, the attributes of each control are exposed in the form of variables, such as a text input box, a text display box, a background color shadow text input box, a customized text color font format UI, and common UI controls such as pictures and buttons, the dynamic layout based on the JS page is extracted to form a common method, and the layout of a dynamically personalized rich text page can be realized at that time and can be mixed with the pictures and the buttons to finish the layout display of a complex page only by inputting corresponding relative position element layouts, such as left spacing, right spacing, upper spacing, lower spacing, text body, text color, line number and other attributes. Therefore, the rich text file package is utilized, and customization of the H5 rich text page is realized in a personalized mode.
As an optional embodiment, when the template verification interface corresponding to the target verification mode is determined according to the edited rich text file package, the operation of the target object is not compliant, so that the situation of editing the rich text file package cannot be identified. Therefore, the payment verification operation can still be carried out under the condition that the template verification interface corresponding to the target verification mode cannot be determined according to the edited rich text file package. The order of payment verification is guaranteed.
As an optional embodiment, when the target verification interface is obtained according to the order data to be paid and the template verification interface, the keyword field data may be obtained according to the order data to be paid, and the keyword field data is filled in the template verification interface to obtain the target verification interface. The key information of the transaction can be displayed on the target verification interface, so that the target object can know the payment related information, and the safety is ensured.
As an optional embodiment, based on a target verification interface corresponding to the target verification mode, a link address corresponding to the target verification interface is determined, so as to send an authentication request including the link address to the target client, so that the target client opens the link address for authentication.
As an alternative embodiment, the verification data sent by the target client is received, and the payment verification result based on the payment verification request is obtained according to the verification data. In case of passing the verification, a subsequent operation may be performed, for example, a payment operation in case of secret-free payment, or an operation of inputting a password may be performed at the target client, and so on. And the ordered proceeding of the payment operation is ensured.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in this specification are presently preferred and that no acts or modules are required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is also provided an apparatus for implementing the above payment verification method, and fig. 2 is a block diagram of a structure of a payment verification apparatus according to an embodiment of the present invention, as shown in fig. 2, the apparatus includes: a first receiving module 202, a first determining module 204, a second determining module 206, a sending module 208, a second receiving module 210, and an obtaining module 212, which are described in detail below.
A first receiving module 202, configured to receive a payment verification request sent by a target client, where the payment verification request carries target object identity data and order data to be paid; a first determining module 204, connected to the first receiving module 202, configured to determine, in response to the payment verification request, a target verification manner and a target verification interface corresponding to the target verification manner according to the target object identity data and the order data to be paid; a second determining module 206, connected to the first determining module 204, for determining a link address corresponding to the target verification interface based on the target verification interface corresponding to the target verification mode; a sending module 208, connected to the second determining module 206, configured to send an authentication request to the target client, where the authentication request carries a link address corresponding to the target authentication interface, so that the target client opens the link address for authentication; a second receiving module 210, connected to the sending module 208, for receiving the verification data sent by the target client; the obtaining module 212 is connected to the second receiving module 210, and configured to obtain a payment verification result based on the payment verification request according to the verification data.
It should be noted here that the first receiving module 202, the first determining module 204, the second determining module 206, the sending module 208, the second receiving module 210 and the obtaining module 212 correspond to steps S102 to S112 in implementing the payment verification method, and a plurality of modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiment 1.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; a memory for storing processor-executable instructions, wherein the processor is configured to execute the instructions to implement the payment verification method of any one of the above.
Example 4
According to another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium, wherein instructions of the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform any one of the above payment verification methods.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.