Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
The embodiment of the present invention provides a payment service processing method based on a block chain, and fig. 1 is a flow chart of the payment service processing method based on the block chain provided in the embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
s101, receiving a payment request initiated by a target client through a target application client, wherein the payment request is used for requesting to execute a payment service by using a target payment mode.
It should be noted that the target application client in the embodiment of the present invention may be any application client capable of providing a payment service, for example, a shopping APP or a travel APP. When a user initiates a payment request through an application client such as a shopping APP or a travel APP, a payment method (i.e., a target payment method) is usually selected from multiple payment methods (mobile banking payment, wechat payment, and pay payment) provided in a payment page to perform a corresponding payment service.
And S102, uploading the payment request to the block chain network.
After receiving a payment request which is initiated by a target client through a target application client and used for executing payment service in a target payment mode, uploading the received payment request to a block chain network. The blockchain network in the embodiment of the present invention may be a blockchain network constructed by using a payment service system (a banking service system or a third-party payment service system such as WeChat, Paibao, etc.) as a blockchain storage node; or a single blockchain network, and each payment service system can access the blockchain network through a blockchain client.
S103, the block chain network pushes the payment request to a payment server of a target payment mode, wherein the payment server generates a payment confirmation message according to the payment request and uploads the payment confirmation message to the block chain network.
It should be noted that, when the blockchain network receives a payment request for using a target payment method initiated by a target client through a target application client, the payment request is pushed to a corresponding payment server (i.e., a background server corresponding to the payment client), and the payment server generates a payment confirmation message according to the payment request and uploads the payment confirmation message to the blockchain network, so that the blockchain network sends the payment confirmation message to the target application client.
Optionally, in the payment service processing method based on the blockchain provided in the embodiment of the present invention, the payment confirmation message is a 5G message, and the payment server uploads the payment confirmation message to the blockchain network through the 5G communication network.
And S104, sending the payment confirmation message to the target application client by the block chain network.
Optionally, in the case that the payment confirmation message is a 5G message, the blockchain network sends the payment confirmation message to the target application client of the user through the 5G communication network.
And S105, acquiring the response result of the target client to the payment confirmation message through the target application client.
When the target client receives the payment confirmation message through the target application client, it determines whether to execute the corresponding payment service, and the response result in S105 may be to confirm execution of the payment service or to reject execution of the payment service.
And S106, executing the payment service corresponding to the payment request according to the response result.
When the response result is that the execution of the payment service is confirmed, executing the payment service corresponding to the payment request according to the transaction information of the payment service; and when the response result is that the execution of the payment service is refused, interrupting the execution of the payment service corresponding to the payment request.
In order to implement traceability of payment transaction information, in an embodiment, as shown in fig. 2, the method for processing a payment service based on a blockchain provided in an embodiment of the present invention further includes the following steps:
s107, acquiring transaction information of the payment service;
and S108, uploading the transaction information of the payment service to the block chain network.
In the embodiment of the invention, the transaction information of the payment service is uploaded to the blockchain network, and the non-falsification characteristic of the data stored in the blockchain network is utilized, so that the user can conveniently trace the payment transaction information in the following process.
Based on the same inventive concept, the embodiment of the present invention further provides a device for processing a payment service based on a block chain, as described in the following embodiments. Because the principle of the device for solving the problems is similar to the payment service processing method based on the block chain, the implementation of the device can refer to the implementation of the payment service processing method based on the block chain, and repeated parts are not described again.
Fig. 3 is a schematic diagram of a device for processing payment services based on a block chain according to an embodiment of the present invention, as shown in fig. 3, the device includes: the payment request module 31, the payment request uplink module 32, the block chain data sharing module 33, the message sending module 34, the message returning module 35 and the payment service module 36.
The payment request module 31 is configured to receive a payment request initiated by a target client through a target application client, where the payment request is used to request to execute a payment service using a target payment method; a payment request uplink module 32, configured to upload a payment request to a blockchain network; the block chain data sharing module 33 is configured to push the payment request to a payment server of a target payment method through a block chain network, where the payment server generates a payment confirmation message according to the payment request and uploads the payment confirmation message to the block chain network; a message sending module 34, configured to send, by the blockchain network, the payment confirmation message to the target application client; a message returning module 35, configured to obtain a response result of the target client to the payment confirmation message through the target application client; and the payment service module 36 is configured to execute a payment service corresponding to the payment request according to the response result.
In an embodiment, in the device for processing a payment service based on a blockchain provided in the embodiment of the present invention, the payment confirmation message is a 5G message, the payment server uploads the payment confirmation message to the blockchain network through the 5G communication network, and the blockchain network sends the payment confirmation message to the target application client of the user through the 5G communication network.
In an embodiment, as shown in fig. 4, the device for processing payment services based on a blockchain provided in an embodiment of the present invention further includes: a transaction information obtaining module 37, configured to obtain transaction information of the payment service; and the transaction information uplink module 38 is configured to upload the transaction information of the payment service to the blockchain network.
In an embodiment, as shown in fig. 4, in the block chain-based payment service processing apparatus provided in the embodiment of the present invention, the payment service module 36 includes: the first executing module 361 is configured to, when the response result is that the execution of the payment service is confirmed, execute the payment service corresponding to the payment request according to the transaction information of the payment service; the second executing module 362 is configured to, when the response result is that execution of the payment service is denied, interrupt execution of the payment service corresponding to the payment request.
Based on the same inventive concept, a computer device is further provided in the embodiments of the present invention to solve the technical problem of complex operation of the existing payment service system, fig. 5 is a schematic diagram of a computer device provided in the embodiments of the present invention, as shown in fig. 5, the computer device 50 includes a memory 501, a processor 502, and a computer program stored on the memory 501 and capable of running on the processor 502, and when the processor 502 executes the computer program, the above payment service processing method based on the block chain is implemented.
Based on the same inventive concept, the embodiment of the present invention further provides a computer-readable storage medium, so as to solve the technical problem of complex operation of the existing payment service system, where the computer-readable storage medium stores a computer program for executing the above block chain-based payment service processing method.
In summary, in the payment service processing method, the apparatus, the computer device, and the computer readable storage medium based on the blockchain provided in the embodiments of the present invention, after receiving a payment request initiated by a target client through a target application client and using a target payment method to execute a payment service, the received payment request is uploaded to a blockchain network, and the blockchain network pushes the payment request to a payment server of the target payment method, so that the payment server generates a payment confirmation message according to the payment request, uploads the payment confirmation message to the blockchain network, and sends the payment confirmation message to the target application client through the blockchain network, obtains a response result of the target client to the payment confirmation message through the target application client, and finally executes the payment service corresponding to the payment request according to the response result.
Compared with the technical scheme that the payment client is called and logged in during payment in the prior art, the payment confirmation message is generated according to the payment request and is pushed to the target application client of the user through the block chain network, the technical effect that the user confirms to complete payment in one key can be achieved, the payment operation process is simplified, and the payment efficiency is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.