Payment method and system for cloud application, and electronic equipment

By receiving terminal requests and determining user types, the unified payment process solves the problem of low payment efficiency in cloud application promotion, realizes unified payment for cloud applications in different regions, and improves efficiency and user experience.

CN118798874APending Publication Date: 2024-10-18CHINA MOBILE COMM GRP TERMINAL +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410311513.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-19
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, when facing the promotion of cloud applications in different regions, the payment efficiency is not high enough. It is necessary to develop personalized docking methods and adaptation processes based on differences in different regions, resulting in a complex and inefficient application promotion process.

Method used

By receiving the request sent by the terminal, it is determined whether the end user is a paying user, and if so, it responds directly. If not, a payment request is generated and processed through the payment platform, ensuring a unified payment method for cloud-based applications in different regions and simplifying the payment process.

Benefits of technology

It realizes a unified payment method for cloud-based applications on different terminals, improves payment efficiency and user experience, shortens the development cycle and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798874A_ABST
    Figure CN118798874A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a payment method and device for cloud application and electronic equipment, and the method is applied to a server, and comprises the steps: receiving a first request sent by a terminal, and transmitting the first request to a cloud system through a cloud interface; judging whether a terminal user corresponding to the first request is a payment terminal user or not based on a preset mapping relationship between user identity information and a cloud application and a target cloud application corresponding to the first request; if yes, controlling the cloud application to respond to the first request; otherwise, generating a payment request corresponding to the unpaid terminal user, and sending the payment request to the terminal; receiving payment confirmation information sent by the terminal, and calling a corresponding payment platform interface to generate a payment order; and if the payment result returned by the payment platform interface is that the order payment is successful, controlling the cloud application to respond to the first request. According to the invention, unified payment of different application objects can be realized, so that the payment process is simplified, and the efficiency of cloud application popularization is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data transmission technology, and in particular to a payment method, system and electronic device for cloud applications. Background Art

[0002] With the development and advancement of computer technology, cloud computing and artificial intelligence technology, the TVs commonly used in people's lives have begun to integrate diversified content such as fitness, games and watching online videos, and present them in the form of "mobile cloud HD" services. Mobile cloud HD services migrate local data to the cloud for data processing through cloudification, and send data through video streaming. Finally, after decoding the cloud code stream, UI (User Interface) display and business presentation are executed.

[0003] In response to different customer needs, cloud applications in the mobile cloud HD service are divided into paid cloud applications and free cloud applications. At present, due to differences in charging rules, development mechanisms, user concepts and development trends between different regions (such as different provinces), paid cloud applications need to formulate personalized docking methods according to the differences in different regions when they are promoted in different regions. Taking the application promotion of cloud applications in different provinces as an example, when cloud application a is promoted in Province A and Province B, it is necessary to formulate docking methods and adaptation processes that meet the needs of Provinces A and B respectively. With the increase in cloud applications, each additional cloud application requires the construction of a docking plan and the formulation of an adaptation process. Therefore, it is urgent to provide a more efficient method for promoting the application of cloud applications for different application objects. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a payment method, system and electronic device for cloud applications, so as to solve the problem in the prior art that the efficiency of fee payment is not high enough when cloud applications are promoted and used for different application objects.

[0005] To solve the above technical problems, the embodiments of the present invention are implemented as follows:

[0006] In a first aspect, an embodiment of the present invention provides a payment method for cloud applications, which is applied to a server, and the method includes:

[0007] A first request for starting a target cloud application sent by a receiving terminal is transmitted to the cloud system through a cloud interface, wherein the first request is used to trigger the cloud system to determine a corresponding target cloud application according to the first request, and the target cloud application is set in the cloud system;

[0008] Based on the preset mapping relationship between the user identity information and the cloud application, and the target cloud application corresponding to the first request, determining whether the terminal user corresponding to the first request is a paid terminal user;

[0009] If yes, controlling the cloud application to respond to the first request;

[0010] If not, generating a payment request corresponding to the unpaid terminal user, and sending the payment request to the terminal, the payment request is used to trigger the payment operation processing of the terminal;

[0011] The receiving terminal sends the confirmation payment information, and based on the confirmation payment information, calls the corresponding payment platform interface to generate a payment order and returns the payment result;

[0012] If the payment result returned by the payment platform interface is that the order payment is successful, the cloud application is controlled to respond to the first request through the cloud interface.

[0013] In a second aspect, an embodiment of the present invention provides a payment method for cloud applications, which is applied to a terminal, and the method includes:

[0014] Based on the acquired user instruction, a first request for starting the target cloud application is generated, and the first request is sent to the server, wherein the first request is used to trigger the server to transmit the first request to the cloud system through the cloud interface, trigger the cloud system to determine the corresponding target cloud application according to the first request, and trigger the server to determine whether the terminal user corresponding to the first request is a paid terminal user based on the mapping relationship between the preset user identity information and the cloud application;

[0015] If a payment terminal user instruction sent by the server is received, displaying the response information of the cloud application to the first request;

[0016] If a payment request corresponding to an unpaid terminal user sent by the server is received, a payment operation is processed based on the payment request;

[0017] Generate confirmation payment information based on the result of the payment operation processing, and send the confirmation payment information to the server, the confirmation payment information is used to trigger the server to call the corresponding payment platform interface based on the confirmation payment information to generate a payment order and return the payment result, and determine whether to respond to the first request based on the returned payment result;

[0018] When response information returned by the cloud application in response to the first request is received, the response information is displayed.

[0019] In a third aspect, an embodiment of the present invention provides a payment device for cloud applications, the device comprising:

[0020] A first request receiving module, used for receiving a first request sent by a terminal for starting a target cloud application, and transmitting the first request to the cloud system through a cloud interface, wherein the first request is used to trigger the cloud system to determine a corresponding target cloud application according to the first request, and the target cloud application is set in the cloud system;

[0021] a payment determination module, configured to determine whether a terminal user corresponding to the first request is a paid terminal user based on a mapping relationship between preset user identity information and cloud applications, and a target cloud application corresponding to the first request;

[0022] a first control module, configured to control the cloud application to respond to the first request if the terminal user corresponding to the first request is a paid terminal user, and to generate a payment request corresponding to an unpaid terminal user if the terminal user corresponding to the first request is not a paid terminal user, and to send the payment request to the terminal, wherein the payment request is used to trigger a payment operation process of the terminal;

[0023] The second control module is used to receive the payment confirmation information sent by the terminal, and call the corresponding payment platform interface based on the payment confirmation information to generate a payment order and return the payment result. If the payment result returned by the payment platform interface is that the order payment is successful, the cloud application is controlled through the cloud interface to respond to the first request.

[0024] In a fourth aspect, an embodiment of the present invention provides a payment device for cloud applications, the device comprising:

[0025] A first request generation module is used to generate a first request for starting a target cloud application based on the acquired user instruction, and send the first request to the server, wherein the first request is used to trigger the server to transmit the first request to the cloud system through a cloud interface, so that the cloud system determines the corresponding target cloud application according to the first request, and triggers the server to determine whether the terminal user corresponding to the first request is a paid terminal user based on a mapping relationship between preset user identity information and cloud applications;

[0026] A display module, configured to display the response information of the cloud application to the first request upon receiving the payment terminal user instruction sent by the server;

[0027] A payment module, configured to, upon receiving a payment request corresponding to an unpaid terminal user sent by the server, perform a payment operation based on the payment request;

[0028] a payment confirmation information generation module, configured to generate payment confirmation information based on the result of the payment operation processing, and send the payment confirmation information to the server, wherein the payment confirmation information is used to trigger the server to call the corresponding payment platform interface based on the payment confirmation information to generate a payment order and return the payment result, and determine whether to respond to the first request based on the returned payment result;

[0029] The display module is further configured to display the response information when receiving corresponding information returned by the cloud application to the first request.

[0030] In a fifth aspect, an embodiment of the present invention provides a payment system for cloud applications, the system comprising a terminal and a server, wherein:

[0031] The terminal is used to generate a first request for starting a target cloud application based on the acquired user instruction, and send the first request to the server, wherein the target cloud application is set in the cloud system;

[0032] The server is configured to transmit the first request to the cloud system through a cloud interface based on the received first request, control the cloud system to determine a corresponding target cloud application according to the first request, and, based on a mapping relationship between preset user identity information and cloud applications and the target cloud application corresponding to the first request, determine whether a terminal user corresponding to the first request is a paid terminal user, if the terminal user is a paid terminal user, control the cloud application to respond to the first request, and if the terminal user is not a paid terminal user, generate a payment request corresponding to an unpaid terminal user, and send the payment request to the terminal;

[0033] The terminal is configured to display the response information of the cloud application to the first request when receiving the instruction of the payment terminal user sent by the server, and to perform payment operation processing based on the payment request when receiving the payment request corresponding to the unpaid terminal user sent by the server, and to generate confirmation payment information based on the result of the payment operation processing, and to send the confirmation payment information to the server;

[0034] The server is configured to call the corresponding payment platform interface based on the confirmed payment information to generate a payment order and return a payment result, and if the payment result returned by the payment platform interface is that the order payment is successful, control the cloud application to respond to the first request through the cloud interface;

[0035] When receiving the corresponding information returned by the cloud application to the first request, the terminal displays the response information.

[0036] In a sixth aspect, an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the payment method for cloud applications provided in the above embodiment.

[0037] In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the payment method for cloud applications provided in the above embodiment are implemented.

[0038] In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the payment steps for cloud applications provided in the above embodiment are implemented.

[0039] It can be seen from the technical solution provided by the above embodiments of the present invention that the embodiments of the present invention trigger the cloud system to determine the corresponding target cloud application according to the first request by receiving the first request sent by the terminal, and transmit the first request to the cloud system through the cloud interface. Secondly, based on the mapping relationship between the preset user identity information and the cloud application, and the target cloud application corresponding to the first request, it is determined whether the terminal user corresponding to the first request is a paid terminal user. If so, the cloud application is controlled to respond to the first request; otherwise, a payment request corresponding to the unpaid terminal user is generated, and the payment request is sent to the terminal, thereby triggering the payment operation processing of the terminal, and then the payment confirmation information sent by the terminal is received, and the corresponding payment platform interface is called based on the payment confirmation information to generate a payment order and return the payment result. If the payment result returned by the payment platform interface is that the order payment is successful, the cloud application is controlled to respond to the first request through the cloud interface. In this way, when promoting and using cloud applications for different application objects, the embodiments of this specification determine whether the terminal user has paid based on the triggering of the first request of different terminals according to the preset mapping relationship, and generate payment requests for cloud applications in different regions to trigger the payment operation processing of the terminal, and call the payment platform interface corresponding to different terminals to confirm the payment result, and finally respond to the first request based on the payment result, thereby realizing a unified payment method for cloud applications when promoting different terminal applications, which is conducive to simplifying the payment process when promoting and using cloud applications, and realizing fast connection between different cloud applications and the payment platform interfaces corresponding to different terminals, which is conducive to improving the user's payment efficiency and user experience. In addition, since this unified payment method can effectively simplify the payment process, it is also conducive to shortening the development cycle of cloud applications and reducing development costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0041] Figure 1 A schematic diagram of a payment method for cloud applications according to the present invention;

[0042] Figure 2 This is a schematic diagram of a unified payment architecture for different application objects of the present invention;

[0043] Figure 3 A schematic diagram of another payment method for cloud applications according to the present invention;

[0044] Figure 4 A schematic diagram of the timing principle of data processing of the payment method for cloud applications of the present invention;

[0045] Figure 5 A schematic diagram of a flow chart of another payment method for cloud applications of the present invention;

[0046] Figure 6 A schematic diagram of a flow chart of another payment method for cloud applications of the present invention;

[0047] Figure 7 A schematic diagram of the structure of a payment device for cloud applications according to the present invention;

[0048] Figure 8 It is a structural schematic diagram of another payment device for cloud applications of the present invention;

[0049] Fig. 9 This is a schematic diagram of the structure of another payment device for cloud applications of the present invention;

[0050] Fig.10 The figure is a schematic structural diagram of an electronic device of the present invention. DETAILED DESCRIPTION

[0051] Embodiments of the present invention provide a payment method, system and electronic device for cloud applications.

[0052] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0053] Embodiment 1

[0054] like Figure 1 As shown, an embodiment of the present invention provides a payment method for cloud applications. The execution subject of the method may be a server, which may be an independent server or a server cluster composed of multiple servers. The method may specifically include the following steps:

[0055] In S102, a first request for starting a target cloud application is sent by a receiving terminal, and the first request is transmitted to a cloud system through a cloud interface. The first request is used to trigger the cloud system to determine a corresponding target cloud application according to the first request, and the target cloud application is set in the cloud system.

[0056] With the development and advancement of computer technology, cloud computing and artificial intelligence technology, the TVs commonly used in people's lives have begun to integrate diversified content such as fitness, games and watching online videos, and are presented in the form of "mobile cloud HD" services. Mobile cloud HD services are an ecosystem for terminal products to go to the cloud based on the combination of wireless computing power and end-cloud. In the embodiments of this specification, the cloud applications in the mobile cloud HD services are mainly paid cloud applications.

[0057] The cloud applications in the embodiments of this specification may include: online video applications, game applications, fitness applications and other applications, which are set in the cloud system. The target cloud application is the cloud application to be started by the terminal user. The terminal user in the embodiments of this specification is referred to as the user. The cloud system is the cloud OS (Operating System, operating system) system platform. The cloud OS platform is a top-level platform, which is connected to a large number of user terminals. The public data processing, storage, communication and other functions are integrated in the cloud platform, and the cloud platform provides a series of services to the outside. The cloud OS platform can provide concurrent processing of multiple tasks with its powerful processing core and excellent algorithms, which is suitable for large amounts of data calculations. Users connected to the cloud OS platform through the Internet can directly access the cloud OS platform by accessing a specific server IP address. In addition, users can also remotely view and download remote data through client software or browsers. The cloud system in the embodiments of this specification can choose to build or rent an existing cloud server based on specific application scenarios, user needs, usage efficiency and cost factors.

[0058] The architecture of the cloud OS platform can choose the C / S (Client / Server) mode, that is, the client-server mode, which places functions such as data processing and logical operations in the server, and only presents a part of the logical functions on the client, mainly based on the results of the processing. In the client-server mode, the client software is responsible for most of the business processing, and only sends data request messages to the server when certain specific data is required. Therefore, even if there is no connection with the server, the client software can independently complete most of the functions and has good business independence. When the client-server mode is performing data communication, the data transmission protocol can be freely defined, and even if the data packet is intercepted, the data body cannot be distinguished. Compared with other modes, the client in the client-server mode can effectively utilize the performance of the server where the client is located, has good business processing capabilities, and can realize complex function processing. In addition, the client can reduce the amount of data communication with the server, and is often used for large-scale data analysis and processing.

[0059] The server can be a server set up in the cloud. In implementation, the payment method can be implemented using the architecture of an "application hall". The application hall can be understood as a component set up in the cloud for performing data processing. The terminal can be a terminal device set up in different physical space locations (different regions, such as different provinces). It is the terminal user (i.e., the application object) who enables the cloud application based on the terminal device. Since there are differences in charging rules, development mechanisms, user concepts, and development trends in different regions for the same cloud application, the embodiments of this specification provide a payment method that can realize unified payment for the target cloud application based on different terminal devices.

[0060] The first request is used to trigger the cloud system to determine the corresponding target cloud application. In implementation, the first request can be generated based on the terminal user's paid cloud application instruction and request content.

[0061] In S104, based on the mapping relationship between the preset user identity information and the cloud application, and the target cloud application corresponding to the first request, it is determined whether the terminal user corresponding to the first request is a paid terminal user.

[0062] In implementation, the mapping relationship between the preset user identity information and the cloud application can be prepaid and set based on user needs, or it can be generated by binding the target cloud application and the user identity information of the terminal when the terminal user starts the target cloud application for the first time. The user identity information can be represented by a user ID, and the user identity information can include: user IP address, user name, and payment tag information for different cloud applications.

[0063] In S106, if the terminal user is a paying terminal user, the cloud application is controlled to respond to the first request.

[0064] If the server determines that the terminal user corresponding to the first request is a paid terminal user based on the mapping relationship between the preset user identity information and the cloud application, and the target cloud application corresponding to the first request, the cloud system is controlled to trigger the cloud application to respond to the first request according to the received first request, that is, the terminal user can receive and display the paid item corresponding to the first request through the terminal device, such as watching the online video corresponding to the target cloud application.

[0065] In S108, if the user is not a paid terminal user, a payment request corresponding to the unpaid terminal user is generated and sent to the terminal. The payment request is used to trigger the payment operation processing of the terminal.

[0066] If the server determines that the terminal user corresponding to the first request is not a paid terminal user based on the mapping relationship between the preset user identity information and the cloud application, and the target cloud application corresponding to the first request, it generates a payment request corresponding to the unpaid terminal user and sends the payment request to the terminal, thereby triggering the payment operation processing of the terminal. After the terminal user obtains the payment request through the terminal, the payment operation is completed through the terminal, and confirmation payment information (confirmation payment instruction) is generated at the terminal.

[0067] In S110, the payment confirmation information sent by the receiving terminal is called, and based on the payment confirmation information, the corresponding payment platform interface is called to generate a payment order and return the payment result.

[0068] After receiving the payment confirmation information from the terminal, the server calls the payment platform interface corresponding to the first request based on the payment confirmation information, thereby generating a payment order and a payment result, and then confirms whether the payment result of the terminal user is a successful payment through the payment platform interface. In this way, the server can call the corresponding payment platform interface to generate a payment order in a timely manner when promoting each cloud application on different terminal applications, thereby achieving a unified payment method and effectively improving the payment operation efficiency of cloud applications. The schematic diagram of the unified payment architecture for different application objects in the embodiments of this specification can be found in Figure 2 shown. Figure 2 The server is implemented in the form of an application hall architecture. One end of the application hall is connected to different cloud applications a, b, and c, and the other end of the application hall is connected to payment platform interfaces in different regions, for example: payment platform on the A province side and payment platform on the B province side.

[0069] In S112, if the payment result returned by the payment platform interface is that the order payment is successful, the cloud application is controlled to respond to the first request through the cloud interface.

[0070] If the payment result returned by the payment platform interface is that the order payment is successful, the server controls the cloud application to respond to the first request through the cloud interface, that is, the terminal device receives and displays the payment item corresponding to the first request. Otherwise, if the order payment is unsuccessful, the first request is rejected.

[0071] An embodiment of the present invention provides a payment method for cloud applications, which receives a first request sent by a terminal for starting a target cloud application, and transmits the first request to a cloud system through a cloud interface, thereby triggering the cloud system to determine the corresponding target cloud application according to the first request. Secondly, based on the mapping relationship between preset user identity information and cloud applications, and the target cloud application corresponding to the first request, it is determined whether the terminal user corresponding to the first request is a paid terminal user. If so, the cloud application is controlled to respond to the first request. Otherwise, a payment request corresponding to the unpaid terminal user is generated, and the payment request is sent to the terminal, thereby triggering the payment operation processing of the terminal. Then, the payment confirmation information sent by the terminal is received, and the corresponding payment platform interface is called based on the payment confirmation information to generate a payment order and return the payment result. If the payment result returned by the payment platform interface is that the order payment is successful, the cloud application is controlled to respond to the first request through the cloud interface. In this way, when the cloud application is promoted and used for different application objects, the embodiment of this specification determines whether the terminal user has paid based on the triggering of the first request of different terminals according to the preset mapping relationship, generates payment requests for cloud applications in different regions to trigger the payment operation processing of the terminal, and calls the payment platform interface corresponding to different terminals to confirm the payment result, and finally responds to the first request based on the payment result, thereby realizing a unified payment method for cloud applications when they are promoted on different terminals, which is conducive to simplifying the payment process when cloud applications are promoted, and realizing fast connection between different cloud applications and the payment platform interfaces corresponding to different terminals, which is conducive to improving the user's payment efficiency and user experience. In addition, since this unified payment method can effectively simplify the payment process, it is also conducive to shortening the development cycle of cloud applications and reducing development costs.

[0072] Embodiment 2

[0073] like Figure 3 As shown, an embodiment of the present invention provides a method, the execution subject of the method may be a server, and the server may be an independent server or a server cluster composed of multiple servers. The method may specifically include the following steps:

[0074] In S202, a second request for starting the target cloud application sent by the receiving terminal is transmitted to the cloud system through the cloud interface, wherein the second request is used to trigger the server to bind the target cloud application and the user identity information of the terminal, and generate a mapping relationship between the user identity information and the cloud application.

[0075] In implementation, step S202 may include the following processing steps A1-A2:

[0076] In step A1, a second request for starting a target cloud application sent by a receiving terminal is transmitted to the cloud system through a cloud interface, so that the cloud system triggers the target cloud application;

[0077] In step A2, based on the obtained second request and the target cloud application triggered by the cloud system, the target cloud application and the user identity information of the terminal are bound to generate a mapping relationship between the user identity information and the cloud application.

[0078] In addition, in the embodiments of this specification, the first request, the second request, the payment request, and the confirmation payment information are packaged and transmitted. In one implementation, the first request, the second request, the payment request, and the confirmation payment information can be packaged as corresponding information of json data, and the json data includes a key-value pair corresponding to the user instruction, an instruction identifier of the user instruction, a request code, and a request message.

[0079] In implementation, taking the example of a user opening a paid program (online video corresponding to the cloud application) on a TV terminal (terminal), based on the user's instruction, the TV terminal generates an instruction (first request) to open the paid program, and the instruction is sent to the application side (terminal) SDK interface in the form of a key-value pair. After receiving the key-value pair instruction, the application side SDK will splice it, splice the instruction identifier, request code, request message and other data, and then convert it into json data and send it to the application lobby. The application lobby initiates the payment process and returns the payment result to the application side SDK. The application side SDK receives the result and parses it and returns it to the user. After the user completes the payment, the application lobby requests the paid cloud application and presents the corresponding content to the TV terminal.

[0080] In the process of executing the first request, the second request, the payment request and confirming the payment information and other instruction data transmission between the server and the terminal, the above instruction data is encapsulated as json data for transmission, and the conversion of different data formats is realized by data encapsulation. This reduces the processing time for separate processing of different data formats when facing different objects, and can effectively improve the efficiency of data processing, thereby improving the payment efficiency.

[0081] Taking the first request as an example, in the process of executing instruction data transmission, the process of encapsulating the first request into json data can adopt the following processing process of steps B1-B5:

[0082] In step B1, a JSON object for storing key-value pairs is created;

[0083] In step B2, the instruction data sent by the terminal is received, and the instruction data is spliced ​​in a key-value pair manner to obtain an instruction key-value pair;

[0084] In step B3, the key value in the instruction key-value pair is added to the corresponding JSON object;

[0085] In step B4, the JSON object is converted into a string;

[0086] In step B5, the JSON string is sent to the application lobby (server).

[0087] In implementation, the process of encapsulating the first request, the second request, the payment request and the payment confirmation information into json data can be implemented based on Java language or Python language.

[0088] In the implementation based on Java language, first, create a JSON object by introducing the org.json.JSONObject class, and create a JSON object for storing key-value pairs through the method of "JSONObject json = new JSONObject();"; then, add the key value in the received instruction key-value pair to the corresponding JSON object by calling the put method; finally, convert the assigned JSON object into a string by calling the toString method, and send it to the application hall by printing output.

[0089] In the implementation based on Python language, the data encapsulation process can be performed by introducing the json module. First, construct the instruction data class according to the instruction data issued by the terminal, and create the corresponding instruction instance according to the instruction key-value pair; secondly, construct a conversion function to assign the instruction instance to the instruction data class; finally, use the dumps function to package the instruction key-value pair data into JSON data, and send it to the application lobby by printing output.

[0090] In S204, a first request for starting a target cloud application is sent by a receiving terminal, and the first request is transmitted to a cloud system through a cloud interface. The first request is used to trigger the cloud system to determine a corresponding target cloud application according to the first request, and the target cloud application is set in the cloud system.

[0091] In S206, based on the mapping relationship between the preset user identity information and the cloud application, and the target cloud application corresponding to the first request, it is determined whether the terminal user corresponding to the first request is a paid terminal user.

[0092] In S208, if yes, control the cloud application to respond to the first request.

[0093] In S210 , if not, a payment request corresponding to the unpaid terminal user is generated and sent to the terminal, where the payment request is used to trigger the payment operation processing of the terminal.

[0094] In S212, the payment confirmation information sent by the receiving terminal is called, and based on the payment confirmation information, the corresponding payment platform interface is called to generate a payment order and return the payment result.

[0095] In S214, if the payment result returned by the payment platform interface is that the order payment is successful, the cloud application is controlled to respond to the first request through the cloud interface.

[0096] The processing method of the above steps S204-S214 can refer to the processing method of steps S102-S112 in implementation 1, and will not be repeated here.

[0097] The schematic diagram of the data processing timing principle of the payment method for cloud applications in the embodiments of this specification can be found in Figure 4 , Figure 4 The process includes binding the target cloud application and the user identity information of the terminal, generating the mapping relationship between the user identity information and the cloud application, and the server is constructed in the form of an application lobby. Figure 4 It can be seen that when the terminal user activates the target cloud application for the first time, the terminal first generates a second request based on the user's instruction to open the cloud application, and sends the second request to the application hall. After receiving the second request, the application hall forwards the request to the cloud system through the cloud interface. The cloud system triggers the cloud application based on the received second request. After the cloud application is started, the application hall obtains and binds the user identity information of the terminal user based on the received second request. When the terminal user re-activates the target cloud application or is uncertain whether the terminal user is the target user who has been re-activated (that is, the terminal user may be a paying user), the terminal generates a first request based on the user's instruction to open the paid item, and sends the first request to the application hall. After receiving the first request, the application hall forwards the request to the cloud system through the cloud interface, and determines whether the current user is a paying user based on the received first request and the user identity information. If the current user is a paying user, the cloud application responds to the corresponding paid content. If the current user is not a paying user, a payment request is generated and the payment interface is presented to the terminal user through the application hall. After the terminal user performs payment processing on the payment interface, confirmation payment information is generated and transmitted to the application hall. After receiving the confirmation payment information, the application hall calls the payment platform interface of the region corresponding to the terminal, generates a payment order and returns the payment result. Finally, the application hall determines the returned payment result. If the payment result is that the order payment is successful, the application hall calls the communication interface of the cloud system (cloud interface) to inform the cloud application of the payment success. The cloud application responds to the first request, and the terminal user receives the paid content through the terminal.

[0098] In the embodiment of the present specification, the payment method further includes: detecting abnormal data in the cloud application payment task through a monitoring thread, and triggering data query processing based on the detected abnormal data.

[0099] Specifically, during the data transmission process between the server and the terminal, a dual-thread processing method of a payment thread and a listening thread is adopted, and the data transmission processing of the cloud application payment task is executed through the payment thread, and abnormal data in the cloud application payment task is detected through the listening thread, and data query processing is triggered based on the detected abnormal data. Among them, the data transmission processing process of the cloud application payment task includes: receiving a first request sent by the terminal for starting the target cloud application and transmitting the first request to the cloud system through the cloud interface, when the terminal user corresponding to the first request is a paying terminal user, controlling the cloud application to respond to the first request, sending the payment request to the terminal, receiving the payment confirmation information sent by the terminal, and calling the corresponding payment platform interface based on the payment confirmation information, and when the payment result returned by the payment platform interface is that the order payment is successful, controlling the cloud application to respond to the first request through the cloud interface.

[0100] In implementation, in the process of executing different cloud applications and terminal payment interactions based on the constructed application hall, when a payment task is triggered, when the terminal user clicks on a paid program (the terminal user issues a payment item instruction), the terminal generates a first request and creates a payment thread (main thread) for payment interaction, executes the issuance of the first request, and at the same time continuously listens and receives the synchronous return result of the payment task through the listening thread (secondary thread). If the return value is displayed as asynchronous, a listener is used in the payment thread to observe data changes. When there is an asynchronous return value change, a query request is triggered to query the asynchronous return value, and abnormal data analysis is performed based on the asynchronous return value.

[0101] By adopting a dual-thread processing method of payment thread and listening thread, different working threads are used to execute the instruction issuance processing and data interaction processing, thereby distinguishing different tasks, which can effectively prevent thread blocking caused by concurrent execution of tasks and program crash caused by thread blocking, which is conducive to improving the stability and efficiency of data processing. In addition, in the above dual-thread processing method, the asynchronous method is used to monitor the results returned synchronously, and the data changes are monitored through the listener. When the data changes, the return value is queried, which can effectively avoid repeated queries, reduce performance consumption, and reduce hardware performance requirements, which is also conducive to improving data processing efficiency and payment efficiency.

[0102] Embodiment 3

[0103] like Figure 5As shown, the embodiment of the present invention provides another payment method for cloud applications. The execution subject of the method can be a terminal (terminal device), which can be a certain terminal device such as a mobile phone, a tablet computer, or a computer device such as a laptop or a desktop computer, or an IoT device (specifically a smart watch, a car device, etc.). The method can specifically include the following steps:

[0104] In S302, based on the acquired user instruction, a first request for starting the target cloud application is generated, and the first request is sent to the server.

[0105] The user instruction obtained may be an instruction to open a paid item, and the terminal generates a first request based on the instruction, wherein the first request is used to trigger the server to transmit the first request to the cloud system through the cloud interface, and the first request is also used to trigger the cloud system to determine the corresponding target cloud application based on the first request, and the first request is also used to trigger the server to determine whether the terminal user corresponding to the first request is a paid terminal user based on the mapping relationship between preset user identity information and the cloud application.

[0106] In S304, if a payment terminal user instruction sent by the server is received, response information of the cloud application to the first request is displayed.

[0107] When the server determines that the corresponding terminal user is a paid terminal user based on the first request, the server generates a paid terminal user instruction. At this time, the cloud application responds to the first request. Correspondingly, the terminal displays the response information of the cloud application to the first request, that is, the terminal displays the paid content returned by the cloud application in response to the first request.

[0108] In S306, if a payment request corresponding to the unpaid terminal user sent by the server is received, a payment operation is processed based on the payment request.

[0109] When the server determines that the corresponding terminal user is an unpaid terminal user based on the first request, the server generates a payment request corresponding to the unpaid terminal user and sends it to the terminal, and the terminal performs payment operation processing based on the payment request.

[0110] In S308, confirmation payment information is generated based on the result of the payment operation processing and sent to the server. The confirmation payment information is used to trigger the server to call the corresponding payment platform interface based on the confirmation payment information to generate a payment order and return the payment result, and determine whether to respond to the first request based on the returned payment result.

[0111] In S310, when corresponding information returned by the cloud application to the first request is received, the response information is displayed.

[0112] The operations performed by the terminal in step S304 and step S310 are both to display paid content. The difference is that in step S304, when the server determines that the corresponding terminal user is a paid terminal user based on the first request, the paid content is directly displayed through the response of the cloud application, while in step S310, after the non-paying user has successfully paid and converted into a paying user, the paid content is displayed through the response of the cloud application.

[0113] In this embodiment, the parts not described in detail can refer to the processing of the first embodiment and will not be described again here.

[0114] Embodiment 4

[0115] like Figure 6 As shown, an embodiment of the present invention provides another payment method for cloud applications. The execution subject of the method can be a terminal (terminal device), which can be a certain terminal device such as a mobile phone, a tablet computer, or a computer device such as a laptop or a desktop computer, or an IoT device (specifically a smart watch, a car-mounted device, etc.). The method can specifically include the following steps:

[0116] In S402, a second request for starting the target cloud application is generated and sent to the server. The second request is used to trigger the server to bind the target cloud application and the user identity information of the terminal, and generate a mapping relationship between the user identity information and the cloud application.

[0117] In S404, based on the acquired user instructions, a first request for starting the target cloud application is generated and sent to the server. The first request is used to trigger the server to transmit the first request to the cloud system through the cloud interface, trigger the cloud system to determine the corresponding target cloud application according to the first request, and trigger the server to determine whether the terminal user corresponding to the first request is a paid terminal user based on the mapping relationship between the preset user identity information and the cloud application.

[0118] In S406, if a payment terminal user instruction sent by the server is received, the response information of the cloud application to the first request is displayed.

[0119] In S408, if a payment request corresponding to the unpaid terminal user sent by the server is received, a payment operation is processed based on the payment request.

[0120] In S410, confirmation payment information is generated based on the result of the payment operation processing and sent to the server. The confirmation payment information is used to trigger the server to call the corresponding payment platform interface based on the confirmation payment information to generate a payment order and return the payment result, and determine whether to respond to the first request based on the returned payment result.

[0121] In S412, when corresponding information returned by the cloud application in response to the first request is received, the response information is displayed.

[0122] In the embodiment of this specification, the first request, the second request, the payment request and the payment confirmation information are packaged and transmitted. Specifically, the first request, the second request, the payment request and the payment confirmation information can be packaged into json data, and then the data transmission processing is performed based on the packaged json data.

[0123] In the embodiments of this specification, during the data transmission process between the server and the terminal, a dual-thread processing method of a payment thread and a listening thread is adopted, the data transmission processing of the cloud application payment task is performed through the payment thread, the abnormal data in the cloud application payment task is detected through the listening thread, and data query processing is triggered based on the detected abnormal data. Among them, the data transmission processing process of the cloud application payment task includes: sending a first request to the server, if a payment request corresponding to an unpaid terminal user sent by the server is received, the payment operation processing is performed based on the payment request, and the payment confirmation information is sent to the server, if a payment terminal user instruction sent by the server is received or the response information returned by the cloud application to the first request is received, the response information of the cloud application to the first request is displayed.

[0124] For the parts not described in detail in the embodiments of this specification, please refer to the contents of Embodiments 1 to 4, which will not be repeated here.

[0125] Embodiment 5

[0126] The above is a payment method for cloud applications provided by an embodiment of the present invention. Based on the same idea, an embodiment of the present invention also provides a payment device for cloud applications. The payment device is used for a server, such as Figure 7 shown.

[0127] The payment device for cloud applications includes: a first request receiving module 510, a payment determination module 520, a first control module 530 and a second control module 540, wherein:

[0128] A first request receiving module 510 is used to receive a first request sent by a terminal for starting a target cloud application, and transmit the first request to a cloud system through a cloud interface, wherein the first request is used to trigger the cloud system to determine a corresponding target cloud application according to the first request, and the target cloud application is set in the cloud system;

[0129] The payment determination module 520 is used to determine whether the terminal user corresponding to the first request is a paid terminal user based on the mapping relationship between the preset user identity information and the cloud application, and the target cloud application corresponding to the first request;

[0130] The first control module 530 is used to control the cloud application to respond to the first request if the terminal user corresponding to the first request is a paid terminal user, and to generate a payment request corresponding to the unpaid terminal user if the terminal user corresponding to the first request is not a paid terminal user, and send the payment request to the terminal, where the payment request is used to trigger the payment operation processing of the terminal;

[0131] The second control module 540 is used to receive the payment confirmation information sent by the terminal, and call the corresponding payment platform interface based on the payment confirmation information to generate a payment order and return the payment result. If the payment result returned by the payment platform interface is that the order payment is successful, the cloud application is controlled through the cloud interface to respond to the first request.

[0132] In the embodiment of the present specification, the second control module 540 is further configured to refuse to respond to the first request if the payment result transmitted back by the payment platform interface indicates that the order payment is unsuccessful.

[0133] In an embodiment of the present specification, the payment device for cloud applications also includes: a second request receiving module, which is used to receive a second request sent by the terminal for starting the target cloud application, and transmit the second request to the cloud system through the cloud interface, and the second request is used to trigger the server to bind the user identity information of the target cloud application and the terminal, and generate a mapping relationship between the user identity information and the cloud application.

[0134] In the embodiment of the present specification, the payment device for cloud applications also includes: a data encapsulation module, which is used to encapsulate the first request, the second request, the payment request and the confirmation payment information into corresponding information of json data.

[0135] In the embodiment of the present specification, the payment device for cloud-based applications further includes: a monitoring module, which is used to detect abnormal data in cloud-based application payment tasks through a monitoring thread, and trigger data query processing based on the detected abnormal data.

[0136] For the parts not described in detail in this embodiment, please refer to the contents of Embodiment 1 and Embodiment 2, which will not be described again here.

[0137] Embodiment 6

[0138] The above is a payment method for cloud applications provided by an embodiment of the present invention. Based on the same idea, an embodiment of the present invention also provides another payment device for cloud applications. The payment device is used in a terminal, such as Figure 8 shown.

[0139] The payment device for cloud-based applications includes: a first request generation module 610, a display module 620, a payment module 630 and a first payment confirmation information generation module 640, wherein:

[0140] A first request generating module 610 is used to generate a first request for starting a target cloud application based on the acquired user instruction, and send the first request to the server, wherein the first request is used to trigger the server to transmit the first request to the cloud system through the cloud interface, so that the cloud system determines the corresponding target cloud application according to the first request, and triggers the server to determine whether the terminal user corresponding to the first request is a paid terminal user based on the mapping relationship between the preset user identity information and the cloud application;

[0141] The display module 620 is used to display the response information of the cloud application to the first request when receiving the payment terminal user instruction sent by the server;

[0142] The payment module 630 is used to perform payment operation processing based on the payment request when receiving the payment request corresponding to the unpaid terminal user sent by the server;

[0143] A payment confirmation information generation module 640 is used to generate payment confirmation information based on the result of the payment operation processing, and send the payment confirmation information to the server. The payment confirmation information is used to trigger the server to call the corresponding payment platform interface based on the payment confirmation information to generate a payment order and return the payment result, and determine whether to respond to the first request based on the returned payment result;

[0144] The display module 620 is further configured to display response information when corresponding information returned by the cloud application to the first request is received.

[0145] In an embodiment of the present specification, the payment device for cloud applications also includes: a second request generation module, used to generate a second request to start the target cloud application, and send the second request to the server, the second request is used to trigger the server to bind the target cloud application and the user identity information of the terminal, and generate a mapping relationship between the user identity information and the cloud application.

[0146] For the parts not described in detail in this embodiment, please refer to the contents of Embodiment 3 and Embodiment 4, which will not be described again here.

[0147] Embodiment 7

[0148] The above is a payment method for cloud applications provided by an embodiment of the present invention. Based on the same idea, an embodiment of the present invention also provides a payment system for cloud applications, such as Fig. 9 shown.

[0149] The payment system for cloud applications includes a terminal 710 and a server 720, wherein:

[0150] The terminal 710 is used to generate a first request for starting a target cloud application based on the acquired user instruction, and send the first request to the server, where the target cloud application is set in the cloud system;

[0151] Server 720 is configured to transmit the first request to the cloud system through the cloud interface based on the received first request, control the cloud system to determine the corresponding target cloud application according to the first request, and, based on the mapping relationship between the preset user identity information and the cloud application and the target cloud application corresponding to the first request, determine whether the terminal user corresponding to the first request is a paid terminal user, if it is a paid terminal user, control the cloud application to respond to the first request, and if it is not a paid terminal user, generate a payment request corresponding to the unpaid terminal user, and send the payment request to the terminal;

[0152] Terminal 710 is used to display the response information of the cloud application to the first request when receiving the payment terminal user instruction sent by the server, and when receiving the payment request corresponding to the unpaid terminal user sent by the server, perform payment operation processing based on the payment request, generate confirmation payment information based on the result of the payment operation processing, and send the confirmation payment information to the server;

[0153] Server 720, used to call the corresponding payment platform interface based on the confirmed payment information to generate a payment order and return the payment result. If the payment result returned by the payment platform interface is that the order payment is successful, the cloud application is controlled to respond to the first request through the cloud interface;

[0154] The terminal 710 is used to display the response information when receiving the corresponding information returned by the cloud application to the first request.

[0155] In the embodiment of the present specification, the server 720 is also used to refuse to respond to the first request if the payment result returned by the payment platform interface is that the order payment is unsuccessful.

[0156] In the embodiment of the present specification, the terminal 710 is further used to generate a second request for starting the target cloud application, and send the second request to the server.

[0157] In an embodiment of the present specification, the server 720 is also used to receive a second request sent by the terminal for starting a target cloud application, and transmit the second request to the cloud system through a cloud interface so that the cloud system triggers the target cloud application, and, based on the obtained second request and the target cloud application triggered by the cloud system, bind the user identity information of the target cloud application and the terminal, and generate a mapping relationship between the user identity information and the cloud application.

[0158] In the embodiment of the present specification, the payment system for cloud applications also includes: a data encapsulation module, which is used to encapsulate the first request, the second request, the payment request and the confirmation payment information into corresponding information of json data.

[0159] In an embodiment of the present specification, the payment system for cloud applications also includes: a dual-thread control module, which is used to perform data transmission processing of cloud application payment tasks through a payment thread, detect abnormal data in cloud application payment tasks through a monitoring thread, and trigger data query processing based on the detected abnormal data.

[0160] In the embodiment of this specification, the dual-thread control module includes:

[0161] A first payment thread unit is provided in the server 720, and is used to receive a first request sent by a terminal for starting a target cloud application and transmit the first request to a cloud system through a cloud interface, control the cloud application to respond to the first request when the terminal user corresponding to the first request is a paying terminal user, send a payment request to the terminal, receive payment confirmation information sent by the terminal, and call a corresponding payment platform interface based on the payment confirmation information, and control the cloud application to respond to the first request through the cloud interface when the payment result returned by the payment platform interface is that the order payment is successful;

[0162] The second payment thread unit is provided in the terminal 710, and is used to send the first request to the server, and if a payment request corresponding to an unpaid terminal user sent by the server is received, the payment operation is processed based on the payment request, and the payment confirmation information is sent to the server, and if a payment terminal user instruction sent by the server is received or a response information returned by the cloud application to the first request is received, the response information of the cloud application to the first request is displayed;

[0163] The monitoring thread unit is used to detect abnormal data in the cloud application payment task through the monitoring thread, and trigger data query processing based on the detected abnormal data.

[0164] Embodiment 8

[0165] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement various embodiments of the present invention, the electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art can understand that Fig.10The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

[0166] The processor 810 is used to: receive a first request sent by the terminal for starting a target cloud application, and transmit the first request to the cloud system through a cloud interface, wherein the first request is used to trigger the cloud system to determine a corresponding target cloud application according to the first request, and the target cloud application is set in the cloud system;

[0167] Based on the mapping relationship between the preset user identity information and the cloud application, and the target cloud application corresponding to the first request, determining whether the terminal user corresponding to the first request is a paid terminal user;

[0168] If yes, controlling the cloud application to respond to the first request;

[0169] If not, generate a payment request corresponding to the unpaid terminal user and send the payment request to the terminal, the payment request is used to trigger the payment operation processing of the terminal;

[0170] The receiving terminal sends the confirmation payment information, and based on the confirmation payment information, calls the corresponding payment platform interface to generate a payment order and return the payment result;

[0171] If the payment result returned by the payment platform interface is that the order payment is successful, the cloud application is controlled through the cloud interface to respond to the first request.

[0172] Processor 810 is also used to: receive a second request sent by the terminal for starting the target cloud application, and transmit the second request to the cloud system through the cloud interface, the second request is used to trigger the server to bind the target cloud application and the user identity information of the terminal, and generate a mapping relationship between the user identity information and the cloud application, wherein the first request, the second request, the payment request and the payment confirmation information are corresponding information encapsulated as json data.

[0173] The processor 810 is further configured to: detect abnormal data in the cloud application payment task through a monitoring thread, and trigger data query processing based on the detected abnormal data.

[0174] It should be understood that in the embodiment of the present invention, the radio frequency unit 801 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 810 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 801 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 801 can also communicate with the network and other electronic devices through a wireless communication system.

[0175] The electronic device provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0176] The audio output unit 803 can convert the audio data received by the RF unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output it as sound. Moreover, the audio output unit 803 can also provide audio output related to a specific function performed by the electronic device 800 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, etc.

[0177] The input unit 804 is used to receive audio or video signals. The input unit 804 may include a graphics processor (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 806. The image frame processed by the graphics processor 8041 can be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 801 in the case of a telephone call mode.

[0178] The electronic device 800 also includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 8061 and / or the backlight when the electronic device 800 is moved to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 805 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0179] The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0180] The user input unit 807 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 8071 or near the touch panel 8071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 8071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 810, receives the command sent by the processor 810 and executes it. In addition, the touch panel 8071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 8071, the user input unit 807 may also include other input devices 8072. Specifically, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.

[0181] Furthermore, the touch panel 8071 may be overlaid on the display panel 8061. When the touch panel 8071 detects a touch operation on or near it, it transmits the information to the processor 710 to determine the type of the touch event. Then, the processor 710 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Fig.10 In the figure, the touch panel 8071 and the display panel 8061 are used as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.

[0182] The interface unit 808 is an interface for connecting an external device to the electronic device 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 800 or may be used to transmit data between the electronic device 800 and an external device.

[0183] The memory 809 can be used to store software programs and various data. The memory 809 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 809 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0184] The processor 810 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 809 and calling data stored in the memory 809, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 810.

[0185] The electronic device 800 may also include a power supply 811 (such as a battery) for supplying power to each component. Preferably, the power supply 811 may be logically connected to the processor 810 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0186] Preferably, an embodiment of the present invention further provides an electronic device, comprising a processor 810, a memory 809, and a computer program stored in the memory 809 and executable on the processor 810. When the computer program is executed by the processor 810, the various processes of the above-mentioned payment method embodiment for cloud applications are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0187] Embodiment 9

[0188] An embodiment of the present invention further provides a computer program. When the computer program is executed by a processor, it implements the various processes of the above-mentioned payment method embodiment for cloud applications and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0189] Embodiment 10

[0190] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the payment method embodiment for cloud applications is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0191] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0192] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0193] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0194] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0195] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0196] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0197] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0198] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.

[0199] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0200] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A payment method for cloud applications, characterized in that: Applied to a server, the method comprises: A first request for starting a target cloud application sent by a receiving terminal is transmitted to the cloud system through a cloud interface, wherein the first request is used to trigger the cloud system to determine a corresponding target cloud application according to the first request, and the target cloud application is set in the cloud system; Based on the preset mapping relationship between the user identity information and the cloud application, and the target cloud application corresponding to the first request, determining whether the terminal user corresponding to the first request is a paid terminal user; If yes, controlling the cloud application to respond to the first request; If not, generating a payment request corresponding to the unpaid terminal user, and sending the payment request to the terminal, the payment request is used to trigger the payment operation processing of the terminal; The receiving terminal sends the confirmation payment information, and based on the confirmation payment information, calls the corresponding payment platform interface to generate a payment order and returns the payment result; If the payment result returned by the payment platform interface is that the order payment is successful, the cloud application is controlled to respond to the first request through the cloud interface.

2. The method according to claim 1, characterized in that Before receiving a first request sent by a terminal for starting a target cloud application and transmitting the first request to the cloud system through a cloud interface, the method further includes: A second request for starting a target cloud application sent by a receiving terminal is transmitted to the cloud system through a cloud interface, wherein the second request is used to trigger the server to bind the target cloud application and the user identity information of the terminal, and generate a mapping relationship between the user identity information and the cloud application, wherein the first request, the second request, the payment request and the payment confirmation information are corresponding information encapsulated as json data.

3. The method according to claim 1, characterized in that The method further comprises: Abnormal data in cloud application payment tasks is detected through the monitoring thread, and data query processing is triggered based on the detected abnormal data.

4. A payment method for cloud applications, characterized in that: Applied to a terminal, the method comprises: Based on the acquired user instruction, a first request for starting the target cloud application is generated, and the first request is sent to the server, wherein the first request is used to trigger the server to transmit the first request to the cloud system through the cloud interface, trigger the cloud system to determine the corresponding target cloud application according to the first request, and trigger the server to determine whether the terminal user corresponding to the first request is a paid terminal user based on the mapping relationship between the preset user identity information and the cloud application; If a payment terminal user instruction sent by the server is received, displaying the response information of the cloud application to the first request; If a payment request corresponding to an unpaid terminal user sent by the server is received, a payment operation is processed based on the payment request; Generate confirmation payment information based on the result of the payment operation processing, and send the confirmation payment information to the server, the confirmation payment information is used to trigger the server to call the corresponding payment platform interface based on the confirmation payment information to generate a payment order and return the payment result, and determine whether to respond to the first request based on the returned payment result; When response information returned by the cloud application to the first request is received, the response information is displayed.

5. A payment device for cloud applications, characterized in that: The device comprises: A first request receiving module, used for receiving a first request sent by a terminal for starting a target cloud application, and transmitting the first request to the cloud system through a cloud interface, wherein the first request is used to trigger the cloud system to determine a corresponding target cloud application according to the first request, and the target cloud application is set in the cloud system; a payment determination module, configured to determine whether a terminal user corresponding to the first request is a paid terminal user based on a mapping relationship between preset user identity information and cloud applications, and a target cloud application corresponding to the first request; a first control module, configured to control the cloud application to respond to the first request if the terminal user corresponding to the first request is a paid terminal user, and to generate a payment request corresponding to an unpaid terminal user if the terminal user corresponding to the first request is not a paid terminal user, and to send the payment request to the terminal, wherein the payment request is used to trigger a payment operation process of the terminal; The second control module is used to receive the payment confirmation information sent by the terminal, and call the corresponding payment platform interface based on the payment confirmation information to generate a payment order and return the payment result. If the payment result returned by the payment platform interface is that the order payment is successful, the cloud application is controlled through the cloud interface to respond to the first request.

6. A payment device for cloud applications, characterized in that: The device comprises: A first request generation module is used to generate a first request for starting a target cloud application based on the acquired user instruction, and send the first request to the server, wherein the first request is used to trigger the server to transmit the first request to the cloud system through a cloud interface, so that the cloud system determines the corresponding target cloud application according to the first request, and triggers the server to determine whether the terminal user corresponding to the first request is a paid terminal user based on a mapping relationship between preset user identity information and cloud applications; A display module, configured to display the response information of the cloud application to the first request upon receiving the payment terminal user instruction sent by the server; A payment module, configured to, upon receiving a payment request corresponding to an unpaid terminal user sent by the server, perform a payment operation based on the payment request; a payment confirmation information generation module, configured to generate payment confirmation information based on the result of the payment operation processing, and send the payment confirmation information to the server, wherein the payment confirmation information is used to trigger the server to call the corresponding payment platform interface based on the payment confirmation information to generate a payment order and return the payment result, and determine whether to respond to the first request based on the returned payment result; The display module is further configured to display the response information when receiving corresponding information returned by the cloud application to the first request.

7. A payment system for cloud applications, characterized in that: The payment system comprises a terminal and a server, wherein: The terminal is used to generate a first request for starting a target cloud application based on the acquired user instruction, and send the first request to the server, wherein the target cloud application is set in the cloud system; The server is configured to transmit the first request to the cloud system through a cloud interface based on the received first request, control the cloud system to determine a corresponding target cloud application according to the first request, and, based on a mapping relationship between preset user identity information and cloud applications and the target cloud application corresponding to the first request, determine whether a terminal user corresponding to the first request is a paid terminal user, if the terminal user is a paid terminal user, control the cloud application to respond to the first request, and if the terminal user is not a paid terminal user, generate a payment request corresponding to an unpaid terminal user, and send the payment request to the terminal; The terminal is configured to display the response information of the cloud application to the first request when receiving the instruction of the payment terminal user sent by the server, and to perform payment operation processing based on the payment request when receiving the payment request corresponding to the unpaid terminal user sent by the server, and to generate confirmation payment information based on the result of the payment operation processing, and to send the confirmation payment information to the server; The server is configured to call the corresponding payment platform interface based on the confirmed payment information to generate a payment order and return a payment result, and if the payment result returned by the payment platform interface is that the order payment is successful, control the cloud application to respond to the first request through the cloud interface; The terminal is used to display the response information returned by the cloud application to the first request when receiving the response information.

8. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the payment method for cloud applications as described in any one of claims 1 to 3 or claim 4 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the payment method for cloud applications as described in any one of claims 1 to 3 or claim 4 are implemented.

10. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the payment method for cloud applications as described in any one of claims 1 to 3 or claim 4.