[go: up one dir, main page]

CN108881000A - Gateway, third-party platform, payment system and method - Google Patents

Gateway, third-party platform, payment system and method Download PDF

Info

Publication number
CN108881000A
CN108881000A CN201710318947.0A CN201710318947A CN108881000A CN 108881000 A CN108881000 A CN 108881000A CN 201710318947 A CN201710318947 A CN 201710318947A CN 108881000 A CN108881000 A CN 108881000A
Authority
CN
China
Prior art keywords
payment
signature
gateway device
platform
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710318947.0A
Other languages
Chinese (zh)
Inventor
杨贤伟
李美祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201710318947.0A priority Critical patent/CN108881000A/en
Publication of CN108881000A publication Critical patent/CN108881000A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/02Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
    • G06Q20/027Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP] involving a payment switch or gateway
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Strategic Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本发明公开了一种网关设备、第三方平台、支付系统及方法,家居设备购买服务时,网关设备会基于自身存储的第一密钥生成支付签名,并将支付签名发送到第三方平台上,由第三方平台完成支付签名的验证工作并根据验证结果对购买服务的服务请求进行处理。由于网关设备上存储了用于支付验证的第一密钥,网关设备基于第一密钥生成支付签名供第三方平台根据该支付签名完成支付过程中的安全验证。第三方平台对支付签名的验证过程实质上就是使用第二密钥对网关设备侧第一密钥正确性的认证过程,因此,该支付过程是基于网关设备进行的,该网关设备下的家居设备均能够通过网关设备实现购买支付,所以,该方案还优化了对家居设备购买支付的管理工作。

The invention discloses a gateway device, a third-party platform, a payment system and a method. When a household device purchases a service, the gateway device generates a payment signature based on a first key stored by itself, and sends the payment signature to the third-party platform. The third-party platform completes the verification of the payment signature and processes the service request for the purchase service according to the verification result. Since the first key used for payment verification is stored on the gateway device, the gateway device generates a payment signature based on the first key for the third-party platform to complete security verification in the payment process according to the payment signature. The verification process of the payment signature by the third-party platform is essentially the process of using the second key to verify the correctness of the first key on the gateway device side. Therefore, the payment process is based on the gateway device, and the home devices under the gateway device Both can realize the purchase payment through the gateway device, so this solution also optimizes the management of the purchase and payment of household equipment.

Description

网关设备、第三方平台、支付系统及方法Gateway device, third-party platform, payment system and method

技术领域technical field

本发明涉及通信技术领域,更具体地说,涉及一种网关设备、第三方平台、支付系统及方法。The present invention relates to the technical field of communication, and more specifically, to a gateway device, a third-party platform, a payment system and a method.

背景技术Background technique

智能家居设备的出现给用户带来了很大便利,改善和提高了人们的生活质量。一个家庭中的所有智能家居设备均可通过WiFi直接连接到家庭无线网关,再通过家庭无线网关接入互联网来实现各种远程智能应用。不同的智能家居设备通常由不同的服务提供商来提供服务,诸如水、电、气、有线电视、宽带网络等分别属于不同的行业领域。当用户想要使用这些相关服务的时候,必须向对应的服务提供商进行费用支付。无论是预付费还是后付费,用户进行费用支付的方式通常有这样几种:由用户到营业厅柜台缴费;由专门的工作人员上门收费;由用户登录相关服务提供商开设的网上营业厅或者使用相关客户端进行网上缴费。The emergence of smart home devices has brought great convenience to users and improved and improved people's quality of life. All smart home devices in a family can be directly connected to the home wireless gateway through WiFi, and then connected to the Internet through the home wireless gateway to realize various remote smart applications. Different smart home devices are usually provided by different service providers, such as water, electricity, gas, cable TV, broadband network, etc., which belong to different industry fields. When users want to use these related services, they must pay fees to the corresponding service providers. Whether it is prepaid or postpaid, there are usually several ways for users to pay fees: the user pays at the counter of the business hall; the special staff visits the door to charge; the user logs into the online business hall opened by the relevant service provider or uses Relevant clients make online payment.

前面两种缴费方式虽然均能够保证支付的安全性,但是对人力资源耗费较大。其中,第一种缴费方式要求用户在家庭享受多种智能家居服务的情况下逐一到对应的营业厅缴费,这不够智能,也很不合理。第二种缴费方式中要求相关服务提供商雇佣大量的工作人员,逐一到家庭中进行费用结算,这不仅要耗费大量人力资源,不利于资源的优化配置。而且还要求用户在特定的时间段处于家中,以等待缴费,给用户也造成了极大的不便。第三种缴费方式相对前两种而言,具有缴费方便快速、资源耗费低等优点,但是其要求用户必须使用终端进行缴费。Although the first two payment methods can guarantee the safety of payment, they consume a lot of human resources. Among them, the first payment method requires users to go to the corresponding business hall to pay one by one when the family enjoys multiple smart home services, which is not smart enough and unreasonable. The second payment method requires relevant service providers to hire a large number of staff members to settle the expenses one by one in the household, which not only consumes a lot of human resources, but also is not conducive to the optimal allocation of resources. And also require the user to be in the home in specific time period, to wait for payment, also caused great inconvenience to the user. Compared with the first two payment methods, the third payment method has the advantages of convenient and fast payment and low resource consumption, but it requires the user to use the terminal to make the payment.

就家庭智能家居设备的管理而言,由于智能家居设备与外界的通信构架已经决定了其必须与位于家庭的网关设备建立通信,因此,从支付管理层面而言,由网关设备来承担支付工作会更合理。虽然当终端在家庭中进行支付时,支付请求等消息是通过网关设备传输的,但是,网关设备也仅起到了转发信息的作用,目前还没有一种支付方式是可以直接基于网关设备进行的。As far as the management of home smart home devices is concerned, since the communication framework between smart home devices and the outside world has determined that they must establish communication with the gateway device located in the home, therefore, from the perspective of payment management, it will be difficult for the gateway device to undertake the payment work. more reasonable. Although when the terminal makes payment at home, messages such as payment requests are transmitted through the gateway device, but the gateway device only plays the role of forwarding information, and currently there is no payment method that can be directly based on the gateway device.

发明内容Contents of the invention

本发明要解决的技术问题在于:解决现有技术中在为家居设备购买服务时,无法直接基于网关设备完成支付的问题,针对该技术问题,提供一种网关设备、第三方平台、支付系统及方法。The technical problem to be solved by the present invention is to solve the problem in the prior art that the payment cannot be completed directly based on the gateway device when purchasing services for household devices. To solve this technical problem, a gateway device, a third-party platform, a payment system and method.

为解决上述技术问题,本发明提供一种支付方法,包括:In order to solve the above technical problems, the present invention provides a payment method, including:

网关设备在家居设备购买服务的过程中基于本地存储的第一密钥生成支付签名,所述网关设备与所述家居设备通信连接;The gateway device generates a payment signature based on the locally stored first key during the process of purchasing services by the home device, and the gateway device communicates with the home device;

所述网关设备将所述支付签名发送给第三方平台,以供所述第三方平台基于本地存储的第二密钥对所述支付签名完成签名验证,并根据验证结果对购买所述服务的服务请求进行处理。The gateway device sends the payment signature to the third-party platform, so that the third-party platform can complete the signature verification on the payment signature based on the second key stored locally, and verify the service purchase of the service according to the verification result. The request is processed.

进一步地,所述网关设备将所述支付签名发送给第三方平台包括:Further, the gateway device sending the payment signature to a third-party platform includes:

所述网关设备将所述支付签名直接发送给第三方平台;The gateway device directly sends the payment signature to a third-party platform;

或,or,

所述网关设备将所述支付签名通过所述家居设备转发给第三方平台。The gateway device forwards the payment signature to a third-party platform through the home device.

进一步地,还包括:由所述网关设备或所述家居设备将服务请求发送给所述第三方平台。Further, the method further includes: sending the service request to the third-party platform by the gateway device or the home device.

进一步地,所述第一密钥为所述网关设备的私有密钥,所述第二密钥为与所述私有密钥对应的公有密钥。Further, the first key is a private key of the gateway device, and the second key is a public key corresponding to the private key.

进一步地,所述网关设备基于本地存储的第一密钥生成支付签名包括:Further, the gateway device generating the payment signature based on the locally stored first key includes:

所述网关设备接收客户端下发的支付请求,并使用第一密钥对所述支付请求进行加密得到支付签名;The gateway device receives the payment request sent by the client, and encrypts the payment request with a first key to obtain a payment signature;

或,or,

所述网关设备接收所述家居设备发送的支付请求,并使用第一密钥对所述支付请求进行加密得到支付签名。The gateway device receives the payment request sent by the home device, and uses the first key to encrypt the payment request to obtain a payment signature.

进一步地,本发明还提供一种支付方法,包括:Further, the present invention also provides a payment method, including:

第三方平台获取网关设备生成的支付签名,所述支付签名由所述网关设备在家居设备购买服务的过程中基于其存储第一密钥生成,所述网关设备与所述家居设备通信连接;The third-party platform obtains the payment signature generated by the gateway device, the payment signature is generated by the gateway device based on its storage of the first key during the process of purchasing the service by the home device, and the gateway device communicates with the home device;

所述第三方平台使用本地预先存储的第二密钥对所述支付签名进行签名验证,并根据验证结果对购买所述服务的服务请求进行处理。The third-party platform uses the locally pre-stored second key to perform signature verification on the payment signature, and processes the service request for purchasing the service according to the verification result.

进一步地,所述第三方平台获取网关设备生成的支付签名包括:Further, the acquisition of the payment signature generated by the gateway device by the third-party platform includes:

所述第三方平台接收所述网关设备发送的支付签名;The third-party platform receives the payment signature sent by the gateway device;

或,or,

所述第三方平台接收由所述网关设备生成并经由所述家居设备转发的支付签名。The third-party platform receives the payment signature generated by the gateway device and forwarded by the home device.

进一步地,所述第三方平台包括应用平台与支付平台;Further, the third-party platform includes an application platform and a payment platform;

所述第三方平台根据验证结果对购买所述服务的服务请求进行处理包括:The processing of the service request for purchasing the service by the third-party platform according to the verification result includes:

所述应用平台使用本地预先存储的第二密钥对所述支付签名进行签名验证;当所述验证结果为通过时,所述支付平台完成与所述服务请求对应的支付扣款;所述支付平台将扣款结果发送给所述应用平台,以供所述应用平台在扣款成功时向所述家居设备提供所述服务请求对应的服务;The application platform uses the locally pre-stored second key to perform signature verification on the payment signature; when the verification result is passed, the payment platform completes the payment deduction corresponding to the service request; the payment The platform sends the deduction result to the application platform, so that the application platform can provide the home device with the service corresponding to the service request when the deduction is successful;

或,or,

所述支付平台使用本地预先存储的第二密钥对所述支付签名进行签名验证,并在所述验证结果为通过时,完成与所述服务请求对应的支付扣款;所述支付平台将扣款结果发送给所述应用平台,以供所述应用平台在扣款成功时向所述家居设备提供所述服务请求对应的服务。The payment platform uses the locally pre-stored second key to perform signature verification on the payment signature, and completes the payment deduction corresponding to the service request when the verification result is passed; the payment platform will deduct The payment result is sent to the application platform, so that the application platform provides the service corresponding to the service request to the home device when the deduction is successful.

进一步地,还包括:所述应用平台接收所述网关设备或所述家居设备发送的服务请求。Further, the method further includes: the application platform receiving the service request sent by the gateway device or the home device.

进一步地,本发明还提供一种网关设备,包括:Further, the present invention also provides a gateway device, including:

存储模块,用于预先存储用于支付的第一密钥;A storage module, used for pre-storing the first key used for payment;

第一处理模块,用于在家居设备购买服务的过程中基于所述第一密钥生成支付签名,所述网关设备与所述家居设备通信连接;The first processing module is configured to generate a payment signature based on the first key during the process of purchasing services by the home device, and the gateway device is communicatively connected to the home device;

第一通信模块,用于将所述支付签名发送给第三方平台,以供所述第三方平台基于本地存储的第二密钥对所述支付签名完成签名验证,并根据验证结果对购买所述服务的服务请求进行处理。The first communication module is configured to send the payment signature to a third-party platform, so that the third-party platform can complete signature verification on the payment signature based on the locally stored second key, and verify the payment signature according to the verification result. Service requests for services are processed.

进一步地,所述第一通信模块用于将所述支付签名直接发送给所述第三方平台,或将所述支付签名通过所述家居设备转发给所述第三方平台。Further, the first communication module is used to directly send the payment signature to the third-party platform, or forward the payment signature to the third-party platform through the home device.

进一步地,所述第一通信模块还用于将服务请求发送给所述第三方平台。Further, the first communication module is further configured to send a service request to the third-party platform.

进一步地,所述第一通信模块用于接收客户端下发的支付请求,或接收所述家居设备发送的支付请求;Further, the first communication module is configured to receive a payment request sent by a client, or receive a payment request sent by the home device;

所述第一处理模块,用于使用本地存储的所述第一密钥对所述第一通信模块获取的支付请求进行加密得到支付签名。The first processing module is configured to use the locally stored first key to encrypt the payment request acquired by the first communication module to obtain a payment signature.

进一步地,本发明提供了一种第三方平台,包括:Further, the present invention provides a third-party platform, including:

第二通信模块,用于获取网关设备生成的支付签名,所述支付签名由所述网关设备在家居设备购买服务的过程中基于其存储第一密钥生成,所述网关设备与所述家居设备通信连接;The second communication module is used to obtain the payment signature generated by the gateway device, the payment signature is generated by the gateway device based on its storage of the first key during the process of purchasing services by the home device, and the gateway device and the home device communication connection;

第二处理模块,用于使用本地预先存储的第二密钥对所述支付签名进行签名验证,并根据验证结果对购买所述服务的服务请求进行处理。The second processing module is configured to use a locally pre-stored second key to perform signature verification on the payment signature, and process the service request for purchasing the service according to the verification result.

进一步地,所述第二通信模块用于接收所述网关设备发送的支付签名,或接收由所述网关设备生成并经由所述家居设备转发的支付签名。Further, the second communication module is configured to receive the payment signature sent by the gateway device, or receive the payment signature generated by the gateway device and forwarded by the home device.

进一步地,所述第二通信模块还用于接收所述网关设备或所述家居设备发送的服务请求。Further, the second communication module is further configured to receive a service request sent by the gateway device or the home device.

进一步地,本发明还提供一种支付系统,包括如上任一项所述的网关设备、如上任一项所述的第三方平台,以及与所述网关设备通信连接的家居设备。Further, the present invention also provides a payment system, including the gateway device described in any one of the above, the third-party platform described in any one of the above, and a home device communicatively connected with the gateway device.

进一步地,所述家居设备还用于监测自身的服务提供能力,并在自身的服务提供能力低于预设阈值时,自动购买所需服务并进行支付,所述服务提供能力表征所述家居设备能够向用户提供服务的能力。Further, the home device is also used to monitor its own service providing capability, and automatically purchase and pay for the required service when its own service providing capability is lower than a preset threshold, the service providing capability characterizes the home device Ability to provide services to users.

有益效果Beneficial effect

本发明提供一种网关设备、第三方平台、支付系统及方法,网关设备下的家居设备购买服务时,网关设备会基于自身存储的第一密钥生成支付签名。然后将支付签名发送到第三方平台上,由第三方平台完成支付签名的验证工作并根据验证结果对购买服务的服务请求进行处理。在该方案当中,网关设备上存储了用于支付验证的第一密钥,其能够基于第一密钥生成支付签名供第三方平台根据该支付签名完成支付过程中的安全验证。第三方平台对支付签名的验证过程实质上就是使用第二密钥对网关设备侧第一密钥正确性的认证过程,因此,本发明中的支付过程是基于网关设备进行的,该网关设备下的家居设备均能够通过网关设备实现购买支付,所以,本发明的方案优化了对家居设备购买支付的管理工作。The present invention provides a gateway device, a third-party platform, a payment system and a method. When a home device under the gateway device purchases a service, the gateway device generates a payment signature based on a first key stored by itself. Then the payment signature is sent to the third-party platform, and the third-party platform completes the verification of the payment signature and processes the service request for the purchase service according to the verification result. In this solution, the first key for payment verification is stored on the gateway device, which can generate a payment signature based on the first key for the third-party platform to complete security verification in the payment process based on the payment signature. The verification process of the payment signature by the third-party platform is essentially the verification process of using the second key to verify the correctness of the first key on the gateway device side. Therefore, the payment process in the present invention is based on the gateway device. All household devices can be purchased and paid through the gateway device, so the solution of the present invention optimizes the management of the purchase and payment of household devices.

附图说明Description of drawings

下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with accompanying drawing and embodiment, in the accompanying drawing:

图1为本发明实施例一提供的支付方法的一种流程图;Fig. 1 is a flow chart of the payment method provided by Embodiment 1 of the present invention;

图2为支付方法在第三方平台侧的一种实现流程图;Fig. 2 is a kind of implementation flowchart of payment method on the third-party platform side;

图3为支付方法在第三方平台侧的另一种实现流程图;Fig. 3 is another implementation flowchart of the payment method on the third-party platform side;

图4为本发明实施例二提供的网关设备的一种结构示意图;FIG. 4 is a schematic structural diagram of a gateway device provided in Embodiment 2 of the present invention;

图5为本发明实施例三提供的第三方平台的一种结构示意图;FIG. 5 is a schematic structural diagram of a third-party platform provided by Embodiment 3 of the present invention;

图6为本发明实施例四提供的支付系统的一种结构示意图;FIG. 6 is a schematic structural diagram of a payment system provided by Embodiment 4 of the present invention;

图7为本发明实施例四提供的家居设备的一种结构示意图;FIG. 7 is a schematic structural diagram of a household device provided by Embodiment 4 of the present invention;

图8为本发明实施例四中提供的支付方法第一种流程图;Fig. 8 is a flow chart of the first payment method provided in Embodiment 4 of the present invention;

图9为本发明实施例四中提供的支付方法第二种流程图;FIG. 9 is a second flow chart of the payment method provided in Embodiment 4 of the present invention;

图10为本发明实施例四中提供的支付方法第三种流程图;Fig. 10 is a third flow chart of the payment method provided in Embodiment 4 of the present invention;

图11为本发明实施例四中提供的支付方法第四种流程图;Fig. 11 is a fourth flowchart of the payment method provided in Embodiment 4 of the present invention;

图12为本发明实施例五中提供的支付方法第一种流程图;Fig. 12 is a flow chart of the first payment method provided in Embodiment 5 of the present invention;

图13为本发明实施例五中提供的支付方法第二种流程图。Fig. 13 is a second flow chart of the payment method provided in Embodiment 5 of the present invention.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

实施例一:Embodiment one:

为了使本领域技术人员更加清楚本发明的细节和优点,本实施例将对本发明提供的支付方法进行详细说明,下面,请参见图1:In order to make those skilled in the art more aware of the details and advantages of the present invention, this embodiment will describe the payment method provided by the present invention in detail, below, please refer to Figure 1:

S102、网关设备在家居设备购买服务的过程中基于本地存储的第一密钥生成支付签名。S102. The gateway device generates a payment signature based on the locally stored first key during the process of purchasing a service by the home device.

在一个网关设备下可以下挂一个或一个以上的家居设备,这些家居设备包括但并不限于常见的智能电视机、智能冰箱、智能水表、智能电表、智能气表、智能空调、智能洗衣机等。网关设备与这些家居设备之间可以通过短程通信的方式进行通信,例如,通过WiFi(无线保真)、ZigBee(紫蜂通信)、蓝牙等无线通讯进行通信。应当理解的是,网关设备还能够通过远程通信方式与外界进行交互。One or more home devices can be connected to one gateway device, including but not limited to common smart TVs, smart refrigerators, smart water meters, smart electricity meters, smart gas meters, smart air conditioners, smart washing machines, etc. The gateway device can communicate with these household devices through short-range communication, for example, through wireless communication such as WiFi (Wireless Fidelity), ZigBee (Zigbee Communication), and Bluetooth. It should be understood that the gateway device can also interact with the outside world through remote communication.

在本实施例中,家居设备购买服务并不仅限于由家居设备执行购买动作的过程,其也可以指其他设备,例如网关设备帮助家居设备向第三方平台购买服务的情况。无论是家居设备自己进行服务购买或者是网关设备帮助家居设备进行服务购买,在成功购买到服务之前都需要成功支付。为了成功支付,就需要通过支付验证。在本实施例中,用于支付验证的第一密钥存储在网关设备中,所以,在家居设备购买服务的过程中,网关设备需要使用其本地存储的第一密钥生成支付签名。In this embodiment, home device purchase service is not limited to the process of home device purchase action, it may also refer to other devices, such as the situation where a gateway device helps a home device to purchase a service from a third-party platform. Whether the home device purchases the service itself or the gateway device helps the home device purchase the service, successful payment is required before the service is successfully purchased. In order to pay successfully, payment verification is required. In this embodiment, the first key used for payment verification is stored in the gateway device. Therefore, when the home device purchases services, the gateway device needs to use its locally stored first key to generate a payment signature.

具体地,网关设备会在接收到支付请求之后,使用第一密钥对支付请求加密得到支付签名。其中,支付请求可以来自于家居设备也可以来自于客户端。在家居设备自己购买服务的情况中,支付请求由家居设备发送给网关设备。当家居设备自身无法发起购买动作等情况下,用户可以通过客户端向网关设备下发支付请求,指示网关设备生成支付签名以应对支付验证。Specifically, after receiving the payment request, the gateway device will use the first key to encrypt the payment request to obtain the payment signature. Wherein, the payment request may come from a home device or a client. In the case that the home device purchases the service itself, the payment request is sent by the home device to the gateway device. When the home device itself cannot initiate a purchase action, the user can send a payment request to the gateway device through the client, instructing the gateway device to generate a payment signature for payment verification.

S104、网关设备将支付签名发送给第三方平台。S104. The gateway device sends the payment signature to the third-party platform.

网关设备生成支付签名之后,会将支付签名发送给第三方平台,以供第三方平台根据其存储的第二密钥对该支付签名进行验证。网关设备向第三方平台发送支付签名的方式分为这样两种:After the gateway device generates the payment signature, it will send the payment signature to the third-party platform for the third-party platform to verify the payment signature according to the stored second key. There are two ways for the gateway device to send the payment signature to the third-party platform:

第一种,网关设备将自己生成的支付签名直接发送给第三方平台。可以理解的是,第三方平台包括一个或一个以上的服务器,因此,网关设备与第三方平台之间的通信属于远距离通信,需要基于WAN(广域网)远程通信进行。First, the gateway device sends the payment signature generated by itself directly to the third-party platform. It can be understood that the third-party platform includes one or more servers, therefore, the communication between the gateway device and the third-party platform belongs to long-distance communication, which needs to be carried out based on WAN (wide area network) long-distance communication.

第二种,网关设备先将支付签名传输给家居设备,然后由家居设备将支付签名发送给第三方平台。在这种传输方式当中,网关设备可以基于短程通信方式向家居设备传输支付签名。当家居设备接收到支付签名之后,在将支付签名发送给第三方平台,若家居设备支持远程通信,例如支持蜂窝通信功能,则家居设备可以直接基于蜂窝通信与第三方平台进行通信。In the second type, the gateway device first transmits the payment signature to the home device, and then the home device sends the payment signature to the third-party platform. In this transmission method, the gateway device can transmit the payment signature to the home device based on the short-range communication method. After the home device receives the payment signature, it sends the payment signature to the third-party platform. If the home device supports remote communication, such as cellular communication, the home device can directly communicate with the third-party platform based on cellular communication.

S106、第三方平台获取网关设备生成的支付签名。S106. The third-party platform obtains the payment signature generated by the gateway device.

相应地,第三方平台就可以从网关设备处或者是从家居设备处接收到支付签名,然后对该支付签名进行验证。在本实施例中第三方平台包括应用平台与支付平台。其中,应用平台由服务提供商运营,其能够对相应的服务进行管理。例如由电力公司运营的电力管理平台,其用于向智能电表提供相应的电力服务管理。而支付平台则是应用平台所支持的支付平台,或者说,支付平台是与应用平台具有合作关系。目前比较常见的支付平台包括支付宝、微信支付等。Correspondingly, the third-party platform can receive the payment signature from the gateway device or the home device, and then verify the payment signature. In this embodiment, the third-party platform includes an application platform and a payment platform. Wherein, the application platform is operated by a service provider, which can manage corresponding services. For example, a power management platform operated by a power company is used to provide corresponding power service management to smart meters. The payment platform is the payment platform supported by the application platform, or in other words, the payment platform has a cooperative relationship with the application platform. At present, the more common payment platforms include Alipay, WeChat Pay, etc.

应当明白的是,为家居设备购买服务的时候,具体的服务管理是由应用平台完成的,而支付扣款工作则是由支付平台完成的。例如,网关设备发起服务请求为家庭预存200元的电费,则首先需要支付平台完成200元的扣款之后,应用平台才会将该家庭中智能电表的可用额度增加200元。It should be understood that when purchasing services for home equipment, the specific service management is completed by the application platform, while the payment deduction work is completed by the payment platform. For example, if the gateway device initiates a service request to pre-store 200 yuan of electricity charges for the family, the application platform will first increase the available amount of the smart meter in the family by 200 yuan after the payment platform completes the deduction of 200 yuan.

S108、第三方平台使用本地预先存储的第二密钥对支付签名进行签名验证,并根据验证结果对购买服务的服务请求进行处理。S108. The third-party platform uses the locally pre-stored second key to perform signature verification on the payment signature, and processes the service request for purchasing the service according to the verification result.

第二密钥与第一密钥可以是相同的,也就是说,网关设备与第三方平台之间的被验证与验证过程是基于对称加密机制的。可以理解的是,当第一密钥与第二密钥是对称密钥时,网关设备在向第三方平台传输第二密钥时,还需要对第二密钥进行加密以保证其传输安全性。当然,第二密钥也可以不同于第一密钥。例如,在本实施例中,网关设备与第三方平台之间的被验证与验证过程基于非对称加密机制,第一密钥为私钥,而第三方平台所拥有的第二密钥为与该私钥对应的公钥。使用公钥对数据进行加密,只有用对应的私钥才能解密;如果用私钥对数据进行加密,那么只有用对应的公钥才能解密。同时,公钥所能解密的信息必然是由对应私钥加密形成的。尽管第三方平台所拥有的公钥是公知的,但是因为第一密钥只有对应的网关设备才具有,所以,在这种情况下,当第三方平台能够成功解密支付签名,则说明网关设备所保存的私钥是正确的,这同时也就验证了网关设备的合法身份。The second key may be the same as the first key, that is, the verification and verification process between the gateway device and the third-party platform is based on a symmetric encryption mechanism. It can be understood that when the first key and the second key are symmetric keys, when the gateway device transmits the second key to the third-party platform, it also needs to encrypt the second key to ensure its transmission security . Of course, the second key can also be different from the first key. For example, in this embodiment, the verified and verified process between the gateway device and the third-party platform is based on an asymmetric encryption mechanism, the first key is a private key, and the second key owned by the third-party platform is the same as the The public key corresponding to the private key. If the data is encrypted with the public key, it can only be decrypted with the corresponding private key; if the data is encrypted with the private key, it can only be decrypted with the corresponding public key. At the same time, the information that can be decrypted by the public key must be encrypted by the corresponding private key. Although the public key owned by the third-party platform is publicly known, only the corresponding gateway device has the first key. Therefore, in this case, when the third-party platform can successfully decrypt the payment signature, it means that the gateway device has The saved private key is correct, which also verifies the legal identity of the gateway device.

在本实施例中,支付签名由应用平台接收或者是由支付平台接收都是可行的。因为支付签名的验证工作可以由应用平台完成,也可以由支付平台完成。另外,即使接收支付签名的平台不具备验证能力,其也可以将支付签名发送到另一个平台上完成验证。下面分别结合图2和图3对由应用平台和支付平台完成签名验证的方案进行介绍:In this embodiment, it is feasible for the payment signature to be received by the application platform or by the payment platform. Because the verification of the payment signature can be completed by the application platform or the payment platform. In addition, even if the platform receiving the payment signature does not have the ability to verify, it can also send the payment signature to another platform to complete the verification. The scheme of signature verification completed by the application platform and the payment platform is introduced below in conjunction with Figure 2 and Figure 3 respectively:

S202、应用平台获取网关设备生成的支付签名。S202. The application platform acquires the payment signature generated by the gateway device.

应用平台获取支付签名的途径可以有这样几种:从网关设备或家居设备处接收支付签名;或者是从支付平台处接收支付签名。在本实施例的一种示例当中,应用平台直接接收网关设备发送的支付签名。There are several ways for the application platform to obtain the payment signature: receiving the payment signature from the gateway device or the home device; or receiving the payment signature from the payment platform. In an example of this embodiment, the application platform directly receives the payment signature sent by the gateway device.

S204、应用平台对支付签名进行签名验证。S204. The application platform performs signature verification on the payment signature.

应用平台使用本地预先存储的第二密钥对支付签名进行签名验证。应当理解的是,一个应用平台并不仅仅面向一个网关设备,而不同的网关设备拥有不同的第一密钥,对应地,应用平台也就会存储多个第二密钥。在对网关设备生成的支付签名进行验证之前,应用平台应当提取出正确的第二密钥。所以,在应用平台侧可以建立网关设备或家居设备与第二密钥的对应关系。当应用平台获取到支付签名之后,查询获得对应的第二密钥完成签名验证。The application platform uses the locally pre-stored second key to perform signature verification on the payment signature. It should be understood that an application platform is not only for one gateway device, and different gateway devices have different first keys, and correspondingly, the application platform will also store multiple second keys. Before verifying the payment signature generated by the gateway device, the application platform should extract the correct second key. Therefore, the corresponding relationship between the gateway device or the home device and the second key can be established on the application platform side. After the application platform obtains the payment signature, it inquires to obtain the corresponding second key to complete the signature verification.

S206、在验证通过时,支付平台进行扣款。S206. When the verification is passed, the payment platform deducts the money.

即使验证结果表示支付签名已经通过验证,但这也并不能说明购买服务的服务请求一定会被响应,因为支付平台的支付扣款可能会不成功。导致支付平台不能成功扣款的原因有多种,其中比较主要的原因就是支付签名对应的账户余额不足以支付对应的费用。所以,支付平台在支付扣款完成后,还会将扣款结果发送给应用平台。Even if the verification result shows that the payment signature has passed the verification, it does not mean that the service request for the purchase service will be responded, because the payment deduction by the payment platform may not be successful. There are many reasons why the payment platform cannot successfully debit the payment. The main reason is that the balance of the account corresponding to the payment signature is not enough to pay the corresponding fee. Therefore, after the payment deduction is completed, the payment platform will also send the deduction result to the application platform.

S208、应用平台接收扣款结果并根据扣款结果对服务请求进行处理。S208. The application platform receives the deduction result and processes the service request according to the deduction result.

若应用平台确定支付平台的扣款已经成功,则应用平台可以响应购买服务的服务请求。除此以外,应用平台不响应对应的服务请求,这其中包括签名验证没有通过的情况、扣款没有成功的情况,针对不同的情况,应用平台可以向网关设备发送相应的提示信息,如提示网关设备签名验证失败或者是提示网关设备对应的账户余额不足等。If the application platform determines that the deduction by the payment platform has been successful, the application platform may respond to the service request for purchasing the service. In addition, the application platform does not respond to the corresponding service request, including the case that the signature verification fails and the deduction fails. For different situations, the application platform can send corresponding prompt information to the gateway device, such as prompting the gateway The device signature verification failed or the account balance corresponding to the gateway device is not enough.

对于由支付平台进行签名验证的方案,请参见图3:For the scheme of signature verification by the payment platform, please refer to Figure 3:

S302、支付平台获取网关设备生成的支付签名。S302. The payment platform obtains the payment signature generated by the gateway device.

和图2所示出的方案类似,支付平台也可以从网关设备或家居设备处接收支付签名;或者是从应用平台处接收支付签名。Similar to the solution shown in FIG. 2 , the payment platform can also receive the payment signature from the gateway device or the home device; or receive the payment signature from the application platform.

S304、支付平台对支付签名进行签名验证。S304. The payment platform performs signature verification on the payment signature.

支付平台使用本地预先存储的第二密钥对支付签名进行签名验证。应当理解的是,一个支付平台并不仅仅面向一个网关设备,而不同的网关设备拥有不同的第一密钥,对应地,支付平台也就会存储多个第二密钥。在对网关设备生成的支付签名进行验证之前,支付平台应当提取出正确的第二密钥。所以,在支付平台侧可以建立网关设备或家居设备与第二密钥的对应关系。当支付平台获取到支付签名之后,查询获得对应的第二密钥完成签名验证。The payment platform uses the locally pre-stored second key to perform signature verification on the payment signature. It should be understood that a payment platform is not only for one gateway device, but different gateway devices have different first keys, and correspondingly, the payment platform will also store multiple second keys. Before verifying the payment signature generated by the gateway device, the payment platform should extract the correct second key. Therefore, the corresponding relationship between the gateway device or the home device and the second key can be established on the payment platform side. After the payment platform obtains the payment signature, it queries to obtain the corresponding second key to complete the signature verification.

S306、在验证通过时,支付平台进行扣款。S306. When the verification is passed, the payment platform deducts the money.

和图2所示出的方案唯一的区别在于,这里支付平台是根据自己得到的验证结果进行支付扣款的,而图2的方案当中,支付平台是根据应用平台的验证结果进行支付扣款的。The only difference from the scheme shown in Figure 2 is that here the payment platform deducts payment based on the verification result obtained by itself, while in the scheme shown in Figure 2, the payment platform deducts payment based on the verification result of the application platform .

S308、应用平台接收扣款结果并根据扣款结果对服务请求进行处理。S308. The application platform receives the deduction result and processes the service request according to the deduction result.

S308中的过程可以参见图2中的S208,所以这里不再赘述。For the process in S308, reference may be made to S208 in FIG. 2 , so details will not be repeated here.

在本实施例中,第三方平台需要根据支付签名以及服务请求确定出支付扣款的金额以及家居设备购买的服务项目。而且应用平台在扣款成功之后,会根据服务请求向家居设备提供相应的服务。所以,在本实施例中,服务请求中可以包含能够表征家居设备购买服务项目的信息。而支付签名可以仅起到验证网关设备侧第一密钥的功能,即扣款金额由应用平台或者支付平台根据服务请求中的信息计算得到。在本实施例的另外一种方案当中,支付签名中包含有表征扣款金额的信息,支付平台可以直接根据从支付签名中获得的金额进行扣款。In this embodiment, the third-party platform needs to determine the amount of payment deduction and the service items purchased by the home device according to the payment signature and service request. Moreover, after the deduction is successful, the application platform will provide corresponding services to the home equipment according to the service request. Therefore, in this embodiment, the service request may contain information that can characterize the service item purchased by the household device. The payment signature can only serve to verify the first key on the gateway device side, that is, the deduction amount is calculated by the application platform or the payment platform according to the information in the service request. In another solution of this embodiment, the payment signature contains information representing the deduction amount, and the payment platform can directly debit the payment based on the amount obtained from the payment signature.

在本实施例中,服务请求可以由家居设备向第三方平台发送,也可以由网关设备向第三方平台发送,在家居设备不具备购买支付功能的情形下,则由网关设备发送。另外,服务请求是在家居设备购买服务的过程中发送的,但本实施例并不具体限定发送服务请求的时间,其发送时机可以在发送支付签名之前,也可以在发送支付签名之后,甚至,在本实施例的一些示例当中,服务请求可以和支付签名一同发送给第三方平台。In this embodiment, the service request can be sent by the home device to the third-party platform, or sent by the gateway device to the third-party platform. If the home device does not have the purchase and payment function, the service request is sent by the gateway device. In addition, the service request is sent during the process of purchasing the service by the home device, but this embodiment does not specifically limit the time for sending the service request, and the timing of sending the service request can be before sending the payment signature, or after sending the payment signature, or even, In some examples of this embodiment, the service request can be sent to the third-party platform together with the payment signature.

在第三方平台侧,可以由应用平台和支付平台中的任意一个接收服务请求,当然,应用平台即使不获取服务请求,也至少应当通过其他可行方式了解到服务请求对应的服务项目等信息。在本实施例的一种示例当中,由应用平台接收家居设备或网关设备发送的服务请求。On the third-party platform side, any one of the application platform and the payment platform can receive the service request. Of course, even if the application platform does not obtain the service request, it should at least learn about the service item corresponding to the service request through other feasible means. In an example of this embodiment, the service request sent by the home device or the gateway device is received by the application platform.

在本实施例中,网关设备上存储了用于进行支付签名的第一密钥,在为家居设备购买服务的过程中,网关设备能够基于第一密钥生成支付签名供第三方平台根据该支付签名完成支付过程中的安全验证。在第三方平台对支付签名的验证通过后,将会向家居设备提供购买的服务。同时,由于网关设备下的家居设备均能够通过网关设备实现购买支付,所以,本实施例提供了一种基于网关设备的支付方案,且该方案能够优化对家居设备购买支付的管理。In this embodiment, the gateway device stores the first key for payment signature, and in the process of purchasing services for home devices, the gateway device can generate a payment signature based on the first key for the third-party platform to use according to the payment signature. The signature completes the security verification in the payment process. After the verification of the payment signature by the third-party platform, the purchase service will be provided to the home device. At the same time, since all household devices under the gateway device can realize purchase and payment through the gateway device, this embodiment provides a payment solution based on the gateway device, and this solution can optimize the management of purchase and payment of household devices.

实施例二:Embodiment two:

本实施例中提供一种网关设备,该网关设备能够与第三方平台共同执行实施例一提供的支付方法,请参见图4:This embodiment provides a gateway device that can jointly execute the payment method provided in Embodiment 1 with a third-party platform, please refer to Figure 4:

网关设备40包括存储模块402、第一处理模块404、第一通信模块406,其中存储模块402中存储有用于支付的第一密钥。第一处理模块404用于在与自身通信连接的家居设备购买服务的过程中基于第一密钥生成支付签名。而第一通信模块406则用于将该支付签名发送给第三方平台。The gateway device 40 includes a storage module 402, a first processing module 404, and a first communication module 406, wherein the storage module 402 stores a first key for payment. The first processing module 404 is configured to generate a payment signature based on the first key during the process of purchasing a service by the home device connected in communication with itself. The first communication module 406 is used to send the payment signature to a third-party platform.

在本实施例中,家居设备购买服务并不仅限于由家居设备执行购买动作的过程,其也可以指其他设备,例如网关设备40帮助家居设备向第三方平台购买服务的情况。无论是家居设备自己进行服务购买或者是网关设备40帮助家居设备进行服务购买,在成功购买到服务之前都需要成功支付。为了成功支付,就需要通过支付验证。在本实施例中,用于支付验证的第一密钥存储在网关设备40的存储模块402中,所以,在家居设备购买服务的过程中,第一处理模块404需要使用存储模块402存储的第一密钥生成支付签名。In this embodiment, the purchase service of the home device is not limited to the process of the purchase action performed by the home device, it may also refer to other devices, such as the situation where the gateway device 40 helps the home device to purchase services from a third-party platform. Whether the home device purchases the service itself or the gateway device 40 helps the home device purchase the service, successful payment is required before the service is successfully purchased. In order to pay successfully, payment verification is required. In this embodiment, the first key used for payment verification is stored in the storage module 402 of the gateway device 40. Therefore, in the process of purchasing services for the home device, the first processing module 404 needs to use the first key stored in the storage module 402. A key generates payment signatures.

具体地,第一处理模块404会在接收到支付请求之后,使用第一密钥对支付请求加密得到支付签名。其中,支付请求可以来自于家居设备也可以来自于客户端。在家居设备自己购买服务的情况中,支付请求由家居设备发送给网关设备。当家居设备自身无法发起购买动作等情况下,例如家居设备型号比较老,不支持购买支付时,用户可以通过客户端向网关设备40的第一通信模块406下发支付请求,指示第一处理模块404生成支付签名以应对支付验证。Specifically, after receiving the payment request, the first processing module 404 encrypts the payment request with the first key to obtain a payment signature. Wherein, the payment request may come from a home device or a client. In the case that the home device purchases the service itself, the payment request is sent by the home device to the gateway device. When the household device itself cannot initiate a purchase action, for example, the model of the household device is relatively old and does not support purchase payment, the user can send a payment request to the first communication module 406 of the gateway device 40 through the client to instruct the first processing module 404 Generate a payment signature to deal with payment verification.

第一处理模块404生成支付签名之后,第一通信模块406会将支付签名发送给第三方平台,以供第三方平台根据其存储的第二密钥对该支付签名进行验证。第一通信模块406向第三方平台发送支付签名的方式分为这样两种:After the first processing module 404 generates the payment signature, the first communication module 406 will send the payment signature to the third-party platform for the third-party platform to verify the payment signature according to the stored second key. There are two ways for the first communication module 406 to send the payment signature to the third-party platform:

第一种,第一通信模块406将第一处理模块404生成的支付签名直接发送给第三方平台。可以理解的是,第三方平台包括一个或一个以上的服务器,因此,第一通信模块406与第三方平台之间的通信属于远距离通信,需要基于WAN(广域网)通信进行。In the first way, the first communication module 406 directly sends the payment signature generated by the first processing module 404 to the third-party platform. It can be understood that the third-party platform includes one or more servers, therefore, the communication between the first communication module 406 and the third-party platform belongs to long-distance communication and needs to be performed based on WAN (wide area network) communication.

第二种,第一通信模块406先将支付签名传输给家居设备,然后由家居设备将支付签名发送给第三方平台。在这种传输方式当中,第一通信模块406可以基于短程通信方式向家居设备传输支付签名。当家居设备接收到支付签名之后,在将支付签名发送给第三方平台,若家居设备具备远程通信能力,例如支持蜂窝通信,则家居设备可以直接与第三方平台进行通信。In the second way, the first communication module 406 first transmits the payment signature to the home device, and then the home device sends the payment signature to the third-party platform. In this transmission manner, the first communication module 406 may transmit the payment signature to the household device based on the short-range communication manner. After the home device receives the payment signature, it sends the payment signature to the third-party platform. If the home device has remote communication capabilities, such as supporting cellular communication, the home device can directly communicate with the third-party platform.

在一个网关设备40下可以下挂一个或一个以上的家居设备,这些家居设备包括但并不限于常见的智能电视机、智能冰箱、智能水表、智能电表、智能气表、智能空调、智能洗衣机等。第一通信模块406与这些家居设备之间可以通过短程通信的方式进行通信,例如,通过WiFi、ZigBee、蓝牙等无线通讯进行通信。One or more household devices can be connected to one gateway device 40, including but not limited to common smart TVs, smart refrigerators, smart water meters, smart electricity meters, smart gas meters, smart air conditioners, smart washing machines, etc. . The first communication module 406 can communicate with these household devices through short-range communication, for example, through wireless communication such as WiFi, ZigBee, and Bluetooth.

当第一通信模块406将支付签名通过直接或间接的方式发送给第三方平台之后,第三方平台中的应用平台或者支付平台将会使用第二密钥对该支付签名进行验证。验证成功之后,支付平台完成与服务请求对应的支付扣款。若扣款成功,应用平台便会向家居设备提供与服务请求对应的服务。After the first communication module 406 sends the payment signature to the third-party platform directly or indirectly, the application platform or payment platform in the third-party platform will use the second key to verify the payment signature. After the verification is successful, the payment platform completes the payment deduction corresponding to the service request. If the deduction is successful, the application platform will provide the home device with the service corresponding to the service request.

服务请求可以由家居设备发送给第三方平台,也可以由网关设备40的第一通信模块406发送给第三方平台。在本实施例的一种示例当中,服务请求中可以包含能够表征家居设备购买的服务项目等信息,而支付签名可以仅起到验证网关设备侧第一密钥的功能,即扣款金额由应用平台或者支付平台根据服务请求中的信息计算得到。在本实施例的另外一种示例当中,第一通信模块406发送的支付签名中包含有表征扣款金额的信息,支付平台可以直接根据从支付签名中获得的金额进行扣款。The service request can be sent to the third-party platform by the home device, or can be sent to the third-party platform by the first communication module 406 of the gateway device 40 . In an example of this embodiment, the service request may contain information such as the service item that can represent the purchase of the home device, and the payment signature may only serve to verify the first key on the gateway device side, that is, the deducted amount is determined by the application. The platform or payment platform calculates it based on the information in the service request. In another example of this embodiment, the payment signature sent by the first communication module 406 includes information representing the deduction amount, and the payment platform may directly debit the payment according to the amount obtained from the payment signature.

网关设备40的第一通信模块406可以将服务请求与支付签名一起发送给第三方平台,也可以分别发送。例如在本实施例的一种示例当中,网关设备先向第三方平台中的应用平台发送服务请求,然后生成根据第一密钥对获取到的支付请求进行加密得到支付签名,随后将该支付签名发送给应用平台或者支付平台完成签名验证。The first communication module 406 of the gateway device 40 may send the service request together with the payment signature to the third-party platform, or separately. For example, in an example of this embodiment, the gateway device first sends a service request to the application platform in the third-party platform, and then generates a payment signature by encrypting the obtained payment request according to the first key, and then the payment signature Send it to the application platform or payment platform to complete the signature verification.

上述示例中网关设备的部分功能可以通过计算机程序实现,例如,将其中部分过程编写成计算机程序存储到网关设备的存储器中,当网关设备的通信装置接收到用户通过客户端下发的支付请求或者是接收到家居设备发送的支付请求,确定需要进行支付的时候,网关设备的处理器提取存储器中的计算机程序,编译并执行,具体的,处理器从存储器中提取第一密钥对接收到的支付请求进行加密得到支付签名。然后,处理器将支付签名传输给通信装置,由通信装置将支付签名直接或间接地发送给第三方平台。Part of the functions of the gateway device in the above example can be realized by computer programs. For example, some of the processes are written as computer programs and stored in the memory of the gateway device. When the communication device of the gateway device receives the payment request sent by the user through the client or When receiving the payment request sent by the home device and determining that payment is required, the processor of the gateway device extracts the computer program in the memory, compiles and executes it, specifically, the processor extracts the first key pair received from the memory The payment request is encrypted to obtain the payment signature. Then, the processor transmits the payment signature to the communication device, and the communication device directly or indirectly sends the payment signature to the third-party platform.

在本实施例的另一种示例当中,网关设备中的存储模块和第一处理模块的功能可以通过安全芯片来实现。也就是说,由安全芯片来存储第一密钥,并由安全芯片来生成支付签名。安全芯片,也即可信任平台模块,是一个可独立进行密钥生成、加解密的装置,内部拥有独立的处理器和存储单元,可存储密钥和特征数据。由于用安全芯片存储密钥时,密钥是被存储在芯片的安全存储区域硬件中,不能被读出到芯片外,从而保证密钥的安全性。安全芯片的存储与处理功能能够防止黑客的攻击与病毒的破坏。In another example of this embodiment, the functions of the storage module and the first processing module in the gateway device may be implemented by a security chip. That is to say, the first key is stored by the security chip, and the payment signature is generated by the security chip. The security chip, also known as the trusted platform module, is a device that can independently generate keys, encrypt and decrypt, and has an independent processor and storage unit inside, which can store keys and feature data. When using a security chip to store the key, the key is stored in the hardware in the secure storage area of the chip and cannot be read out of the chip, thus ensuring the security of the key. The storage and processing functions of the security chip can prevent hacker attacks and virus damage.

在本实施例中,网关设备上存储了用于进行支付签名的第一密钥,在为家居设备购买服务的过程中,网关设备能够基于第一密钥生成支付签名供第三方平台根据该支付签名完成支付过程中的安全验证。在第三方平台对支付签名的验证通过后,将会向家居设备提供购买的服务。同时,由于网关设备下的家居设备均能够通过网关设备实现购买支付,所以,本实施例提供了一种基于网关设备的支付方案,且该方案能够优化对家居设备购买支付的管理。In this embodiment, the gateway device stores the first key for payment signature, and in the process of purchasing services for home devices, the gateway device can generate a payment signature based on the first key for the third-party platform to use according to the payment signature. The signature completes the security verification in the payment process. After the verification of the payment signature by the third-party platform, the purchase service will be provided to the home device. At the same time, since all household devices under the gateway device can realize purchase and payment through the gateway device, this embodiment provides a payment solution based on the gateway device, and this solution can optimize the management of purchase and payment of household devices.

另一方面,网关设备中增设了安全芯片,安全芯片使用硬件存储第一密钥,这极大地增强了第一密钥的安全性,避免了第一密钥被窃取的风险。同时,根据支付请求生成支付签名的工作也由该安全芯片承担,相对现有技术中通过软件的方式实现支付请求的加密工作,该方案通过硬件的方式进行加密,在防止黑客攻击以及病毒破坏方面具有更显著的优点,更好地保证了用户财产安全,提升了用户体验。On the other hand, a security chip is added to the gateway device, and the security chip uses hardware to store the first key, which greatly enhances the security of the first key and avoids the risk of the first key being stolen. At the same time, the work of generating the payment signature according to the payment request is also undertaken by the security chip. Compared with the encryption work of the payment request realized by software in the prior art, this solution encrypts the payment request by hardware, which is effective in preventing hacker attacks and virus damage. It has more significant advantages, better guarantees the safety of the user's property, and improves the user experience.

实施例三:Embodiment three:

本实施例提供一种第三方平台,该第三方平台可以和实施例二中的网关设备一起实现实施例一提供的支付方法。This embodiment provides a third-party platform that can implement the payment method provided in Embodiment 1 together with the gateway device in Embodiment 2.

如图5所示,第三方平台50包括第二通信模块502和第二处理模块504,其中第二通信模块502用于获取网关设备生成的支付签名;第二处理模块504用于使用本地预先存储的第二密钥对支付签名进行签名验证,并根据验证结果对购买所述服务的服务请求进行处理。As shown in Figure 5, the third-party platform 50 includes a second communication module 502 and a second processing module 504, wherein the second communication module 502 is used to obtain the payment signature generated by the gateway device; the second processing module 504 is used to use the local pre-stored The second key is used to perform signature verification on the payment signature, and process the service request for purchasing the service according to the verification result.

第二通信模块502可以从网关设备处或者是从家居设备处接收到支付签名,然后对该支付签名进行验证。在本实施例中第三方平台50可以分为应用平台与支付平台。支付平台与应用平台可以部署到不同的服务器上,当支付平台与应用平台一一对应的情况下,支付平台与应用平台可以部署在一台服务器上。其中,应用平台由服务提供商运营,其能够对相应的服务进行管理。例如由电力公司运营的电力管理平台,其用于向智能电表提供相应的电力服务管理。而支付平台则是应用平台所支持的支付平台,或者说,支付平台是与应用平台具有合作关系。目前比较常见的支付平台包括支付宝、微信支付等。The second communication module 502 may receive the payment signature from the gateway device or the home device, and then verify the payment signature. In this embodiment, the third-party platform 50 can be divided into an application platform and a payment platform. The payment platform and the application platform can be deployed on different servers. When the payment platform and the application platform are in one-to-one correspondence, the payment platform and the application platform can be deployed on one server. Wherein, the application platform is operated by a service provider, which can manage corresponding services. For example, a power management platform operated by a power company is used to provide corresponding power service management to smart meters. The payment platform is the payment platform supported by the application platform, or in other words, the payment platform has a cooperative relationship with the application platform. At present, the more common payment platforms include Alipay, WeChat Pay, etc.

应当明白的是,为家居设备购买服务的时候,具体的服务管理是由应用平台完成的,而支付扣款工作则是由支付平台完成的。例如,网关设备发起服务请求为家庭预存200元的电费,则首先需要支付平台完成200元的扣款之后,应用平台才会将该家庭中智能电表的可用额度增加200元。It should be understood that when purchasing services for home equipment, the specific service management is completed by the application platform, while the payment deduction work is completed by the payment platform. For example, if the gateway device initiates a service request to pre-store 200 yuan of electricity charges for the family, the application platform will first increase the available amount of the smart meter in the family by 200 yuan after the payment platform completes the deduction of 200 yuan.

第二处理模块504在第二通信模块502获取到支付签名之后,会使用本地预先存储的第二密钥对支付签名进行签名验证,并根据验证结果对购买服务的服务请求进行处理。After the second communication module 502 obtains the payment signature, the second processing module 504 will use the locally pre-stored second key to verify the payment signature, and process the service request for purchasing services according to the verification result.

第二密钥与第一密钥可以是相同的,也就是说,网关设备与第三方平台50之间的被验证与验证过程是基于对称加密机制的。可以理解的是,当第一密钥与第二密钥是对称密钥时,网关设备在向第三方平台50传输第二密钥时,还需要对第二密钥进行加密以保证其传输安全性。当然,第二密钥也可以不同于第一密钥。例如,在本实施例中,网关设备与第三方平台50之间的被验证与验证过程基于非对称加密机制,第一密钥为私钥,而第三方平台50所拥有的第二密钥为与该私钥对应的公钥。使用公钥对数据进行加密,只有用对应的私钥才能解密;如果用私钥对数据进行加密,那么只有用对应的公钥才能解密。同时,公钥所能解密的信息必然是由对应私钥加密形成的。尽管第三方平台50所拥有的公钥是公知的,但是因为第一密钥只有对应的网关设备才具有,所以,在这种情况下,当第二处理模块504能够成功解密支付签名,则说明网关设备所保存的私钥是正确的,这同时也就验证了网关设备的合法身份。The second key may be the same as the first key, that is to say, the verified and verified process between the gateway device and the third-party platform 50 is based on a symmetric encryption mechanism. It can be understood that when the first key and the second key are symmetric keys, when the gateway device transmits the second key to the third-party platform 50, it also needs to encrypt the second key to ensure its transmission security sex. Of course, the second key can also be different from the first key. For example, in this embodiment, the verified and verified process between the gateway device and the third-party platform 50 is based on an asymmetric encryption mechanism, the first key is a private key, and the second key owned by the third-party platform 50 is The public key corresponding to this private key. If the data is encrypted with the public key, it can only be decrypted with the corresponding private key; if the data is encrypted with the private key, it can only be decrypted with the corresponding public key. At the same time, the information that can be decrypted by the public key must be encrypted by the corresponding private key. Although the public key owned by the third-party platform 50 is publicly known, only the corresponding gateway device has the first key, so in this case, when the second processing module 504 can successfully decrypt the payment signature, it means The private key stored by the gateway device is correct, which also verifies the legal identity of the gateway device.

在本实施例中,支付签名由应用平台接收或者是由支付平台接收都是可行的。因为支付签名的验证工作可以由应用平台完成,也可以由支付平台完成。另外,即使接收支付签名的平台不具备验证能力,其也可以将支付签名发送到另一个平台上完成验证。因此,第二通信模块502的功能可以由支付平台所在的服务器或者是应用平台所在服务器的通信装置来实现。而第二处理模块504的功能则需要支付平台所在的服务器与应用平台所在服务器共同实现。下面分别对由应用平台和支付平台完成签名验证的方案进行介绍:In this embodiment, it is feasible for the payment signature to be received by the application platform or by the payment platform. Because the verification of the payment signature can be completed by the application platform or the payment platform. In addition, even if the platform receiving the payment signature does not have the ability to verify, it can also send the payment signature to another platform to complete the verification. Therefore, the function of the second communication module 502 can be realized by the server where the payment platform is located or the communication device of the server where the application platform is located. The function of the second processing module 504 needs to be realized jointly by the server where the payment platform is located and the server where the application platform is located. The schemes of signature verification completed by the application platform and the payment platform are introduced respectively as follows:

如果签名验证过程在应用平台上完成,则应用平台获取支付签名的途径可以有这样几种:从网关设备或家居设备处接收支付签名;或者是从支付平台处接收支付签名。在本实施例的一种示例当中,应用平台直接接收网关设备发送的支付签名。If the signature verification process is completed on the application platform, there are several ways for the application platform to obtain the payment signature: receiving the payment signature from the gateway device or home device; or receiving the payment signature from the payment platform. In an example of this embodiment, the application platform directly receives the payment signature sent by the gateway device.

获取到支付签名后,应用平台使用本地预先存储的第二密钥对支付签名进行签名验证。应当理解的是,一个应用平台并不仅仅面向一个网关设备,而不同的网关设备拥有不同的第一密钥,对应地,应用平台也就会存储多个第二密钥。在对网关设备生成的支付签名进行验证之前,应用平台应当提取出正确的第二密钥。所以,在应用平台侧可以建立网关设备或家居设备与第二密钥的对应关系。当应用平台获取到支付签名之后,查询获得对应的第二密钥完成签名验证。After obtaining the payment signature, the application platform uses the locally pre-stored second key to perform signature verification on the payment signature. It should be understood that an application platform is not only for one gateway device, and different gateway devices have different first keys, and correspondingly, the application platform will also store multiple second keys. Before verifying the payment signature generated by the gateway device, the application platform should extract the correct second key. Therefore, the corresponding relationship between the gateway device or the home device and the second key can be established on the application platform side. After the application platform obtains the payment signature, it inquires to obtain the corresponding second key to complete the signature verification.

即使验证结果表示支付签名已经通过验证,但这也并不能说明购买服务的服务请求一定会被响应,因为支付平台的支付扣款可能会不成功。导致支付平台不能成功扣款的原因有多种,其中比较主要的原因就是支付签名对应的账户余额不足以支付对应的费用。所以支付平台在支付扣款完成后,还会将扣款结果发送给应用平台,以供应用平台确定扣款是否成功。Even if the verification result shows that the payment signature has passed the verification, it does not mean that the service request for the purchase service will be responded, because the payment deduction by the payment platform may not be successful. There are many reasons why the payment platform cannot successfully debit the payment. The main reason is that the balance of the account corresponding to the payment signature is not enough to pay the corresponding fee. Therefore, after the payment deduction is completed, the payment platform will also send the deduction result to the application platform, so that the application platform can determine whether the deduction is successful.

若应用平台确定支付平台的扣款已经成功,则可以响应购买服务的服务请求。除此以外,应用平台不响应对应的服务请求,这其中包括签名验证没有通过的情况、扣款没有成功的情况,针对不同的情况,应用平台可以向网关设备发送相应的提示信息,如提示网关设备签名验证失败或者是提示网关设备对应的账户余额不足等。If the application platform determines that the deduction of the payment platform has been successful, it can respond to the service request for purchasing the service. In addition, the application platform does not respond to the corresponding service request, including the case that the signature verification fails and the deduction fails. For different situations, the application platform can send corresponding prompt information to the gateway device, such as prompting the gateway The device signature verification failed or the account balance corresponding to the gateway device is not enough.

如果签名验证过程在支付平台上完成,则支付平台也可以从网关设备或家居设备处接收支付签名;或者是从应用平台处接收支付签名。If the signature verification process is completed on the payment platform, the payment platform can also receive the payment signature from the gateway device or the home device; or receive the payment signature from the application platform.

获取到支付签名后,支付平台使用本地预先存储的第二密钥对支付签名进行签名验证。应当理解的是,一个支付平台并不仅仅面向一个网关设备,而不同的网关设备拥有不同的第一密钥,对应地,支付平台也就会存储多个第二密钥。在对网关设备生成的支付签名进行验证之前,支付平台应当提取出正确的第二密钥。所以,在支付平台侧可以建立网关设备或家居设备与第二密钥的对应关系。当支付平台获取到支付签名之后,查询获得对应的第二密钥完成签名验证。After obtaining the payment signature, the payment platform uses the locally pre-stored second key to perform signature verification on the payment signature. It should be understood that a payment platform is not only for one gateway device, and different gateway devices have different first keys, and correspondingly, the payment platform will also store multiple second keys. Before verifying the payment signature generated by the gateway device, the payment platform should extract the correct second key. Therefore, the corresponding relationship between the gateway device or the home device and the second key can be established on the payment platform side. After the payment platform obtains the payment signature, it queries to obtain the corresponding second key to complete the signature verification.

即使验证结果表示支付签名已经通过验证,但这也并不能说明购买服务的服务请求一定会被响应,因为支付平台的支付扣款可能会不成功。导致支付平台不能成功扣款的原因有多种,其中比较主要的原因就是支付签名对应的账户余额不足以支付对应的费用。所以支付平台在支付签名验证通过并进行支付扣款之后,会将扣款结果发送给应用平台。Even if the verification result shows that the payment signature has passed the verification, it does not mean that the service request for the purchase service will be responded, because the payment deduction by the payment platform may not be successful. There are many reasons why the payment platform cannot successfully debit the payment. The main reason is that the balance of the account corresponding to the payment signature is not enough to pay the corresponding fee. Therefore, the payment platform will send the deduction result to the application platform after the payment signature verification is passed and the payment is deducted.

若应用平台确定支付平台的扣款已经成功,则可以响应购买服务的服务请求。除此以外,应用平台不响应对应的服务请求,这其中包括签名验证没有通过的情况、扣款没有成功的情况,针对不同的情况,应用平台可以向网关设备发送相应的提示信息,如提示网关设备签名验证失败或者是提示网关设备对应的账户余额不足等。If the application platform determines that the deduction of the payment platform has been successful, it can respond to the service request for purchasing the service. In addition, the application platform does not respond to the corresponding service request, including the case that the signature verification fails and the deduction fails. For different situations, the application platform can send corresponding prompt information to the gateway device, such as prompting the gateway The device signature verification failed or the account balance corresponding to the gateway device is not enough.

在本实施例中,第二处理模块504需要根据支付签名以及服务请求确定出支付扣款的金额以及家居设备购买的服务项目。而且应用平台在扣款成功之后,会根据服务请求向家居设备提供相应的服务。所以,服务请求中可以包含能够表征家居设备购买服务项目的信息。而支付签名可以仅起到验证网关设备侧第一密钥的功能,即扣款金额由应用平台或者支付平台根据服务请求中的信息计算得到。在本实施例的另外一种方案当中,支付签名中包含有表征扣款金额的信息,支付平台可以直接根据从支付签名中获得的金额进行扣款。In this embodiment, the second processing module 504 needs to determine the amount of payment deduction and the service items purchased by the household device according to the payment signature and the service request. Moreover, after the deduction is successful, the application platform will provide corresponding services to the home equipment according to the service request. Therefore, the service request may contain information that can characterize the service item purchased by the household device. The payment signature can only serve to verify the first key on the gateway device side, that is, the deduction amount is calculated by the application platform or the payment platform according to the information in the service request. In another solution of this embodiment, the payment signature contains information representing the deduction amount, and the payment platform can directly debit the payment based on the amount obtained from the payment signature.

在本实施例中,服务请求可以由家居设备向第二通信模块502发送,也可以由网关设备向第二通信模块502发送,在家居设备不具备购买支付功能的情形下,则由网关设备发送。另外,服务请求是在家居设备购买服务的过程中发送的,但本实施例并不具体限定发送服务请求的时间,其发送时机可以在发送支付签名之前,也可以在发送支付签名之后,甚至,在本实施例的一些示例当中,服务请求可以和支付签名一同发送给第二通信模块502。In this embodiment, the service request can be sent by the home device to the second communication module 502, or sent by the gateway device to the second communication module 502. In the case that the home device does not have the purchase payment function, the service request is sent by the gateway device . In addition, the service request is sent during the process of purchasing the service by the home device, but this embodiment does not specifically limit the time for sending the service request, and the timing of sending the service request can be before sending the payment signature, or after sending the payment signature, or even, In some examples of this embodiment, the service request may be sent to the second communication module 502 together with the payment signature.

在第三方平台50侧,可以由应用平台和支付平台中的任意一个接收服务请求,当然,应用平台即使不获取服务请求,也至少应当通过其他可行方式了解到服务请求对应的服务项目等信息。在本实施例的一种示例当中,由应用平台接收家居设备或网关设备发送的服务请求。On the side of the third-party platform 50, any one of the application platform and the payment platform can receive the service request. Of course, even if the application platform does not obtain the service request, it should at least learn about the service item and other information corresponding to the service request through other feasible ways. In an example of this embodiment, the service request sent by the home device or the gateway device is received by the application platform.

在本实施例中,第三方平台上存储有对支付签名进行验证的第二密钥,在为家居设备购买服务的过程中,第三方平台能够对网关设备基于第一密钥生成支付签名进行签名验证,判断网关设备侧存储的第一密钥是否正确,进而确定网关设备的支付资格。在对支付签名的验证通过后,第三方平台将会向家居设备提供购买的服务。同时,由于网关设备下的家居设备均能够通过网关设备实现购买支付,所以,本实施例中的第三方平台能够和网关设备一起配合,提供一种新的、基于网关设备的支付方案,且该方案能够优化对家居设备购买支付的管理。In this embodiment, the second key for verifying the payment signature is stored on the third-party platform. During the process of purchasing services for home devices, the third-party platform can sign the payment signature generated by the gateway device based on the first key. Verification, judging whether the first key stored on the gateway device side is correct, and then determining the payment qualification of the gateway device. After the verification of the payment signature is passed, the third-party platform will provide the purchase service to the home device. At the same time, since the home devices under the gateway device can realize the purchase and payment through the gateway device, the third-party platform in this embodiment can cooperate with the gateway device to provide a new payment solution based on the gateway device, and the The solution can optimize the management of home equipment purchase and payment.

实施例四:Embodiment four:

本实施例提供一种支付系统,如图6所示,该支付系统6包括实施例二中提供的网关设备40、实施例三中提供的第三方平台50以及家居设备60。This embodiment provides a payment system. As shown in FIG. 6 , the payment system 6 includes the gateway device 40 provided in the second embodiment, the third-party platform 50 and the home device 60 provided in the third embodiment.

对于网关设备40和第三方平台50的结构,本实施例中不再赘述,下面结合图7对家居设备60进行简单的介绍:The structure of the gateway device 40 and the third-party platform 50 will not be described in detail in this embodiment, and the household device 60 will be briefly introduced below in conjunction with FIG. 7 :

家居设备60包括第三通信模块602与第三处理模块604,其中,第三处理模块604能够生成支付请求,并通过第三通信模块602发送给网关设备40,以供网关设备40根据支付请求与其本地存储的第一密钥生成支付签名。The household device 60 includes a third communication module 602 and a third processing module 604, wherein the third processing module 604 can generate a payment request and send it to the gateway device 40 through the third communication module 602, so that the gateway device 40 can communicate with the payment request according to the payment request. The locally stored first key generates a payment signature.

在本实施例的一种示例当中,第三通信模块602能够实现短程通信与远程通信,所以第三通信模块602还能接收网关设备40发送的支付签名,并基于蜂窝等远程通信技术将该支付签名发送给第三方平台50。可以理解的是,在一些示例当中,网关设备40生成支付签名之后,就直接将支付签名发送给了第三方平台,所以,在这些示例当中,第三通信模块602并不需要接收支付签名并向第三方平台50进行转发。另外,第三通信模块602还能够向第三方平台发送服务请求,服务请求能够向第三方平台50指示家居设备60需要购买的服务项目等信息。第三通信模块602可以在发送支付签名之前先向第三方平台发送服务请求,也可以在发送支付签名后再发送服务请求,而在本实施例的一些实示例当中,第三通信模块602会将支付签名与服务请求一起发送给第三方平台50。In an example of this embodiment, the third communication module 602 can realize short-range communication and long-distance communication, so the third communication module 602 can also receive the payment signature sent by the gateway device 40, and send the payment signature based on remote communication technologies such as cellular. The signature is sent to the third-party platform 50 . It can be understood that, in some examples, after the gateway device 40 generates the payment signature, it directly sends the payment signature to the third-party platform. Therefore, in these examples, the third communication module 602 does not need to receive the payment signature and send The third-party platform 50 forwards. In addition, the third communication module 602 can also send a service request to the third-party platform, and the service request can indicate to the third-party platform 50 information such as service items that the household device 60 needs to purchase. The third communication module 602 may send the service request to the third-party platform before sending the payment signature, or may send the service request after sending the payment signature, and in some examples of this embodiment, the third communication module 602 will The payment signature is sent to the third-party platform 50 together with the service request.

在本实施例的一种示例当中,家居设备60还包括监测模块606,监测模块606用于监测自身的服务提供能力并将监测结果发送给第三处理模块604。家居设备的服务提供能力表征家居设备能够向用户提供服务的能力,例如智能电表的服务提供能力为剩余可用电量,智能气表的服务提供能力为剩余可用气量。当第三处理模块604根据监测模块606的监测结果确定家居设备60的服务提供能力低于预设阈值时,其可以自动生成支付请求,并控制第三通信模块602将支付请求发送到网关设备40上,以便完成支付,实现服务购买。可以理解的是,本实施例中的第三处理模块604生成支付请求除了可以根据监测模块606的监测结果进行以外,还可以根据用户的指令进行。In an example of this embodiment, the household device 60 further includes a monitoring module 606 , and the monitoring module 606 is configured to monitor its own service providing capability and send the monitoring result to the third processing module 604 . The service provision capability of home equipment represents the ability of home equipment to provide services to users. For example, the service provision capability of a smart meter is the remaining available electricity, and the service provision capability of a smart gas meter is the remaining available gas. When the third processing module 604 determines according to the monitoring result of the monitoring module 606 that the service provision capability of the household device 60 is lower than the preset threshold, it can automatically generate a payment request, and control the third communication module 602 to send the payment request to the gateway device 40 In order to complete the payment and realize the purchase of services. It can be understood that the generation of the payment request by the third processing module 604 in this embodiment may be performed not only according to the monitoring result of the monitoring module 606, but also according to the user's instruction.

在用户注册成为第三方平台的合法用户后,且在家居设备或网关设备首次使用远程在线支付功能之前,须在网关设备以及第三方平台上设置用户身份密钥,之后可定期或在需要时重新设置该密钥。用户身份密钥可以是对称密钥,即,存储在网关设备上的第一密钥与存储在第三方平台上的第二密钥可以是相同的。可以理解的是,当第一密钥与第二密钥是对称密钥时,网关设备40在向第三方平台50传输第二密钥时,还需要对第二密钥进行加密以保证其传输安全性。但在本实施例中,网关设备和第三方平台所使用的用户身份密钥为非对称密钥,且网关设备使用的第一密钥为私钥,而第三方平台使用的第二密钥为公钥。第一密钥与第二密钥可以由网关设备中的安全芯片生成,安全芯片在生成用户身份密钥之后,自己存储私钥,并通过网关设备中的通信装置将公钥发送给第三方平台。私钥存储在安全芯片的硬件中,能够有效提升其安全性。After the user registers as a legitimate user of the third-party platform, and before the home device or gateway device uses the remote online payment function for the first time, the user identity key must be set on the gateway device and the third-party platform, and then it can be reset periodically or when needed. Set that key. The user identity key may be a symmetric key, that is, the first key stored on the gateway device may be the same as the second key stored on the third-party platform. It can be understood that when the first key and the second key are symmetric keys, when the gateway device 40 transmits the second key to the third-party platform 50, it also needs to encrypt the second key to ensure its transmission safety. However, in this embodiment, the user identity key used by the gateway device and the third-party platform is an asymmetric key, and the first key used by the gateway device is a private key, while the second key used by the third-party platform is public key. The first key and the second key can be generated by the security chip in the gateway device. After the security chip generates the user identity key, it stores the private key itself and sends the public key to the third-party platform through the communication device in the gateway device. . The private key is stored in the hardware of the security chip, which can effectively improve its security.

下面假定第三方平台由应用平台和支付平台共同构成,且家居设备具备购买服务的能力,结合一些具体的情景示例对本实施例中的支付系统做进一步介绍,在这些示例当中,触发网关设备生成支付签名的原因都是家居设备向其发送了支付请求:The following assumes that the third-party platform is jointly composed of an application platform and a payment platform, and that home devices have the ability to purchase services. The payment system in this embodiment will be further introduced in combination with some specific scenario examples. In these examples, the gateway device is triggered to generate a payment The reason for the signature is that the home device sent a payment request to it:

情景示例一,如图8所示:Scenario 1, as shown in Figure 8:

S801、家居设备将支付请求发送给网关设备。S801. The home device sends a payment request to the gateway device.

可以理解的是,虽然支付请求是由家居设备主动发送给网关设备的,但是触发家居设备发送支付请求的原因可能是用户通过家居设备购买了服务,也可能是家居设备通过对自身服务提供能力的监测从而发起了服务购买。It is understandable that although the payment request is actively sent by the home device to the gateway device, the reason that triggers the home device to send the payment request may be that the user purchases the service through the home device, or it may be that the home device provides capabilities for its own services. Monitoring thus initiates service purchases.

S802、网关设备使用私钥对支付请求进行签名。S802. The gateway device uses the private key to sign the payment request.

网关设备使用私钥对支付请求进行签名的过程实质上就是使用私钥对支付请求进行加密的过程。The process of the gateway device using the private key to sign the payment request is essentially the process of using the private key to encrypt the payment request.

S803、网关设备将支付签名结果返回给家居设备。S803. The gateway device returns the payment signature result to the home device.

网关设备可以通过其通信装置中的短程通信单元,使用WiFi、蓝牙、ZigBee等方式将支付签名发送给家居设备。The gateway device can send the payment signature to the home device through the short-range communication unit in its communication device, using WiFi, Bluetooth, ZigBee and other methods.

S804、家居设备将服务请求与支付签名发送给应用平台。S804. The home device sends the service request and the payment signature to the application platform.

家居设备发送服务请求与支付签名的时候,可以分别发送,也可以将二者一起发送。另外,若家居设备具备远程通信能力,例如家居设备支持蜂窝通信,则可以不通过网关设备就直接将服务请求与支付签名发送出去。When home devices send service requests and payment signatures, they can be sent separately, or they can be sent together. In addition, if the home device has remote communication capabilities, for example, the home device supports cellular communication, the service request and payment signature can be sent directly without going through the gateway device.

S805、应用平台使用公钥进行支付签名验证。S805. The application platform uses the public key to verify the payment signature.

由于应用平台存储的公钥与网关设备使用的私钥是一对密钥,所以,网关设备发送的支付签名只能使用对应的公钥才能解密。而在应用平台上可能存储了成千上万的公钥,这些公钥是不同用户的身份密钥,所以,应用平台在接收到支付签名之后,需要从成千上万的公钥中提取出唯一正确的公钥来对该支付签名进行签名验证。Since the public key stored on the application platform and the private key used by the gateway device are a pair of keys, the payment signature sent by the gateway device can only be decrypted using the corresponding public key. However, tens of thousands of public keys may be stored on the application platform. These public keys are the identity keys of different users. Therefore, after receiving the payment signature, the application platform needs to extract The only correct public key to perform signature verification on the payment signature.

S806、应用平台在验证通过后通知支付平台进行支付扣款。S806. After the verification is passed, the application platform notifies the payment platform to deduct the payment.

可以理解的是,应用平台接收到的支付签名是对家居设备发送的支付请求加密得到的,因此,当应用平台对支付签名解密完成后得到的就是家居设备发送给网关设备的支付请求。所以,当家居设备发送的支付请求中包含有扣款金额等信息时,应用平台解密得到支付请求后可以直接将支付请求发送给支付平台,从而达到通知支付平台进行支付扣款、以及扣款金额的目的。It can be understood that the payment signature received by the application platform is obtained by encrypting the payment request sent by the home device. Therefore, what is obtained after the application platform decrypts the payment signature is the payment request sent by the home device to the gateway device. Therefore, when the payment request sent by the home device contains information such as the deduction amount, the application platform can directly send the payment request to the payment platform after decrypting the payment request, so as to notify the payment platform to perform payment deduction and the deduction amount the goal of.

但如果家居设备向网关设备发送的支付请求仅仅是为了触发网关设备生成支付签名以实现后续签名验证的目的,那么应用平台在验证通过之后,可能需要根据服务请求中请求购买的服务项目等信息重新生成一个新的支付请求发送给支付平台,且在该支付请求中包含有扣款金额等信息。However, if the payment request sent by the home device to the gateway device is only to trigger the gateway device to generate a payment signature for the purpose of subsequent signature verification, then the application platform may need to reset the payment request based on the service items requested in the service request and other information after the verification is passed. Generate a new payment request and send it to the payment platform, and the payment request includes information such as the deducted amount.

S807、支付平台进行支付扣款。S807. The payment platform performs payment deduction.

S808、支付平台将扣款结果通知应用平台。S808. The payment platform notifies the application platform of the deduction result.

支付平台扣款可能会成功,也可能会因为用户账户余额不足等问题而出现扣款失败的问题,所以支付平台在扣款完成之后,可以将扣款结果通知给应用平台,以供应用平台决定是否向家居设备提供服务。The deduction by the payment platform may be successful, or the deduction may fail due to insufficient balance in the user account. Therefore, after the deduction is completed, the payment platform can notify the application platform of the deduction result for the application platform to decide Whether to provide services to home devices.

当然,支付平台和应用平台之间也可以约定,仅在扣款失败的情况下向应用平台进行反馈,否则默认扣款成功。Of course, the payment platform and the application platform can also agree to only give feedback to the application platform when the deduction fails, otherwise the default deduction is successful.

S809、应用平台在确认扣款成功后完成相关应用服务。S809. The application platform completes relevant application services after confirming that the deduction is successful.

应用平台向家居设备提供相应服务的同时,还可以向家居设备发送提示信息,以告知家居设备服务已经购买成功。当然,在应用平台确定因签名验证失败或者是扣款失败等原因而无法向家居设备提供服务时,也可以向其反馈相关信息。毫无疑义地是,若是因为扣款失败,则通知信息可以由支付平台发送,若是因为验证失败,则由验证方,也就是应用平台对家居设备进行通知。While the application platform provides corresponding services to the household equipment, it can also send prompt information to the household equipment to inform the household equipment that the service has been successfully purchased. Of course, when the application platform determines that the service cannot be provided to the home device due to signature verification failure or deduction failure, it can also feed back relevant information to it. Undoubtedly, if it is due to deduction failure, the notification information can be sent by the payment platform; if it is due to verification failure, the verification party, that is, the application platform, will notify the home device.

情景示例二,如图9所示:Scenario 2, as shown in Figure 9:

S901、家居设备向应用平台发送服务请求。S901. The home device sends a service request to the application platform.

S902、家居设备将支付请求发送给网关设备。S902. The home device sends the payment request to the gateway device.

可以理解的是,虽然支付请求是由家居设备主动发送给网关设备的,但是触发家居设备发送支付请求的原因可能是用户通过家居设备购买了服务,也可能是家居设备通过对自身服务提供能力的监测从而发起了服务购买。It is understandable that although the payment request is actively sent by the home device to the gateway device, the reason that triggers the home device to send the payment request may be that the user purchases the service through the home device, or it may be that the home device provides capabilities for its own services. Monitoring thus initiates service purchases.

S903、网关设备使用私钥对支付请求进行签名。S903. The gateway device uses the private key to sign the payment request.

网关设备使用私钥对支付请求进行签名的过程实质上就是使用私钥对支付请求进行加密的过程。The process of the gateway device using the private key to sign the payment request is essentially the process of using the private key to encrypt the payment request.

S904、网关设备将支付签名结果发送给应用平台。S904. The gateway device sends the payment signature result to the application platform.

网关设备可以通过其通信装置中的远程通信单元将支付签名发送给应用平台。The gateway device can send the payment signature to the application platform through the remote communication unit in its communication device.

S905、应用平台使用公钥进行支付签名验证。S905. The application platform uses the public key to verify the payment signature.

由于应用平台存储的公钥与网关设备使用的私钥是一对密钥,所以,网关设备发送的支付签名只能使用对应的公钥才能解密。而在应用平台上可能存储了成千上万的公钥,这些公钥是不同用户的身份密钥,所以,应用平台在接收到支付签名之后,需要从成千上万的公钥中提取出唯一正确的公钥来对该支付签名进行签名验证。Since the public key stored on the application platform and the private key used by the gateway device are a pair of keys, the payment signature sent by the gateway device can only be decrypted using the corresponding public key. However, tens of thousands of public keys may be stored on the application platform. These public keys are the identity keys of different users. Therefore, after receiving the payment signature, the application platform needs to extract The only correct public key to perform signature verification on the payment signature.

S906、应用平台在验证通过后通知支付平台进行支付扣款。S906. After the verification is passed, the application platform notifies the payment platform to deduct the payment.

可以理解的是,应用平台接收到的支付签名是对家居设备发送的支付请求加密得到的,因此,当应用平台对支付签名解密完成后得到的就是家居设备发送给网关设备的支付请求。所以,当家居设备发送的支付请求中包含有扣款金额等信息时,应用平台解密得到支付请求后可以直接将支付请求发送给支付平台,从而达到通知支付平台进行支付扣款、以及扣款金额的目的。It can be understood that the payment signature received by the application platform is obtained by encrypting the payment request sent by the home device. Therefore, what is obtained after the application platform decrypts the payment signature is the payment request sent by the home device to the gateway device. Therefore, when the payment request sent by the home device contains information such as the deduction amount, the application platform can directly send the payment request to the payment platform after decrypting the payment request, so as to notify the payment platform to perform payment deduction and the deduction amount the goal of.

但如果家居设备向网关设备发送的支付请求仅仅是为了触发网关设备生成支付签名以实现后续签名验证的目的,那么应用平台在验证通过之后,可能需要根据服务请求中请求购买的服务项目等信息重新生成一个新的支付请求发送给支付平台,且在该支付请求中包含有扣款金额等信息。However, if the payment request sent by the home device to the gateway device is only to trigger the gateway device to generate a payment signature for the purpose of subsequent signature verification, then the application platform may need to reset the payment request based on the service items requested in the service request and other information after the verification is passed. Generate a new payment request and send it to the payment platform, and the payment request includes information such as the deducted amount.

S907、支付平台进行支付扣款。S907. The payment platform performs payment deduction.

S908、支付平台将扣款结果通知应用平台。S908. The payment platform notifies the application platform of the deduction result.

支付平台扣款可能会成功,也可能会因为用户账户余额不足等问题而出现扣款失败的问题,所以支付平台在扣款完成之后,可以将扣款结果通知给应用平台,以供应用平台决定是否向家居设备提供服务。The deduction by the payment platform may be successful, or the deduction may fail due to insufficient balance in the user account. Therefore, after the deduction is completed, the payment platform can notify the application platform of the deduction result for the application platform to decide Whether to provide services to home devices.

当然,支付平台和应用平台之间也可以约定,仅在扣款失败的情况下向应用平台进行反馈,否则默认扣款成功。Of course, the payment platform and the application platform can also agree to only give feedback to the application platform when the deduction fails, otherwise the default deduction is successful.

S909、应用平台在确认扣款成功后完成相关应用服务。S909. The application platform completes relevant application services after confirming that the deduction is successful.

应用平台向家居设备提供相应服务的同时,还可以向家居设备发送提示信息,以告知家居设备服务已经购买成功。当然,在应用平台确定因签名验证失败或者是扣款失败等原因而无法向家居设备提供服务时,也可以向其反馈相关信息。毫无疑义地是,若是因为扣款失败,则通知信息可以由支付平台发送,若是因为验证失败,则由验证方,也就是应用平台对家居设备进行通知。While the application platform provides corresponding services to the household equipment, it can also send prompt information to the household equipment to inform the household equipment that the service has been successfully purchased. Of course, when the application platform determines that the service cannot be provided to the home device due to signature verification failure or deduction failure, it can also feed back relevant information to it. Undoubtedly, if it is due to deduction failure, the notification information can be sent by the payment platform; if it is due to verification failure, the verification party, that is, the application platform, will notify the home device.

情景示例三,如图10所示:Scenario three, as shown in Figure 10:

S1001、家居设备向应用平台发送服务请求。S1001. The home device sends a service request to the application platform.

S1002、家居设备将支付请求发送给网关设备。S1002. The home device sends the payment request to the gateway device.

可以理解的是,虽然支付请求是由家居设备主动发送给网关设备的,但是触发家居设备发送支付请求的原因可能是用户通过家居设备购买了服务,也可能是家居设备通过对自身服务提供能力的监测从而发起了服务购买。It is understandable that although the payment request is actively sent by the home device to the gateway device, the reason that triggers the home device to send the payment request may be that the user purchases the service through the home device, or it may be that the home device provides capabilities for its own services. Monitoring thus initiates service purchases.

S1003、网关设备使用私钥对支付请求进行签名。S1003. The gateway device uses the private key to sign the payment request.

网关设备使用私钥对支付请求进行签名的过程实质上就是使用私钥对支付请求进行加密的过程。The process of the gateway device using the private key to sign the payment request is essentially the process of using the private key to encrypt the payment request.

S1004、网关设备将支付签名返回给家居设备。S1004. The gateway device returns the payment signature to the home device.

网关设备可以通过其通信装置中的短程通信单元,使用WiFi、蓝牙、ZigBee等方式将支付签名发送给家居设备。The gateway device can send the payment signature to the home device through the short-range communication unit in its communication device, using WiFi, Bluetooth, ZigBee and other methods.

S1005、家居设备将支付签名发送给支付平台。S1005. The home device sends the payment signature to the payment platform.

在本示例当中,家居设备具备远程通信能力,例如蜂窝通信能力,可以不通过网关设备就直接将服务请求与支付签名发送出去。In this example, the home device has remote communication capabilities, such as cellular communication capabilities, and can directly send service requests and payment signatures without going through the gateway device.

S1006、支付平台使用公钥进行支付签名验证。S1006. The payment platform uses the public key to verify the payment signature.

由于支付平台存储的公钥与网关设备使用的私钥是一对密钥,所以,家居设备发送的支付签名只能使用对应的公钥才能解密。而在支付平台上可能存储了成千上万的公钥,这些公钥是不同用户的身份密钥,所以,支付平台在接收到支付签名之后,需要从成千上万的公钥中提取出唯一正确的公钥来对该支付签名进行签名验证。Since the public key stored on the payment platform and the private key used by the gateway device are a pair of keys, the payment signature sent by the home device can only be decrypted using the corresponding public key. However, tens of thousands of public keys may be stored on the payment platform. These public keys are the identity keys of different users. Therefore, after receiving the payment signature, the payment platform needs to extract The only correct public key to perform signature verification on the payment signature.

S1007、支付平台在验证通过后进行支付扣款。S1007. The payment platform deducts the payment after the verification is passed.

可以理解的是,支付平台接收到的支付签名是对家居设备发送的支付请求加密得到的,因此,当支付平台对支付签名解密完成后得到的就是家居设备发送给网关设备的支付请求。所以,当家居设备发送的支付请求中包含有扣款金额等信息时,支付平台解密得到支付请求后可以直接根据该支付请求完成扣款。It can be understood that the payment signature received by the payment platform is obtained by encrypting the payment request sent by the home device. Therefore, what is obtained after the payment platform decrypts the payment signature is the payment request sent by the home device to the gateway device. Therefore, when the payment request sent by the home device contains information such as the deduction amount, the payment platform can directly complete the deduction according to the payment request after decrypting the payment request.

但如果家居设备向网关设备发送的支付请求仅仅是为了触发网关设备生成支付签名以实现后续签名验证的目的,那么支付平台在验证通过之后,可能需要从应用平台处了解服务请求的相关信息,根据服务请求中请求购买的服务项目等信息才能实现扣款。However, if the payment request sent by the home device to the gateway device is only to trigger the gateway device to generate a payment signature for the purpose of subsequent signature verification, then the payment platform may need to obtain relevant information about the service request from the application platform after the verification is passed. Only information such as the service items requested to be purchased in the service request can be deducted.

在本示例当中在家居设备发送的支付请求中包含扣款金额等信息。In this example, information such as the deducted amount is included in the payment request sent by the home device.

S1008、支付平台将扣款结果通知应用平台。S1008. The payment platform notifies the application platform of the deduction result.

支付平台扣款可能会成功,也可能会因为用户账户余额不足等问题而出现扣款失败的问题,所以支付平台在扣款完成之后,可以将扣款结果通知给应用平台,以供应用平台决定是否向家居设备提供服务。The deduction by the payment platform may be successful, or the deduction may fail due to insufficient balance in the user account. Therefore, after the deduction is completed, the payment platform can notify the application platform of the deduction result for the application platform to decide Whether to provide services to home devices.

当然,支付平台和应用平台之间也可以约定,仅在扣款失败的情况下向应用平台进行反馈,否则默认扣款成功。Of course, the payment platform and the application platform can also agree to only give feedback to the application platform when the deduction fails, otherwise the default deduction is successful.

S1009、应用平台在确认扣款成功后完成相关应用服务。S1009. The application platform completes relevant application services after confirming that the deduction is successful.

应用平台向家居设备提供相应服务的同时,还可以向家居设备发送提示信息,以告知家居设备服务已经购买成功。当然,在应用平台确定因签名验证失败或者是扣款失败等原因而无法向家居设备提供服务时,也可以向其反馈相关信息。毫无疑义地是,若是因为扣款失败,则通知信息可以由支付平台发送,若是因为验证失败,则由验证方,也就是支付平台对家居设备进行通知。While the application platform provides corresponding services to the household equipment, it can also send prompt information to the household equipment to inform the household equipment that the service has been successfully purchased. Of course, when the application platform determines that the service cannot be provided to the home device due to signature verification failure or deduction failure, it can also feed back relevant information to it. Undoubtedly, if it is due to deduction failure, the notification information can be sent by the payment platform; if it is due to verification failure, the verification party, that is, the payment platform, will notify the home device.

情景示例四,如图11所示:Scenario example four, as shown in Figure 11:

S1101、家居设备向应用平台发送服务请求。S1101. The home device sends a service request to the application platform.

S1102、家居设备将支付请求发送给网关设备。S1102. The home device sends the payment request to the gateway device.

可以理解的是,虽然支付请求是由家居设备主动发送给网关设备的,但是触发家居设备发送支付请求的原因可能是用户通过家居设备购买了服务,也可能是家居设备通过对自身服务提供能力的监测从而发起了服务购买。It is understandable that although the payment request is actively sent by the home device to the gateway device, the reason that triggers the home device to send the payment request may be that the user purchases the service through the home device, or it may be that the home device provides capabilities for its own services. Monitoring thus initiates service purchases.

S1103、网关设备使用私钥对支付请求进行签名。S1103. The gateway device uses the private key to sign the payment request.

网关设备使用私钥对支付请求进行签名的过程实质上就是使用私钥对支付请求进行加密的过程。The process of the gateway device using the private key to sign the payment request is essentially the process of using the private key to encrypt the payment request.

S1104、网关设备将支付签名结果发送给支付平台。S1104. The gateway device sends the payment signature result to the payment platform.

网关设备可以通过其通信装置中的远程通信单元将支付签名发送给支付平台。The gateway device can send the payment signature to the payment platform through the remote communication unit in its communication device.

S1105、支付平台使用公钥进行支付签名验证。S1105. The payment platform uses the public key to verify the payment signature.

由于支付平台存储的公钥与网关设备使用的私钥是一对密钥,所以,家居设备发送的支付签名只能使用对应的公钥才能解密。而在支付平台上可能存储了成千上万的公钥,这些公钥是不同用户的身份密钥,所以,支付平台在接收到支付签名之后,需要从成千上万的公钥中提取出唯一正确的公钥来对该支付签名进行签名验证。Since the public key stored on the payment platform and the private key used by the gateway device are a pair of keys, the payment signature sent by the home device can only be decrypted using the corresponding public key. However, tens of thousands of public keys may be stored on the payment platform. These public keys are the identity keys of different users. Therefore, after receiving the payment signature, the payment platform needs to extract The only correct public key to perform signature verification on the payment signature.

S1106、支付平台在验证通过后进行支付扣款。S1106. The payment platform deducts the payment after the verification is passed.

可以理解的是,支付平台接收到的支付签名是对家居设备发送的支付请求加密得到的,因此,当支付平台对支付签名解密完成后得到的就是家居设备发送给网关设备的支付请求。所以,当家居设备发送的支付请求中包含有扣款金额等信息时,支付平台解密得到支付请求后可以直接根据该支付请求完成扣款。It can be understood that the payment signature received by the payment platform is obtained by encrypting the payment request sent by the home device. Therefore, what is obtained after the payment platform decrypts the payment signature is the payment request sent by the home device to the gateway device. Therefore, when the payment request sent by the home device contains information such as the deduction amount, the payment platform can directly complete the deduction according to the payment request after decrypting the payment request.

但如果家居设备向网关设备发送的支付请求仅仅是为了触发网关设备生成支付签名以实现后续签名验证的目的,那么支付平台在验证通过之后,可能需要从应用平台处了解服务请求的相关信息,根据服务请求中请求购买的服务项目等信息才能实现扣款。However, if the payment request sent by the home device to the gateway device is only to trigger the gateway device to generate a payment signature for the purpose of subsequent signature verification, then the payment platform may need to obtain relevant information about the service request from the application platform after the verification is passed. Only information such as the service items requested to be purchased in the service request can be deducted.

在本示例当中在家居设备发送的支付请求中包含扣款金额等信息。In this example, information such as the deducted amount is included in the payment request sent by the home device.

S1107、支付平台将扣款结果通知应用平台。S1107. The payment platform notifies the application platform of the deduction result.

支付平台扣款可能会成功,也可能会因为用户账户余额不足等问题而出现扣款失败的问题,所以支付平台在扣款完成之后,可以将扣款结果通知给应用平台,以供应用平台决定是否向家居设备提供服务。The deduction by the payment platform may be successful, or the deduction may fail due to insufficient balance in the user account. Therefore, after the deduction is completed, the payment platform can notify the application platform of the deduction result for the application platform to decide Whether to provide services to home devices.

当然,支付平台和应用平台之间也可以约定,仅在扣款失败的情况下向应用平台进行反馈,否则默认扣款成功。Of course, the payment platform and the application platform can also agree to only give feedback to the application platform when the deduction fails, otherwise the default deduction is successful.

S1108、应用平台在确认扣款成功后完成相关应用服务。S1108. The application platform completes relevant application services after confirming that the deduction is successful.

应用平台向家居设备提供相应服务的同时,还可以向家居设备发送提示信息,以告知家居设备服务已经购买成功。当然,在应用平台确定因签名验证失败或者是扣款失败等原因而无法向家居设备提供服务时,也可以向其反馈相关信息。毫无疑义地是,若是因为扣款失败,则通知信息可以由支付平台发送,若是因为验证失败,则由验证方,也就是支付平台对家居设备进行通知。While the application platform provides corresponding services to the household equipment, it can also send prompt information to the household equipment to inform the household equipment that the service has been successfully purchased. Of course, when the application platform determines that the service cannot be provided to the home device due to signature verification failure or deduction failure, it can also feed back relevant information to it. Undoubtedly, if it is due to deduction failure, the notification information can be sent by the payment platform; if it is due to verification failure, the verification party, that is, the payment platform, will notify the home device.

本实施例提供的支付系统,实现购买支付的第一密钥与第二密钥由网关设备生成,并将第一密钥存储在网关设备的安全芯片中。利用硬件存储安全密钥,从而保证了第一密钥的安全。另一方面,第一密钥与第二密钥分别属于非对称密钥中的私钥与公钥,所以,第三方平台中的支付平台或者是应用平台能够利用第二密钥实现对第一密钥的验证。在家居设备需要购买服务的过程中,网关设备利用安全芯片生成支付签名,其过程不容易被攻击,充分保证了支付安全性。In the payment system provided by this embodiment, the gateway device generates the first key and the second key for purchase payment, and stores the first key in a security chip of the gateway device. The hardware is used to store the security key, thereby ensuring the security of the first key. On the other hand, the first key and the second key belong to the private key and the public key in the asymmetric key respectively, so the payment platform or application platform in the third-party platform can use the second key to implement the first Key verification. When home devices need to purchase services, the gateway device uses a security chip to generate a payment signature, and the process is not easy to be attacked, which fully guarantees payment security.

实施例五:Embodiment five:

本实施例继续对实施例四提供的支付系统进行介绍,仍然假定第三方平台由应用平台和支付平台功能构成。与实施例四不同的是,家居设备不具备购买服务的能力,例如,家居设备的型号比较老旧,不支持购买。所以,在本实施例中,购买支付过程并不需要家居设备参与。网关设备接收到的支付请求可能是由用户通过客户端向网关设备发起的,也可以是用户直接在网关设备上操作发起的。下面结合一些具体的情景示例进行介绍:This embodiment continues to introduce the payment system provided in the fourth embodiment, and it is still assumed that the third-party platform is composed of an application platform and a payment platform. The difference from Embodiment 4 is that the home equipment does not have the ability to purchase services, for example, the model of the home equipment is relatively old and does not support purchase. Therefore, in this embodiment, the purchase and payment process does not require the participation of household devices. The payment request received by the gateway device may be initiated by the user through the client to the gateway device, or initiated by the user directly operating on the gateway device. Here are some specific scenario examples:

情景示例五,如图12所示:Scenario example five, as shown in Figure 12:

S1201、网关设备使用私钥对支付请求进行签名。S1201. The gateway device uses the private key to sign the payment request.

网关设备使用私钥对支付请求进行签名的过程实质上就是使用私钥对支付请求进行加密的过程。The process of the gateway device using the private key to sign the payment request is essentially the process of using the private key to encrypt the payment request.

S1202、网关设备将支付签名和服务请求发送给应用平台。S1202. The gateway device sends the payment signature and service request to the application platform.

网关设备可以通过其通信装置中的远程通信单元将支付签名和服务请求发送给应用平台。网关设备发送服务请求与支付签名的时候,可以分别发送,也可以将二者一起发送。The gateway device can send the payment signature and service request to the application platform through the remote communication unit in its communication device. When the gateway device sends the service request and the payment signature, it can send them separately or send them together.

S1203、应用平台使用公钥进行支付签名验证。S1203. The application platform uses the public key to verify the payment signature.

由于应用平台存储的公钥与网关设备使用的私钥是一对密钥,所以,网关设备发送的支付签名只能使用对应的公钥才能解密。而在应用平台上可能存储了成千上万的公钥,这些公钥是不同用户的身份密钥,所以,应用平台在接收到支付签名之后,需要从成千上万的公钥中提取出唯一正确的公钥来对该支付签名进行签名验证。Since the public key stored on the application platform and the private key used by the gateway device are a pair of keys, the payment signature sent by the gateway device can only be decrypted using the corresponding public key. However, tens of thousands of public keys may be stored on the application platform. These public keys are the identity keys of different users. Therefore, after receiving the payment signature, the application platform needs to extract The only correct public key to perform signature verification on the payment signature.

S1204、应用平台在验证通过后通知支付平台进行支付扣款。S1204. After the verification is passed, the application platform notifies the payment platform to deduct the payment.

可以理解的是,应用平台接收到的支付签名是对客户端发送的支付请求加密得到的,因此,当应用平台对支付签名解密完成后得到的就是客户端发送给网关设备的支付请求。所以,当客户端发送的支付请求中包含有扣款金额等信息时,应用平台解密得到支付请求后可以直接将支付请求发送给支付平台,从而达到通知支付平台进行支付扣款、以及扣款金额的目的。It can be understood that the payment signature received by the application platform is obtained by encrypting the payment request sent by the client. Therefore, what is obtained after the application platform decrypts the payment signature is the payment request sent by the client to the gateway device. Therefore, when the payment request sent by the client includes information such as the deduction amount, the application platform can directly send the payment request to the payment platform after decrypting the payment request, so as to notify the payment platform to perform payment deduction and the deduction amount the goal of.

但如果客户端向网关设备发送的支付请求仅仅是为了触发网关设备生成支付签名以实现后续签名验证的目的,那么应用平台在验证通过之后,可能需要根据服务请求中请求购买的服务项目等信息重新生成一个新的支付请求发送给支付平台,且在该支付请求中包含有扣款金额等信息。However, if the payment request sent by the client to the gateway device is only to trigger the gateway device to generate a payment signature for the purpose of subsequent signature verification, then the application platform may need to renew the payment request based on the service items requested in the service request and other information after the verification is passed. Generate a new payment request and send it to the payment platform, and the payment request includes information such as the deducted amount.

S1205、支付平台进行支付扣款。S1205. The payment platform performs payment deduction.

S1206、支付平台将扣款结果通知应用平台。S1206. The payment platform notifies the application platform of the deduction result.

支付平台扣款可能会成功,也可能会因为用户账户余额不足等问题而出现扣款失败的问题,所以支付平台在扣款完成之后,可以将扣款结果通知给应用平台,以供应用平台决定是否向家居设备提供服务。The deduction by the payment platform may be successful, or the deduction may fail due to insufficient balance in the user account. Therefore, after the deduction is completed, the payment platform can notify the application platform of the deduction result for the application platform to decide Whether to provide services to home devices.

当然,支付平台和应用平台之间也可以约定,仅在扣款失败的情况下向应用平台进行反馈,否则默认扣款成功。Of course, the payment platform and the application platform can also agree to only give feedback to the application platform when the deduction fails, otherwise the default deduction is successful.

S1207、应用平台在确认扣款成功后完成相关应用服务。S1207. The application platform completes relevant application services after confirming that the deduction is successful.

应用平台向家居设备提供相应服务的同时,还可以向客户端发送提示信息,以告知家居设备服务已经购买成功。当然,在应用平台确定因签名验证失败或者是扣款失败等原因而无法向家居设备提供服务时,也可以向其反馈相关信息。毫无疑义地是,若是因为扣款失败,则通知信息可以由支付平台发送,若是因为验证失败,则由验证方,也就是应用平台对客户端进行通知。While the application platform provides corresponding services to the household equipment, it can also send prompt information to the client to inform the household equipment that the service has been successfully purchased. Of course, when the application platform determines that the service cannot be provided to the home device due to signature verification failure or deduction failure, it can also feed back relevant information to it. Undoubtedly, if it is due to deduction failure, the notification information can be sent by the payment platform, and if it is due to verification failure, the verification party, that is, the application platform, will notify the client.

情景示例六,如图13所示:Scenario example six, as shown in Figure 13:

S1301、网关设备向应用平台发送服务请求。S1301. The gateway device sends a service request to the application platform.

S1302、网关设备使用私钥对支付请求进行签名。S1302. The gateway device uses the private key to sign the payment request.

网关设备使用私钥对支付请求进行签名的过程实质上就是使用私钥对支付请求进行加密的过程。The process of the gateway device using the private key to sign the payment request is essentially the process of using the private key to encrypt the payment request.

S1303、网关设备将支付签名结果发送给支付平台。S1303. The gateway device sends the payment signature result to the payment platform.

网关设备可以通过其通信装置中的远程通信单元将支付签名发送给支付平台。The gateway device can send the payment signature to the payment platform through the remote communication unit in its communication device.

S1304、支付平台使用公钥进行支付签名验证。S1304. The payment platform uses the public key to verify the payment signature.

由于支付平台存储的公钥与网关设备使用的私钥是一对密钥,所以,网关设备发送的支付签名只能使用对应的公钥才能解密。而在支付平台上可能存储了成千上万的公钥,这些公钥是不同用户的身份密钥,所以,支付平台在接收到支付签名之后,需要从成千上万的公钥中提取出唯一正确的公钥来对该支付签名进行签名验证。Since the public key stored on the payment platform and the private key used by the gateway device are a pair of keys, the payment signature sent by the gateway device can only be decrypted using the corresponding public key. However, tens of thousands of public keys may be stored on the payment platform. These public keys are the identity keys of different users. Therefore, after receiving the payment signature, the payment platform needs to extract The only correct public key to perform signature verification on the payment signature.

S1305、支付平台在验证通过后进行支付扣款。S1305. The payment platform deducts the payment after the verification is passed.

可以理解的是,支付平台接收到的支付签名是网关设备对支付请求加密得到的,因此,当支付平台对支付签名解密完成后得到的就是支付请求。所以,当网关设备的支付请求中包含有扣款金额等信息时,支付平台解密得到支付请求后可以直接根据该支付请求完成扣款。It can be understood that the payment signature received by the payment platform is obtained by encrypting the payment request by the gateway device. Therefore, what is obtained after the payment platform decrypts the payment signature is the payment request. Therefore, when the payment request of the gateway device includes information such as the deduction amount, the payment platform can directly complete the deduction according to the payment request after decrypting the payment request.

但如果网关设备接收到的支付请求仅仅是为了触发网关设备生成支付签名以实现后续签名验证的目的,那么支付平台在验证通过之后,可能需要从应用平台处了解服务请求的相关信息,根据服务请求中请求购买的服务项目等信息才能实现扣款。However, if the payment request received by the gateway device is only to trigger the gateway device to generate a payment signature for the purpose of subsequent signature verification, then the payment platform may need to obtain relevant information about the service request from the application platform after the verification is passed. In order to realize the deduction of information such as the service items requested to be purchased.

在本示例当中网关设备接收的支付请求中包含扣款金额等信息。In this example, the payment request received by the gateway device includes information such as the deducted amount.

S1306、支付平台将扣款结果通知应用平台。S1306. The payment platform notifies the application platform of the deduction result.

支付平台扣款可能会成功,也可能会因为用户账户余额不足等问题而出现扣款失败的问题,所以支付平台在扣款完成之后,可以将扣款结果通知给应用平台,以供应用平台决定是否向家居设备提供服务。The deduction by the payment platform may be successful, or the deduction may fail due to insufficient balance in the user account. Therefore, after the deduction is completed, the payment platform can notify the application platform of the deduction result for the application platform to decide Whether to provide services to home devices.

当然,支付平台和应用平台之间也可以约定,仅在扣款失败的情况下向应用平台进行反馈,否则默认扣款成功。Of course, the payment platform and the application platform can also agree to only give feedback to the application platform when the deduction fails, otherwise the default deduction is successful.

S1307、应用平台在确认扣款成功后完成相关应用服务。S1307. The application platform completes relevant application services after confirming that the deduction is successful.

应用平台向家居设备提供相应服务的同时,还可以向网关设备对应的客户端发送提示信息,以告知家居设备服务已经购买成功。当然,在应用平台确定因签名验证失败或者是扣款失败等原因而无法向家居设备提供服务时,也可以向客户端反馈相关信息。毫无疑义地是,若是因为扣款失败,则通知信息可以由支付平台发送,若是因为验证失败,则由验证方,也就是支付平台对客户端进行通知。While the application platform provides corresponding services to the home equipment, it can also send prompt information to the client corresponding to the gateway device to inform the home equipment that the service has been successfully purchased. Of course, when the application platform determines that the service cannot be provided to the home device due to signature verification failure or deduction failure, it can also feed back relevant information to the client. Undoubtedly, if the deduction fails, the notification information can be sent by the payment platform, and if the verification fails, the verification party, that is, the payment platform, will notify the client.

本实施例提供的支付系统中,可以直接由客户端和网关设备帮助家居设备购买服务并完成支付,其不需要家居设备的参与。所以能够很好地帮助那些因型号老旧而不支持购买支付功能的家居设备实现服务购买,避免用户对这些家居设备进行更新换代所带来的巨大经济重担,提升了用户体验。In the payment system provided by this embodiment, the client and the gateway device can directly help the home device to purchase services and complete the payment, which does not require the participation of the home device. Therefore, it can well help those home devices that do not support the purchase payment function due to their old models to realize service purchases, avoid the huge economic burden brought by users to update these home devices, and improve user experience.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, and these all belong to the protection of the present invention.

Claims (18)

1.一种支付方法,其特征在于,包括:1. A payment method, characterized in that it comprises: 网关设备在家居设备购买服务的过程中基于本地存储的第一密钥生成支付签名,所述网关设备与所述家居设备通信连接;The gateway device generates a payment signature based on the locally stored first key during the process of purchasing services by the home device, and the gateway device communicates with the home device; 所述网关设备将所述支付签名发送给第三方平台,以供所述第三方平台基于本地存储的第二密钥对所述支付签名完成签名验证,并根据验证结果对购买所述服务的服务请求进行处理。The gateway device sends the payment signature to the third-party platform, so that the third-party platform can complete the signature verification on the payment signature based on the second key stored locally, and verify the service purchase of the service according to the verification result. The request is processed. 2.如权利要求1所述的支付方法,其特征在于,所述网关设备将所述支付签名发送给第三方平台包括:2. The payment method according to claim 1, wherein the gateway device sending the payment signature to a third-party platform comprises: 所述网关设备将所述支付签名直接发送给第三方平台;The gateway device directly sends the payment signature to a third-party platform; 或,or, 所述网关设备将所述支付签名通过所述家居设备转发给第三方平台。The gateway device forwards the payment signature to a third-party platform through the home device. 3.如权利要求1所述的支付方法,其特征在于,还包括:由所述网关设备或所述家居设备将服务请求发送给所述第三方平台。3. The payment method according to claim 1, further comprising: sending a service request to the third-party platform by the gateway device or the home device. 4.如权利要求1所述的支付方法,其特征在于,所述第一密钥为所述网关设备的私有密钥,所述第二密钥为与所述私有密钥对应的公有密钥。4. The payment method according to claim 1, wherein the first key is a private key of the gateway device, and the second key is a public key corresponding to the private key . 5.如权利要求1-4任一项所述的支付方法,其特征在于,所述网关设备基于本地存储的第一密钥生成支付签名包括:5. The payment method according to any one of claims 1-4, wherein the gateway device generating a payment signature based on a locally stored first key comprises: 所述网关设备接收客户端下发的支付请求,并使用第一密钥对所述支付请求进行加密得到支付签名;The gateway device receives the payment request sent by the client, and encrypts the payment request with a first key to obtain a payment signature; 或,or, 所述网关设备接收所述家居设备发送的支付请求,并使用第一密钥对所述支付请求进行加密得到支付签名。The gateway device receives the payment request sent by the home device, and uses the first key to encrypt the payment request to obtain a payment signature. 6.一种支付方法,其特征在于,包括:6. A payment method, characterized in that it comprises: 第三方平台获取网关设备生成的支付签名,所述支付签名由所述网关设备在家居设备购买服务的过程中基于其存储第一密钥生成,所述网关设备与所述家居设备通信连接;The third-party platform obtains the payment signature generated by the gateway device, the payment signature is generated by the gateway device based on its storage of the first key during the process of purchasing the service by the home device, and the gateway device communicates with the home device; 所述第三方平台使用本地预先存储的第二密钥对所述支付签名进行签名验证,并根据验证结果对购买所述服务的服务请求进行处理。The third-party platform uses the locally pre-stored second key to perform signature verification on the payment signature, and processes the service request for purchasing the service according to the verification result. 7.如权利要求6所述的支付方法,其特征在于,所述第三方平台获取网关设备生成的支付签名包括:7. The payment method according to claim 6, wherein said third-party platform obtaining the payment signature generated by the gateway device comprises: 所述第三方平台接收所述网关设备发送的支付签名;The third-party platform receives the payment signature sent by the gateway device; 或,or, 所述第三方平台接收由所述网关设备生成并经由所述家居设备转发的支付签名。The third-party platform receives the payment signature generated by the gateway device and forwarded by the home device. 8.如权利要求6或7所述的支付方法,其特征在于,所述第三方平台包括应用平台与支付平台;8. The payment method according to claim 6 or 7, wherein the third-party platform includes an application platform and a payment platform; 所述第三方平台根据验证结果对购买所述服务的服务请求进行处理包括:The processing of the service request for purchasing the service by the third-party platform according to the verification result includes: 所述应用平台使用本地预先存储的第二密钥对所述支付签名进行签名验证;当所述验证结果为通过时,所述支付平台完成与所述服务请求对应的支付扣款;所述支付平台将扣款结果发送给所述应用平台,以供所述应用平台在扣款成功时向所述家居设备提供所述服务请求对应的服务;The application platform uses the locally pre-stored second key to perform signature verification on the payment signature; when the verification result is passed, the payment platform completes the payment deduction corresponding to the service request; the payment The platform sends the deduction result to the application platform, so that the application platform can provide the home device with the service corresponding to the service request when the deduction is successful; 或,or, 所述支付平台使用本地预先存储的第二密钥对所述支付签名进行签名验证,并在所述验证结果为通过时,完成与所述服务请求对应的支付扣款;所述支付平台将扣款结果发送给所述应用平台,以供所述应用平台在扣款成功时向所述家居设备提供所述服务请求对应的服务。The payment platform uses the locally pre-stored second key to perform signature verification on the payment signature, and completes the payment deduction corresponding to the service request when the verification result is passed; the payment platform will deduct The payment result is sent to the application platform, so that the application platform provides the service corresponding to the service request to the home device when the deduction is successful. 9.如权利要求8所述的支付方法,其特征在于,还包括:所述应用平台接收所述网关设备或所述家居设备发送的服务请求。9. The payment method according to claim 8, further comprising: the application platform receiving the service request sent by the gateway device or the home device. 10.一种网关设备,其特征在于,包括:10. A gateway device, characterized in that, comprising: 存储模块,用于预先存储用于支付的第一密钥;A storage module, used for pre-storing the first key used for payment; 第一处理模块,用于在家居设备购买服务的过程中基于所述第一密钥生成支付签名,所述网关设备与所述家居设备通信连接;The first processing module is configured to generate a payment signature based on the first key during the process of purchasing services by the home device, and the gateway device is communicatively connected to the home device; 第一通信模块,用于将所述支付签名发送给第三方平台,以供所述第三方平台基于本地存储的第二密钥对所述支付签名完成签名验证,并根据验证结果对购买所述服务的服务请求进行处理。The first communication module is configured to send the payment signature to a third-party platform, so that the third-party platform can complete signature verification on the payment signature based on the locally stored second key, and verify the payment signature according to the verification result. Service requests for services are processed. 11.如权利要求10所述的网关设备,其特征在于,所述第一通信模块用于将所述支付签名直接发送给所述第三方平台,或将所述支付签名通过所述家居设备转发给所述第三方平台。11. The gateway device according to claim 10, wherein the first communication module is used to directly send the payment signature to the third-party platform, or forward the payment signature through the home device to the third-party platform. 12.如权利要求10所述的网关设备,其特征在于,所述第一通信模块还用于将服务请求发送给所述第三方平台。12. The gateway device according to claim 10, wherein the first communication module is further configured to send a service request to the third-party platform. 13.如权利要求10-12任一项所述的网关设备,其特征在于,所述第一通信模块用于接收客户端下发的支付请求,或接收所述家居设备发送的支付请求;13. The gateway device according to any one of claims 10-12, wherein the first communication module is configured to receive a payment request sent by a client, or receive a payment request sent by the home device; 所述第一处理模块,用于使用本地存储的所述第一密钥对所述第一通信模块获取的支付请求进行加密得到支付签名。The first processing module is configured to use the locally stored first key to encrypt the payment request acquired by the first communication module to obtain a payment signature. 14.一种第三方平台,其特征在于,包括:14. A third-party platform, characterized in that, comprising: 第二通信模块,用于获取网关设备生成的支付签名,所述支付签名由所述网关设备在家居设备购买服务的过程中基于其存储第一密钥生成,所述网关设备与所述家居设备通信连接;The second communication module is used to obtain the payment signature generated by the gateway device, the payment signature is generated by the gateway device based on its storage of the first key during the process of purchasing services by the home device, and the gateway device and the home device communication connection; 第二处理模块,用于使用本地预先存储的第二密钥对所述支付签名进行签名验证,并根据验证结果对购买所述服务的服务请求进行处理。The second processing module is configured to use a locally pre-stored second key to perform signature verification on the payment signature, and process the service request for purchasing the service according to the verification result. 15.如权利要求14所述的第三方平台,其特征在于,所述第二通信模块用于接收所述网关设备发送的支付签名,或接收由所述网关设备生成并经由所述家居设备转发的支付签名。15. The third-party platform according to claim 14, wherein the second communication module is used to receive the payment signature sent by the gateway device, or receive the payment signature generated by the gateway device and forwarded by the home device payment signature. 16.如权利要求14或15所述的第三方平台,其特征在于,所述第二通信模块还用于接收所述网关设备或所述家居设备发送的服务请求。16. The third-party platform according to claim 14 or 15, wherein the second communication module is further configured to receive a service request sent by the gateway device or the home device. 17.一种支付系统,其特征在于,包括权利要求10-13任一项所述的网关设备、权利要求14-16任一项所述的第三方平台,以及与所述网关设备通信连接的家居设备。17. A payment system, characterized in that it comprises the gateway device according to any one of claims 10-13, the third-party platform according to any one of claims 14-16, and a communication connection with the gateway device household equipment. 18.如权利要求17所述的支付系统,其特征在于,所述家居设备还用于监测自身的服务提供能力,并在自身的服务提供能力低于预设阈值时,自动购买所需服务并进行支付,所述服务提供能力表征所述家居设备能够向用户提供服务的能力。18. The payment system according to claim 17, wherein the household device is also used to monitor its own service providing capability, and when its own service providing capability is lower than a preset threshold, automatically purchase the required service and Payment is made, and the service provision capability represents the capability of the home device to provide services to the user.
CN201710318947.0A 2017-05-08 2017-05-08 Gateway, third-party platform, payment system and method Pending CN108881000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710318947.0A CN108881000A (en) 2017-05-08 2017-05-08 Gateway, third-party platform, payment system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710318947.0A CN108881000A (en) 2017-05-08 2017-05-08 Gateway, third-party platform, payment system and method

Publications (1)

Publication Number Publication Date
CN108881000A true CN108881000A (en) 2018-11-23

Family

ID=64287356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710318947.0A Pending CN108881000A (en) 2017-05-08 2017-05-08 Gateway, third-party platform, payment system and method

Country Status (1)

Country Link
CN (1) CN108881000A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111178896A (en) * 2019-12-05 2020-05-19 腾讯科技(深圳)有限公司 Bus taking payment method, device and storage medium
US11023620B2 (en) 2019-03-29 2021-06-01 Advanced New Technologies Co., Ltd. Cryptography chip with identity verification
US11063749B2 (en) 2019-03-29 2021-07-13 Advanced New Technologies Co., Ltd. Cryptographic key management based on identity information
US11251950B2 (en) 2019-03-29 2022-02-15 Advanced New Technologies Co., Ltd. Securely performing cryptographic operations
US11251941B2 (en) 2019-03-29 2022-02-15 Advanced New Technologies Co., Ltd. Managing cryptographic keys based on identity information
CN115018493A (en) * 2022-05-19 2022-09-06 上海乾臻信息科技有限公司 Payment management method for multiple payment platforms and related device
CN116015751A (en) * 2022-12-08 2023-04-25 武汉理工大学 A smart grid two-way authentication system and method
CN118396622A (en) * 2024-05-08 2024-07-26 福建天晴数码有限公司 Third party payment interface key management method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192284A (en) * 2006-11-28 2008-06-04 北京握奇数据系统有限公司 Remote payment method and system based on signing on mobile equipment
CN101931579A (en) * 2010-08-06 2010-12-29 中兴通讯股份有限公司 Prepaid household equipment, its payment method, system and payment device
CN103617526A (en) * 2013-12-09 2014-03-05 福建联迪商用设备有限公司 Mobile payment method and system based on router
CN203608224U (en) * 2013-12-09 2014-05-21 福建联迪商用设备有限公司 Safety router
CN104767613A (en) * 2014-01-02 2015-07-08 腾讯科技(深圳)有限公司 Signature verification method, device and system
CN105590203A (en) * 2015-03-02 2016-05-18 中国银联股份有限公司 Intelligent router and payment method implemented based on same

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192284A (en) * 2006-11-28 2008-06-04 北京握奇数据系统有限公司 Remote payment method and system based on signing on mobile equipment
CN101931579A (en) * 2010-08-06 2010-12-29 中兴通讯股份有限公司 Prepaid household equipment, its payment method, system and payment device
CN103617526A (en) * 2013-12-09 2014-03-05 福建联迪商用设备有限公司 Mobile payment method and system based on router
CN203608224U (en) * 2013-12-09 2014-05-21 福建联迪商用设备有限公司 Safety router
CN104767613A (en) * 2014-01-02 2015-07-08 腾讯科技(深圳)有限公司 Signature verification method, device and system
CN105590203A (en) * 2015-03-02 2016-05-18 中国银联股份有限公司 Intelligent router and payment method implemented based on same

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11251941B2 (en) 2019-03-29 2022-02-15 Advanced New Technologies Co., Ltd. Managing cryptographic keys based on identity information
US11023620B2 (en) 2019-03-29 2021-06-01 Advanced New Technologies Co., Ltd. Cryptography chip with identity verification
US11063749B2 (en) 2019-03-29 2021-07-13 Advanced New Technologies Co., Ltd. Cryptographic key management based on identity information
US11088831B2 (en) 2019-03-29 2021-08-10 Advanced New Technologies Co., Ltd. Cryptographic key management based on identity information
US11251950B2 (en) 2019-03-29 2022-02-15 Advanced New Technologies Co., Ltd. Securely performing cryptographic operations
US11258591B2 (en) 2019-03-29 2022-02-22 Advanced New Technologies Co., Ltd. Cryptographic key management based on identity information
CN111178896B (en) * 2019-12-05 2021-09-21 腾讯科技(深圳)有限公司 Bus taking payment method, device and storage medium
CN111178896A (en) * 2019-12-05 2020-05-19 腾讯科技(深圳)有限公司 Bus taking payment method, device and storage medium
CN115018493A (en) * 2022-05-19 2022-09-06 上海乾臻信息科技有限公司 Payment management method for multiple payment platforms and related device
CN116015751A (en) * 2022-12-08 2023-04-25 武汉理工大学 A smart grid two-way authentication system and method
CN116015751B (en) * 2022-12-08 2024-05-03 武汉理工大学 Intelligent power grid bidirectional authentication system and method
CN118396622A (en) * 2024-05-08 2024-07-26 福建天晴数码有限公司 Third party payment interface key management method and system
CN118396622B (en) * 2024-05-08 2025-12-16 福建天晴数码有限公司 Third party payment interface key management method and system

Similar Documents

Publication Publication Date Title
CN108881000A (en) Gateway, third-party platform, payment system and method
JP6712328B2 (en) Validating online access to secure device functionality
KR101621254B1 (en) Payment method, computer readable recording medium and system using virtual number based on otp
CN107067251B (en) Transactions using electronic devices with geographically restricted non-local credentials
RU2707939C2 (en) Support platform for inter-machine devices
KR101087215B1 (en) WSI direct payment system, direct payment method, and a recording medium recording the direct payment method in a mobile phone
WO2015180262A1 (en) Payment processing method, device, nfc portable terminal and wearable terminal
CN103942687A (en) Data security interactive system
US20230362002A1 (en) Systems and methods for block data security for digital communications from a physical device
CN103942690A (en) Data security interactive system
JP2015537399A (en) Application system for mobile payment and method for providing and using mobile payment means
WO2014180406A1 (en) Payment processing method and device
CN109889510B (en) Multiple encryption method for service provider transmitting service message
CN104182876A (en) Secure payment trading method and secure payment trading system
WO2016109997A1 (en) Protection method and apparatus of mobile payment information, and mobile payment system
JP2022551996A (en) Secure tokens for controlling access to resources in resource distribution networks
CN103944735A (en) Data security interactive method
CN108718323A (en) A kind of identity identifying method and system
KR101494838B1 (en) Account transfer method and system using transaction related otp
CN103139737B (en) Key agreement method and device, short message secondary confirmation method, system and equipment
CN207184519U (en) A gateway device and payment system
CN105208540A (en) Realization methods and apparatuses for charging of service delivery platform and third party
US10762558B1 (en) System, method, and computer program for authorizing a payment using gesture data
CN109831431B (en) Random number encryption method for service provider to initiate generation of access request
KR20150118672A (en) Method and Apparatus for Processing Payment Based on Mobile

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123

RJ01 Rejection of invention patent application after publication