A method, device and electronic device for realizing instant transaction notification
Through the cooperation between the Internet of Things access platform and notification generation equipment, real-time notification of transaction orders in the aggregated payment system is achieved, solving the problem that merchants find it difficult to know whether the transaction is successful in real time, and improving the efficiency and reliability of the payment system.
Patent Information
- Application Number
- CN202111308014.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-05
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2041-11-05
AI Technical Summary
In the aggregation payment system, it is difficult for merchants to know whether the transaction is successful or not in real time, resulting in inefficient operation.
Through the Internet of Things access platform as a push platform for transaction order information, the notification generation device subscribes to the corresponding topic to realize real-time notification and broadcast or printing of transaction orders.
It realizes multiple types of real-time notifications of transaction orders, improves merchants' real-time understanding of transaction status, and enhances the reliability and efficiency of the payment system.
Smart Images

Figure CN114022245B_ABST
Abstract
Description
Background Art
[0002] Smart phones, tablet computers, handheld devices and other intelligent terminals, like personal computers, have independent operating systems and independent running spaces. Users can install software, games, navigation and other programs provided by third-party service providers, namely application (App) software, and can access wireless networks through mobile communication networks.
[0003] With the popularization of smart terminals, people are increasingly relying on App software in communication, social interaction, entertainment and other activities, such as application software for iPhone, Android and other systems.
[0004] The Internet is rapidly becoming popular, gradually spreading from universities and research institutes to enterprises and families, and its function has evolved from information sharing to a popular means of information dissemination. The popularization of mobile Internet has not only reduced costs, but also created more business opportunities, allowing e-commerce technology to develop and gradually become the biggest hot spot for Internet applications. In order to adapt to the market trend of e-commerce, electronic payment has also developed.
[0005] Electronic payment refers to the use of secure electronic means between consumers, merchants and financial institutions to securely transmit payment information through information networks to banks or corresponding processing institutions to realize monetary payment or fund flow.
[0006] With the development of electronic payment, more and more users and merchants are using electronic payment systems, especially electronic payment on smartphones. However, the current payment channel system is generally an electronic banking system provided by banks, such as Bank of China, Industrial and Commercial Bank of China, China Merchants Bank, etc. Users and customers may need to install and support payments from multiple banks. There are many bank systems on the market, so for users and customers, too many payment channel systems are both complicated and difficult to remember the passwords of all payment channel systems. Therefore, aggregated payment is currently more commonly used.
[0007] Aggregate payment: Also known as "integrated payment", it refers to "payment services" other than "payment, settlement, and clearing" services. Relying on banks, non-bank institutions, or clearing organizations, leveraging the payment channels and clearing and settlement capabilities of banks, non-bank institutions, or clearing organizations, and using its own technology and service integration capabilities, it integrates the payment services of more than one bank, non-bank institution, or clearing organization together, providing merchants with services including but not limited to "payment channel services", "aggregated reconciliation services", "technical docking services", "error handling services", "financial service guidance", "member account services", "operation process software services", "operation and maintenance services", "terminal provision and maintenance", etc., thereby reducing the cost expenditures faced by merchants when accessing and maintaining payment and settlement services, improving the operation efficiency of merchants' payment and settlement systems, and charging value-added revenues for payment services.
[0008] With the rapid development of the global economy, people's consumption levels are also constantly increasing, and there are more and more various online payment channels, such as WeChat Pay, Alipay Pay, etc. Therefore, merchants need to place the collection QR codes corresponding to various online payment channels for consumers to scan and pay, which is rather inconvenient. However, through aggregate payment, aggregate payment service providers aggregate multiple online payment channels, and only one collection QR code is needed for consumers to scan and pay with any online payment channel, which can meet the payment needs in different scenarios, facilitate merchants, and at the same time precipitate and integrate the transaction data of merchants among different channels.
[0009] With the popularization of the aggregate payment system, the behavior of scanning and paying is increasing. When using scanning and paying, merchants mainly rely on the payment success page provided by consumers to judge whether the payment is successful, and it is difficult for merchants to obtain information. Summary of the Invention
[0010] To solve the existing technical problems, the embodiments of the present invention provide a method, device, electronic device, and computer-readable storage medium for realizing instant transaction notification.
[0011] In a first aspect, the embodiments of the present invention provide a method for realizing instant transaction notification, including:
[0012] The notification generation device sends a request for the access address information of the hardware management server to the hardware management system;
[0013] The notification generation device receives and saves the access address information of the hardware management server returned by the hardware management system;
[0014] The hardware management server receives the request for the access address information of the Internet of Things access platform sent by the notification generation device according to the access address information;
[0015] The hardware management server returns the access address information of the Internet of Things access platform to the notification generation device;
[0016] The notification generation device establishes a session connection with the Internet of Things access platform according to the access address information and subscribes to the corresponding topic on the Internet of Things access platform;
[0017] The push server receives the transaction order information pushed by the transaction system according to the completed transactions of the bound merchants;
[0018] The push server performs asynchronous buffering processing on the queue of the transaction order information, performs secondary parsing processing on the transaction order information, and sends it to the corresponding subscribed topic on the Internet of Things access platform;
[0019] The Internet of Things access platform issues the transaction order information to the notification generation device according to the subscribed topic information;
[0020] The notification generation device performs broadcast or printing processing according to the transaction order information.
[0021] In a second aspect, an embodiment of the present invention provides a device for realizing instant transaction notification, including a notification generation device, a hardware management server, a push server, and an Internet of Things access platform:
[0022] The notification generation device is used to send a request for the access address information of the hardware management server to the hardware management system; receive and save the access address information of the hardware management server returned by the hardware management system; establish a session connection with the Internet of Things access platform according to the access address information and subscribe to the corresponding topic on the Internet of Things access platform; perform broadcast or printing processing according to the transaction order information;
[0023] The hardware management server is used to receive the request for the access address information of the Internet of Things access platform sent by the notification generation device according to the access address information; return the access address information of the Internet of Things access platform to the notification generation device;
[0024] The push server receives the transaction order information pushed by the transaction system according to the completed transactions of the bound merchants; performs asynchronous buffering processing on the queue of the transaction order information, performs secondary parsing processing on the transaction order information, and sends it to the corresponding subscribed topic on the Internet of Things access platform;
[0025] The Internet of Things access platform is used to issue the transaction order information to the notification generation device according to the subscribed topic information.
[0026] In a third aspect, an embodiment of the present invention provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor. The transceiver, the memory, and the processor are connected through the bus. When the computer program is executed by the processor, the steps in the method for realizing instant transaction notification described above are implemented.
[0027] In a fourth 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 in the method for realizing instant transaction notification described above are implemented.
[0028] The method, device, electronic device, and computer-readable storage medium provided by the embodiments of the present invention can realize real-time notification of various types of transaction orders through the Internet of Things access platform as a push platform for transaction order information generated in the aggregated payment system. Each notification generation device realizes real-time reception of transaction order information through the mode of subscribing to topics on the Internet of Things access platform, and performs broadcast or printing processing.
[0029] The method, device, electronic device, and computer-readable storage medium provided by the embodiments of the present invention realize flexible switching of the addresses of the notification generation device and the push server address through the setting of the hardware management system; through the verification process of the transaction order information of the notification generation device, the repeated broadcast of multiple transaction order information is prevented, ensuring the realization of the reliable payment function of the aggregated payment system for transaction order information. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required to be used in the embodiments of the present invention or the background technology will be described below.
[0031] Figure 1 A signaling diagram showing a method for realizing instant transaction notification provided by an embodiment of the present invention is shown;
[0032] Figure 2 A flowchart showing a method for realizing instant transaction notification provided by an embodiment of the present invention is shown;
[0033] Figure 3 A structural schematic diagram showing a device for realizing instant transaction notification provided by an embodiment of the present invention is shown;
[0034] Figure 4 A structural schematic diagram showing an electronic device for realizing instant transaction notification provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0035] For the sake of clear and concise description of the embodiments of the present invention, a brief introduction to relevant concepts or technologies is given first:
[0036] The integrated payment system is a network payment and settlement system between banks and users. Internet third-party payments (such as Alipay, WeChat, etc.) that have been approved and issued with payment licenses carry out the business. The third-party payment distributes the retail business to the fourth-party payment for operation, also known as integrated payment. For example, payment interfaces such as Alipay scan code, WeChat scan code, QQ wallet, UnionPay QuickPass, gateway payment, JD.com payment, etc. are connected to the integrated payment system, and then the integrated payment system re-unifies the interfaces and docks them for customers to use. No matter how the upstream third-party payment changes the channel, customers do not need to follow the change. As long as they are connected to the integrated payment interface once, they can be used for a long time.
[0037] Integrated payment is relative to third-party payment. Different from third-party payment, integrated payment does not exist between merchants and banks. It is a channel between merchants and third-party payment providers. Integrated payment does not perform fund settlement and transfer. It only completes the control of information flow and data flow in the payment link, aggregates payment methods provided by different third-party payment institutions, and provides merchants with unified payment and settlement interfaces. It reduces the difficulty and cost for merchants to access, improves the operation speed and efficiency, and has better flexibility and convenience.
[0038] Those skilled in the art to which the present invention pertains can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used in the embodiments of the present invention have the same meaning as generally understood by those of ordinary skill in the art to which the embodiments of the present invention pertain. It should also be understood that terms such as those defined in a general dictionary should be understood to have a meaning consistent with the meaning in the context of the prior art, and will not be interpreted with an idealized or overly formal meaning unless specifically defined as here.
[0039] Those skilled in the art can understand that the "client", "terminal", and "terminal device" used herein include both devices with a wireless signal receiver that only has the ability to receive and no ability to transmit, and devices with receiving and transmitting hardware that have the receiving and transmitting hardware capable of two-way communication on a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers, tablet computers, etc., which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which can combine voice, data processing, fax, and / or data communication capabilities; PDA (Personal Digital Assistant), which may include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar, and / or GPS (Global Positioning System) receiver; conventional laptop and / or palm computers or other devices, which are conventional laptop and / or palm computers or other devices with and / or including a radio frequency receiver. The "client", "terminal", and "terminal device" used herein can be portable, transportable, installed in a vehicle (air, sea, and / or land), or suitable for and / or configured to operate locally, and / or in a distributed form, at any other location on the earth and / or in space. The "client", "terminal", and "terminal device" used herein can also be a communication terminal, an Internet access terminal, a music / video playback terminal, such as a PDA, MID (Mobile Internet Device), and / or a mobile phone with music / video playback function, or a smart TV, a set-top box, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.
[0040] In the embodiments of the present invention, the hardware referred to by names such as "server", "client", and "service node" is essentially an electronic device with the equivalent capabilities of a personal computer, which is a hardware device having the necessary components disclosed by the von Neumann principle, including a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit loads the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input / output devices to complete specific functions.
[0041] Those skilled in the art can understand that the concept of "server" in the embodiments of the present invention can similarly be extended to the case applicable to a server cluster. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. Physically, these servers can either be independent of each other but can be invoked through interfaces, or integrated into a single physical computer or a set of computer clusters.
[0042] Those skilled in the art should know that the embodiments of the present invention can be implemented as a method, a device, an electronic device, and a computer-readable storage medium. Therefore, the embodiments of the present invention can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), and a combination of hardware and software. In addition, in some embodiments, the embodiments of the present invention can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.
[0043] The above-mentioned computer-readable storage medium can be any combination of one or more computer-readable storage media. The computer-readable storage medium includes: electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of the computer-readable storage medium include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any combination of the above. In the embodiments of the present invention, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or component.
[0044] The computer program code contained in the above-mentioned computer-readable storage medium can be transmitted by any suitable medium, including: wireless, wire, optical fiber, radio frequency (RF), or any suitable combination of the above.
[0045] The computer program code for performing the operations of the embodiments of the present invention can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as C language or similar programming languages. The computer program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, and entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), and can also be connected to an external computer.
[0046] The embodiments of the present invention will be described below with reference to the flowcharts and / or block diagrams of the methods, apparatuses, electronic devices, and computer-readable storage media of the embodiments of the present invention.
[0047] It should be understood that each block of the flowchart and / or block diagram, and the combinations of blocks in the flowchart and / or block diagram, can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine. These computer-readable program instructions, when executed by a computer or other programmable data processing device, generate a device that implements the functions / operations specified in the blocks of the flowchart and / or block diagram.
[0048] These computer-readable program instructions can also be stored in a computer-readable storage medium that can cause a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product that includes the instructions for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.
[0049] The computer-readable program instructions can also be loaded onto a computer, other programmable data processing device, or other device, so that a series of operation steps are executed on the computer, other programmable data processing device, or other device, to produce a computer-implemented process. Thus, the instructions executed on the computer or other programmable data processing device can provide a process for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.
[0050] The embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0051] Figure 1 A signaling diagram showing a method for implementing an instant transaction notification method provided by an embodiment of the present invention is shown. Figure 2shows a flowchart of a method for implementing an instant transaction notification method provided by an embodiment of the present invention. As Figure 1 and Figure 2 shown, the method includes:
[0052] Step S101: The notification generation device is connected to the hardware management system; during the interaction between the notification generation device and the hardware system, all data transmissions are in ciphertext and require special keys for encryption and decryption processing;
[0053] In this step, the hardware management system is described by taking the TMS management system as an example.
[0054] Step S103: The notification generation device sends a request for the access address information of the hardware management server to the TMS management system;
[0055] In this step, the hardware management server is described by taking the TMS management server ( Figure 1 not shown) as an example.
[0056] Specifically, step S103 specifically includes:
[0057] Step S1031: After receiving the access address information request, the TMS management server performs verification processing on the basic data and services of the notification generation device;
[0058] In this step, the basic data and services include but are not limited to: data encryption and decryption, device number, whether the model exists, whether the status is normal, whether the device-related SIM card exists and matches the device, and whether the status is normal.
[0059] Step S1033: If the verification passes, the TMS management system sends the access address information of the TMS management server to the notification generation device;
[0060] Step S105: The notification generation device receives and saves the access address information of the TMS management server returned by the TMS management system;
[0061] Specifically, step S105 specifically includes:
[0062] Step S1051: After receiving the access address information, the notification generation device decrypts the data and judges the access address information. If the access address information has no update, no change processing is performed;
[0063] Step S1053: If there is an update, a request for the access address information of the Internet of Things access platform is sent to the TMS management server according to the new access address information.
[0064] Step S107: The TMS management server receives the access address information request of the Internet of Things access platform sent by the notification generation device according to the access address information;
[0065] In this step, the Internet of Things access platform is illustrated by taking the EMQ (cloud-native distributed Internet of Things access platform) platform as an example.
[0066] Step S109: The TMS management server returns the access address information of the EMQ platform to the notification generation device;
[0067] Specifically, step S109 specifically includes:
[0068] Step S1091: The TMS management server issues the access address, encryption and decryption key, account information, password information, and subscription topic information of the EMQ platform to the notification generation device;
[0069] Step S1093: The notification generation device receives the access address, encryption and decryption key, account information, password information, and subscription topic information of the EMQ platform, and after decrypting and processing, saves them locally.
[0070] Step S111: The notification generation device establishes a session connection with the EMQ platform according to the access address information and subscribes to the corresponding topic on the EMQ platform;
[0071] Specifically, step S111 specifically includes:
[0072] Step S1111: The session connection is maintained through heartbeats;
[0073] Step S1113: When the heartbeat times out due to unstable network, the session connection will be disconnected;
[0074] Step S1115: When the notification generation device checks that the session connection is disconnected, the notification generation device will send a new session connection request to the EMQ platform;
[0075] Step S1117: The notification generation device re-establishes a session connection with the EMQ platform.
[0076] Step S113: The push server receives the transaction order information pushed by the transaction system according to the completed transactions of the bound merchants, and verifies whether the transaction order has been successfully pushed;
[0077] Step S115: The push server performs asynchronous buffering processing on the queue of the transaction order information, and performs secondary parsing processing on the transaction order information, and sends it to the corresponding subscription topic on the EMQ platform;
[0078] Step S117: The Internet of Things access platform issues the transaction order information to the notification generation device according to the subscription topic information;
[0079] Step S119: Instruct the notification generation device to perform a broadcast or print process based on the transaction order information.
[0080] Step S121: After the transaction order information is successfully sent down, the push server records the successfully sent-down transaction order information and sends it to the notification generation device.
[0081] Step S123: The notification generation device records the successfully broadcast transaction order information. Each time it receives new transaction order information sent down by the Internet of Things access platform, it checks whether the new transaction order information has been successfully broadcast. If it has been successfully broadcast, it will not broadcast again; if not, it will continue to broadcast.
[0082] The method for realizing instant transaction notification of the present invention uses the Internet of Things access platform (EMQ platform) as the push platform for the transaction order information generated in the aggregated payment system, and can realize various types of real-time notifications of transaction orders. Each notification generation device subscribes to topics on the Internet of Things access platform to realize the real-time reception of transaction order information by the notification generation device and perform broadcast or print processing.
[0083] The method for realizing instant transaction notification of the present invention realizes the flexible switching of the addresses of the notification generation device and the push server through the setting of the hardware management system (TMS management system); through the verification process of the transaction order information of the notification generation device, it prevents the repeated broadcast of multiple transaction order information and ensures the realization of the reliable payment function of the aggregated payment system for transaction order information.
[0084] As described above in conjunction with Figures 1 to 2 , the method for realizing instant transaction notification according to the embodiments of the present invention has been described in detail. Next, in conjunction with Figure 3 , the device for realizing instant transaction notification according to the embodiments of the present invention will be described in detail.
[0085] Figure 3 The structural schematic diagram of a device for realizing instant transaction notification provided by an embodiment of the present invention is shown. As Figure 4 shown, the device for realizing instant transaction notification includes a notification generation device 301, a hardware management server 302, a push server 303, and an Internet of Things access platform 304:
[0086] The notification generation device 301 is configured to send a request for access address information of the hardware management server 302 to the hardware management system; receive and save the access address information of the hardware management server 302 returned by the hardware management system; establish a session connection with the Internet of Things access platform 304 according to the access address information and subscribe to corresponding topics on the Internet of Things access platform 304; perform broadcast or printing processing according to the transaction order information;
[0087] The hardware management server 302 is configured to receive the request for access address information of the Internet of Things access platform 304 sent by the notification generation device according to the access address information; return the access address information of the Internet of Things access platform 304 to the notification generation device;
[0088] The push server 303 receives the transaction order information pushed by the transaction system for the completed transactions of the bound merchants; performs asynchronous buffering processing on the queue of the transaction order information, and performs secondary parsing processing on the transaction order information, and sends it to the corresponding subscribed topic on the Internet of Things access platform 304;
[0089] The Internet of Things access platform 304 is configured to send the transaction order information to the notification generation device 301 according to the subscribed topic information.
[0090] Preferably, the notification generation device 301 is specifically configured to maintain the session connection through heartbeats; when the heartbeat times out due to unstable network, the session connection will be disconnected; when it is detected that the session connection is disconnected, a session connection request will be re-initiated to the Internet of Things access platform 304; and a session connection will be re-established with the Internet of Things access platform 304.
[0091] Preferably, the hardware management server 302 is specifically configured to, after receiving the access address information request, perform verification processing on the basic data and services of the notification generation device;
[0092] The notification generation device 301 is specifically configured to, if the verification passes, receive the access address information of the hardware management server 302 sent by the hardware management system; after receiving the access address information, judge the access address information, and if the access address information has no update, no change processing will be performed; if there is an update, send a request for access address information of the Internet of Things access platform 304 to the hardware management server 302 according to the new access address information.
[0093] Preferably, the hardware management server 302 is specifically configured to send the access address of the Internet of Things access platform 304, encryption and decryption keys, account information, password information, and subscribed topic information to the notification generation device 301;
[0094] The notification generation device 301 is specifically configured to receive the access address, encryption and decryption key, account information, password information, and subscription topic information of the Internet of Things access platform 304, and save them locally after parsing and processing.
[0095] The device for implementing instant transaction notifications in the present invention uses the Internet of Things access platform (EMQ platform) as the push platform for transaction order information generated in the aggregated payment system, and can implement various types of real-time notifications for transaction orders. Each notification generation device subscribes to topics on the Internet of Things access platform to achieve real-time reception of transaction order information by the notification generation device, and performs broadcast or printing processing.
[0096] The device for implementing instant transaction notifications in the present invention realizes flexible switching of the address of the notification generation device and the push server address through the setting of the hardware management system (TMS management system); through the verification process of the transaction order information of the notification generation device, it prevents repeated broadcasts of multiple transaction order information, and ensures the realization of the reliable payment function of the aggregated payment system for transaction order information.
[0097] In addition, an embodiment of the present invention further provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor. The transceiver, the memory, and the processor are respectively connected through the bus. When the computer program is executed by the processor, it realizes each process of the method embodiment for implementing instant transaction notifications described above, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0098] Specifically, referring to Figure 4 As shown, an embodiment of the present invention further provides an electronic device, which includes a bus 41, a processor 42, a transceiver 43, a bus interface 44, a memory 45, and a user interface 46.
[0099] In an embodiment of the present invention, the electronic device further includes: a computer program stored on the memory 45 and executable on the processor 42. When the computer program is executed by the processor 42, the following steps are realized:
[0100] The notification generation device sends a request for the access address information of the hardware management server to the hardware management system;
[0101] The notification generation device receives and saves the access address information of the hardware management server returned by the hardware management system;
[0102] The hardware management server receives the request for the access address information of the Internet of Things access platform sent by the notification generation device according to the access address information;
[0103] The hardware management server returns the access address information of the Internet of Things access platform to the notification generation device;
[0104] The notification generation device establishes a session connection with the Internet of Things access platform according to the access address information and subscribes to corresponding topics on the Internet of Things access platform;
[0105] The push server receives the transaction order information pushed by the transaction system according to the completed transactions of the bound merchants;
[0106] The push server performs asynchronous buffering processing on the queue of the transaction order information, and performs secondary parsing processing on the transaction order information, and sends it to the corresponding subscribed topic on the Internet of Things access platform;
[0107] The Internet of Things access platform distributes the transaction order information to the notification generation device according to the subscribed topic information;
[0108] The notification generation device performs broadcast or printing processing according to the transaction order information.
[0109] Optionally, when the computer program is executed by the processor 42, the following steps can also be implemented:
[0110] The session connection is maintained through heartbeats;
[0111] When the network instability causes the heartbeat to timeout, the session connection will be disconnected;
[0112] When the notification generation device checks that the session connection is disconnected, the notification generation device will send a new session connection request to the Internet of Things access platform;
[0113] The notification generation device re - establishes a session connection with the Internet of Things access platform.
[0114] Optionally, when the computer program is executed by the processor 42, the following steps can also be implemented:
[0115] After receiving the access address information request, the hardware management server performs verification processing on the basic data and services of the notification generation device;
[0116] If the verification passes, the notification generation device receives the access address information of the hardware management server sent by the hardware management system;
[0117] After receiving the access address information, the notification generation device judges the access address information. If the access address information has no update, no change processing is performed;
[0118] If there is an update, send a request for the access address information of the Internet of Things access platform to the hardware management server according to the new access address information.
[0119] Optionally, when the computer program is executed by the processor 42, the following steps may also be implemented:
[0120] The hardware management server issues the access address, encryption and decryption key, account information, password information, and subscription topic information of the Internet of Things access platform to the notification generation device;
[0121] The notification generation device receives the access address, encryption and decryption key, account information, password information, and subscription topic information of the Internet of Things access platform, and saves them locally after parsing and processing.
[0122] The transceiver 43 is configured to receive and send data under the control of the processor 42.
[0123] In Figure 4 the bus architecture (represented by the bus 41), the bus 41 may include any number of interconnected buses and bridges, and the bus 41 connects various circuits including one or more processors represented by the processor 42 and the memory represented by the memory 45 together.
[0124] The bus 41 represents one or more of any of several types of bus structures, including a memory bus and a memory controller, a peripheral bus, an Accelerate Graphical Port (AGP), a processor, or a local bus using any bus structure in various bus architectures. By way of example and not limitation, such architectures include: Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA), Peripheral Component Interconnect (PCI) bus.
[0125] The processor 42 can be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by the integrated logic circuit in the hardware of the processor or instructions in software form. The above-mentioned processor includes: general-purpose processor, central processing unit (CPU), network processor (NP), digital signal processor (DSP), application specific integrated circuit (ASIC), field programmable gate array (FPGA), complex programmable logic device (CPLD), programmable logic array (PLA), microcontroller unit (MCU) or other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present invention. For example, the processor can be a single-core processor or a multi-core processor, and the processor can be integrated on a single chip or located on multiple different chips.
[0126] The processor 42 can be a microprocessor or any conventional processor. The method steps disclosed in combination with the embodiments of the present invention can be directly executed and completed by the hardware decoding processor, or executed and completed by the combination of the hardware and software modules in the decoding processor. The software module can be located in a readable storage medium well known in the art such as random access memory (RAM), flash memory, read-only memory (ROM), programmable ROM (PROM), erasable programmable ROM (EPROM), registers, etc. The readable storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method.
[0127] The bus 41 can also connect together various other circuits such as, for example, peripheral devices, voltage regulators or power management circuits. The bus interface 44 provides an interface between the bus 41 and the transceiver 43, which are all well known in the art. Therefore, the embodiments of the present invention will not describe them further.
[0128] The transceiver 43 can be a single component or multiple components, such as multiple receivers and transmitters, providing units for communicating with various other devices over a transmission medium. For example, the transceiver 43 receives external data from other devices, and the transceiver 43 is used to send the data processed by the processor 42 to other devices. Depending on the nature of the computer system, a user interface 46 may also be provided, such as: a touch screen, a physical keyboard, a display, a mouse, speakers, a microphone, a trackball, a joystick, a stylus.
[0129] It should be understood that in the embodiments of the present invention, the memory 45 may further include memories remotely located relative to the processor 42, and these remotely located memories can be connected to the server through a network. One or more parts of the above networks can be an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless local area network (WLAN), a wide area network (WAN), a wireless wide area network (WWAN), a metropolitan area network (MAN), the Internet, a public switched telephone network (PSTN), a plain old telephone service network (POTS), a cellular telephone network, a wireless network, a wireless fidelity (Wi-Fi) network, and a combination of two or more of the above networks. For example, the cellular telephone network and the wireless network can be a Global System for Mobile Communications (GSM) system, a Code Division Multiple Access (CDMA) system, a Worldwide Interoperability for Microwave Access (WiMAX) system, a General Packet Radio Service (GPRS) system, a Wideband Code Division Multiple Access (WCDMA) system, a Long Term Evolution (LTE) system, an LTE Frequency Division Duplex (FDD) system, an LTE Time Division Duplex (TDD) system, an Advanced Long Term Evolution (LTE-A) system, a Universal Mobile Telecommunications System (UMTS) system, an Enhance Mobile Broadband (eMBB) system, a massive Machine Type of Communication (mMTC) system, an UltraReliable Low Latency Communications (uRLLC) system, etc.
[0130] It should be understood that the memory 45 in the embodiments of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory includes: Read-Only Memory (ROM), Programmable ROM (PROM), Erasable PROM (EPROM), Electrically EPROM (EEPROM), or Flash Memory.
[0131] The volatile memory includes: Random Access Memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as: Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 45 of the electronic device described in the embodiments of the present invention includes but is not limited to the above and any other suitable types of memory.
[0132] In the embodiments of the present invention, the memory 45 stores the following elements of the operating system 451 and the application program 452: executable modules, data structures, or subsets or extended sets thereof.
[0133] Specifically, the operating system 451 includes various system programs, such as: framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 452 includes various application programs, such as: Media Player, Browser, for implementing various application services. The program for implementing the method of the embodiments of the present invention can be included in the application program 452. The application program 452 includes: applets, objects, components, logics, data structures, and other computer system executable instructions for performing specific tasks or implementing specific abstract data types.
[0134] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the above method embodiment for realizing instant transaction notification and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0135] Specifically, when the computer program is executed by a processor, the following steps can be implemented:
[0136] The notification generation device sends a request for access address information of the hardware management server to the hardware management system;
[0137] The notification generation device receives and saves the access address information of the hardware management server returned by the hardware management system;
[0138] The hardware management server receives the request for access address information of the Internet of Things access platform sent by the notification generation device according to the access address information;
[0139] The hardware management server returns the access address information of the Internet of Things access platform to the notification generation device;
[0140] The notification generation device establishes a session connection with the Internet of Things access platform according to the access address information and subscribes to a corresponding topic on the Internet of Things access platform;
[0141] The push server receives the transaction order information pushed by the transaction system according to the completed transactions of the bound merchants;
[0142] The push server performs asynchronous buffering processing on the queue of the transaction order information, and performs secondary parsing processing on the transaction order information, and sends it to the corresponding subscribed topic on the Internet of Things access platform;
[0143] The Internet of Things access platform distributes the transaction order information to the notification generation device according to the subscribed topic information;
[0144] The notification generation device performs broadcasting or printing processing according to the transaction order information.
[0145] Optionally, when the computer program is executed by a processor, the following steps can also be implemented:
[0146] The session connection is maintained through heartbeats;
[0147] When the heartbeat times out due to unstable network, the session connection will drop;
[0148] When the notification generation device checks that the session connection has dropped, the notification generation device will send a new session connection request to the Internet of Things access platform;
[0149] The notification generation device re - establishes a session connection with the Internet of Things access platform.
[0150] Optionally, when the computer program is executed by the processor, the following steps may also be implemented:
[0151] After receiving the access address information request, the hardware management server performs verification processing on the basic data and services of the notification generation device;
[0152] If the verification passes, the notification generation device receives the access address information of the hardware management server sent by the hardware management system;
[0153] The step that the notification generation device receives and saves the access address information of the hardware management server returned by the hardware management system includes:
[0154] After receiving the access address information, the notification generation device judges the access address information. If the access address information has no update, no change processing is performed;
[0155] If there is an update, a request for the access address information of the Internet of Things access platform is sent to the hardware management server according to the new access address information.
[0156] Optionally, when the computer program is executed by the processor, the following steps may also be implemented:
[0157] The hardware management server sends the access address of the Internet of Things access platform, the encryption and decryption key, the account information, the password information, and the subscription topic information to the notification generation device;
[0158] The notification generation device receives the access address of the Internet of Things access platform, the encryption and decryption key, the account information, the password information, and the subscription topic information, and saves them locally after parsing and processing.
[0159] A computer-readable storage medium includes permanent and non-permanent, removable and non-removable media, which are tangible devices that can retain and store instructions for use by an instruction execution device. The computer-readable storage medium includes electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, and any suitable combination thereof. The computer-readable storage medium includes 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), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape storage, magnetic tape disk storage or other magnetic storage devices, memory sticks, mechanical encoding devices (such as punched cards or raised structures in grooves on which instructions are recorded), or any other non-transmission medium that can be used to store information accessible by a computing device. As defined in the embodiments of the present invention, a computer-readable storage medium does not include transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagated through a waveguide or other transmission medium (such as light pulses passing through an optical fiber cable), or electrical signals transmitted through a wire.
[0160] The serial numbers of the embodiments of the present invention above are only for description and do not represent the superiority or inferiority of the embodiments.
[0161] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been generally described according to their functions in the above description. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. The computer program instructions include assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, status setting data, integrated circuit configuration data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, and procedural programming languages such as C language or similar programming languages.
[0162] When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from a website, a computer, a server, or a data center to another website, a computer, a server, or a data center by wire (e.g., coaxial cable, twisted pair, optical fiber, digital subscriber line (DSL)) or wirelessly (e.g., infrared, wireless, microwave). The computer-readable storage medium may be any available medium accessible by the computer or a data storage device such as a server or a data center that includes one or more integrated available media. The available medium may be a magnetic medium (e.g., floppy disk, magnetic disk, magnetic tape), an optical medium (e.g., optical disc), or a semiconductor medium (e.g., solid state drive (SSD)). Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present invention.
[0163] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the method embodiments of the present invention described above, and will not be repeated here.
[0164] In several embodiments provided in the present application, it should be understood that the disclosed devices, electronic devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the displayed or discussed couplings, direct couplings, or communication connections to each other may be indirect couplings or communication connections through some interfaces, devices, or units, and may also be electrical, mechanical, or other forms of connection.
[0165] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units. They may be located in one position or distributed to multiple network units. Some or all of the units may be selected according to actual needs to solve the problems to be solved by the solution of the embodiments of the present invention.
[0166] In addition, in each embodiment of the present invention, each functional unit may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0167] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (including a personal computer, a server, a data center, or other network devices) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the above-mentioned storage medium includes various media that can store program codes as listed above.
[0168] As mentioned above, the above is only the specific implementation manner of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed in the embodiments of the present invention can easily think of changes or substitutions, which should all be covered by the protection scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for implementing instant transaction notification, characterized in that, it includes: The notification generation device sends a request for the access address information of the hardware management server to the hardware management system; The notification generation device receives and saves the access address information of the hardware management server returned by the hardware management system; The hardware management server receives the request for the access address information of the Internet of Things access platform sent by the notification generation device according to the access address information; The hardware management server returns the access address information of the Internet of Things access platform to the notification generation device; The notification generation device establishes a session connection with the Internet of Things access platform according to the access address information and subscribes to the corresponding topic on the Internet of Things access platform; The push server receives the transaction order information pushed by the transaction system according to the completed transactions of the bound merchants; The push server performs asynchronous buffering processing on the queue of the transaction order information, and performs secondary parsing processing on the transaction order information, and sends it to the corresponding subscribed topic on the Internet of Things access platform; The Internet of Things access platform issues the transaction order information to the notification generation device according to the subscribed topic information; The notification generation device performs broadcast or printing processing according to the transaction order information; The step of the notification generation device establishing a session connection with the Internet of Things access platform according to the access address information specifically includes: The session connection is maintained through heartbeats; When the network is unstable and the heartbeat times out, the session connection will be disconnected; When the notification generation device checks that the session connection is disconnected, the notification generation device will send a new session connection request to the Internet of Things access platform; The notification generation device re-establishes a session connection with the Internet of Things access platform.
2. The method according to claim 1, characterized in that, The step of the notification generation device sending a request for the access address information of the hardware management server to the hardware management system includes: After receiving the access address information request, the hardware management server performs verification processing on the basic data and services of the notification generation device; If the verification passes, the notification generation device receives the access address information of the hardware management server sent by the hardware management system; The step of the notification generation device receiving and saving the access address information of the hardware management server returned by the hardware management system includes: After receiving the access address information, the notification generation device judges the access address information. If the access address information has no update, no change processing is performed; If there is an update, a request for the access address information of the Internet of Things access platform is sent to the hardware management server according to the new access address information.
3. The method according to claim 1, characterized in that, The step of the hardware management server returning the access address information of the Internet of Things access platform to the notification generation device includes: The hardware management server issues the access address of the Internet of Things access platform, the encryption and decryption key, the account information, the password information and the subscribed topic information to the notification generation device; The notification generation device receives the access address, encryption and decryption key, account information, password information, and subscription topic information of the Internet of Things access platform, and saves them locally after parsing and processing.
4. A device for realizing instant transaction notification, characterized in that it includes a notification generation device, a hardware management server, a push server, and an Internet of Things access platform: The notification generation device is used to send a request for the access address information of the hardware management server to the hardware management system; receive and save the access address information of the hardware management server returned by the hardware management system; establish a session connection with the Internet of Things access platform according to the access address information, and subscribe to corresponding topics on the Internet of Things access platform; perform broadcast or printing processing according to the transaction order information; The hardware management server is used to receive the request for the access address information of the Internet of Things access platform sent by the notification generation device according to the access address information; return the access address information of the Internet of Things access platform to the notification generation device; The push server receives the transaction order information pushed by the transaction system according to the completed transactions of the bound merchants; performs asynchronous buffering processing on the queue of the transaction order information, and performs secondary parsing processing on the transaction order information, and sends it to the corresponding subscription topic of the Internet of Things access platform; The Internet of Things access platform is used to send the transaction order information to the notification generation device according to the subscription topic information; The notification generation device is specifically used to keep the session connection through heartbeats; when the heartbeat times out due to unstable network, the session connection will be disconnected; when it is detected that the session connection is disconnected, a session connection request will be re-initiated to the Internet of Things access platform; and a session connection will be re-established with the Internet of Things access platform.
5. The device according to claim 4, characterized in that the hardware management server is specifically used to perform verification processing on the basic data and services of the notification generation device after receiving the access address information request; the notification generation device is specifically used to, if the verification passes, receive the access address information of the hardware management server sent by the hardware management system; after receiving the access address information, judge the access address information, and if there is no update to the access address information, no change processing will be performed; if there is an update, send a request for the access address information of the Internet of Things access platform to the hardware management server according to the new access address information.
6. The device according to claim 4, characterized in that the hardware management server is specifically used to send the access address, encryption and decryption key, account information, password information, and subscription topic information of the Internet of Things access platform to the notification generation device; the notification generation device is specifically used to receive the access address, encryption and decryption key, account information, password information, and subscription topic information of the Internet of Things access platform, and save them locally after parsing and processing.
7. An electronic device, comprising a bus, a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, characterized in that, when the computer program is executed by the processor, it implements the steps in the method for realizing instant transaction notification as described in any one of claims 1 to 3.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, it implements the steps in the method for realizing instant transaction notification as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Data event pushing method and device
CN105677774A
Aggregated payment management method, server and computer storage medium
CN111415140A