Payment method, apparatus, electronic device, and computer-readable storage medium

By displaying the associated mini-program client interface on the dual displays of electronic devices, showing order information and receiving payment trigger operations respectively, the problem of poor single-screen payment experience is solved, improving the user's payment experience and device utilization efficiency.

CN115439168BActive Publication Date: 2025-12-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110620041.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-03
Publication Date
2025-12-19
Estimated Expiration
2041-06-03

AI Technical Summary

Technical Problem

Existing offline payment methods are typically based on a single screen, resulting in a poor payment experience. Both the payer and the payee lack detailed information, which negatively impacts the user experience.

Method used

The first client interface of the first mini-program is displayed on the first screen of the electronic device, and the second client interface of the second mini-program is displayed on the second screen. The first order information and the second order information of the target order are displayed respectively, and the payment is processed by receiving a payment trigger operation through either client interface.

Benefits of technology

It improves the detailed understanding of payers and payees before payment processing, enhances the payment experience, and improves the user experience of electronic devices through the collaborative operation of the two mini-programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115439168B_ABST
    Figure CN115439168B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a payment method and device, electronic equipment and computer readable storage medium, and relate to the fields of payment, WeChat payment and blockchain technology. The method is executed by an electronic device including a first display screen and a second display screen, and includes: displaying a first client interface of a first applet through the first display screen, displaying a second client interface of a second applet through the second display screen, displaying first order information of a target order in the first client interface, and displaying second order information of the target order in the second client interface; and performing payment processing on the target order in response to a payment trigger operation on the target order received through the target client interface. In the scheme of the present application, two applets are simultaneously run in the electronic device, the order information of the target order is displayed through the display screens corresponding to the two applets respectively, and payment processing on the target order is implemented, so that the payment experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of payment, WeChat payment and blockchain technology, in particular, the present application relates to a payment method and device, electronic equipment and computer readable storage medium. BACKGROUND

[0002] With the development of Internet technology, mobile payment has become one of the main payment methods, which is simple and brings convenience to users' life.

[0003] There are many offline payment methods in the prior art, which are usually based on single screen payment method, that is, the cashier initiates payment trigger operation based on the order displayed on the single screen display, and the customer side passively makes payment, so that the payment experience is poor. SUMMARY

[0004] The purpose of the embodiment of the present application is to provide a payment method, device, electronic equipment and computer readable storage medium which can improve the payment experience.

[0005] In one aspect, the present application provides a payment method, which is executed by an electronic device including a first display screen and a second display screen, and the method comprises:

[0006] displaying a first client interface of a first applet on the first display screen and displaying a second client interface of a second applet on the second display screen, wherein the first applet and the second applet are associated applets;

[0007] displaying first order information of a target order on the first client interface and displaying second order information of the target order on the second client interface, wherein the first order information and the second order information are generated based on the product information of the product to be paid collected by the product information collection device;

[0008] performing payment processing on the target order in response to the payment trigger operation received through the target client interface for the target order;

[0009] Wherein the target client interface is at least one of the first client interface or the second client interface.

[0010] In another aspect, the present application provides a payment device, which includes a first display screen, a second display screen and a processor, the first display screen and the second display screen are connected with the processor respectively;

[0011] The first display screen is used for displaying a first client interface of a first applet, and the second display screen is used for displaying a second client interface of a second applet, wherein the first applet and the second applet are associated applets;

[0012] The processor is configured to generate first order information and second order information of a target order based on commodity information of to-be-paid commodities collected by a commodity information collection device, display the first order information through a first client interface, display the second order information through a second client interface, and perform payment processing on the target order information in response to a payment trigger operation received through the target client interface.

[0013] The target client interface is at least one of the first client interface or the second client interface.

[0014] In another aspect, an embodiment of the present application provides a payment device, which is included in an electronic device including a first display screen and a second display screen, and includes:

[0015] The interface display module is configured to display a first client interface of a first applet through the first display screen and display a second client interface of a second applet through the second display screen, wherein the first applet and the second applet are associated applets.

[0016] The order display module is configured to display first order information of a target order in the first client interface and display second order information of the target order in the second client interface, wherein the first order information and the second order information are generated based on commodity information of to-be-paid commodities collected by a commodity information collection device.

[0017] The order processing module is configured to perform payment processing on the target order in response to a payment trigger operation received through the target client interface.

[0018] The target client interface is at least one of the first client interface or the second client interface.

[0019] Optionally, the order processing module, when performing payment processing on the target order in response to the payment trigger operation received through the target client interface, is specifically configured to:

[0020] display at least one payment method option in the first client interface;

[0021] perform payment processing on the target order through a target payment method in response to a selection operation of the target payment method received through the first client interface, the payment trigger operation includes the selection operation, and the target client interface includes the first client interface.

[0022] Optionally, the at least one payment method option includes a face payment method and a non-face payment method, and if the target payment method is the non-face payment method, the order processing module is specifically configured to:

[0023] display a payment interface corresponding to the target payment method of the target order;

[0024] perform payment processing on the target order through the target payment method in response to a payment confirmation operation on the target order; the payment trigger operation further includes a payment determination operation.

[0025] Optionally, if the target payment method is the face payment method, the order processing module is specifically configured to:

[0026] invoke an image acquisition device to acquire face information of a user of the target order;

[0027] send the to-be-paid amount of the target order and the face information to a payment server corresponding to the face payment method, so that the payment server performs payment processing on the target order based on the face information.

[0028] Optionally, the second client interface displays a collection control, and the order processing module is specifically configured to:

[0029] display the at least one payment method option on the first client interface in response to a selection trigger operation on the collection control;

[0030] The target client interface further includes a second client interface, and the payment trigger operation further includes a selection trigger operation.

[0031] Optionally, the device further includes:

[0032] The starting module is configured to, in response to a first starting operation on the electronic device, load the first applet and the second applet respectively, and display a first initialization interface of the first applet on the first display screen and a second initialization interface of the second applet on the second display screen.

[0033] Optionally, when the starting module loads the second applet in response to the first starting operation on the electronic device, the starting module is specifically configured to

[0034] In response to the first starting operation on the electronic device, the starting module starts the second display screen, and the second display screen displays at least one application identifier, and the at least one application identifier includes an application identifier corresponding to the second applet;

[0035] In response to a trigger operation on the application identifier corresponding to the second applet, the starting module loads the second applet.

[0036] Optionally, the first client interface is displayed with a setting identifier, and when the first client interface cannot display information, the apparatus further includes:

[0037] a fault processing module, configured to, in response to a triggering operation for the setting identifier, reload the first applet.

[0038] In another aspect, the embodiments of the present application further provide an electronic device, which comprises a memory and a processor, the memory stores a computer program, and the processor executes the payment method provided in any of the optional embodiments of the present application when running the computer program.

[0039] In another aspect, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program, and the processor executes the payment method provided in any of the optional embodiments of the present application when running the computer program.

[0040] In another aspect, the embodiments of the present application further provide a computer program product or a computer program, which, when running on a computer device, causes the computer device to execute any of the optional embodiments of the payment method provided by the present application. The computer program product or the computer program comprises computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the payment method provided in any of the optional embodiments of the present application.

[0041] The technical scheme provided by the present application has the beneficial effects that: the scheme provided by the embodiments of the present application can display the first client interface of the first applet through the first display screen of the electronic device, display the second client interface of the second applet through the second display screen, and display the first order information of the target order through the first client interface and display the second order information of the target order through the second client interface. Since the order information is displayed through two client interfaces, when payment is made, the payment triggering operation for the target order can be received through the first client interface or the second client interface, and the target order is processed in response to the operation. In the present application, on the one hand, since the order information is displayed through two client interfaces, the payer and the payee can have a detailed understanding of the target order before payment processing, thereby improving the payment experience of the user, and on the other hand, since the two client interfaces are the interfaces corresponding to the two applets, and the two applets are running in the electronic device, the payment can be realized based on the functions corresponding to the two applets, thereby improving the use experience of the electronic device.

[0042] Additional aspects and advantages of the application will be made apparent by the following description and the specific description of the embodiments of the application. BRIEF DESCRIPTION OF DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the application, the drawings needed to be used in the description of the embodiments of the application will be briefly introduced.

[0044] Figure 1 A flowchart of a payment method provided by the embodiments of the application;

[0045] Figure 2 A schematic diagram of a small program container of a small program provided by the embodiments of the application;

[0046] Figure 3 A schematic diagram of a small program process of a small program provided by the embodiments of the application;

[0047] Figure 4 A schematic diagram of a small program process corresponding to two small programs provided by the embodiments of the application;

[0048] Figure 5 A schematic diagram of a first client interface provided by the embodiments of the application;

[0049] Figure 6 A schematic diagram of a second client interface provided by the embodiments of the application;

[0050] Figure 7 A schematic diagram of another second client interface provided by the embodiments of the application;

[0051] Figure 8 A schematic diagram of a display interface of animation information provided by the embodiments of the application

[0052] Figure 9 A flowchart of message transmission provided by the embodiments of the application;

[0053] Figure 10 A schematic diagram of a double-screen interaction flow provided by the embodiments of the application;

[0054] Figure 11 A schematic diagram of a structure of a face payment system provided by the embodiments of the application;

[0055] Figure 12 A schematic diagram of a structure of a payment device provided by the embodiments of the application;

[0056] Figure 13 A schematic diagram of another structure of a payment device provided by the embodiments of the application;

[0057] Figure 14 A structural schematic diagram of a payment device provided by an embodiment of the present application is shown in FIG. 1.

[0058] Figure 15 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 1. DETAILED DESCRIPTION

[0059] Embodiments of the present application are described in detail below with reference to the accompanying drawings, in which examples of the embodiments are shown, and in which like or similar elements or elements having the same or similar functions are denoted throughout the figures by the same or similar reference numerals. The embodiments described below by reference to the accompanying drawings are exemplary only, and are used only for explanation of the present application, and cannot be interpreted as limiting the present application.

[0060] It can be understood by those skilled in the art that, unless specifically stated, the singular forms "a", "an" and "the" used herein include plural forms. It should be further understood that the use of the term "include" in the specification of the present application means that the stated features, integers, steps, operations, elements, and / or components exist, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or there can be an intermediate element. In addition, "connected" or "coupled" used herein can include wireless connection or wireless coupling. The phrase "and / or" used herein includes all or any one of the associated listed items and all combinations thereof.

[0061] The payment method provided by the embodiments of the present application can be applied to various practical application scenarios, such as face payment, payment password payment, WeChat payment, etc.

[0062] The face feature extraction and the determination of identity information based on face information in the methods provided in the embodiments of the present application can be realized by using artificial intelligence technology.

[0063] Artificial intelligence (AI) is the use of digital computers or digital computer-controlled machines to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology of computer science, which aims to understand the essence of intelligence and produce a new intelligent machine that can react in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines, so that machines have the functions of perception, reasoning and decision-making.

[0064] The processing of the face information in the embodiments of the present application can be implemented by using cloud technology, for example, the data storage involved in the processing process can be implemented by using cloud storage, and the data calculation involved in the processing process can be implemented by using cloud computing.

[0065] The scheme provided in the embodiments of the present application can be executed by any electronic device, which can be a user terminal device (payment device) or a server (payment server). The server can be a physical server, a server cluster composed of multiple physical servers, a distributed system, or a cloud server providing cloud computing services. The terminal device can include at least one of a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart television, and a smart vehicle device.

[0066] In a possible implementation, the payment device and the payment server can form a blockchain, and the payment server and the payment device can be nodes on the blockchain. The payment method in the embodiments of the present application can be executed by at least one node on the blockchain, that is, the payment server or the server cluster in the embodiments of the present application can be one or at least two nodes on the blockchain, and the payment device in the embodiments of the present application can be one node on the blockchain.

[0067] In order to better understand and illustrate the scheme provided in the embodiments of the present application, some technical terms involved in the embodiments of the present application are first described below.

[0068] Double-screen face payment terminal, usually the front screen is a customer screen, and the back screen is a cashier screen.

[0069] IoT applet: IoT (Internet of Things), an applet that can run on a hardware device that is independent of the terminal WeChat environment. In the present application, it refers to an applet running on a hardware device with an Android system.

[0070] Applet Runtime: the running instance of an applet, which refers to each instance of a running applet.

[0071] Applet container: the container carrier of each applet runtime. The applet container can provide the applet with parameters for displaying the client interface of the applet. In the scheme of the present application, based on the parameters in the applet container corresponding to the applet, it can be known what the client interface of the applet corresponding to the display is like.

[0072] Process isolation: a technology to avoid the case that process A writes to process B.

[0073] AppId of the applet: AppId is used to represent the identity of the applet, which is the unique ID of the applet.

[0074] JsEvent: It is a role similar to the applet interface in the applet framework, which can be understood as a passive callback function, used to receive event notifications from the applet container and distribute the notifications to the target applet Runtime.

[0075] IPC message pipeline: IPC (Inter-Process Communication), IPC message pipeline is a message channel realized by using the Android IPC mechanism, which is used for cross-process message transmission.

[0076] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.

[0077] The present application provides a possible implementation mode, as Figure 1 shown, a flowchart of a payment method is provided, which can be executed by any electronic device, for example, the scheme of the embodiments of the present application can be executed on a terminal device or a server, or executed by the interaction of a terminal device (which can be called a payment device in this embodiment) and a server (which can be called a payment server in this embodiment). For the convenience of description, the method provided by the embodiments of the present application will be described below taking the electronic device (payment device) as an example.

[0078] Figure 1 A flowchart of a payment method provided by the embodiments of the present application is shown, which is executed by an electronic device including a first display screen and a second display screen, as Figure 1 shown, the method can include the following steps:

[0079] Step S110, displaying a first client interface of a first applet through the first display screen and displaying a second client interface of a second applet through the second display screen, wherein the first applet and the second applet are associated applets.

[0080] Before displaying the first client interface and the second client interface, the method further includes:

[0081] In response to a first starting operation of the electronic device, the first applet and the second applet are loaded respectively, and a first initialization interface of the first applet is displayed through the first display screen, and a second initialization interface of the second applet is displayed through the second display screen.

[0082] The first startup operation refers to activating an electronic device with two displays, enabling dual-screen payment. This first startup operation can be a touch operation on the device's startup button, such as a long press or a click. After the electronic device starts, both displays and the corresponding mini-program are launched, displaying the client interface on the displays.

[0083] When loading the first mini-program, relevant information, including the initial setup interface, can be loaded and displayed from the server corresponding to that mini-program. Similarly, when loading the second mini-program, relevant information, including the second setup interface, can be loaded and displayed from the server corresponding to that mini-program. The two mini-programs can correspond to the same server, or each can correspond to a separate server.

[0084] Optionally, the first mini-program and the second mini-program can correspond to the same mini-program container, or they can each correspond to a separate mini-program container. If the first mini-program and the second mini-program each correspond to a separate mini-program container, for ease of description, the container corresponding to the first mini-program can be called the first container, and the container corresponding to the second mini-program can be called the second container. These two containers are isolated. When the first mini-program is loaded, it can be run through the first container to display the first client interface on the first display screen. Similarly, when the second mini-program is loaded, it can be run through the second container to display the second client interface on the second display screen. The first client interface may include a first initialization interface, and the second client interface may include a second initialization interface.

[0085] When the electronic device is started, a first container is launched. Launching the first container involves launch parameters, which may include the app ID of the mini-program, such as the App ID of the first mini-program. The first container can then determine which mini-program to run based on the App ID. The launch parameters may also include display information about the first client interface of the first mini-program. This display information describes the specific format of the first client interface, and based on this information, the first container can display the first client interface on a first display screen.

[0086] Optionally, the first and second mini-programs in this application can be IoT mini-programs.

[0087] like Figure 2 The diagram shown illustrates the mini-program container. Figure 2 The IoT mini-program in the context can be either the first mini-program or the second mini-program. Each mini-program corresponds to a mini-program container, through which the corresponding mini-program can be run.

[0088] Optionally, the first or second mini-program mentioned above can be a mini-program running under the settings application, that is, the mini-program can be called through the interface of the settings application. In this case, you need to log in to the settings application before calling the mini-program.

[0089] Optionally, when the first or second mini-program is running, the corresponding mini-program process can be invoked, so that the mini-program runs in the corresponding mini-program process.

[0090] As an example, such as Figure 3 The diagram shown illustrates the structure of a mini-program during runtime. Figure 3 In this context, "Login State 1" refers to the login state of the application corresponding to the user of the mini-program (the user can be a customer or a cashier). After the user logs into the application, i.e., in Login State 1, the mini-program instance (mini-program Runtime) corresponding to the mini-program can be run through the mini-program container.

[0091] As yet another example, such as Figure 4 The diagrams shown illustrate the structure of the two mini-programs during runtime. Figure 4 In this context, the front screen (first display screen) process refers to the process corresponding to the first mini-program, the back screen (second display screen) process refers to the process corresponding to the second mini-program, login state 1 refers to the login state of the user (customer) corresponding to the first mini-program's settings application, and login state 2 refers to the login state of the user (cashier) corresponding to the second mini-program's settings application. After a customer logs into the settings application, i.e., in login state 1, the mini-program instance (mini-program Runtime) corresponding to the first mini-program can be run through the mini-program container of the first mini-program. Similarly, after a cashier logs into the settings application, i.e., in login state 2, the mini-program instance (mini-program Runtime) corresponding to the second mini-program can be run through the mini-program container of the second mini-program.

[0092] Optionally, in response to a first startup operation on the electronic device, the second applet is loaded, including:

[0093] In response to a first startup operation on an electronic device, a second display screen is activated, and the second display screen displays at least one application identifier, including the application identifier corresponding to the second mini-program.

[0094] In response to a trigger operation targeting the application identifier corresponding to the second mini-program, load the second mini-program.

[0095] The second display screen can display at least one application identifier, and for each identifier, the identifier can correspond to an applet or an application program. Since the second display screen is for the merchant staff, in addition to the application identifier of the second applet with payment function, the second display screen can also display application identifiers of other functional application programs or applets, such as an applet with goods management function, an applet with personnel management function, etc. When the second applet needs to be loaded, the application identifier of the second applet needs to be selected from the at least one application identifier displayed on the second display screen, i.e. the trigger operation of the application identifier of the second applet. Then the second applet can be loaded based on the trigger operation. The merchant staff initiates the trigger operation.

[0096] The first display screen is a display screen facing customers, the second display screen is a display screen facing cashiers, the client interface is a user interface for displaying information to users, and the users include cashiers and customers. The first applet is an applet with the functions of displaying information to customers and processing trigger operations of customers on the first client interface, mainly including receiving trigger operations of customers on the first client interface and displaying information sent by the second display screen to the first display screen, i.e. information that the merchant staff wants the customers to view. The second applet is an applet with the functions of displaying information to the merchant staff and processing trigger operations of the merchant staff on the second client interface, mainly including receiving trigger operations of the merchant staff on the second client interface and displaying information sent by the first display screen to the second display screen, i.e. information that the customers want the merchant staff to view.

[0097] The first applet and the second applet are associated, and the first applet and the second applet can cooperate to complete the entire payment function. The first applet and the second applet can be associated by establishing an association relationship between the applet ID corresponding to the first applet and the applet ID corresponding to the second applet.

[0098] As an example, as shown in the schematic diagram of the second client interface, Figure 6 The second client interface is the client interface corresponding to the back screen, the back screen is the second display screen facing the cashiers, and the interface displays two application identifiers, one is application identifier A and the other is application identifier B. The application identifier B is the application identifier corresponding to the second applet, and the second applet can be loaded in response to the trigger operation of the application identifier B.

[0099] In step S120, the first order information of the target order is displayed on the first client interface, and the second order information of the target order is displayed on the second client interface, wherein the first order information and the second order information are generated based on the product information collected by the product information collection device.

[0100] The first order information and the second order information correspond to different types of information of the same order (target order), and can also be the same information. If the first order information and the second order information are different types of information, since the first order information is customer-oriented information, the information can mainly include product information of the purchased product, such as product name, product unit price, product quantity, and amount to be paid. Since the second order information is information for the cashier of the merchant, the second order information can mainly include product information of the product purchased by the customer and product information of the product associated with the purchased product, such as inventory information and total amount of a product purchased within a period of time.

[0101] The product information collection device can be an external device of the electronic device, or a part of the electronic device itself. If it is an external device, after collecting the product information of the product to be paid through the product information collection device, the product information is sent to the electronic device.

[0102] Optionally, the first order information and the second order information can be determined in the following manner:

[0103] The product information collection device can be an external device of the electronic device, or a part of the electronic device itself. If it is an external device, after collecting the product information of the product to be paid through the product information collection device, the product information is sent to the electronic device.

[0104] The product information of the product to be paid can include, but is not limited to, product name, product unit price, product quantity, and amount to be paid of the product to be paid. The product information of the product to be paid is collected by the staff of the merchant, such as the cashier.

[0105] The timing of displaying the first order information and the second order information can be the same or different. For example, the first order information can be displayed on the first client interface, and the second order information can be displayed on the second client interface. The second order information can be displayed on the second client interface first, and the second client interface also displays a payment control. When a trigger operation for the payment control is received, the first order information is displayed on the first client interface in response to the trigger operation.

[0106] Step 130, in response to the payment trigger operation for the target order received through the target client interface, performing payment processing on the target order. The target client interface is at least one of the first client interface or the second client interface.

[0107] The payment trigger operation refers to an operation intended to pay for the target order, which is an operation initiated by a user (the user can be a customer or a staff member of a merchant) on a target client interface of the payment device, which is an interface for interaction between the user and the payment device. The interface can be the interface where the first order information is located (the first client interface), and the payment trigger operation is an operation on the interface. The target client interface can also be the interface where the second order information is located (the second client interface), and the payment trigger operation is an operation on the interface. The target client interface can also be the first client interface and the second client interface, and the payment trigger operation includes operations on the first client interface and the second client interface.

[0108] The user can trigger the operation based on a payment identifier displayed on the target client interface. The payment identifier can be represented by at least one of characters, words, or graphics. The specific form of the payment identifier is not limited in the present application. The payment trigger operation can be a click operation, a long press operation, etc. The specific form of the trigger operation is not limited in the present application.

[0109] In an optional embodiment of the present application, the payment processing for the target order in response to the payment trigger operation for the target order received through the target client interface includes:

[0110] Display at least one payment method option on the first client interface.

[0111] In response to a selection operation for a target payment method in the at least one payment method option received through the first client interface, perform payment processing for the target order through the target payment method. The payment trigger operation includes the selection operation, and the target client interface includes the first client interface.

[0112] The payment trigger operation can be triggered on the first client interface, i.e., the target client interface is the first client interface, which is intended for customers. The first client interface can provide at least one payment method for customers. Each payment method option corresponds to a payment method. The payment method can include at least one of a payment code, a WeChat payment code, a facial payment method, and a WeChat facial payment method. Based on the above payment methods, the customer can select the payment method he wants to pay.

[0113] Optionally, the payment processing for the target order through the target payment method includes sending the amount to be paid for the target order to the payment server corresponding to the target payment method, so that the payment server performs payment processing for the target order.

[0114] Optionally, the first client interface can display a payment control, and the first client interface displays at least one payment method option in response to a triggering operation on the payment control, including:

[0115] The first client interface displays at least one payment method option in response to a triggering operation on the payment control.

[0116] Optionally, the triggering operation on the payment control indicates that the target order intends to make a payment, and the payment method option can be displayed when the payment control is triggered. The payment control can be displayed in the form of a payment identifier on the first client interface, which can be text, pictures, symbols, etc. The specific form of the payment identifier is not limited in the present application.

[0117] As an example, as shown in the schematic diagram of the first client interface, the first client interface is a client interface corresponding to the front screen, and the front screen is a first display screen facing customers. The first client interface displays first order information, which includes goods a1 and goods a2. The first client interface also displays a payment control "payment". In response to a triggering operation on the payment control, at least one payment method option can be displayed on the first client interface. Figure 5

[0118] In an optional embodiment of the present application, the second client interface displays a payment control, and the first client interface displays at least one payment method option, including:

[0119] The first client interface displays at least one payment method option in response to a selection triggering operation on the payment control.

[0120] The target client interface further includes a second client interface, and the payment triggering operation further includes a selection triggering operation.

[0121] Optionally, the second client interface is for a merchant staff, and the payment triggering operation can further include a selection triggering operation on the payment control by the merchant staff and an operation on the first client interface by the customer, i.e. the payment is completed by the merchant staff and the customer together.

[0122] Optionally, the triggering operation on the payment control indicates that the target order intends to make a payment, and the payment method option can be displayed when the payment control is triggered. The payment control can be displayed in the form of a payment identifier on the first client interface, which can be text, pictures, symbols, etc. The specific form of the payment identifier is not limited in the present application.

[0123] As an example, as shown in the schematic diagram of the first client interface, the first client interface is a client interface corresponding to the front screen, and the front screen is a first display screen facing customers. The first client interface displays first order information, which includes goods a1 and goods a2. The first client interface also displays a payment control "payment". In response to a triggering operation on the payment control, at least one payment method option can be displayed on the first client interface. Figure 7 ​Another schematic view of the second client interface is shown, the second client interface is a client interface corresponding to a back screen, the back screen is a second display screen facing the cashier; the second order information including the commodity a1 and the commodity a2 is displayed on the second client interface, the second client interface further displays the collection control "collection", and at least one payment method option is displayed on the first client interface in response to the triggering operation on the collection control.

[0124] The scheme provided by the embodiments of the present application can display the first client interface of the first applet through the first display screen of the electronic device, display the second client interface of the second applet through the second display screen, display the first order information of the target order through the first client interface, and display the second order information of the target order through the second client interface. Since the order information is displayed through two client interfaces, when payment is performed, the payment triggering operation for the target order can be received through the first client interface or the second client interface, and the target order is processed in response to the operation. In the scheme of the present application, on the one hand, since the order information is displayed through two client interfaces, the payer and the payee can have a detailed understanding of the target order before payment processing, thereby improving the payment experience of the user, and on the other hand, since the two client interfaces are interfaces corresponding to two applets, and the two applets are simultaneously running in the electronic device, payment can be realized based on the functions corresponding to the two applets, and the use experience of the electronic device can be improved.

[0125] In another aspect, since the two associated applets are simultaneously running in the electronic device, the double-screen communication is realized through the applets, and for a technical person, the maintenance and development of the applets are more convenient than the application programs, and the development cost can be reduced.

[0126] The at least one payment method option can include a face payment method and a non-face payment method, and the face payment method can include but is not limited to WeChat face payment, Alipay face payment, etc., and the non-face payment method includes but is not limited to payment code payment, payment password payment, etc.

[0127] In an optional embodiment of the present application, the at least one payment method option includes a face payment method and a non-face payment method, and if the target payment method is a non-face payment method, the target order is processed through the target payment method, including:

[0128] Displaying a payment interface corresponding to the target payment method of the target order;

[0129] Processing the target order through the target payment method in response to a payment confirmation operation on the target order; the payment triggering operation further includes a payment determination operation.

[0130] The payment processing manner corresponding to the face payment manner is different from the payment processing manner corresponding to the non-face payment manner. The face payment manner needs to acquire face information and perform payment based on the face information. The non-face payment manner does not need to acquire face information, and can acquire payment information of the customer through a payment interface to complete payment. For example, if the target payment manner is a payment code payment, the payment interface is a code corresponding interface. If the target payment manner is a WeChat payment, the payment interface is a WeChat code corresponding interface.

[0131] If the target payment manner is a non-face payment manner, the customer selects the non-face payment manner, that is, in response to the selection operation of the target payment manner, a payment interface corresponding to the target payment manner can be displayed. In the interface, in response to a payment confirmation operation for the target order, the target order can be processed through the target payment manner. Specifically, the payment server corresponding to the target payment manner can be sent the to-be-paid amount of the target order, so that the payment server processes the payment of the target order.

[0132] The payment confirmation operation can be a trigger operation on the payment control.

[0133] In an optional embodiment of the present application, if the target payment manner is a face payment manner, the above payment processing of the target order through the target payment manner includes:

[0134] The image acquisition device is called to acquire face information of a user of the target order;

[0135] The payment server corresponding to the face payment manner is sent the to-be-paid amount of the target order and the face information, so that the payment server processes the payment of the target order based on the face information.

[0136] Since the target payment manner is a face payment manner, in response to the selection operation of the target payment manner, the image acquisition device is called to acquire face information of a user of the target order, and then a payment request and the face information are sent to the payment server corresponding to the face payment manner. The request includes the to-be-paid amount of the target order. The server can determine identity information of the user based on the face information, acquire a payment account of the user based on the identity information, and finally deduct the to-be-paid amount from the payment account to complete the payment.

[0137] When the face payment is performed based on the scheme of the present application, the payment can be completed without the help of the terminal device of the customer, and the payment experience of the user is further improved.

[0138] Wherein, before calling the image acquisition device to collect the user's face information, the permission of the user to obtain the identity information can be obtained first. Wherein, the identity information of the user is information that can represent the identity of the user, such as ID information, mobile phone number, etc.

[0139] Wherein, the image acquisition device can be part of the electronic device, or an external device of the electronic device.

[0140] Optionally, the payment server can determine the identity information of the user based on the face information, which can include:

[0141] Extracting the face feature of the face information;

[0142] Based on the face feature of the face information and the face feature of each face image stored in the database and the identity information corresponding to each face feature, the identity information of the user is determined.

[0143] Wherein, the database pre-stores the face features of multiple face images and the identity information corresponding to each face feature.

[0144] Wherein, the face feature of the face information can be extracted based on the image feature extraction method in the prior art, such as the face feature of the face information based on the neural network, which can be a pre-trained network. The input of the neural network is the face information, and the output is the face feature of the face information.

[0145] Optionally, the identity information of the user can be determined based on the feature distance between the face feature of the face information and each face feature in the database.

[0146] Wherein, the smaller the feature distance between two face features, the more similar the two face features, and the identity information corresponding to the face feature in the database with the smallest feature distance between the face feature of the face information can be determined as the identity information of the user.

[0147] Optionally, the feature distance can be represented by the Euclidean distance.

[0148] In an optional embodiment of the present application, the method further comprises:

[0149] In response to obtaining the payment result of the target order, the payment result is displayed in at least one of the second client interface or the first client interface.

[0150] Wherein, after the payment processing, the payment result can be displayed through the client interface, and the payment result is payment success or payment failure.

[0151] Users can understand the payment status, i.e., whether the payment was successful, based on the payment result. This payment result can be represented by text, symbols, graphics, etc., and this application does not limit the specific form of the payment result. For example, the payment result can be the text "Payment Successful" or "Payment Failed," or it can be the symbols "√" or "×," where "√" indicates successful payment and "×" indicates failed payment.

[0152] In an optional embodiment of this application, the method further includes:

[0153] In response to a payment-triggered action, retrieve and display animation information;

[0154] In response to receiving the payment result, the animation information display ends, and the payment result is displayed.

[0155] During the payment server's processing of a target order, the payment process may take some time, or network issues may prevent the payment device from quickly receiving the payment result, leading the user to mistakenly believe there is a problem with the payment (e.g., the payment device is frozen) and thus unable to complete the payment. To address this, an animation can be displayed on the payment device's client interface during the payment processing. Upon receiving the payment result from the payment server, the animation ends, and the payment result is displayed. This prevents the user from mistakenly believing there is a problem with the payment process, further improving the user experience.

[0156] The animation information can be pre-configured and stored in the payment device. Optionally, the animation information can be a spinning animation, and this application does not limit the specific form of the animation information.

[0157] The interface displaying the animation information can be at least one of the first client interface or the second client interface.

[0158] Optionally, while displaying the animation information, a prompt message can also be shown to inform the user of the current payment status (payment in progress). The prompt message can be text-based.

[0159] As an example, such as Figure 8 The diagram shown illustrates the display interface for animation information. In this example, the animation information is displayed on the second client interface, where the animation information is... Figure 8 The circle shown (corresponding to a similar spinning animation effect) also includes a prompt message ( Figure 8 (The message "Processing, please wait" is displayed.)

[0160] Optionally, the image acquisition device can be invoked to collect the facial information of the user making the payment for the target order, including:

[0161] Call the image acquisition device to collect at least two face images of a user who places an order;

[0162] Determine a face image meeting a set condition from the at least two face images, and take the face image meeting the set condition as face information;

[0163] The set condition includes at least one of the following:

[0164] The proportion of the face size in the face image is greater than or equal to a first set value;

[0165] The face shooting angle meets a set angle;

[0166] The image quality meets a set quality.

[0167] The image acquisition device can collect at least two face images, and the at least two face images can be taken as face information. However, in actual application, some of the at least two face images obtained may affect the accuracy of face recognition. Therefore, the at least two face images are screened to accurately identify the identity information of the user based on the screened face images.

[0168] The face shooting angle refers to the shooting angle of the face, and the shooting angle includes shooting height, shooting direction and shooting distance. Different shooting angles can obtain different face images.

[0169] The image quality can be reflected by different indicators, such as at least one of contrast, definition or brightness of the image.

[0170] The face image can be one face image in the at least two face images, and face recognition is performed based on the face image to obtain an identification result as the identity information of the user.

[0171] Optionally, if the set condition includes at least two of the above indicators, for each face image in the at least two face images, an image score of the face image is determined based on the respective weights of the two indicators corresponding to the face image and the indicator corresponding to the face image, and the face image with the highest image score in the at least two face images is determined as the face information.

[0172] Optionally, if a face video of the user is obtained based on the payment device, the at least two face images can be at least two consecutive face images in the face video of the user.

[0173] Optionally, in the first display screen and the second display screen, information is sent from one display screen to the other display screen, including:

[0174] If the target information meets the set condition, the target information is sent.

[0175] If the target information does not meet the set condition, further comprising:

[0176] Generating prompt information and sending the prompt information to the display screen that sends the target information for display.

[0177] The target information includes a target order, and the set condition includes at least one of the following: the target information meets a set information rule, and a small program corresponding to a display screen that receives the target information is associated with a small program corresponding to a display screen that sends the target information.

[0178] The set information rule is a rule set for the information itself, such as the length of the information being no more than a set length. The length of the information is affected by the communication mechanism for transmitting the information, and therefore, based on the communication mechanism, the length of the transmitted information is set to ensure the information transmission effect. The small program corresponding to the display screen that receives the target information is associated with the small program corresponding to the display screen that sends the target information, which means that among the first small program and the second small program, one small program is the small program corresponding to the sender display screen, and the other small program is the small program corresponding to the receiver display screen. For example, the small program corresponding to the display screen that sends the target information is the first small program, and the small program corresponding to the display screen that receives the target information is the second small program. If the small program corresponding to the display screen that receives the target information is not the second small program, the target information is not sent, and prompt information can also be generated and displayed on the first client interface of the first display screen.

[0179] Optionally, the two small programs can each correspond to a processor, i.e., the first small program corresponds to a processor (which can be referred to as a front screen processor), and the second small program corresponds to a processor (which can be referred to as a back screen processor). The two processors can communicate with each other, and therefore, sending information from one display screen to another display screen can also be understood as follows: if the sender of the target information is the first display screen and the receiver is the second display screen, the first display screen transmits the received target information to the front screen processor, the front screen processor sends the target information to the back screen processor, and the back screen processor sends the target information to the second display screen for display.

[0180] As an example, the following describes the sending process of the target information in combination with Figure 9 Figure 9 The target information transmission process is shown in the target information transmission flowchart. Figure 9 ​In the middle, the first display screen sends target information to the front screen processor (the processor corresponding to the front screen applet), and before sending the target information, the front screen processor assembles the target information into a message structure, which includes the applet ID (AppId) of the front screen applet and the message content (the specific content of the target information). The message content can be a normal string or a JSON structure. The message manager, i.e. the processor of the payment device, includes the front screen processor and the back screen processor, and is used to process the information sent by the front screen and the back screen, and to control the front screen and the back screen to display the corresponding information. When sending the target information, the target information is first sent to the front screen processor of the message manager. In this example, the front screen processor can generate a sending result notification information based on a set processing identifier, such as the alt identifier shown in the middle, based on which the front screen processor needs to generate a sending result notification information and inform the front screen applet whether the sending of the target information is successful. That is, no matter whether the sending is successful or not, as long as the target information is sent to the front screen processor, if the front screen processor detects the alt identifier, the step of generating the sending result notification information and informing the front screen applet is executed. Figure 9

[0181] The front screen processor detects whether the target information meets the set condition, which includes Figure 9 The back screen has no applet (for example, the back screen currently has no second applet running), and the message content is too long (the length of the information is greater than the set length). If the target information meets the set condition Figure 9 The detection passes as shown in the middle), the front screen processor transmits the target information to the back screen processor corresponding to the back screen applet through an IPC (Inter Process Communication, process intercommunication) message pipe, the back screen processor encapsulates the target information into a JsEvent (JavaScript event object), and finally generates a back screen applet Runtime (instance) through the back screen processor to realize the processing of the target information (processing the message) through the instance, such as displaying the target information on the second client interface of the second display screen. Figure 9

[0182] Optionally, if the second applet fails, the method further includes:

[0183] In response to a trigger operation on the application identifier of the second applet displayed on the second client interface, the second applet is reloaded.

[0184] ​​In the scheme, since the payment is realized based on two applets, if the second applet fails, for example, cannot display order information, cannot receive the trigger operation of the user, etc., the second applet can be manually restarted, that is, the second applet is reloaded in response to the trigger operation for the application identifier of the second applet. Compared with the application failure and the re-download of the application, the time for reloading the applet in the scheme is shorter, and the user experience is better. For example, if a failure occurs during the payment process, the time for reloading the applet is shorter, which can shorten the waiting time of the customer and improve the user payment experience.

[0185] Optionally, the first client interface is displayed with a setting identifier, and when the first client interface cannot normally display information, the method further includes:

[0186] In response to a trigger operation for the setting identifier displayed on the first client interface, the first applet is reloaded.

[0187] In the scheme, when the first client interface cannot normally display information, it indicates that the first applet may fail, and the first applet can be reloaded based on the trigger operation on the setting identifier. The setting identifier can be a close identifier of the first client interface when the first client interface fails, and based on the trigger operation on the close identifier, the first client interface can be closed, and the first applet can be reloaded.

[0188] The close identifier can be a character, a symbol, etc., and the specific form of the close identifier is not limited in the application. For example, it can be "X".

[0189] Optionally, after the applet is reloaded, the content displayed on the corresponding client interface is the content displayed when the applet fails, that is, the corresponding data when the applet fails is cached in the electronic device. Therefore, when the applet is reloaded, the data in the cache can be directly called for display, which can avoid repeated operations of the user and repeated processing of the processor, and improve the processing efficiency.

[0190] In the above scheme, the payment processing of the target order can also be processed based on the payment server, and the identity information of the user based on the face information can also be processed based on the payment server.

[0191] Based on the same principle as the method shown in Figure 1 The application also provides a payment device, which, as shown in Figure 12 The payment device includes a first display screen, a second display screen, and a processor, and the first display screen and the second display screen are respectively connected with the processor.

[0192] The first display screen is configured to display a first client interface of a first applet, and the second display screen is configured to display a second client interface of a second applet, wherein the first applet and the second applet are associated applets.

[0193] The processor is configured to generate first order information and second order information of a target order when receiving commodity information of a commodity to be paid based on the commodity information collected by the commodity information collection device, display the first order information through the first client interface, display the second order information through the second client interface, and perform payment processing on the target order information when receiving a payment trigger operation on the target order through the target client interface.

[0194] The target client interface is at least one of the first client interface or the second client interface.

[0195] Based on the payment device provided in the present application, the first client interface of the first applet can be displayed through the first display screen of the electronic device, the second client interface of the second applet can be displayed through the second display screen, the first order information of the target order can be displayed through the first client interface, and the second order information of the target order can be displayed through the second client interface. Since the order information is displayed through two client interfaces, the payment trigger operation on the target order can be received through the first client interface or the second client interface during payment, and the target order can be processed in response to the operation. In the present application, on the one hand, since the order information is displayed through two client interfaces, the payer and the payee can have detailed information about the target order before payment processing, thereby improving the payment experience of the user. On the other hand, since the two client interfaces are the interfaces corresponding to the two applets, the two applets are simultaneously running in the electronic device, and payment can be realized based on the functions corresponding to the two applets, thereby improving the use experience of the electronic device.

[0196] In an optional embodiment of the present application, the first display screen is further configured to display setting information.

[0197] The setting information can be information set by a merchant staff, such as advertisement information, commodity information, etc. The setting information can be displayed simultaneously with the first order information in different display areas of the first client interface, or the setting information can be displayed when the first order information is not displayed on the first client interface. If the setting information is commodity information, the merchant staff can improve the commodity conversion rate through the setting information.

[0198] In an optional embodiment of the present application, the payment device further comprises a commodity information collection device configured to collect commodity information of a commodity to be paid.

[0199] The commodity information collection device can send the collected commodity information to the processor of the payment device, so that the processor generates first order information and second order information of the target order based on the commodity information of the to-be-paid commodity.

[0200] In an optional embodiment of the present application, the payment device further comprises an image collection device, and the processor is further configured to, when receiving a selection operation on the target payment method displayed on the first client interface, call the image collection device to collect the face information of the user of the payment target order.

[0201] The image collection device can be part of the payment device, such as a camera of the payment device.

[0202] Optionally, the payment device can further comprise an external card reader (such as a POS (point of sale) machine), based on which bank card payment can be performed.

[0203] Optionally, when the information received by the processor has a time sequence, the information can be processed in the order of receiving the information. If the received information has no sequence, the priority of each information can be determined, and the information can be processed based on the priority.

[0204] Optionally, the first display screen and the second display screen can each correspond to a processor, such as a first processor (also referred to as a front screen processor) corresponding to the first display screen, and a second processor (also referred to as a back screen processor) corresponding to the second display screen, and the two processors can communicate with each other.

[0205] The first processor is configured to, when receiving the first order information sent by the second processor, display the first order information through the first client interface.

[0206] The second processor is configured to, based on the commodity information of the to-be-paid commodity collected through the commodity information collection device, generate the first order information and the second order information of the target order; display the second order information through the second client interface, and send the first order information to the first processor.

[0207] The target processor is configured to, when receiving a payment trigger operation on the target order received through the target client interface, perform payment processing on the target order information.

[0208] The target client interface is at least one of the first client interface or the second client interface, and the target processor is at least one of the first processor or the second processor.

[0209] As an example, refer to Figure 13Another payment device is shown, which includes a first display screen, a second display screen, a first processor, a second processor and a communication server; the first display screen is connected with the first processor, the second display screen is connected with the second processor, and the first processor and the second processor are respectively connected with the communication server;

[0210] The first display screen is configured to display a first client interface of a first applet, and the second display screen is configured to display a second client interface of a second applet, wherein the first applet and the second applet are associated applets.

[0211] The second processor is configured to generate first order information and second order information of a target order based on product information of a product to be paid collected by a product information collection device, display the second order information through the second client interface, and send the first order information to the first processor through the communication server;

[0212] The first processor is configured to display the first order information through the first client interface when receiving the first order information sent by the second processor.

[0213] The target processor is configured to perform payment processing on the target order when receiving a payment trigger operation for the target order through a target client interface.

[0214] The target client interface is at least one of the first client interface or the second client interface, and the target processor is at least one of the first processor or the second processor.

[0215] The communication server provides communication services for the first processor and the second processor, that is, the first processor and the second processor can communicate through the communication server, and the first processor and the second processor can also communicate with a payment server through the communication server. The first processor is a processor corresponding to the first display screen, and the first display screen is a display screen facing customers, so the first processor is the front screen processor described above, and the second display screen is a display screen facing cashiers, so the second processor is the back screen processor described above.

[0216] It can be understood that the optional embodiments shown in the Figure 1 and other optional embodiments based on the scheme shown in the Figure 1 are similar to the optional embodiments shown in the Figure 12 and Figure 13 and other optional embodiments based on the scheme shown in the Figure 12The alternative embodiments based on the illustrated scheme are descriptions of the same technical solution from two different perspectives. One is from the perspective of the payment device (i.e., from the user's perspective), where the execution subject of the method is the payment device used by the user to make the payment. The other is from the perspective of the payment device. In the preceding description, some repetitive content may not have been repeated. However, the descriptions from the two different perspectives can be referenced and supplemented by each other, which is clear to those skilled in the art.

[0217] To better illustrate and understand the principles of the method provided in this application, the solution of this application is described below with reference to an optional specific embodiment. It should be noted that the specific implementation of each step in this specific embodiment should not be construed as a limitation on the solution of this application. Other implementation methods that can be conceived by those skilled in the art based on the principles of the solution provided in this application should also be considered within the protection scope of this application.

[0218] In this example, facial recognition payment is used as an example to illustrate the solution of this application. Figure 10 This diagram illustrates the interaction flow of a dual-screen payment device. Figure 10 In this process, customers interact with the second display screen through the first client interface of the first mini-program (the mini-program on the front screen of the device) displayed on the first screen, while cashiers interact with the first display screen through the second client interface of the second mini-program (the mini-program on the back screen of the device) displayed on the second screen. The two mini-programs can communicate with each other to complete the payment process.

[0219] Figure 11 This application illustrates a structural diagram of a face payment system based on a dual-screen payment device to which this application applies, such as... Figure 11 As shown, the system may include electronic devices (payment devices) and a payment server ( Figure 11 (Not shown in the text), wherein the payment device and the payment server can communicate with each other, and the specific form of the communication network is not limited in the embodiments of this application.

[0220] The payment device comprises a first display screen, a second display screen and a processor (message manager), and the first display screen and the second display screen are connected with the processor respectively. The first display screen is used for displaying a first client interface of a first applet (IoT applet 1, which can be referred to as a front-screen applet), and the second display screen is used for displaying a second client interface of a second applet (IoT applet 2, which can also be referred to as a back-screen applet), wherein the first applet and the second applet are associated applets. The first applet runs through a front-screen applet container, and the second applet runs through a back-screen applet container. The applet container is a container carrier of an applet runtime, and the front-screen applet container and the back-screen applet container are process isolated.

[0221] The first display screen faces the customer, and the second display screen faces the cashier. The two display screens realize communication through a communication module. The communication module is essentially a message manager, which comprises three parts, a message channel, a channel for transmitting cross-process messages, i.e., a channel for transmitting information between the two display screens; a front-screen processor for receiving and processing information received by the first client interface and information sent by the back-screen processor; and a back-screen processor for receiving and processing information received by the second client interface and information sent by the front-screen processor. Figure 11 For example, in the interaction flow shown in FIG. 8, whether a payment behavior (front-screen initiated behavior, such as payment) initiated by the front screen or a collection behavior (back-screen initiated behavior, such as collection) initiated by the back screen, the message manager can be used for bidirectional communication transmission to complete the entire payment process.

[0222] The present scheme will be further described in combination with face payment as follows:

[0223] In the present example, the payment behavior initiated by the front screen is taken as an example for description. Before payment is made by using the electronic device, the electronic device is first started, and the first applet and the second applet are loaded. The specific starting flow is as follows: in response to a first starting operation (start-up starting) on the electronic device, the first applet is loaded. At this time, loading the first applet comprises automatically loading a running environment of the first applet, initializing a first container of the first applet, and starting a first applet runtime. After loading, the first initialization interface of the first applet can be displayed through the first display screen. At the same time of starting the first applet, in response to an operation of a cashier clicking an application identifier of the second applet displayed on the second display screen, a running environment of the second applet is loaded, a second container of the second applet is initialized, and a second applet runtime is started. After loading, the second initialization interface of the second applet can be displayed through the second display screen. The first client interface can comprise the first initialization interface, and the second client interface can comprise the second initialization interface.

[0224] Through the above starting flow, the electronic device can work normally, that is, the payment function can be completed. After the cashier collects the product information of the to-be-paid product through the product information collection device, the product information of the to-be-paid product is transmitted to the message manager. The message manager generates first order information and second order information of a target order based on the product information of the to-be-paid product. The first order information is displayed on the first client interface, and the second order information is displayed on the second client interface. The first client interface also displays a payment control. In response to a triggering operation on the payment control, at least one payment option is displayed, and the at least one payment option includes a WeChat face payment option. In response to a payment triggering operation (triggering behavior, payment) on the WeChat face payment option (target payment method) received through the first client interface, an image collection device is called to collect face information of a user (customer) of the payment target order. The face information and the to-be-paid amount of the target order are sent to a payment server corresponding to the target payment method, so that the payment server determines the identity information of the user based on the face information, acquires WeChat payment account information of the user based on the identity information, and deducts the to-be-paid amount from the WeChat payment account based on the to-be-paid amount, to complete face payment (payment completion). In response to obtaining a payment result of the target order, the payment result is displayed on at least one of the second client interface or the first client interface.

[0225] When the payment triggering operation on the WeChat face payment option is received, the first display screen can send a message that the customer selects the WeChat face payment option as target information to the second display screen for display, to inform the cashier of the payment method selected by the customer. Specifically, the first display screen sends the target information to the front screen processor. Before sending the target information, the target information is assembled into a message structure by the front screen processor. The message structure includes an applet ID (AppId) of the first applet and message content (specific content of the target information, and in this example, the target payment method selected by the customer is WeChat face payment). The front screen processor detects whether the target information meets a set condition. If the set condition is met, the front screen processor transmits the target information to the back screen processor through an IPC message pipeline. The back screen processor encapsulates the target information into a JsEvent, and finally generates a back screen applet Runtime (instance) through the back screen processor, to process the target information through the instance (process message shown in (1000506) Figure 9

[0226] Based on the scheme of the present application, the order information of the target order is displayed based on the dual-screen payment device. The payment triggering operation on the target order is received through the first client interface or the second client interface, so that the entire payment process is more convenient, and a better payment experience is provided for the user. ​

[0227] Based on the same principles as the method provided in the present application Figure 1 The embodiments of the present application also provide a payment device, which is contained in an electronic device, the electronic device comprising a first display screen and a second display screen, as shown in the drawings, the payment device 30 comprising an interface display module 310, an order display module 320 and an order processing module 330; wherein: Figure 14

[0228] The interface display module 310 is configured to display a first client interface of a first mini-program through the first display screen and display a second client interface of a second mini-program through the second display screen, wherein the first mini-program and the second mini-program are associated mini-programs.

[0229] The order display module 320 is configured to display first order information of a target order on the first client interface and display second order information of the target order on the second client interface, wherein the first order information and the second order information are generated based on commodity information of a commodity to be paid collected by a commodity information collection device.

[0230] The order processing module 330 is configured to perform payment processing on the target order in response to a payment trigger operation for the target order received through a target client interface.

[0231] The target client interface is at least one of the first client interface or the second client interface.

[0232] The scheme provided by the embodiments of the present application can display a first client interface of a first mini-program through a first display screen of an electronic device, display a second client interface of a second mini-program through a second display screen, display first order information of a target order on the first client interface, and display second order information of the target order on the second client interface. Since the order information is displayed through two client interfaces, when payment is made, a payment trigger operation for the target order can be received through the first client interface or the second client interface, and the target order is processed in response to the operation. In the present application, on the one hand, since the order information is displayed through two client interfaces, the payer and the payee can have a detailed understanding of the target order before payment processing, thereby improving the payment experience of the user. On the other hand, since the two client interfaces are interfaces corresponding to two mini-programs, and the two mini-programs are simultaneously running in the electronic device, payment can be realized based on the functions corresponding to the two mini-programs, thereby improving the use experience of the electronic device.

[0233] Optionally, when the order processing module performs payment processing on the target order in response to the payment trigger operation for the target order received through the target client interface, the order processing module is specifically configured to:

[0234] ​display at least one payment method option in the first client interface;

[0235] In response to a selection operation on a target payment method in the at least one payment method option received through the first client interface, the target order is processed for payment through the target payment method, and the payment trigger operation includes the selection operation. The target client interface includes the first client interface.

[0236] Optionally, the at least one payment method option includes a face payment method and a non-face payment method. If the target payment method is a non-face payment method, the order processing module is specifically configured to:

[0237] Display a payment interface corresponding to the target payment method of the target order;

[0238] In response to a payment confirmation operation on the target order, the target order is processed for payment through the target payment method; and the payment trigger operation further includes a payment determination operation.

[0239] Optionally, if the target payment method is a face payment method, the order processing module is specifically configured to:

[0240] Call an image acquisition device to acquire face information of a user of the payment target order;

[0241] Send the target order to a payment server corresponding to the face payment method. The payment server is configured to process payment for the target order based on the face information.

[0242] Optionally, the second client interface displays a collection control. When the order processing module displays at least one payment method option in the first client interface, the order processing module is specifically configured to:

[0243] In response to a selection trigger operation on the collection control, at least one payment method option is displayed in the first client interface;

[0244] The target client interface further includes a second client interface, and the payment trigger operation further includes a selection trigger operation.

[0245] Optionally, the device further includes:

[0246] The starting module is configured to, in response to a first starting operation on the electronic device, load the first applet and the second applet respectively, and display a first initialization interface of the first applet through the first display screen and a second initialization interface of the second applet through the second display screen.

[0247] Optionally, the starting module is specifically configured to load the second applet in response to a first starting operation on the electronic device.

[0248] In response to the first starting operation on the electronic device, the second display screen is started, and the second display screen displays at least one application identifier, and the at least one application identifier includes an application identifier corresponding to the second applet.

[0249] In response to a triggering operation on the application identifier corresponding to the second applet, the second applet is loaded.

[0250] Optionally, the first client interface displays a setting identifier, and when the first client interface cannot display information, the apparatus further includes:

[0251] The fault processing module is configured to reload the first applet in response to a triggering operation on the setting identifier.

[0252] The payment device provided in the embodiments of the present application can execute the payment method provided in the embodiments of the present application, and the implementation principles are similar. The actions performed by each module and unit in the payment device in the embodiments of the present application are corresponding to the steps in the payment method in the embodiments of the present application. For the detailed functions of each module of the payment device, refer to the description of the corresponding payment method in the foregoing description, which will not be repeated here.

[0253] The payment device can be a computer program (including program code) running in a computer device, for example, the display device of the user interface is an application software. The device can be used to execute the corresponding steps in the method provided in the embodiments of the present application.

[0254] In some embodiments, the payment device provided in the embodiments of the present application can be implemented in a combination of software and hardware. As an example, the payment device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the payment method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can use one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), or other electronic elements.

[0255] In some embodiments, the payment device provided by the embodiments of the present application can be implemented in a software manner, and the payment device stored in the memory can be software in the form of programs and plug-ins, and includes a series of modules, including the interface display module 310, the order display module 320 and the order processing module 330 in the payment device 30; and each module in the payment device 30 is used to implement the payment method provided by the embodiments of the present application.

[0256] The embodiments of the present application provide a payment device, compared with the prior art, the first client interface of the first applet can be displayed through the first display screen of the electronic device, the second client interface of the second applet can be displayed through the second display screen, the first order information of the target order can be displayed through the first client interface, and the second order information of the target order can be displayed through the second client interface. Since the order information is displayed through two client interfaces, when payment is performed, the payment trigger operation for the target order can be received through the first client interface or the second client interface, and the target order is processed in response to the operation. In the present application, on the one hand, since the order information is displayed through two client interfaces, the payer and the payee can have detailed understanding of the target order before payment processing, thereby improving the payment experience of the user, and on the other hand, since the two client interfaces are the interfaces corresponding to two applets, and the two applets are simultaneously running in the electronic device, the payment can be implemented based on the functions corresponding to the two applets, and the use experience of the electronic device can be improved.

[0257] The payment device of the present application is introduced from the perspective of virtual modules or virtual units above, and the electronic device of the present application is introduced from the perspective of entity devices below.

[0258] Based on the same principle as the method provided by the embodiments of the present application, an electronic device is provided in the embodiments of the present application, which includes a memory and a processor; the memory stores a computer program, and the computer program can implement the method provided in any optional manner of the present application when executed by the processor.

[0259] As an optional solution, Figure 15 A structural schematic diagram of an electronic device to which the embodiments of the present application are applicable is shown in FIG. 1, Figure 15 As shown in FIG. 1, Figure 15The electronic device 4000 shown includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 can also include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception, etc. It should be noted that the transceiver 4004 is not limited to one in actual application, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0260] The processor 4001 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure. The processor 4001 can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of DSP and microprocessor, etc.

[0261] The bus 4002 can include a path for transmitting information between the above-mentioned components. The bus 4002 can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 15 Only one thick line is used in the middle, but it does not mean that there is only one bus or one type of bus.

[0262] The memory 4003 can be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.

[0263] The memory 4003 is configured to store application code (computer program) for implementing the scheme of the present application, and the processor 4001 is configured to control the execution. The processor 4001 is configured to execute the application code stored in the memory 4003 to implement the content shown in the foregoing method embodiments.

[0264] The electronic device includes, but is not limited to, a user terminal device and a server. The server can be a physical server, a cloud server, a single server, a server cluster, or the like.

[0265] The computer readable storage medium stores a computer program, and when the program runs on a computer, the computer can execute the corresponding content in the foregoing method embodiments.

[0266] According to an aspect of the present application, a computer program product or computer program is provided, which includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to make the computer device execute the method provided in the various optional implementation manners related to the foregoing method embodiments.

[0267] It should be understood that although the steps in the flowcharts of the drawings are shown in sequence according to the indication of the arrows, the steps are not necessarily executed in sequence according to the indication of the arrows. Unless explicitly stated herein, the execution of the steps is not strictly limited in sequence, and the steps can be executed in other sequences. Moreover, at least part of the steps in the flowcharts of the drawings can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or sub-steps or stages of other steps.

[0268] The above only describes some embodiments of the present application, and it should be pointed out that for ordinary skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.

Claims

1. A payment method, characterized in that, The method is executed by an electronic device including a first display screen and a second display screen, and the method includes: displaying a first client interface of a first applet through the first display screen and displaying a second client interface of a second applet through the second display screen, wherein the first applet and the second applet are associated applets, the first applet and the second applet each correspond to an applet container, the first applet runs through a first container, and the second applet runs through a second container; displaying first order information of a target order in the first client interface and displaying second order information of the target order in the second client interface, wherein the first order information and the second order information are generated based on commodity information of to-be-paid commodities collected by a commodity information collection device; in response to a payment trigger operation for the target order received through a target client interface, performing payment processing on the target order, wherein the target client interface is at least one of the first client interface or the second client interface.

2. The method of claim 1, wherein, The response to the payment trigger operation for the target order received through the target client interface to perform payment processing on the target order includes: displaying at least one payment method option in the first client interface; in response to a selection operation for a target payment method in the at least one payment method option received through the first client interface, performing payment processing on the target order through the target payment method, the payment trigger operation includes the selection operation, and the target client interface includes the first client interface.

3. The method of claim 2, wherein, The at least one payment method option includes a face payment method and a non-face payment method, and if the target payment method is the non-face payment method, the payment processing on the target order through the target payment method includes: displaying a payment interface corresponding to the target payment method of the target order; in response to a payment confirmation operation for the target order, performing payment processing on the target order through the target payment method; and the payment trigger operation further includes the payment confirmation operation.

4. The method of claim 2, wherein, If the target payment method is a face payment method, the payment processing on the target order through the target payment method includes: calling an image collection device to collect face information of a user paying the target order; sending a to-be-paid amount of the target order and the face information to a payment server corresponding to the face payment method, so that the payment server performs payment processing on the target order based on the face information.

5. The method of claim 2, wherein, The second client interface displays a collection control, and the displaying of the at least one payment method option in the first client interface includes: in response to a selection trigger operation for the collection control, displaying at least one payment method option in the first client interface; The target client interface further includes the second client interface, and the payment trigger operation further includes the selection trigger operation.

6. The method of claim 1, wherein, Further includes: In response to a first starting operation on the electronic device, the first applet and the second applet are loaded respectively, and a first initialization interface of the first applet is displayed on the first display screen, and a second initialization interface of the second applet is displayed on the second display screen.

7. The method of claim 6, wherein, In response to a first starting operation on the electronic device, the second applet is loaded, including: In response to a first starting operation on the electronic device, the second display screen is started, and at least one application identifier is displayed on the second display screen, and the at least one application identifier includes an application identifier corresponding to the second applet; In response to a triggering operation on the application identifier corresponding to the second applet, the second applet is loaded.

8. The method of claim 1, wherein, The first client interface displays a setting identifier, and when the first client interface cannot display information, the method further includes: In response to a triggering operation on the setting identifier, the first applet is reloaded.

9. The method of claim 4, wherein, The method further includes: The image acquisition device is called to acquire at least two face images of the user who pays for the target order; For each of the at least two face images, a target value corresponding to each evaluation index of the face image is determined; based on the weight corresponding to each evaluation index and the target value corresponding to each evaluation index of the face image, an image score of the face image is determined; The face image with the highest image score in the at least two face images is determined as the face information. The evaluation indexes include at least two of the following: A proportion of a face size in a face image; A face shooting angle; Image quality.

10. The method of claim 1, wherein, The payment processing of the target order includes: Based on the payment information of the target order and the applet identifier of the applet corresponding to the target client interface, a target message is assembled by a processor corresponding to the target client interface to obtain a target message; The target message is sent to a processor corresponding to an associated applet of the applet by a processor corresponding to the target client interface, so that the target message is displayed on a client interface corresponding to the associated applet.

11. A payment device, characterized by The method includes a first display screen, a second display screen, a first processor and a second processor, the first display screen is connected with the first processor, and the second display screen is connected with the second processor; The first display screen is used to display a first client interface of a first applet, and the second display screen is used to display a second client interface of a second applet, wherein the first applet and the second applet are associated applets, the first applet and the second applet each correspond to an applet container, the first applet runs through a first container, and the second applet runs through a second container; The first processor is used to generate first order information of a target order when receiving commodity information of a commodity to be paid based on the commodity information acquired by a commodity information acquisition device, and display the first order information on the first client interface; The second processor is configured to generate second order information of a target order when receiving commodity information of a commodity to be paid based on the commodity information collected by the commodity information collection device; and display the second order information through the second client interface. A processor corresponding to a target client interface is configured to perform payment processing on the target order information when receiving a payment trigger operation for the target order through the target client interface; and the target client interface is at least one of the first client interface or the second client interface.

12. The payment device of claim 11, wherein, The payment device further comprises the commodity information collection device configured to collect commodity information of a commodity to be paid.

13. The payment device of claim 11, wherein, The payment device further comprises an image collection device, and the processor is further configured to call the image collection device to collect face information of a user paying for the target order when receiving a selection operation for a target payment method displayed through the first client interface.

14. The payment device of claim 11, wherein, The processor comprises a first processor and a second processor, and the payment device further comprises a communication server; The first processor is connected with the first display screen, and the second processor is connected with the second display screen; and the first processor and the second processor communicate through the communication server. The first processor is configured to display the first order information through the first client interface when receiving the first order information sent by the second processor. The second processor is configured to generate first order information and second order information of a target order when receiving commodity information of a commodity to be paid based on the commodity information collected by the commodity information collection device. The second order information is displayed through the second client interface, and the first order information is sent to the first processor through the communication server. A target processor is configured to perform payment processing on the target order when receiving a payment trigger operation for the target order through a target client interface. The target client interface is at least one of the first client interface or the second client interface, and the target processor is at least one of the first processor or the second processor.

15. The payment device of claim 11, wherein, The processor corresponding to the target client interface is further configured to assemble a target message based on payment information of the target order and a small program identifier of a small program corresponding to the target client interface, and send the target message to a processor corresponding to an associated small program of the small program, so as to display the target message through a client interface corresponding to the associated small program.

16. A payment device, characterized by The device is included in an electronic device, and the electronic device comprises a first display screen and a second display screen, and the device comprises: An interface display module is configured to display a first client interface of a first applet on the first display screen and display a second client interface of a second applet on the second display screen, wherein the first applet and the second applet are associated applets, the first applet and the second applet each correspond to an applet container, the first applet is run through a first container, and the second applet is run through a second container; An order display module is configured to display first order information of a target order on the first client interface and display second order information of the target order on the second client interface, wherein the first order information and the second order information are generated based on product information of to-be-paid products collected by a product information collection device; An order processing module is configured to perform payment processing on the target order in response to a payment trigger operation received through a target client interface for the target order, wherein the target client interface is at least one of the first client interface or the second client interface.

17. The apparatus of claim 16, wherein, The order processing module is configured to: display at least one payment method option on the first client interface; and perform payment processing on the target order through a target payment method in response to a selection operation received through the first client interface for the target payment method from the at least one payment method option, wherein the payment trigger operation includes the selection operation, and the target client interface includes the first client interface.

18. The apparatus of claim 17, wherein, The at least one payment method option includes a face payment method and a non-face payment method, and if the target payment method is the non-face payment method, the order processing module is configured to: display a payment interface corresponding to the target payment method for the target order; and perform payment processing on the target order through the target payment method in response to a payment confirmation operation for the target order, wherein the payment trigger operation further includes the payment confirmation operation.

19. The apparatus of claim 17, wherein, If the target payment method is the face payment method, the order processing module is configured to: invoke an image collection device to collect face information of a user paying for the target order; and send a to-be-paid amount of the target order and the face information to a payment server corresponding to the face payment method, so that the payment server performs payment processing on the target order based on the face information.

20. The apparatus of claim 17, wherein, The second client interface displays a collection control, and the order processing module is configured to: display at least one payment method option on the first client interface in response to a selection trigger operation for the collection control; and the target client interface further includes the second client interface, and the payment trigger operation further includes the selection trigger operation.

21. The apparatus of claim 16, wherein, The interface display module is further configured to: in response to a first start operation on the electronic device, load the first applet and the second applet respectively, and display a first initialization interface of the first applet on the first display screen and a second initialization interface of the second applet on the second display screen.

22. The apparatus of claim 21, wherein, The interface display module is configured to: In response to a first starting operation on the electronic device, the second display screen is started, and the second display screen displays at least one application identifier, and the at least one application identifier includes an application identifier corresponding to the second applet; In response to a triggering operation on the application identifier corresponding to the second applet, the second applet is loaded.

23. The apparatus of claim 16, wherein, The first client interface displays a setting identifier, and when the first client interface cannot display information, the interface display module is further configured to: In response to a triggering operation on the setting identifier, the first applet is reloaded.

24. The apparatus of claim 19, wherein, The order processing module is configured to: Call an image acquisition device to acquire at least two face images of a user who pays for the target order; For each of the at least two face images, determine an index value of the face image corresponding to each evaluation index; based on the weight corresponding to each evaluation index and the index value of the face image corresponding to each evaluation index, determine an image score of the face image; Determine a face image with the highest image score among the at least two face images as the face information. The evaluation indexes include at least two of the following: A proportion of a face size in a face image; A face shooting angle; Image quality.

25. The apparatus of claim 16, wherein, When processing payment for the target order, the order processing module is configured to assemble a message structure body based on payment information of the target order and an applet identifier of an applet corresponding to the target client interface, to obtain a target message; and send the target message to a processor corresponding to an associated applet of the applet, so as to display the target message on a client interface corresponding to the associated applet.

26. An electronic device, comprising: The memory stores a computer program, and the processor executes the method of any one of claims 1-10 when the computer program is run.

27. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the processor executes the method of any one of claims 1-10 when the computer program is run.

Citation Information

Patent Citations

  • Order display method, device and equipment and storage medium

    CN110599150A

  • Cash register provided with double display screens, information interaction method and device and medium

    CN112216042A

  • Double screen cash registering machine

    CN206431758U