Method and device for acquiring payment user in hybrid cloud environment
By using public cloud to obtain payment user information and completing H5 page access in a hybrid cloud environment, the problem of obtaining payment user information and placing orders caused by private cloud network restrictions in smart parking projects is solved.
Patent Information
- Application Number
- CN202411950673.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-05-13
AI Technical Summary
In the smart parking project, the private cloud cannot scan the code to access the page due to network restrictions, resulting in the inability to obtain third-party payment user information and complete orders.
In a hybrid cloud environment, a series of steps are performed through the public cloud: allocate the application ID, merchant ID and key information of the public cloud address requested by the private cloud, obtain the page address parameter information, obtain payment user information and cache it, generate an identity and send it to the private cloud, so that the private cloud can obtain the cached payment user information through the identity.
It realizes the acquisition of payment user information and completion of H5 page access in a hybrid cloud environment, and solves the problems of obtaining payment user information and placing orders caused by the restrictions on private cloud networks.
Smart Images

Figure CN119996515A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of smart parking, and specifically relates to a method and device for acquiring paying users in a hybrid cloud environment. Background Art
[0002] Smart parking has been widely popularized in the market, and city-level smart parking projects are emerging one after another. However, most city-level smart parking projects are government-invested projects. Parking cloud platforms need to be privately deployed and have extremely high security requirements. Privately deployed cloud services will limit the opening of ports 80 and 443 in most cases, that is, the external network cannot access the 80 and 443 ports of the private cloud. At the same time, private cloud services have IP restrictions and other protection measures for accessing the external network. This type of security protection has caused great difficulties for payment users who need to access WeChat / Alipay channels on the public network and access h5 pages to pay and place orders. However, online payment is the core content of smart parking projects. If online payment cannot be achieved, city-level smart parking projects will not be delivered. Summary of the invention
[0003] The purpose of the present invention is to overcome the above problems and provide a method and device for obtaining payment users in a hybrid cloud environment. The present invention effectively solves the problem that private clouds cannot scan codes to access pages, obtain third-party payment user information and place orders due to network restrictions.
[0004] In order to achieve the above purpose, the technical solution adopted by the present invention is:
[0005] In one aspect, the present invention provides a method for acquiring a paying user in a hybrid cloud environment, comprising a public cloud executing the following steps:
[0006] Allocate the application ID, merchant ID, and key information of the private cloud requesting the public cloud address;
[0007] Get the page address parameter information sent by the private cloud;
[0008] Obtain payment user information from the payment platform, cache the payment user information, and generate a self-owned identifier that can obtain payment user information from the public cloud;
[0009] Based on the page address parameter information, sending the identifier to a private cloud;
[0010] Obtain the identifier of the payment user information obtained by the private cloud;
[0011] Based on the identifier, the cached payment user information is obtained, and the payment user information is sent to the private cloud; wherein the payment user information includes an application ID, a merchant ID, a tcode, and a signature parameter.
[0012] As a further improvement, including the public cloud also performs the following steps:
[0013] Based on the configuration of the payment platform, the authorization information is sent to the payment platform.
[0014] As a further improvement, including the public cloud also performs the following steps:
[0015] The page address parameter information sent by the private cloud is obtained, and the page address parameter information is cached in the first interface of the public cloud.
[0016] As a further improvement, the obtaining of payment user information from the payment platform and caching of the payment user information comprises the following steps:
[0017] The code information returned by the payment platform is obtained, and the payment user information in the code information is saved in the second interface of the public cloud.
[0018] As a further improvement, sending the identifier to a private cloud based on the page address parameter information includes the following steps:
[0019] Based on the page address parameter information of the private cloud, the second interface of the public cloud carries the identifier and sends it to the private cloud.
[0020] As a further improvement, obtaining the cached payment user information based on the identifier and sending the payment user information to a private cloud includes the following steps:
[0021] The third interface of the public cloud receives the identifier;
[0022] Based on the identifier, obtaining the cached payment user information from the second interface;
[0023] The payment user information is sent to a private cloud; wherein the payment user information includes application ID, merchant ID, tcode and signature parameters.
[0024] On the other hand, the present invention provides a method for acquiring a paying user in a hybrid cloud environment, comprising a private cloud executing the following steps:
[0025] Obtain an identifier that can obtain payment user information from the public cloud;
[0026] Sending a request to obtain payment user information to the public cloud through the identifier;
[0027] Obtain payment user information, and send the payment user information to the client.
[0028] As a further improvement, including a private cloud also performs the following steps:
[0029] Send page address parameter information to the public cloud.
[0030] As a further improvement, the step of sending a request for obtaining payment user information to a public cloud through the identifier includes the following steps:
[0031] Through the identifier, a request for obtaining payment user information is sent to the third interface of the public cloud.
[0032] On the other hand, the present invention also provides a device for acquiring paying users in a hybrid cloud environment, wherein the public cloud and private cloud of the device both include at least one processor, and a memory storing instructions, and when the instructions are executed by at least one processor, the method in the above technical solution is implemented.
[0033] A computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method described in the steps of the above technical solution.
[0034] A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method described in the steps of the above technical solution is implemented.
[0035] The beneficial effects of the present invention are as follows: the present invention uses the public cloud to complete the h5 page access and payment user information acquisition that the private cloud cannot complete; it solves the problem that the private cloud cannot access the domain name on the WeChat / Alipay platform configuration page, and at the same time obtains the payment user information required for placing an order and the normal use of WeChat and Alipay to scan the code to enter the h5 page; in a hybrid cloud environment, the payment user information is obtained, which effectively solves the problem that the private cloud cannot scan the code to access the page, obtain third-party payment user information and place an order due to network restrictions. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The present invention has the following accompanying drawings:
[0037] Figure 1 It is a flowchart of a public cloud of a method for acquiring a paying user in a hybrid cloud environment in some specific embodiments of the present invention;
[0038] Figure 2 It is a flowchart of a private cloud of a method for acquiring a paying user in a hybrid cloud environment in some specific embodiments of the present invention;
[0039] Figure 3 It is a flowchart of a process in which a private cloud in a hybrid cloud uses a public cloud to obtain payment user information in some specific embodiments of the present invention;
[0040] Figure 4 A schematic diagram of a device for acquiring a paying user in a hybrid cloud environment of the present invention. DETAILED DESCRIPTION
[0041] The following examples further illustrate the content of the present invention, but should not be construed as limiting the present invention. Without departing from the spirit and substance of the present invention, modifications or substitutions made to the methods, steps or conditions of the present invention all fall within the scope of the present invention.
[0042] like Figure 1 As shown, the present invention provides a method for acquiring a paying user in a hybrid cloud environment, comprising a public cloud executing the following steps:
[0043] Obtaining the page address parameter information sent by the private cloud; wherein, before obtaining the page address parameter information sent by the private cloud, allocating the application ID, merchant ID and key information of the private cloud requesting the public cloud address;
[0044] Obtain payment user information from the payment platform, cache the payment user information, and generate a self-owned identifier that can obtain payment user information from the public cloud;
[0045] Based on the page address parameter information, sending the identifier to a private cloud;
[0046] Obtain the identifier of the payment user information obtained by the private cloud;
[0047] Based on the identifier, the cached payment user information is obtained, and the payment user information is sent to a private cloud.
[0048] In some embodiments of the present invention, the public cloud further performs the following steps:
[0049] Based on the configuration of the payment platform, the authorization information is sent to the payment platform.
[0050] In some embodiments of the present invention, the public cloud further performs the following steps:
[0051] The page address parameter information sent by the private cloud is obtained, and the page address parameter information is cached in the first interface of the public cloud.
[0052] Obtaining payment user information from a payment platform and caching the payment user information includes the following steps:
[0053] The code information returned by the payment platform is obtained, and the payment user information in the code information is saved in the second interface of the public cloud.
[0054] Based on the page address parameter information, the identifier is sent to a private cloud, including the following steps:
[0055] Based on the page address parameter information of the private cloud, the second interface of the public cloud carries the identifier and sends it to the private cloud.
[0056] Based on the identifier, obtaining the cached payment user information and sending the payment user information to a private cloud includes the following steps:
[0057] The third interface of the public cloud receives the identifier;
[0058] Based on the identifier, obtaining the cached payment user information from the second interface;
[0059] The payment user information is sent to a private cloud; wherein the payment user information includes application ID, merchant ID, tcode and signature parameters.
[0060] For example, when the private cloud is initialized, it will apply to the public cloud for a set of parameters to call the public cloud interface to obtain user information. This set of parameters includes application ID, merchant ID, and key. The merchant ID is the merchant data ID that the private cloud applies to the public cloud, and is the unique identifier of the public cloud merchant table; the application ID is the application ID identifier randomly generated for the merchant. Through the merchant ID and application ID, the public cloud can find the key assigned to the merchant and application in the merchant table, and then perform signature verification. When the private cloud requests the public cloud interface, it needs to bring the merchant ID and application ID, and sign all interface parameters (excluding signature parameters). After receiving the request, the public cloud will find the corresponding key information through the merchant ID and application ID, sign the non-signature parameters, and compare the signature with the signature parameters for verification. If the signature verification fails, it will directly return failure. If the signature verification succeeds, it will continue.
[0061] tcode is a unique identifier randomly generated by the public cloud. Through this identifier, the user's payment user information can be directly found in the public cloud. This identifier can be used only once. When the private cloud obtains payment user information through the interface, this parameter must be carried.
[0062] In some embodiments of the present invention, the payment user information is not sent directly to the private cloud, but the tcode information is sent to the private cloud. The private cloud then requests the public cloud interface, and the interface parameter tcode must be passed to obtain the payment user information. The payment application information includes the userID of the Alipay channel, and obtains the openID of the WeChat channel.
[0063] like Figure 2 In another aspect, the present invention provides a method for acquiring a paying user in a hybrid cloud environment, comprising a private cloud executing the following steps:
[0064] Obtain an identifier that can obtain payment user information from the public cloud;
[0065] Sending a request to obtain payment user information to the public cloud through the identifier;
[0066] Obtain payment user information, and send the payment user information to the client.
[0067] In some embodiments of the present invention, the private cloud further performs the following steps:
[0068] Send page address parameter information to the public cloud.
[0069] Using the identifier, a request for obtaining payment user information is sent to the public cloud, including the following steps:
[0070] Through the identifier, a request for obtaining payment user information is sent to the third interface of the public cloud.
[0071] Embodiment 1:
[0072] The present invention provides a method for acquiring a paying user in a hybrid cloud environment, comprising a public cloud executing the following steps:
[0073] Step S101: Obtain user information of a private cloud requesting a payment channel;
[0074] For example, a platform that has deployed a private cloud needs to obtain user information from the public cloud to place payment orders, so the private cloud first obtains user information from the public cloud;
[0075] Step S102: Obtain payment user information from the payment platform and cache the payment user information;
[0076] Step S103: Send the payment user information to the private cloud, and then jump to the H5 page for payment. For example, after the private cloud obtains the user information from the WeChat or Alipay platform, it redirects back to the H5 page for payment.
[0077] In some embodiments of the present invention, the public cloud further performs the following steps:
[0078] The public cloud interface receives the page address information sent by the private cloud interface;
[0079] The page address information is cached, and based on the configuration of the client payment app, an authorization login instruction is sent to the client payment app, and the interface is redirected to the public cloud interface; for example, the interface redirected here and the public cloud interface mentioned above may be one or not. The former interface obtains the user page information through the user using Alipay or WeChat to scan the code, and stores it in the user information;
[0080] The public cloud interface receives the code information sent by the client payment app, obtains the payment user information based on the code information, caches the payment user information, and generates its own tcode identifier; for example, because the user has scanned the code, the user's address information can be obtained, and the user can be located through the address information, and the user information can be obtained based on the user code information returned by Alipay;
[0081] Send the tcode identifier and the private cloud page address to the private cloud interface;
[0082] For example, in the public cloud, you can generate your own tcode identifier to obtain user information from WeChat or Alipay. After obtaining the user information, find the user according to the page address of the private cloud, and then send the user information contained in the tcode identifier to the private cloud, and then redirect and jump to the page for payment.
[0083] The public cloud interface obtains the payment user information acquisition request of the private cloud, and sends the payment user information to the private cloud.
[0084] In some embodiments of the present invention, the page address information includes page address parameter information.
[0085] In some embodiments of the present invention, the public cloud further performs the following steps:
[0086] The first interface of the public cloud receives the page address information sent by the first interface of the private cloud;
[0087] Cache the page address information, send the authorization login instruction to the client payment app based on the configuration of the client payment app, and jump to the second interface of the public cloud;
[0088] The second interface of the public cloud receives the code information sent by the client payment app, obtains the payment user information based on the code information, caches the payment user information, and generates its own tcode identifier;
[0089] Send the tcode identifier and the private cloud page address to the private cloud second interface;
[0090] The third interface of the public cloud obtains the payment user information acquisition request of the private cloud, and sends the payment user information to the private cloud.
[0091] On the other hand, a method for acquiring payment users in a hybrid cloud environment is proposed, including a private cloud performing the following steps:
[0092] Step S201: Send payment address parameter information to the public cloud;
[0093] For example, when a user scans a QR code to pay, a payment address parameter is generated and sent to the public cloud. The public cloud can obtain payment user information from the payment platform based on the payment address parameter and cache it carefully.
[0094] Step S202: obtaining an identifier that can obtain payment user information from the public cloud, and initiating a request to obtain user information from the public cloud;
[0095] For example, when the tcode identifier carrying the user's information is created in the public cloud, it will be returned to the private cloud; the private cloud needs to obtain the payment user's information from the public cloud, so it needs to send a request instruction to the public cloud.
[0096] Step S203: Obtain payment user information from the public cloud, and send the payment user information to the client.
[0097] For example, the private cloud server will send the obtained user information to the front-end page for payment.
[0098] In some embodiments of the present invention, the private cloud further performs the following steps:
[0099] The private cloud interface sends the page address information to the public cloud interface;
[0100] Receiving the tcode identifier and the page address information sent by the public cloud interface;
[0101] Based on the tcode identifier, a request to obtain payment user information is sent to the public cloud interface;
[0102] The payment user information is obtained and sent to the client.
[0103] For example, the interfaces in the private cloud can be the same interface, or different interfaces can implement the above functions; the same is true for the interfaces in the public cloud. That is, the first, second, and third interfaces in the private cloud can be the same interface, and the first interface can do the same thing, or the first and second interfaces can be the same interface, and the third interface can be an independent interface; the same is true for the interfaces in the public cloud, which will not be elaborated here.
[0104] In some embodiments of the present invention, the private cloud further performs the following steps:
[0105] The private cloud first interface sends the page address information to the public cloud first interface;
[0106] Receiving the tcode identifier and the page address information sent by the second interface of the public cloud;
[0107] Based on the tcode identifier, sending a request to obtain payment user information to the third interface of the public cloud;
[0108] The payment user information is obtained and sent to the client.
[0109] On the other hand, a method for obtaining a payment user in a hybrid cloud environment is also proposed, including the client performing the following steps:
[0110] Step S301: Receive the tcode identifier of the second interface of the public cloud and the page address of the private cloud, and present the private cloud page; for example, here after the client receives the data transmission instruction from the private cloud server, the page will appear according to the tcode identifier and the page address of the private cloud.
[0111] Step S302: Sending a request to obtain payment user information to the private cloud;
[0112] For example, when the client needs user information, it will initiate a request and send the request to obtain user information to the private cloud first. The private cloud then sends it to the public cloud to obtain the user information and then transmits it back in reverse.
[0113] Step S303: Obtain payment user information sent by the private cloud.
[0114] Embodiment 2:
[0115] like Figure 3 As shown, the present invention provides a method for obtaining payment users in a hybrid cloud environment, which can effectively solve the problem that the private cloud cannot scan the code to access the page due to network restrictions, obtain third-party payment users and place orders; the steps are as follows:
[0116] Step S11: The private cloud environment generates a QR code, and the car owner scans the code with WeChat / Alipay on his mobile phone. The interface A behind it carries information such as page address parameters and redirects to the public cloud interface a;
[0117] Step S12: the public cloud interface a caches the address parameter information transmitted by the private cloud, and performs user authorization login jump according to the configuration of WeChat / Alipay, and jumps back to the public cloud interface b after authorization;
[0118] Step S13: The public cloud requests WeChat / Alipay user information based on the code information returned by WeChat / Alipay. Interface b caches the payment user information and generates its own tcode identifier to obtain the payment user information. Interface b carries the tcode identifier and the private cloud page address and redirects back to the private cloud page;
[0119] Step S14: After redirecting back to the private cloud, the private cloud requests the public cloud interface c through the tcode information to obtain the payment user information and enter the h5 page;
[0120] Step S15: The payment user information can be used to place orders normally later.
[0121] In this technology, before "obtaining the page address parameter information sent by the private cloud", it is necessary to configure the application ID, merchant ID, and key information of the private cloud requesting the public cloud address; when the private cloud initiates a request to all interfaces of the public cloud, it is necessary to carry the application ID, merchant ID, and signature information to request the public cloud; the corresponding interface of the public cloud must perform signature verification for requests to the private cloud to ensure the authenticity and security of the request and avoid errors and vulnerabilities.
[0122] The process of initiating a request in the private cloud and performing signature verification in the public cloud includes the following steps:
[0123] When the private cloud is initialized, it will apply for a set of parameters from the public cloud to call the public cloud's interface to obtain user information; this set of parameters includes application ID, merchant ID, and key; the merchant ID is the merchant data ID that the private cloud applies for from the public cloud, and is the unique identifier of the public cloud merchant table; the application ID is an application ID identifier randomly generated for the merchant; through the merchant ID and application ID, the public cloud can find the key assigned to the merchant and application in the merchant table, and then perform signature verification; when the private cloud requests the public cloud interface, it needs to bring the merchant ID and application ID, and sign all interface parameters (excluding signature parameters). After receiving the request, the public cloud will find the corresponding key information through the merchant ID and application ID, sign the non-signature parameters, and compare the signature with the signature parameters for verification. If the signature verification fails, it will directly return failure. If the signature verification succeeds, it will continue.
[0124] The present invention solves the problem of obtaining user information for user payment, and is of great help to car owners in applying payment.
[0125] The present invention can configure the payment channel domain name access information with the help of the public cloud. The private cloud scans the code to jump to the public cloud first, and obtains the user information of the payment channel through the public cloud, and redirects back to the private cloud with an identifier that can obtain the payment user information from the public cloud. The private cloud requests the public cloud to obtain the payment user information through the identifier information returned by the public cloud, and enters the corresponding H5 page.
[0126] The present invention uses the public cloud to complete the H5 page access and payment user information acquisition that the private cloud cannot complete; it solves the problem that the private cloud cannot access the domain name on the WeChat / Alipay platform configuration page, and at the same time obtains the payment user information required for placing an order and the normal use of WeChat and Alipay to scan the code to enter the h5 page; in a hybrid cloud environment, the payment user information is obtained, which effectively solves the problem that the private cloud cannot scan the code to access the page, obtain the third-party payment user information and place an order due to network restrictions.
[0127] In some specific embodiments, Figure 4 As shown, a device for acquiring payment users in a hybrid cloud environment, wherein the public cloud and private cloud in the device include at least one processor and a memory storing instructions to implement a method for acquiring payment users in a hybrid cloud environment in any one of the above technical solutions.
[0128] In some specific embodiments, a computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in the above technical solution.
[0129] In some specific embodiments, a computer program product is provided, the computer program product includes a computer program, and when the computer program is executed by a processor, the method of implementing the steps in the above technical solution is implemented.
[0130] The embodiments and functional operations of the subject matter described in this specification may be implemented in: digital electronic circuitry, tangibly implemented computer software or firmware, computer hardware, including the structures disclosed in this specification and their structural equivalents, or a combination of more than one of the above. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on one or more tangible non-transitory program carriers, for execution by a data processing device or to control the operation of a data processing device.
[0131] Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical, or electromagnetic signal, which is generated to encode information for transmission to an appropriate receiver device for execution by a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of the above devices.
[0132] A computer program (which may also be referred to or described as a program, software, software application, module, software module, script or code) may be written in any form of programming language, including compiled or interpreted languages or declarative or procedural languages, and the computer program may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment. A computer program may, but need not, correspond to a file in a file system. A program may be stored in a portion of a file that stores other programs or data, for example, one or more scripts stored in the following: in a markup language document; in a single file dedicated to a related program; or in multiple collaborative files, for example, files storing one or more modules, subroutines or code portions. A computer program may be deployed to execute on one or more computers, the computers being located in one place or distributed to multiple locations and interconnected by a communication network.
[0133] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.
[0134] Although the present invention has been described in detail above by general description, specific implementation methods and experiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. A method for acquiring payment users in a hybrid cloud environment, characterized in that: To include a public cloud, perform the following steps: Get the page address parameter information sent by the private cloud; Obtain payment user information from the payment platform, cache the payment user information, and generate a self-owned identifier that can obtain payment user information from the public cloud; Based on the page address parameter information, sending the identifier to a private cloud; Obtain the identifier of the payment user information obtained by the private cloud; Based on the identifier, the cached payment user information is obtained, and the payment user information is sent to a private cloud.
2. The method for acquiring a paying user in a hybrid cloud environment according to claim 1, characterized in that: Including public cloud also perform the following steps: Based on the configuration of the payment platform, the authorization information is sent to the payment platform.
3. The method for acquiring a paying user in a hybrid cloud environment according to claim 1, characterized in that: Including public cloud also perform the following steps: The page address parameter information sent by the private cloud is obtained, and the page address parameter information is cached in the first interface.
4. The method for acquiring a paying user in a hybrid cloud environment according to claim 1, characterized in that: The obtaining of payment user information from the payment platform and caching the payment user information comprises the following steps: The code information returned by the payment platform is obtained, and the payment user information in the code information is saved in the second interface.
5. The method for acquiring a paying user in a hybrid cloud environment according to claim 1, characterized in that: The step of sending the identifier to a private cloud based on the page address parameter information includes the following steps: Based on the page address parameter information of the private cloud, the second interface carries the identifier and sends it to the private cloud.
6. The method for acquiring a paying user in a hybrid cloud environment according to claim 1, characterized in that: The step of acquiring the cached payment user information based on the identifier and sending the payment user information to a private cloud comprises the following steps: The third interface receives the identifier; Based on the identifier, obtaining the cached payment user information from the second interface; The payment user information is sent to a private cloud; wherein the payment user information includes application ID, merchant ID, tcode and signature parameters.
7. A method for acquiring payment users in a hybrid cloud environment, characterized in that: To include a private cloud, perform the following steps: Obtain an identifier that can obtain payment user information from the public cloud; Sending a request to obtain payment user information to the public cloud through the identifier; Obtain payment user information, and send the payment user information to the client.
8. The method for acquiring a paying user in a hybrid cloud environment according to claim 7, characterized in that: Including private cloud also performs the following steps: Send page address parameter information to the public cloud.
9. The method for acquiring a paying user in a hybrid cloud environment according to claim 7, characterized in that: The step of sending a request for obtaining payment user information to a public cloud through the identifier includes the following steps: Through the identifier, a request for obtaining payment user information is sent to the third interface of the public cloud.
10. A device for acquiring payment users in a hybrid cloud environment, wherein a public cloud of the device comprises at least one processor and a memory storing instructions, and when the instructions are executed by at least one processor, a method for acquiring payment users in a hybrid cloud environment as described in any one of claims 1 to 6 is implemented.