Payment method, device, electronic device and storage medium

By using the target application of the first electronic device to call the payment program of the second electronic device under an operating system that supports distributed task scheduling, the problem of high development cost and low efficiency of cross-device payment solutions is solved, and a simplified payment process is achieved. and efficient development process.

CN113128993BActive Publication Date: 2024-09-20CHINA UNIONPAY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110384251.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-09
Publication Date
2024-09-20
Estimated Expiration
2041-04-09

AI Technical Summary

Technical Problem

The development cost of cross-device payment solutions is high and the development efficiency is low. It requires separate software development for the two devices participating in the payment, resulting in complex communication and payment logic.

Method used

By integrating the communication program in the target application of the first electronic device, calling the payment program on the second electronic device, and realizing the transmission and verification of payment information under an operating system that supports distributed task scheduling, the development process is simplified.

Benefits of technology

It reduces development costs, improves development efficiency, avoids the need to customize payment solutions for two devices, and achieves efficient implementation of cross-device payment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113128993B
    Figure CN113128993B
Patent Text Reader

Abstract

The present application discloses a payment method, device, electronic device and storage medium, wherein the payment method is applied to a first electronic device, and the payment method comprises: when a target application on the first electronic device generates payment information to be paid, calling a first payment program on a second electronic device through a communication program integrated in the target application, wherein the second electronic device is an electronic device that establishes a communication connection with the first electronic device; sending a payment request including payment information to the first payment program, so that the second electronic device makes payment according to the payment information, wherein the operating systems of the first electronic device and the second electronic device both support distributed task scheduling. By using the payment method disclosed in the present application, it is possible to avoid customizing payment schemes for two devices respectively, saving development costs and improving development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to a payment method, device, electronic device and storage medium. Background Art

[0002] With the popularity of electronic devices such as smartphones and tablets, it has become a habit for users to use electronic devices to make online payments. Users can use a variety of methods to make online payments. For example, shopping and paying on the same device; or shopping on one device and paying on another device, that is, cross-device payment.

[0003] When developing software, if you want to implement cross-device payment, you need to develop software for the two devices involved in the payment. For example, you need to develop software that can generate payment information on device A, and software that can make payments on device B. In addition, since devices A and B need to communicate with each other, you also need to develop software for communication between devices A and B. This results in high development costs and low development efficiency for cross-device payment solutions. Summary of the invention

[0004] The embodiments of the present application provide a payment method, apparatus, electronic device and storage medium, which can solve the technical problems of high development cost and low development efficiency of cross-device payment solutions.

[0005] In a first aspect, an embodiment of the present application provides a payment method, applied to a first electronic device, the method comprising:

[0006] In the case where the target application on the first electronic device generates payment information to be paid, calling a first payment program on a second electronic device through a communication program integrated in the target application, where the second electronic device is an electronic device that establishes a communication connection with the first electronic device;

[0007] A payment request including the payment information is sent to the first payment program so that the second electronic device makes payment according to the payment information, wherein the operating systems of the first electronic device and the second electronic device both support distributed task scheduling.

[0008] In a second aspect, an embodiment of the present application provides a payment method, which is applied to a second electronic device, and the method includes:

[0009] When the second electronic device establishes a communication connection with a first electronic device on which a target application is installed, and a first payment program on the second electronic device is called through a communication program in the target application, a payment request sent by the first electronic device is received through the first payment program, the payment request includes payment information generated by the target application, and the operating systems of the first electronic device and the second electronic device both support distributed task scheduling;

[0010] displaying an interface including the payment information;

[0011] Upon receiving identity verification information input by the user for the payment information, payment is made according to the identity verification information.

[0012] In a third aspect, an embodiment of the present application provides a payment device, applied to a first electronic device, the device comprising:

[0013] a calling module, configured to call a first payment program on a second electronic device through a communication program integrated in the target application when a target application on the first electronic device generates payment information to be paid, the second electronic device being an electronic device that establishes a communication connection with the first electronic device;

[0014] A sending module is used to send a payment request including the payment information to the first payment program so that the second electronic device makes payment according to the payment information, wherein the operating systems of the first electronic device and the second electronic device both support distributed task scheduling.

[0015] In a fourth aspect, an embodiment of the present application provides a payment device, applied to a second electronic device, the device comprising:

[0016] a first receiving module, configured to, when the second electronic device establishes a communication connection with a first electronic device on which a target application is installed, and a first payment program on the second electronic device is called through a communication program in the target application, receive a payment request sent by the first electronic device through the first payment program, wherein the payment request includes payment information generated by the target application, and operating systems of the first electronic device and the second electronic device both support distributed task scheduling;

[0017] A first display module, used to display an interface including the payment information;

[0018] The payment module is used to make payment according to the identity verification information input by the user for the payment information when the identity verification information is received.

[0019] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the payment method provided in the first aspect or the second aspect is implemented.

[0020] In a sixth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the payment method provided in the first aspect or the second aspect is implemented.

[0021] The payment method, device, electronic device and storage medium of the embodiment of the present application, since the operating systems of the first electronic device and the second electronic device both support distributed task scheduling, the software developer can regard the first electronic device and the second electronic device as a whole when developing. In this way, for the software developer, it is to develop a program for a task, but this program is distributed on the first electronic device and the second electronic device to complete. Specifically, in the case where the target application of the first electronic device generates payment information to be paid, the first payment program on the second electronic device is called through the communication program integrated in the target application, and a payment request including the payment information is sent to the first payment program, so that the second electronic device makes the payment. In this way, the payment is completed by two electronic devices. Since the communication program is developed during development and then integrated into the application, the communication program can be used to call the first payment program already existing in the second electronic device, and there is no need to customize the payment scheme for the two devices separately, which saves development costs and improves development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 It is a schematic flow chart of a cross-device payment method in the related art.

[0024] Figure 2 It is a structural diagram of an embodiment of a payment system provided by the present application.

[0025] Figure 3 It is a flow chart of an embodiment of a payment method provided by the present application.

[0026] Figure 4 It is a structural diagram of another embodiment of a payment system provided by the present application.

[0027] Figure 5 It is a structural diagram of another embodiment of a payment system provided by the present application.

[0028] Figure 6 It is a structural diagram of another embodiment of a payment system provided by the present application.

[0029] Figure 7 It is a structural diagram of another embodiment of a payment system provided by the present application.

[0030] Figure 8 It is a structural diagram of another embodiment of a payment system provided by the present application.

[0031] Fig. 9 It is a structural diagram of an embodiment of an order interface provided by the present application.

[0032] Fig.10 It is a structural diagram of an embodiment of a login interface provided by the present application.

[0033] Fig.11 It is a structural diagram of an embodiment of a payment interface provided by the present application.

[0034] Fig.12 It is a structural diagram of an embodiment of a verification code interface provided by the present application.

[0035] Fig.13 It is a structural diagram of another embodiment of a payment system provided by the present application.

[0036] Fig.14 It is a flow chart of an embodiment of a payment method provided in the first aspect of the present application.

[0037] Fig.15 It is a flow chart of an embodiment of a payment method provided in the first aspect of the present application.

[0038] Fig.16 It is a structural diagram of an embodiment of a payment device provided in the third aspect of the present application.

[0039] Fig.17 It is a structural diagram of an embodiment of a payment device provided in the fourth aspect of the present application.

[0040] Fig.18 A schematic diagram of the hardware structure of an embodiment of an electronic device provided in the fifth aspect of the present application is shown. DETAILED DESCRIPTION

[0041] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0042] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0043] In related technologies, cross-device payment can be performed. For details, please refer to Figure 1 After swiping the consumer's bank card on the merchant's point of sale (POS) 102, a password keyboard will be displayed on the POS machine 102. If the consumer does not want to enter the password on the POS machine 102, the password keyboard can be transferred to his own electronic device 104 and then enter the password.

[0044] Specifically, the merchant's POS machine 102 generates payment information, and then the merchant's POS machine 102 establishes a communication connection with the consumer's electronic device 104, such as establishing a Bluetooth connection, or establishing a Near Field Communication (NFC) connection by a touch. After the communication connection is established, the merchant's POS machine 102 sends the payment information it generates to the consumer's electronic device 104. Then, a password keyboard is displayed on the consumer's electronic device 104. After the consumer enters the password to complete the payment, the entered password is synchronized to the merchant's POS machine 102, so that the merchant's POS machine 102 can make the payment.

[0045] However, for the cross-device payment solution in the related art, when developing software, it is necessary to develop software for the two devices involved in the payment (such as the consumer's device and the merchant's POS machine), which results in high development costs and low development efficiency of the cross-device payment solution.

[0046] In order to solve the above technical problems, the present application provides a payment method, which is implemented based on a payment system including a first electronic device and a second electronic device, and the first electronic device and the second electronic device support distributed task scheduling. Distributed task scheduling refers to treating multiple electronic devices as a whole. For developers, it means developing a task, but this task is distributed on multiple electronic devices. Completing a task by multiple electronic devices is distributed task scheduling. In an embodiment of the present application, the payment task is distributed on multiple electronic devices so that the payment task is completed by multiple electronic devices.

[0047] Figure 2 Schematic diagram of a payment system according to an embodiment of the present application. Figure 2 As shown, the payment system includes a first electronic device and a second electronic device, and the operating systems of the first electronic device and the second electronic device both support distributed task scheduling.

[0048] A communication program is integrated in the target application of the first electronic device, and the communication program is responsible for communicating with the first payment program of the second electronic device. When the target application on the first electronic device generates payment information, the first electronic device can send the payment information to the first payment program of the second electronic device through the communication program. In this way, the second electronic device can obtain the payment information, and then an interface including the payment information can be displayed on the second electronic device for the user to perform payment verification on the second electronic device.

[0049] Based on the above payment system, the following Figure 3 Describe the payment methods provided by this application.

[0050] Figure 3 This is a flow chart of an embodiment of a payment method provided by this application. Figure 3 As shown, the payment method 200 includes:

[0051] S202: The first electronic device establishes a communication connection with the second electronic device.

[0052] Among them, a communication connection such as Bluetooth communication, NFC communication or Wi-Fi communication can be established between the first electronic device and the second electronic device. For example, the first electronic device and the second electronic device respectively turn on Bluetooth, and then the user operates on one of the electronic devices to make the electronic device search for surrounding electronic devices. Then, the user selects another electronic device that needs to establish a communication connection from the electronic devices that can be searched, so that one of the electronic devices obtains the identification number (Identity Document, ID) of the other electronic device and establishes a communication connection with the other electronic device.

[0053] The payment method 200 also includes:

[0054] S204: The target application on the first electronic device generates payment information to be paid.

[0055] The target application may be an application with an online shopping function or an application with a payment function. The payment information may include at least one of the following: payment amount, payee information, and information about purchased goods or services.

[0056] It should be noted that the execution order of S202 and S204 is not limited here, and S204 may be executed after S202, or S202 may be executed after S204.

[0057] The payment method 200 also includes:

[0058] S206, the first electronic device calls the first payment program on the second electronic device through the communication program integrated in the target application;

[0059] S208, the first electronic device sends a payment request including payment information to the first payment program, and correspondingly, the second electronic device receives the payment request sent by the first electronic device through the first payment program;

[0060] S210, the second electronic device displays an interface including payment information, so that the user can enter information on the interface to make payment;

[0061] S212: When the second electronic device receives the identity verification information input by the user for the payment information, it makes payment according to the identity verification information.

[0062] The communication program in S206 may be a software development kit (SDK). The first payment program may be a payment control, and the first payment program may include a service component and a display component, the service component is used to communicate with the communication program to obtain payment information from the communication program, and the display component is used to display an interface including payment information.

[0063] In S212, after receiving the identity authentication information, the second electronic device can directly interact with the server according to the identity authentication information to realize payment, or send the identity authentication information to the first electronic device, and the first electronic device interacts with the server to realize payment. It is not limited here how the second electronic device makes payment after receiving the identity authentication information.

[0064] The identity verification information may include at least one of the following: fingerprint information, face information, verification code, and payment password.

[0065] In the embodiment of the present application, since the operating systems of the first electronic device and the second electronic device both support distributed task scheduling, the software developer can regard the first electronic device and the second electronic device as a whole when developing. Then, for the software developer, it is to develop a program for a task, but this program is distributed on the first electronic device and the second electronic device to complete. Specifically, in the case where the target application of the first electronic device generates payment information to be paid, the first payment program on the second electronic device is called through the communication program integrated in the target application, and a payment request including the payment information is sent to the first payment program so that the second electronic device makes the payment. In this way, the payment is completed by two electronic devices. Since the communication program is developed during development and then integrated into the application, the communication program can be used to call the first payment program already existing in the second electronic device, and there is no need to customize the payment schemes for the two devices separately, which saves development costs and improves development efficiency.

[0066] S206 and S208 are exemplarily described below.

[0067] As an example, assuming that the target application is developed based on the operating system of the first electronic device, for example, the operating system of the first electronic device is the Hongmeng operating system, and the target application can be developed based on the Hongmeng operating system, then the target application is the Hongmeng application.

[0068] In this example, S206 may include:

[0069] The communication program of the first electronic device calls the first payment program, so that the communication program sends a payment request to the first payment program.

[0070] In S208, the first electronic device sends a payment request including payment information to the first payment program, which may include:

[0071] The first electronic device sends the payment request from the communication program to the first payment program.

[0072] The second electronic device receiving the payment request sent by the first electronic device through the first payment program in S208 may include:

[0073] The second electronic device receives the payment request sent by the communication program to the first payment program.

[0074] The following illustrates this example by taking the operating systems of the first electronic device and the second electronic device as Hongmeng operating system as an example.

[0075] like Figure 4 As shown, after the Hongmeng application on the first electronic device generates payment information, the communication program integrated in the Hongmeng application directly calls the first payment program and sends a payment request including payment information to the first payment program. The second electronic device receives the payment request through the first payment program and displays the payment information in the payment request for the user to enter the identity verification information for payment.

[0076] It can be seen that in this example, if the target application is developed based on the operating system of the first electronic device, the communication program of the first electronic device can directly call the first payment program of the second electronic device, and the communication program does not need to call an intermediate program before calling the first payment program.

[0077] As another example, assuming that the target application is developed based on an operating system other than the operating system of the first electronic device, for example, the operating system of the first electronic device is Hongmeng operating system, and the target application can be developed based on the Android operating system, then the target application is an Android application. It should be noted that Hongmeng operating system is different from Android operating system in that not only Hongmeng applications can be installed on Hongmeng operating system, but also Android applications and other applications, such as Hypertext Markup Language (HTML 5, H5) applications.

[0078] In this example, S206 may include:

[0079] The communication program of the first electronic device calls the second payment program on the first electronic device, and the second payment program calls the first payment program on the second electronic device.

[0080] In S208, the first electronic device sends a payment request including payment information to the first payment program, which may include:

[0081] The first electronic device sends the payment request from the communication program to the second payment program; and sends the payment request to the first payment program through the second payment program.

[0082] The second electronic device receiving the payment request sent by the first electronic device through the first payment program in S208 may include:

[0083] The second electronic device receives the payment request sent by the second payment program of the first electronic device to the first payment program.

[0084] It should be noted that the second payment program is developed based on the operating system of the first electronic device, so that the second payment program supports distributed task scheduling.

[0085] The following continues to illustrate this example by taking the operating systems of the first electronic device and the second electronic device as the Hongmeng operating system.

[0086] like Figure 5 As shown, after the Android application on the first electronic device generates payment information, the communication program integrated in the Android application first calls the second payment program on the local device, and then the second payment control calls the first payment control on the second electronic device. In this way, the communication program first sends the payment request including the payment information to the second payment program, and then the second payment program sends the payment request to the first payment program of the second electronic device.

[0087] It can be seen that when the target application is developed based on an operating system other than the operating system of the first electronic device, since the operating system other than the operating system of the first electronic device does not support distributed task scheduling, it is necessary to first call the second payment program on the local device, and then call the first payment program on the second electronic device through the second payment program, thereby realizing cross-device payment.

[0088] In one or more embodiments of the present application, the first electronic device sending the payment request including the payment information to the first payment program in S208 may include:

[0089] The first electronic device sends the payment request to the service component in the first payment program.

[0090] The second electronic device receiving the payment request sent by the first electronic device through the first payment program in S208 may include:

[0091] The second electronic device receives the payment request through the service component in the first payment program.

[0092] S210 may include:

[0093] The second electronic device displays an interface including the payment information through a display component in the first payment program.

[0094] In one or more embodiments of the present application, after S212, the payment method 300 may further include:

[0095] The second electronic device sends the payment result to the communication program through the first payment program;

[0096] The first electronic device receives the payment result through the communication program and displays information corresponding to the payment result.

[0097] It should be noted that the payment result may include the identity verification information input by the user. If the second electronic device directly interacts with the payment server to complete the payment, the payment result may include information returned by the server indicating whether the payment is successful.

[0098] Through the embodiment of the present application, the second electronic device sends the payment result to the first electronic device, and displays information corresponding to the payment result on the first electronic device, so that the user of the second electronic device can know the payment result.

[0099] In one or more embodiments of the present application, the file type of the communication program corresponds to the operating system on which the target application is developed. For example, if the target application is a Hongmeng application, the communication program can be a HAR file; if the target application is an Android application, the communication program can be an AAR (Android Archive) file; if the target application is an H5 application, the communication program can be a JS (JavaScript) file.

[0100] The following is an exemplary description of the embodiments of the present application.

[0101] In one example, if Figure 6 As shown, after the Hongmeng application on the first electronic device generates payment information, the software development kit integrated in the Hongmeng application can directly call the first payment program on the second electronic device and send a payment request including the payment information to the service component of the first payment program. The second electronic device receives the payment request through the service component and uses the display component to display the payment information in the payment request so that the user can enter the identity verification information for payment.

[0102] When the display component of the second electronic device receives the identity authentication information input by the user, it generates a payment result according to the user identity authentication information and sends the payment result to the service component. Then, the second electronic device sends the payment result to the first electronic device through the local service component.

[0103] In this way, cross-device payment of Hongmeng applications is realized.

[0104] In another example, Figure 7As shown, after the Android application on the first electronic device generates payment information, the second payment program on the local device is first called by the software development kit integrated in the Android application, and then the first payment control on the second electronic device is called by the service component in the second payment control. In this way, the payment request including the payment information can be first sent to the local service component through the software development kit integrated in the Android application, and then the payment request can be sent to the service component in the first payment control through the local service component.

[0105] After receiving the payment request, the service component in the first payment control uses the display component in the first payment control to display the payment information in the payment request so that the user can enter the identity authentication information on the second electronic device to make payment.

[0106] When the display component of the second electronic device receives the identity authentication information input by the user, a payment result is generated according to the user identity authentication information, and the display component in the first payment program sends the payment result to the service component in the first payment program. Then, the second electronic device first sends the payment result to the service component of the first electronic device through the service component, and then sends the payment result to the software program development kit through the local service component of the first electronic device.

[0107] In this way, cross-device payment for Android applications is realized.

[0108] It should also be noted that, since the operating systems of the first electronic device and the second electronic device both support distributed task scheduling, the first electronic device and the second electronic device not only support cross-device payment, but also support single-device payment. The following takes the first electronic device implementing payment as an example for explanation.

[0109] In one example, if Figure 8 As shown, after the Hongmeng application on the first electronic device generates payment information, the software development kit integrated in the Hongmeng application can call the second payment program on the local device and send a payment request including the payment information to the service component in the second payment program. Then, the service component sends the payment information to the display component, and uses the display component to display the payment information in the payment request, so that the user can enter the identity verification information to make the payment.

[0110] When the display component receives the authentication information input by the user, it generates a payment result based on the user authentication information and sends the payment result to the service component. Then, the payment result is sent to the software development kit through the service component to display the information corresponding to the payment result on the interface of the Hongmeng application.

[0111] Combine the following Figures 9 to 12 This example is further described.

[0112] like Fig. 9 As shown, after the shopping application generates order information and receives the user's selection of "YunQuick Pay" as the payment method, the software development kit integrated in the shopping application calls the payment control on the local device, so that the shopping application sends the payment request including the order information to the service component in the payment control through the software development kit. Then, the service component in the payment control sends the payment request to the display component in the payment control, and the display component displays the payment request. Fig.10 The login interface is shown.

[0113] After receiving the account number, password and other information entered by the user on the login interface, the display component displays the following information: Fig.11 The payment interface shown. Fig.10 If you have already logged in, you can directly log in from Fig. 9 The interface shown switches to Fig.11 The interface shown does not need to be displayed Fig.10 The login interface is shown.

[0114] In display Fig.11 After the payment interface is shown, when the user confirms the information on the payment interface, the verification code interface is displayed through the display component, which can be specifically as follows Fig.12 Then, upon receiving the verification code information input by the user on the verification code interface, payment is made according to the verification code information.

[0115] In another example, Fig.13 As shown, based on distributed task scheduling, the Android application on the first electronic device can also perform local payment. Figure 8 The examples are similar and will not be repeated here.

[0116] Based on the above embodiments, the payment methods provided in the first aspect and the second aspect of the present application are described below.

[0117] Fig.14 1 is a flow chart of an embodiment of a payment method provided in the first aspect of the present application, and the payment method is applied to a first electronic device. Fig.14 As shown, the payment method 300 includes:

[0118] S302, when the target application on the first electronic device generates payment information to be paid, calling a first payment program on the second electronic device through a communication program integrated in the target application, where the second electronic device is an electronic device that establishes a communication connection with the first electronic device;

[0119] S304, sending a payment request including payment information to the first payment program, so that the second electronic device makes payment according to the payment information, wherein the operating systems of the first electronic device and the second electronic device both support distributed task scheduling.

[0120] In the embodiment of the present application, since the operating systems of the first electronic device and the second electronic device both support distributed task scheduling, the software developer can regard the first electronic device and the second electronic device as a whole when developing. Then, for the software developer, it is to develop a program for a task, but this program is distributed on the first electronic device and the second electronic device to complete. Specifically, in the case where the target application of the first electronic device generates payment information to be paid, the first payment program on the second electronic device is called through the communication program integrated in the target application, and a payment request including the payment information is sent to the first payment program so that the second electronic device makes the payment. In this way, the payment is completed by two electronic devices. Since the communication program is developed during development and then integrated into the application, the communication program can be used to call the first payment program already existing in the second electronic device, and there is no need to customize the payment schemes for the two devices separately, which saves development costs and improves development efficiency.

[0121] In one or more embodiments provided in the present application, calling the first payment program on the second electronic device through the communication program integrated in the target application may include:

[0122] In the case where the target application is developed based on the operating system of the first electronic device, the communication program calls the first payment program;

[0123] In the case where the target application is developed based on an operating system other than the operating system of the first electronic device, the communication program calls the second payment program on the first electronic device, and the second payment program calls the first payment program.

[0124] In the embodiment of the present application, if the target application is developed based on the operating system of the first electronic device, the communication program of the first electronic device can directly call the first payment program of the second electronic device, and the communication program does not need to call an intermediate program before calling the first payment program. In the case where the target application is developed based on an operating system other than the operating system of the first electronic device, since the operating system other than the operating system of the first electronic device does not support distributed task scheduling, it is necessary to first call the second payment program on the local device, and then call the first payment program on the second electronic device through the second payment program, thereby realizing cross-device payment.

[0125] In one or more embodiments provided in the present application, sending a payment request including payment information to a first payment program includes:

[0126] In the case where the target application is developed based on the operating system of the first electronic device, sending the payment request from the communication program to the first payment program;

[0127] In the case where the target application is developed based on an operating system other than the operating system of the first electronic device, the payment request is sent from the communication program to the second payment program; and the payment request is sent to the first payment program through the second payment program.

[0128] In one or more embodiments provided in the present application, S304 may include:

[0129] A payment request is sent to a service component in the first payment program.

[0130] In one or more embodiments provided in the present application, the payment method 300 may further include:

[0131] receiving a payment result sent by the first payment program, where the payment result is a payment result generated according to the identity verification information when the identity verification information input by the user for the payment information is received;

[0132] Displays the information corresponding to the payment result.

[0133] In one or more embodiments provided in the present application, the file type of the communication program corresponds to the operating system based on which the target application is developed.

[0134] Fig.15 1 is a flow chart of an embodiment of a payment method provided in the first aspect of the present application, and the payment method is applied to a second electronic device. Fig.15 As shown, payment method 400 includes:

[0135] S402, when the second electronic device establishes a communication connection with the first electronic device on which the target application is installed, and the first payment program on the second electronic device is called through the communication program in the target application, receiving a payment request sent by the first electronic device through the first payment program, the payment request including payment information generated by the target application, and the operating systems of the first electronic device and the second electronic device both support distributed task scheduling;

[0136] S404, displaying an interface including payment information;

[0137] S406: Upon receiving the identity verification information input by the user for the payment information, payment is made according to the identity verification information.

[0138] In the embodiment of the present application, since the operating systems of the first electronic device and the second electronic device both support distributed task scheduling, the software developer can regard the first electronic device and the second electronic device as a whole when developing. Then, for the software developer, it is to develop a program for a task, but this program is distributed on the first electronic device and the second electronic device to complete. Specifically, when the first payment program on the second electronic device is called by the communication program on the first electronic device, the payment request sent by the first electronic device is received by the first payment program, and the payment information in the payment request is displayed so that the user can enter the identity authentication information on the second electronic device. In this way, the payment is completed by two electronic devices. Since the communication program is developed during development and then integrated into the application, the communication program can be used to call the first payment program already existing in the second electronic device, and there is no need to customize the payment plan for the two devices separately, which saves development costs and improves development efficiency.

[0139] In one or more embodiments of the present application, receiving, through the first payment program, a payment request sent by the first electronic device may include:

[0140] In the case where the target application is developed based on the operating system of the first electronic device, receiving a payment request sent by the communication program to the first payment program;

[0141] In the case where the target application is developed based on an operating system other than the operating system of the first electronic device, a payment request sent by a second payment program of the first electronic device to the first payment program is received, and the payment request of the second payment program is received from the communication program.

[0142] In an embodiment of the present application, if the target application is developed based on the operating system of the first electronic device, then the first payment program of the second electronic device can directly receive the payment request sent by the communication program of the first electronic device. The first payment program of the second electronic device does not need to go through an intermediate program before receiving the payment request sent by the communication program of the first electronic device. In the case where the target application is developed based on an operating system other than the operating system of the first electronic device, since the operating system other than the operating system of the first electronic device does not support distributed task scheduling, the first electronic device needs to first send a payment request to the second payment program on the local device, and then forward the payment request to the first payment program of the second electronic device.

[0143] In one or more embodiments of the present application, the first payment program includes a service component and a display component, and the payment request is received by the service component.

[0144] The interface that displays payment information may include:

[0145] An interface including payment information is displayed through the display component.

[0146] Corresponding to the payment method provided in the first aspect of the present application, the third aspect of the present application provides a payment device, which is applied to a first electronic device. Fig.16 is a schematic diagram of a structure of an embodiment of a payment device provided in the third aspect of the present application. Fig.16 As shown, the payment device 500 includes:

[0147] A calling module 502, configured to call a first payment program on a second electronic device through a communication program integrated in the target application when the target application on the first electronic device generates payment information to be paid, the second electronic device being an electronic device that establishes a communication connection with the first electronic device;

[0148] The sending module 504 is used to send a payment request including the payment information to the first payment program so that the second electronic device makes payment according to the payment information, wherein the operating systems of the first electronic device and the second electronic device both support distributed task scheduling.

[0149] In the embodiment of the present application, since the operating systems of the first electronic device and the second electronic device both support distributed task scheduling, the software developer can regard the first electronic device and the second electronic device as a whole when developing. Then, for the software developer, it is to develop a program for a task, but this program is distributed on the first electronic device and the second electronic device to complete. Specifically, in the case where the target application of the first electronic device generates payment information to be paid, the first payment program on the second electronic device is called through the communication program integrated in the target application, and a payment request including the payment information is sent to the first payment program so that the second electronic device makes the payment. In this way, the payment is completed by two electronic devices. Since the communication program is developed during development and then integrated into the application, the communication program can be used to call the first payment program already existing in the second electronic device, and there is no need to customize the payment schemes for the two devices separately, which saves development costs and improves development efficiency.

[0150] In one or more embodiments of the present application, the calling module 502 may include:

[0151] A first calling unit, configured to, when the target application is developed based on the operating system of the first electronic device, call the first payment program by the communication program;

[0152] The second calling unit is used to call the second payment program on the first electronic device by the communication program, and to call the first payment program by the second payment program when the target application is developed based on an operating system other than the operating system of the first electronic device.

[0153] In the embodiment of the present application, if the target application is developed based on the operating system of the first electronic device, the communication program of the first electronic device can directly call the first payment program of the second electronic device, and the communication program does not need to call an intermediate program before calling the first payment program. In the case where the target application is developed based on an operating system other than the operating system of the first electronic device, since the operating system other than the operating system of the first electronic device does not support distributed task scheduling, it is necessary to first call the second payment program on the local device, and then call the first payment program on the second electronic device through the second payment program, thereby realizing cross-device payment.

[0154] In one or more embodiments of the present application, the sending module 504 may include:

[0155] A first sending unit, configured to send the payment request from the communication program to the first payment program when the target application is developed based on the operating system of the first electronic device;

[0156] A second sending unit is used to send the payment request from the communication program to the second payment program when the target application is developed based on an operating system other than the operating system of the first electronic device; and send the payment request to the first payment program through the second payment program.

[0157] In one or more embodiments of the present application, the sending module 504 may be specifically used for:

[0158] The payment request is sent to a service component in the first payment program.

[0159] In one or more embodiments of the present application, the payment device 500 may further include:

[0160] A second receiving module is used to receive the payment result sent by the first payment program, where the payment result is a payment result generated according to the identity verification information input by the user for the payment information;

[0161] The second display module is used to display information corresponding to the payment result.

[0162] In one or more embodiments of the present application, the file type of the communication program corresponds to the operating system based on which the target application is developed.

[0163] Corresponding to the payment method provided in the second aspect of the present application, the fourth aspect of the present application provides a payment device, which is applied to a second electronic device. Fig.17 Schematic diagram of a payment device according to the fourth aspect of the present application. Fig.17 As shown, the payment device 600 includes:

[0164] A first receiving module 602 is used to receive, through the first payment program, a payment request sent by the first electronic device when the second electronic device establishes a communication connection with the first electronic device on which the target application is installed, and the first payment program on the second electronic device is called through the communication program in the target application, wherein the payment request includes payment information generated by the target application, and the operating systems of the first electronic device and the second electronic device both support distributed task scheduling;

[0165] A first display module 604, used to display an interface including the payment information;

[0166] The payment module 606 is used to make payment according to the identity verification information input by the user for the payment information when the identity verification information is received.

[0167] In the embodiment of the present application, since the operating systems of the first electronic device and the second electronic device both support distributed task scheduling, the software developer can regard the first electronic device and the second electronic device as a whole when developing. Then, for the software developer, it is to develop a program for a task, but this program is distributed on the first electronic device and the second electronic device to complete. Specifically, when the first payment program on the second electronic device is called by the communication program on the first electronic device, the payment request sent by the first electronic device is received by the first payment program, and the payment information in the payment request is displayed so that the user can enter the identity authentication information on the second electronic device. In this way, the payment is completed by two electronic devices. Since the communication program is developed during development and then integrated into the application, the communication program can be used to call the first payment program already existing in the second electronic device, and there is no need to customize the payment plan for the two devices separately, which saves development costs and improves development efficiency.

[0168] In one or more embodiments of the present application, the first receiving module 602 may include:

[0169] A first receiving unit, configured to receive the payment request sent by the communication program to the first payment program when the target application is developed based on the operating system of the first electronic device;

[0170] A second receiving unit is used to receive the payment request sent by a second payment program of the first electronic device to the first payment program when the target application is developed based on an operating system other than the operating system of the first electronic device, and the payment request of the second payment program is received from the communication program.

[0171] In an embodiment of the present application, if the target application is developed based on the operating system of the first electronic device, then the first payment program of the second electronic device can directly receive the payment request sent by the communication program of the first electronic device. The first payment program of the second electronic device does not need to go through an intermediate program before receiving the payment request sent by the communication program of the first electronic device. In the case where the target application is developed based on an operating system other than the operating system of the first electronic device, since the operating system other than the operating system of the first electronic device does not support distributed task scheduling, the first electronic device needs to first send a payment request to the second payment program on the local device, and then forward the payment request to the first payment program of the second electronic device.

[0172] In one or more embodiments of the present application, the first payment program includes a service component and a display component, and the payment request is received by the service component.

[0173] The first display module 604 can be specifically used to: display the interface including the payment information through the display component.

[0174] The fifth aspect of the present application provides an electronic device, which includes: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the steps in any one embodiment of the payment method provided in the first aspect, or implements the steps in any one embodiment of the payment method provided in the second aspect.

[0175] Fig.18 A schematic diagram of the hardware structure of an embodiment of an electronic device provided in the fifth aspect of the present application is shown.

[0176] like Fig.18 As shown, the electronic device may include a processor 701 and a memory 702 storing computer program instructions.

[0177] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0178] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory.

[0179] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0180] The processor 701 reads and executes the computer program instructions stored in the memory 702 to implement the steps in any one embodiment of the payment method provided in the first aspect, or implements the steps in any one embodiment of the payment method provided in the second aspect.

[0181] In one example, the electronic device may further include a communication interface 703 and a bus 710. Fig.18 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 710 and communicate with each other.

[0182] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0183] Bus 710 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0184] In addition, in combination with the payment methods provided in the first aspect and the second aspect of the present application, the embodiments of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, the steps in any one of the embodiments of the payment method provided in the first aspect are implemented, or the steps in any one of the embodiments of the payment method provided in the second aspect are implemented.

[0185] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0186] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. The machine-readable medium may include a non-transient computer-readable storage medium, such as an electronic circuit, a semiconductor memory device, a ROM, a flash memory, an erasable ROM (EROM), a floppy disk, a CD-ROM, an optical disk, a hard disk, an optical fiber medium, and the machine-readable medium may also include a radio frequency (RF) link, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0187] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0188] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0189] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A payment method, applied to a first electronic device, It is characterized in that The method comprises: In the case where the target application on the first electronic device generates payment information to be paid, a first payment program on the second electronic device is called through a communication program integrated in the target application, the first payment program includes a service component and a display component, the service component is used to communicate with the communication program to obtain payment information from the communication program, the display component is used to display an interface including the payment information, and the second electronic device is an electronic device that establishes a communication connection with the first electronic device; sending a payment request including the payment information to the first payment program, so that the second electronic device makes payment according to the payment information, wherein the operating systems of the first electronic device and the second electronic device both support distributed task scheduling; The sending the payment request including the payment information to the first payment program includes: In the case where the target application is developed based on an operating system other than the operating system of the first electronic device, the payment request is sent by the communication program to a second payment program on the first electronic device; and the payment request is sent to the first payment program via the second payment program.

2. The method according to claim 1, It is characterized in that The calling of the first payment program on the second electronic device through the communication program integrated in the target application includes: In the case where the target application is developed based on the operating system of the first electronic device, the communication program calls the first payment program; In the case where the target application is developed based on an operating system other than the operating system of the first electronic device, the communication program calls the second payment program on the first electronic device, and the second payment program calls the first payment program.

3. The method according to claim 1, It is characterized in that The sending the payment request including the payment information to the first payment program includes: In the case where the target application is developed based on the operating system of the first electronic device, the payment request is sent from the communication program to the first payment program.

4. The method according to claim 1, It is characterized in that The sending the payment request including the payment information to the first payment program includes: The payment request is sent to a service component in the first payment program.

5. The method according to claim 1, It is characterized in that After sending the payment request including the payment information to the first payment program, the method further includes: receiving a payment result sent by the first payment program, wherein the payment result is a payment result generated according to the identity verification information input by the user for the payment information; The information corresponding to the payment result is displayed.

6. The method according to any one of claims 1 to 5, It is characterized in that The file type of the communication program corresponds to the operating system based on which the target application is developed.

7. A payment method, applied to a second electronic device, It is characterized in that The method comprises: When the second electronic device establishes a communication connection with a first electronic device on which a target application is installed, and a first payment program on the second electronic device is called through a communication program in the target application, a payment request sent by the first electronic device is received through the first payment program, the payment request includes payment information generated by the target application, the first payment program includes a service component and a display component, the service component is used to communicate with the communication program to obtain payment information from the communication program, the display component is used to display an interface including the payment information, and the operating systems of the first electronic device and the second electronic device both support distributed task scheduling; Displaying an interface including the payment information; Upon receiving identity verification information input by the user for the payment information, making payment according to the identity verification information; Receiving, through the first payment program, a payment request sent by the first electronic device, includes: In a case where the target application is developed based on an operating system other than the operating system of the first electronic device, the payment request is received from a second payment program of the first electronic device and sent to the first payment program, and the payment request of the second payment program is received from the communication program.

8. The method according to claim 7, It is characterized in that Receiving, through the first payment program, a payment request sent by the first electronic device, includes: In a case where the target application is developed based on an operating system of the first electronic device, the payment request sent by the communication program to the first payment program is received.

9. The method according to claim 7, It is characterized in that The first payment program includes a service component and a display component, and the payment request is received by the service component. The interface displaying the payment information includes: An interface including the payment information is displayed through the display component.

10. A payment device, applied to a first electronic device, It is characterized in that The device comprises: a calling module, configured to call a first payment program on a second electronic device through a communication program integrated in the target application when a target application on the first electronic device generates payment information to be paid, wherein the first payment program includes a service component and a display component, wherein the service component is configured to communicate with the communication program to obtain payment information from the communication program, and the display component is configured to display an interface including the payment information, and the second electronic device is an electronic device that establishes a communication connection with the first electronic device; a sending module, configured to send a payment request including the payment information to the first payment program, so that the second electronic device makes payment according to the payment information, wherein the operating systems of the first electronic device and the second electronic device both support distributed task scheduling; The sending module is specifically used for: In the case where the target application is developed based on an operating system other than the operating system of the first electronic device, the payment request is sent by the communication program to a second payment program on the first electronic device; and the payment request is sent to the first payment program via the second payment program.

11. A payment device, applied to a second electronic device, It is characterized in that The device comprises: a first receiving module, configured to receive, through the first payment program, a payment request sent by the first electronic device when the second electronic device establishes a communication connection with the first electronic device on which the target application is installed and the first payment program on the second electronic device is called through the communication program in the target application, the payment request including payment information generated by the target application, the first payment program including a service component and a display component, the service component being configured to communicate with the communication program to obtain payment information from the communication program, the display component being configured to display an interface including the payment information, and the operating systems of the first electronic device and the second electronic device both supporting distributed task scheduling; A first display module, used to display an interface including the payment information; A payment module, configured to make payment according to the identity verification information input by the user for the payment information upon receiving the identity verification information input by the user for the payment information; The first receiving module is specifically used for: In a case where the target application is developed based on an operating system other than the operating system of the first electronic device, the payment request is received from a second payment program of the first electronic device and sent to the first payment program, and the payment request of the second payment program is received from the communication program.

12. An electronic device, It is characterized in that The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the payment method according to any one of claims 1 to 9 is implemented.

13. A computer storage medium, It is characterized in that The computer storage medium stores computer program instructions, which, when executed by a processor, implement the payment method according to any one of claims 1 to 9.