Multi-party payment data transmission method and electricity selling method
Through the multi-party payment data transmission method that uses Token authorization information, encryption algorithm and hash function processing in the multi-party payment process, it solves the problem of payment-related privacy data and operator account fund security, realizes online real-time settlement, and improves the efficiency of payment. Payment efficiency and security.
Patent Information
- Application Number
- CN202110821534.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-20
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-07-20
AI Technical Summary
During the multi-party payment process, there are security issues related to payment privacy data and the security of operator account funds cannot be guaranteed. Moreover, the offline cycle settlement method is inefficient and cannot achieve real-time and convenient information-based office work.
Adopt multi-party payment data transmission methods, including transmission of authority authentication data, encrypted payment data and trusted authentication data, using Token authorization information, symmetric encryption algorithms, signature keys and hash function algorithms, through HTTP(S)/POST and JSON format transmission ensures data security and uniqueness, and the payment interface is defined through RESTful API to achieve online real-time settlement.
It improves the security of payment-related privacy data and operator account funds, achieves high efficiency in financial processing, and ensures the security of the data transmission process and the real-time and convenient flow of funds.
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission security, and in particular to a multi-party payment data transmission method and an electricity selling method. Background Art
[0002] Multi-party payment refers to the payment process between trading platforms, operators, and users. Funds can be stored on the fund custody platform. At this time, the payment process of multi-party payment is completed by the trading platform, operators, users, and payment platforms. The trading platform and the payment platform can be operated by the same entity. When making multi-party payments, you can use the payment key of the operator to initiate the payment, or you can make the payment by offline transfer settlement within the payment cycle. In this payment method, the funds are not received in real time. However, the real-time payment arrival mode in which the payment password is saved by the payment platform has the problem of security of payment-related privacy data, and the security of operator account funds cannot be guaranteed. The use of offline periodic settlement cannot realize real-time and convenient information office, is inefficient, requires reconciliation, and wastes manpower and material resources. Summary of the invention
[0003] The purpose of the present invention is to provide a multi-party payment data transmission method and a power selling method, so as to realize the transfer of charging order funds of three-party charging operators under the condition of ensuring data and fund security.
[0004] The technical solution of the present invention is:
[0005] A multi-party payment data transmission method includes transmitting authority authentication data, encrypted payment data and trusted authentication data, wherein the authority authentication data is Token authorization information; encrypting payment data using a symmetric encryption algorithm to obtain the encrypted payment data; encrypting the encrypted payment data using a signature key to obtain single-encrypted data, and processing the single-encrypted data using a hash function algorithm to obtain the trusted authentication data.
[0006] Preferably, HTTP(S) / POST is used to transmit parameters, and JSON is used to transmit the message header and message body, the authority authentication data is set in the message header, and the encrypted payment data and the trusted authentication data are set in the message body.
[0007] Further preferably, the message header also includes encoding method information of the message body, and the message body also includes an operator identifier, parameter content, a timestamp, a self-increment sequence and a digital signature.
[0008] Preferably, the symmetric encryption algorithm uses AES 128-bit encryption, the encryption mode uses CBC encryption mode, and the filling mode uses PKCS5Padding filling mode.
[0009] Preferably, the method for encrypting the encrypted payment data with the signature key is the HMAC-MD5 algorithm, and the hash function is the MD5 algorithm.
[0010] Preferably, a RESTful API is used to define the payment interface.
[0011] The electricity selling method using the aforementioned multi-party payment data transmission method comprises the following steps:
[0012] Steps to place an order;
[0013] Initiate prepayment step to select payment platform;
[0014] Payment information generation step, used to create payment data for collection, and use a multi-party payment data transmission method to transmit authority authentication data, encrypted payment data, and trusted authentication data;
[0015] Steps for displaying content to be paid;
[0016] Payment result display steps;
[0017] Update steps.
[0018] Preferably, if the payment result is a successful payment, the updating step activates the charging circuit, and if the payment result is a failed payment, the updating step starts the prepayment initiation step.
[0019] Furthermore, the method further comprises the following steps:
[0020] Order settlement steps; if the payment amount = charging consumption amount, the order is completed; if the payment amount > charging consumption amount, a refund step is also included; the refund step includes creating refund payment data, using a multi-party payment data transmission method to transmit authority authentication data, encrypted payment data and trusted authentication data. When the refund result is a successful refund, the order is completed. When the refund result is a failed refund, the refund step is started again or offline processing is performed.
[0021] The beneficial effects of the present invention are:
[0022] 1. Using Token authorization information and encrypted payment data ensures the security of payment-related privacy data. Using trusted authentication data makes encrypted payment data unique, improving the security of the data transmission process. Token authorization information can also improve the financial security of the operator's account.
[0023] 2. The electricity selling method of the present invention adopts an online real-time payment method, which improves the efficiency of financial processing through the flow of information data. DETAILED DESCRIPTION
[0024] The present invention is described below in the form of embodiments to assist those skilled in the art to understand and implement the present invention. Unless otherwise specified, the following embodiments and the technical terms therein should not be understood without departing from the technical knowledge background of the technical field.
[0025] In this embodiment, the participants include electricity buyers, electricity sales trading platforms, electricity sales operators and payment providers.
[0026] A multi-party payment data transmission method includes transmitting authority authentication data, encrypted payment data and trusted authentication data, wherein the authority authentication data is Token authorization information; encrypting payment data using a symmetric encryption algorithm to obtain encrypted payment data; encrypting encrypted payment data using a signature key to obtain single-layer encrypted data; and processing the single-layer encrypted data using a hash function algorithm to obtain trusted authentication data.
[0027] In this embodiment, HTTP / POST or HTTPS / POST is used to transmit parameters, JSON is used to transmit the message header and message body, the authority authentication data is set in the message header, and the encrypted payment data and trusted authentication data are set in the message body.
[0028] In this embodiment, the message header also includes the encoding method information of the message body, and the message body also includes the power sales operator identification, parameter content, timestamp, self-increment sequence and digital signature.
[0029] In this embodiment, the symmetric encryption algorithm uses AES 128-bit encryption, the encryption mode uses CBC encryption mode, and the padding mode uses PKCS5Padding padding mode.
[0030] In this embodiment, the method of encrypting the encrypted payment data with the signature key is the HMAC-MD5 algorithm, and the hash function is the MD5 algorithm.
[0031] In this embodiment, a RESTful API is used to define the payment interface.
[0032] The electricity selling method using the aforementioned multi-party payment data transmission method comprises the following steps:
[0033] Ordering step: Electricity buyers place orders with electricity sales operators on the electricity sales trading platform;
[0034] Initiate the prepayment step, the electricity sales operator outputs the payment platform for electricity buyers to choose through the electricity sales transaction platform; the payment platform can be a bank, UnionPay, WeChat, Alipay and other payment providers.
[0035] Payment information generation step: the electricity sales operator creates payment data, and the electricity sales trading platform uses a multi-party payment data transmission method to transmit the authority authentication data, encrypted payment data and trusted authentication data to the payment platform selected by the user;
[0036] In the step of displaying the content to be paid, the electricity sales transaction platform outputs the content to be paid provided by the payment platform.
[0037] In the payment result display step, the electricity sales transaction platform outputs the payment result provided by the payment platform. The payment results are of three types: payment successful, payment failed, and querying.
[0038] In the updating step, if the payment result is a successful payment, the electricity selling operator activates the charging circuit in the updating step; if the payment result is a failed payment, the electricity selling operator initiates the prepayment in the updating step.
[0039] After the order is completed automatically or the user completes the order manually, the order settlement step is performed. In this step, if the payment amount = the charging consumption amount, the order is completed; if the payment amount > the charging consumption amount, the refund step is performed.
[0040] The refund process includes the electricity sales operator creating refund payment data, the electricity sales trading platform using a multi-party payment data transmission method to transmit the authority authentication data, encrypted payment data and trusted authentication data to the payment platform selected by the user, and the electricity sales trading platform outputting the refund result provided by the payment platform. The refund results are of three types: refund success, refund failure, and inquiry. If the refund result is a refund success, the order is completed. If the refund result is a refund failure, the refund process is started again or offline processing is performed.
[0041] The present invention has been described in detail above with reference to the embodiments. It should be understood that it is impossible to describe all possible implementation methods in practice, and the inventive concept of the present invention is described as much as possible by way of example. Without departing from the inventive concept of the present invention and without creative work, the technical personnel in this technical field make selections and combinations of the technical features in the above embodiments, make experimental changes to the specific parameters, or use the prior art in this technical field to conventionally replace the technical means disclosed in the present invention to form specific embodiments, which should all belong to the implicit disclosure of the present invention.
Claims
1. A method for selling electricity using a multi-party payment data transmission method, Features The multi-party payment data transmission method includes transmitting authority authentication data, encrypted payment data and trusted authentication data, wherein the authority authentication data is Token authorization information; encrypting the payment data using a symmetric encryption algorithm to obtain the encrypted payment data; encrypting the encrypted payment data using a signature key to obtain single-encrypted data, and processing the single-encrypted data using a hash function algorithm to obtain the trusted authentication data, wherein the payment process of the multi-party payment is completed by the transaction platform, the operator, the user, and the payment platform; The parameters are transmitted using HTTP(S) / POST, and the message header and message body are transmitted using JSON, wherein the authority authentication data is set in the message header, and the encrypted payment data and the trusted authentication data are set in the message body; The message header also includes information on the encoding method of the message body, and the message body also includes an operator identifier, parameter content, a timestamp, a self-increment sequence, and a digital signature; The symmetric encryption algorithm uses AES128-bit encryption, the encryption mode uses CBC encryption mode, and the padding mode uses PKCS5Padding padding mode; The method of encrypting the encrypted payment data with the signature key is the HMAC-MD5 algorithm, and the hash function is the MD5 algorithm; Use RESTful API to define payment interface; The electricity selling method using the multi-party payment data transmission method comprises the following steps: Steps to place an order; Initiate prepayment step to select payment platform; Payment information generation step, used to create payment data for collection, and use a multi-party payment data transmission method to transmit authority authentication data, encrypted payment data, and trusted authentication data; Steps for displaying content to be paid; Payment result display steps; Update steps: If the payment result is a successful payment, the updating step activates the charging circuit; if the payment result is a failed payment, the updating step starts the prepayment initiation step; The electricity selling method further comprises the following steps: Order settlement steps; If the payment amount = charging consumption amount, the order is completed; If the payment amount is greater than the charging consumption amount, a refund step is also included; The refund step includes creating refund payment data, using a multi-party payment data transmission method to transmit authority authentication data, encrypted payment data and trusted authentication data. When the refund result is a successful refund, the order is completed. When the refund result is a failed refund, the refund step is started again or offline processing is performed.
