CN110111101B - Electronic payment method and electronic device - Google Patents

Electronic payment method and electronic device Download PDF

Info

Publication number
CN110111101B
CN110111101B CN201910330860.4A CN201910330860A CN110111101B CN 110111101 B CN110111101 B CN 110111101B CN 201910330860 A CN201910330860 A CN 201910330860A CN 110111101 B CN110111101 B CN 110111101B
Authority
CN
China
Prior art keywords
user
payment
information
electronic device
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910330860.4A
Other languages
Chinese (zh)
Other versions
CN110111101A (en
Inventor
龙祁峰
单振威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910330860.4A priority Critical patent/CN110111101B/en
Publication of CN110111101A publication Critical patent/CN110111101A/en
Priority to PCT/CN2020/081896 priority patent/WO2020215995A1/en
Application granted granted Critical
Publication of CN110111101B publication Critical patent/CN110111101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3276Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device

Abstract

The embodiment of the invention provides an electronic payment method and electronic equipment. The method comprises the following steps: the electronic device receives a calculation of a payment amount associated with the first user; the method comprises the steps that electronic equipment obtains user information of a second user transacting with the first user, wherein the user information of the second user is used for indicating a transaction account of the second user; the electronic equipment sends a payment request and payment information to a server; the payment request is a payment request from a first user to a second user or a payment request from the second user to the first user; the payment information includes user information of a first user indicating a transaction account of the first user, user information of a second user, and payment information including the calculation process. The embodiment can improve the efficiency and convenience of electronic payment.

Description

Electronic payment method and electronic device
Technical Field
The embodiment of the invention relates to the technical field of computer application, in particular to an electronic payment method and electronic equipment.
Background
With the development of internet finance, electronic payment is used more and more frequently.
In the prior art, one implementation scheme of electronic payment is as follows:
the user terminal scans the collection code of the merchant and reads the merchant information of the merchant from the collection code. The merchant calculates the sum of the prices of the commodities to obtain the amount to be paid, and informs the user of the amount to be paid; the user manually enters the payment amount in the payment interface. The user terminal sends a payment request to the server, and sends payment information such as merchant information, payment amount, user information and the like to the server. And the server responds to the payment request, verifies the merchant information and the user information, and performs payment operation after verification is successful. After the payment is completed, the user terminal and the merchant terminal of the merchant receive notification messages of successful payment sent by the server. The notification message contains user information, merchant information, payment amount, etc.
Another implementation scheme is as follows:
and after the merchant calculates the sum of the prices of the commodities to obtain the amount to be paid, the merchant terminal is used for scanning the payment code of the user. The merchant terminal sends the amount to be paid, merchant information and user information read from the payment code to the server, and requests the server to carry out payment operation; and the server verifies the merchant information and the user information and judges whether to verify the password of the user according to the password verification rule. If the user password authentication is required, the server sends a password authentication request and information to be paid to the user terminal. The information to be paid comprises merchant information, payment amount and the like. And the user terminal responds to the password verification request, displays the received to-be-paid amount and merchant information and instructs the user to input the password. The user terminal sends the password input by the user to the server. The server verifies whether the password is correct or not, and if the verification is successful, payment is carried out. If the user password verification is not required, the server directly performs the payment operation. After the payment is completed, the user terminal and the merchant terminal receive notification messages of successful payment. The notification information includes user information, merchant information, payment amount, and the like.
When a user purchases a plurality of commodities, the two schemes are adopted, so that the commodity value of each commodity and the calculation process of a merchant are not convenient to verify.
Disclosure of Invention
The embodiment of the invention provides an electronic payment method and electronic equipment, which are convenient for verifying whether the calculation process of the payment amount is correct.
In a first aspect, a method for electronic payment provided by an embodiment of the present invention includes: the electronic device receives a first input to obtain a calculation of a payment amount associated with a first user; the electronic equipment acquires user information of a second user; the electronic equipment sends a payment request and payment information to a server; wherein the payment information includes user information of a first user indicating a transaction account of the first user, user information of a second user indicating a transaction account of a second user, and payment information including the calculation process; the payment request comprises a payment request from a first user to a second user or a payment request from the second user to the first user. Wherein the first input may be an input on a computing interface displayed by the electronic device. The above calculation process includes numbers and calculation symbols. The payment information may also include a payment amount.
According to the electronic payment method provided by the embodiment of the invention, a user can input a calculation process to verify the correctness of the payment amount. The calculation result of the calculation process input by the user is used as the payment amount, the user does not need to input the payment amount again, and the operation of the user is simplified.
In one possible design approach, the electronic device receives a second input, and obtains user information for a second user in response to the second input electronic device entering a payment process. Wherein the second input may be: touching the payment button on the computing interface, long pressing the "=" button on the computing interface or re-pressing the "=" button on the computing interface. By touching the buttons on the computing interface, the user can jump from the computing interface for computing the payment amount to the payment interface without complicated operation, and the subsequent payment operation is continued, so that the electronic payment operation of the user is simplified.
In one possible design method, the method further comprises: the electronic device receives a notification message sent by the server, the notification message including a calculation of a payment amount associated with a first user and user information of a second user transacting with the first user. The server transmits a notification message including the calculation of the payment amount to the electronic device, facilitating verification of the calculation of the payment amount by the merchant or customer by viewing the calculation in the notification message.
In one possible design approach, the electronic device receives a third input, and sends a payment request and payment information to the server in response to the third input. The user may be allowed to verify that the calculation process and the payment amount are correct before sending the payment request and payment information to the server. And after the user confirms that the third input is carried out, sending a payment request and payment information to the server.
Wherein the user information of the second user may be obtained in different ways. One possible way is to obtain the user information of the second user by reading the payment code, specifically: and acquiring a still image or video captured by a camera of the electronic equipment, and identifying a payment code comprising user information of the second user in the still image or video.
In a second aspect, a further electronic payment method provided in an embodiment of the present application includes: the first electronic device receiving a first input, the first input comprising a calculation of a payment amount associated with the first user; the first electronic equipment outputs user information and information to be paid of the first user, wherein the information to be paid comprises the calculation process of the payment amount related to the first user; the second electronic equipment acquires user information and to-be-paid information of a first user output by the first electronic equipment; the second electronic equipment sends a payment request and payment information to the server; the payment request is a payment request from a first user to a second user or a payment request from the second user to the first user; the payment information includes: user information of a first user indicating a transaction account of the first user, user information of a second user indicating a transaction account of the second user, and payment information generated by the second electronic device according to the information to be paid. Wherein the first input is an input on a computing interface displayed by the first electronic device. The payment information includes a payment amount and/or a calculation process.
The second electronic device may obtain the calculation of the payment amount directly from the first electronic device. The user can verify the correctness of the calculation process before sending the payment request and payment information to the server. The electronic device is prevented from sending wrong payment requests and payment information to the server. The electronic device does not need to send a calculation process to the server, so that the privacy of the user can be protected.
In one possible approach, the first electronic device may receive a fourth input in response to which user information of the first user and information to be paid are output. Wherein the fourth input may be: touching an output button on the computing interface; long presses of the "=" button on the computing interface; or re-pressing the "=" button on the computing interface. By touching buttons on the computing interface, the user can output the payment amount calculation process to other electronic devices without cumbersome operations.
Wherein the user information and the information to be paid of the first user can be output in different manners. In one possible manner, the first electronic device generates a payment code according to the user information of the first user and the calculation process, and outputs the user information of the first user and the information to be paid by displaying the payment code.
The user information and the information to be paid of the first user can be acquired in different modes. In one possible manner, the second electronic device acquires a still image or video captured by a camera of the second electronic device; user information and payment to be made information of the first user is obtained by identifying a payment code in the still image or video.
The payment code may be a two-dimensional code or a bar code.
In one possible manner, before the second electronic device sends the payment request and the payment information to the server, the method further comprises: the second electronic equipment outputs the user information of the first user and the information to be paid or outputs the user information of the first user and the information to be paid; the second electronic device receives a third input, and in response to the third input, the second electronic device sends a payment request and payment information to the server. The second electronic device may output the information to be paid or the payment information for the user to verify the correctness of the calculation process or the payment amount in the information to be paid or the payment information.
Wherein the payment amount in the payment information may be determined in different ways. In one possible manner, the second electronic device calculates the payment amount in the payment information according to the calculation process in the information to be paid. In another possible manner, the second electronic device uses the payment amount in the obtained information to be paid as the payment amount in the payment information.
In a third aspect, the present application provides yet another electronic payment method, the method comprising: the first electronic device receives a first input; the first electronic equipment generates first payment information of a first user according to the first input, wherein the first payment information comprises a first payment amount and/or a first calculation process, and the first calculation process is a calculation process of the first payment amount; the second electronic device receives a fifth input; the second electronic equipment generates second payment information of a second user according to a fifth input, wherein the second payment information comprises a second payment amount and/or a second calculation process, and the second calculation process is a calculation process of the second payment amount; the second electronic device outputting user information and second payment information for a second user indicative of a transaction account of the second user; the first electronic equipment acquires user information and second payment information of a second user output by the second electronic equipment; the first electronic equipment judges whether the first payment information is consistent with the second payment information or not; if the first payment information matches the second payment information, the first electronic device sends a payment request and payment information to the server, the payment information including the first payment information or the second payment information, user information of the first user indicating a transaction account of the first user, and user information of the second user. By comparing the first payment information of the first user with the second payment information of the second user, the payment amount can be automatically verified or the calculation of the payment amount can be verified to be correct.
Wherein the first payment information may be determined to correspond to the second payment information when the following condition is satisfied: the first payment amount is the same as the second payment amount, the first calculation process is the same as the second calculation process, the calculation result of the first payment amount is the same as the calculation result of the second calculation process, or the calculation result of the first calculation process is the same as the second payment amount.
In one possible design approach, the first electronic device outputs an error prompt when the first payment information does not match the second payment information. The user is prompted for inconsistency in the payment information by outputting an error prompt.
Wherein it may be determined that the first payment information does not correspond to the second payment information when the following condition is satisfied: the first payment amount and the second payment amount are different, the first calculation process and the second calculation process are different, the calculation result of the first payment amount and the second calculation process is different, or the calculation result of the first calculation process and the second payment amount are the same.
In a fourth aspect, embodiments of the present application provide an electronic device comprising a processor, and a memory for storing a computer program, wherein the computer program comprises instructions that, when executed by the processor, cause the electronic device to perform the method of any one of the first, second, third aspects.
In a fifth aspect, the present application provides a computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of the first, second, third aspects.
In a sixth aspect, the present application provides a computer program product for, when run on an electronic device, causing the electronic device to perform the method of any one of the first, second, third aspects.
In a seventh aspect, the present application provides a graphical user interface comprising in particular a graphical user interface that an electronic device displays when performing a method as in any of the first, second, third aspects.
It will be appreciated that the electronic device according to the fourth aspect, the computer storage medium according to the fifth aspect, the computer program product according to the sixth aspect, and the graphical user interface according to the seventh aspect provided above are all configured to perform the corresponding methods provided above, and therefore, the advantages achieved by the method are referred to the advantages of the corresponding methods provided above, and are not repeated herein.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
Fig. 2 is a software structural block diagram of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic view of a scenario of an electronic payment method according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of an electronic payment method according to an embodiment of the present invention;
fig. 5 is a schematic view of a scenario of another electronic payment method according to an embodiment of the present invention;
fig. 6 is a schematic view of a scenario of another electronic payment method according to an embodiment of the present invention;
fig. 7 is a schematic view of a scenario of still another electronic payment method according to an embodiment of the present invention;
fig. 8 is a schematic view of a scenario of still another electronic payment method according to an embodiment of the present invention;
fig. 9 is a schematic view of a scenario of still another electronic payment method according to an embodiment of the present invention;
fig. 10 is a flowchart of another electronic payment method according to an embodiment of the present invention;
fig. 11 is a schematic view of a scenario of another electronic payment method according to an embodiment of the present invention;
FIG. 12 is a flowchart of another electronic payment method according to an embodiment of the present invention;
fig. 13 is a schematic view of a scenario of another electronic payment method according to an embodiment of the present invention.
Detailed Description
The implementation of the examples of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the method for electronic payment provided in the embodiment of the present application may be applied to an electronic device. By way of example, the electronic device may be a tablet, desktop, laptop, notebook, ultra mobile personal computer (Ultra-mobile Personal Computer, UMPC), handheld computer, netbook, personal digital assistant (Personal Digital Assistant, PDA), wearable electronic device, smart watch, vehicle-mounted device, smart car, cash register, calculator, cell phone, etc., and the specific form of the electronic device is not particularly limited in the embodiments of the present application.
Illustratively, fig. 1 shows a schematic structural diagram of an electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. Pressure sensor 180A
Such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the invention, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 2 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, calculator, payment, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
In the embodiment of the present application, when the user touches the touch screen, the touch sensor 180K detects a touch operation of a finger on the touch screen, and transmits the touch operation to the processor 110. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the input event. As shown in fig. 3 (a), taking the touch operation as a single click operation, the control corresponding to the single click operation is a control of the calculator application icon as an example, the calculator application calls an interface of the application framework layer, and starts the calculator application.
It will be appreciated that the method provided by the embodiments shown in fig. 4 to 13 below is applied to the electronic device provided by the foregoing embodiments.
For easy understanding, a method for electronic payment provided in the embodiments of the present application is specifically described below in connection with a payment scenario. Fig. 4 is a flow chart of an electronic payment method according to an embodiment of the present application. As shown in fig. 4, the electronic payment method may include:
s401, the electronic device 100 receives a first input, which includes a calculation process of a payment amount associated with a first user.
Wherein the first input may be a calculation process entered on the electronic device 100. The calculation is to calculate a payment amount associated with the first user. The payment amount associated with the first user may be the payment amount to be paid by the first user or the payment amount to be collected by the first user. That is, the first input includes a calculation of the payment amount. The electronic device receives a first input from a first user to obtain a calculation of the payment amount. The calculation of the payment amount may include a number and a calculation symbol. For example, if three commodities are purchased, and the amounts of the three commodities are 1.2 yuan, 2.4 yuan, and 10 yuan, respectively, then as shown in fig. 5, the first user may sequentially input "1" "," 2 "+" "2" "," 4 "+" "1" ""0 "on the computing interface displayed on the electronic device 100. At this time, the calculation process of the payment amount acquired by the electronic device 100 is "12+24+10". For another example, when a piece of discounted commodity is purchased, the original price is 100 yuan, and the first user can input "1" ""0"" × "" "0" "" "8" "=", in sequence, on the computing interface displayed by the electronic device. At this time, the calculation process of the payment amount acquired by the electronic device 100 is "100×0.8". It will be appreciated that when the first user inputs "=" the electronic device 100 performs calculation according to the expression input by the first input, and then displays the result of calculation on the display screen 194. For another example, when two commodities are purchased, the amounts of the two commodities are 50 yuan and 40 yuan, and both the commodities are folded by 8 yuan, the first user can input "5" ""0 "+" "4" ""0 "=", and then input "×" ""0"" "8" on the electronic device 100. At this time, the calculation process of the payment amount acquired by the electronic device 100 may be "(50+40) ×0.8" or "90×0.8". It should be noted that, the method for obtaining the calculation process of the payment amount by the electronic device includes, but is not limited to, a calculation process of obtaining the payment amount by inputting numbers and calculation symbols by touching corresponding buttons in a calculation interface such as an application interface of the calculator. The first input may also be, for example, a voice input. Illustratively, the first user may calculate the eight-fold price by voice entering "original price is 100 yuan". As another example, the first input may be reading a barcode or two-dimensional code of one or more merchandise. For example, the first user may scan the two-dimensional code of the first commodity and then scan the two-dimensional code of the second commodity, and the electronic device 100 may read the two-dimensional code to obtain the price information of each commodity in response to the first input. For another example, the first input may be capturing an image containing one or more merchandise. The electronic device 100 or the server recognizes the commodity in the captured image to acquire price information of each commodity. The first user may refer to a user corresponding to an account of the payment amount, i.e. a user matching a transaction account of the payment or payment. It will be appreciated that the first input may be by the first user or by a user other than the first user. Likewise, embodiments of the present application are not limited to what particular user performs each input action.
S402, the electronic device 100 receives a second input for indicating entering a payment procedure.
Illustratively, in some embodiments of the present application, as shown in fig. 6 (a), a payment button 601 is provided on a computing interface, such as an application interface of a calculator. The second input may be: the payment button 601 on the computing interface is touched. In response to the second input, the electronic device 100 enters a payment process. The entering payment process may be the initiation or jumping to a corresponding payment procedure or payment application. As shown in fig. 6 (b), the entering payment process may include initiating a camera drive to capture a still image or video via the camera 193.
In other embodiments of the present application, as shown in fig. 7 (a), a separate payment button 601 may not be provided in a computing interface such as an application interface of a calculator. For example, the second input may be: the "=" button 701 on the computing interface is pressed long or re-pressed. In response to the second input, the electronic device 100 enters a payment process. Alternatively, when the "=" button 701 is pressed long or re-pressed, the electronic device 100 may display the shortcut menu 702. The shortcut menu 702 includes at least one shortcut button 703 for a payment application or payment application function. It is to be appreciated that, although not shown, shortcut buttons 704 for other applications or application functions may also be included in shortcut menu 702. The second input may be, for example: touching a certain shortcut button 703 or sliding to an area near a certain shortcut button 703; in response to the second input, the electronic device 100 enters a payment process.
S403, the electronic device 100 acquires user information of a second user transacted with the first user.
Wherein the user information of the second user is used to indicate the transaction account of the second user. For example, the user information of the second user may be the name of the second user and/or the contact address of the second user. Illustratively, the electronic device 100 may capture a still image or video containing the payment code via the camera 193 to obtain user information of the second user. The payment code may be a two-dimensional code or a bar code, and the electronic device 100 may obtain the user information of the second user from the payment code.
For example, in response to the second input, the electronic device 100 enters a payment process, the electronic device 100 activates the camera, and the electronic device 100 displays a code scanning interface as shown in fig. 6 (b) through the display 194. The electronic device 100 captures still images or video through the camera 193. The electronic device 100 processes the still image or video via the processor 110 to detect the pay codes in the still image or video. If the payment code is not detected, the electronic device 100 may pop up a prompt box prompting the user to capture a still image or video containing the payment code; alternatively, the electronic device may exit the payment process if the payment code is not detected within a predetermined time. If a payment code is detected, the electronic device identifies the payment code to obtain user information of the second user.
It should be noted that, the method for acquiring the user information of the second user includes, but is not limited to, a method for capturing a two-dimensional code or a barcode image by a camera.
S404, the electronic device 100 obtains the calculation result of the first input as the payment amount.
After acquiring the user information of the second user, the electronic device 100 may display a payment interface as shown in (b) of fig. 8 through the display 194. The payment interface may include: user information of the second user, input box 801, confirm payment button 802 and keyboard 803. Wherein the keypad 803 is used to input a payment amount. The input box 801 is used to display the payment amount entered. In the related art, the electronic device displays the payment amount manually input by the user through the keyboard 803 in the input box 801. In the embodiment of the present application, the electronic device 100 may automatically fill in the calculation result of the first input as the payment amount into the input box 801.
For example, as shown in (c) in fig. 8, when the first input is "1", "0", ""8 "=", or the first input is "5", "+" "5", "0", ""8", or the first input is" 1"," 0"," "8", the electronic device 100 may automatically fill in the calculation result "80" into the input box 801.
It should be noted that, in the embodiment of the present application, the electronic device 100 may directly obtain the calculation result of the first input in step S401 as the payment amount. Alternatively, the electronic device 100 may acquire a calculation process according to which the calculation result of the first input is calculated. For example, the acquired calculation process is (50+40) ×0.8, and the calculation result of the calculation process (50+40) ×0.8 is 72, the electronic apparatus 100 automatically displays 72 as the payment amount into the input box 801.
It should be noted that, in the embodiment of the present application, the electronic device 100 first obtains the user information of the second user, and then obtains the calculation result of the first input as the payment amount. Alternatively, the electronic device 100 may first acquire the calculation result of the first input as the payment amount, and then acquire the user information of the second user.
S405, the electronic device 100 receives a third input, and sends a payment request and payment information to the server in response to the third input.
The payment information comprises user information of the first user, user information of the second user and payment information. The third input is for instructing the electronic device to send a payment request and payment information to a server. Illustratively, the third input may be: the confirm payment button 802 is touched. For example, after the first user clicks the confirm payment button 802 shown in (c) of fig. 8, the electronic device 100 transmits a payment request and payment information to the server in response to the third input. Wherein the payment request comprises a payment request from the first user to the second user or a payment request from the second user to the first user. The payment information includes user information of the first user, user information of the second user, and payment information. Wherein the user information of the first user is used to indicate a transaction account of the first user. The user information of the first user may include: name of the first user. The payment information may include a payment amount and/or a calculation of the payment amount.
For convenience of explanation, it is assumed that the first user is a customer and the second user is a merchant. And responding to the payment request of the first user to the second user, and executing the payment operation by the server according to the payment information. The server determines the transaction account of the first user according to the user information of the first user, and confirms the transaction account of the second user according to the user information of the second user. The server calculates the payment amount according to the calculation process in the payment information, or directly acquires the payment amount in the payment information. The server determines whether the balance of the transaction account of the first user is greater than the payment amount. If the balance of the transaction account of the first user is greater than the payment amount, the server subtracts the payment amount from the transaction account of the first user and adds the payment amount to the transaction account of the second user. The server sends notification messages of successful payment to the first user and the second user. Wherein, the notification message received by the first user may include user information and payment information of the second user. The notification message received by the second user may include user information and payment information of the first user. Wherein the payment information includes a payment amount. The payment information may also include a calculation of the payment amount. Otherwise, if the balance of the transaction account of the first user is smaller than the payment amount, the server can send notification messages of payment failure to the first user and the second user.
S406, the electronic device 100 receives the notification message.
The electronic device 100 receives the notification message sent by the server. For example, as shown in fig. 9, the electronic device 100 may display the received notification message. As another example, electronic device 100 may output the received notification message in voice. For example, sound signals are output through the audio device, "you good, tom has paid successfully 80 yuan to Shenzhen XX center. ".
It should be noted that the first user and the second user may be a customer and a merchant, respectively, or may be a merchant and a customer, respectively. That is, the first user and the second user may be the payer and the payee, respectively, or may be the payee and the payer, respectively.
In the prior art, a merchant calculates the sum of the prices of goods to obtain the amount to be paid and informs the amount to be paid to a customer, and the customer manually inputs the payment amount in a payment interface. In the prior art, the notification information and the payment information do not comprise the calculation process of the payment amount. If the customer wants to verify the correctness of the calculation process of the payment amount, the customer needs to additionally open an application program such as a calculator, input the calculation process to verify the payment amount, and the operation is complicated. The embodiment of the application provides an electronic payment method: the electronic device 100 receives a first input in a computing interface such as an application interface of a calculator to obtain a calculation process of a payment amount; then, in response to the second input in the computing interface, entering a payment process; the calculation result of the first input is used as the payment amount to be automatically filled into the corresponding input box, so that complicated operations in the prior art, such as the operation of manually switching between the calculator application and the payment application, or the operation of manually inputting the calculation result obtained in the calculator into the corresponding input box as the payment amount, can be avoided. In addition, in the electronic payment method in the embodiment of the present application, the electronic device 100 sends the calculation process of the payment amount to the server, so that the notification message sent by the server may include the calculation process of the payment amount, which is convenient for the merchant and the customer to verify the calculation process of the payment amount.
It can be appreciated that in the first electronic payment method according to the embodiment of the present application, the second user needs to check the notification message sent by the server to verify the calculation process of the payment amount. That is, the second user needs to verify the calculation process after the first user sends a payment request to the server. In another electronic payment method of the embodiment of the present application, different from the first electronic payment method in the embodiment of the present application, the second user obtains the calculation process through the server, and the first electronic device of the first user outputs the calculation process of the payment amount, and the second electronic device of the second user may directly obtain the calculation process of the payment amount from the first electronic device. Fig. 10 is a flow chart of another electronic payment method according to an embodiment of the present application. As shown in fig. 10, the electronic payment method may include:
s1001, the first electronic device receives a first input, where the first input includes a calculation of a payment amount associated with a first user.
The first electronic device is configured to receive a first input to obtain a payment amount associated with a first user. The first electronic device may be a terminal of a first user. Step S1001 in fig. 10 is the same as step S401 in fig. 4, and will not be described again here.
S1002, the first electronic device receives a fourth input.
Illustratively, the computing interface may also include an output button. The fourth input may be: the output button is touched. Alternatively, the fourth input may be: the "=" button on the computing interface is pressed long or re-pressed. Alternatively, the fourth input may be: through voice input: "output two-dimensional code". The fourth input is used for indicating the first electronic equipment to output user information and information to be paid of the first user. Wherein the information to be paid includes a calculation of the payment amount associated with the first user.
S1003, the first electronic device responds to the fourth input and outputs the user information and the information to be paid of the first user.
And the first electronic equipment outputs the user information and the information to be paid of the first user so that the second electronic equipment can acquire the user information and the information to be paid of the first user. Illustratively, the outputting the user information and the payment to pay information of the first user may be: the first electronic device generates a payment code according to the calculation process of the payment amount and the user information of the first user, and displays an image containing the payment code through the display screen 194. The payment code includes user information of the first user and information to be paid.
Wherein, the payment code can be a two-dimensional code or a bar code. The information to be paid may include a calculation of the amount of payment, for example, identifying the payment code may obtain information to be paid such as "100 x 0.8". The information to be paid can also be the unit price of each commodity, for example, the information to be paid of 20, 15 and 5 can be obtained by identifying the payment code, and the price of 3 purchased commodities is 20 yuan, 15 yuan and 5 yuan respectively.
It should be noted that, the information to be paid may further include a payment amount, for example, 80 may be obtained by identifying the payment code; 100×0.8", or" 40;20 15,5 ". Including the payment amount in the payment code may reduce the computational burden of the electronic device reading the payment code to calculate the payment amount.
It will be appreciated that the method of outputting the user information of the first user and the information to be paid includes, but is not limited to, a method of generating a payment code based on the calculation of the payment amount and the user information of the first user and displaying the payment code. For example, optionally, the method for outputting the user information and the information to be paid of the first user may be: the user information and the information to be paid of the first user are sent through Wi-Fi, bluetooth or other near field communication. As another example, optionally, the method for outputting the user information and the information to be paid of the first user may be: and generating a payment code according to the user information of the first user, displaying the payment code, and sending the information to be paid through Wi-Fi, bluetooth or other short-range communication.
S1004, the second electronic equipment acquires the user information and the information to be paid of the first user output by the first electronic equipment.
Wherein the second electronic device may be a terminal of a second user. The second electronic device may capture a still image or video containing a payment code through a camera to obtain the user information and the information to be paid of the first user. The method comprises the following steps: the second electronic equipment acquires a still image or video captured by a camera; the second electronic device identifies a payment code in the still image or video, the payment code including user information of the first user and information to be paid.
It should be noted that, the method for acquiring the user information and the payment information of the first user includes, but is not limited to, a method for capturing the payment code image by a camera to acquire the payment code image. For example, optionally, the method for acquiring the user information and the information to be paid of the first user may be: and acquiring the user information and the information to be paid of the first user through Wi-Fi, bluetooth or near field communication. As another example, optionally, the method for obtaining the user information and the information to be paid of the first user may be: still images or videos containing payment codes are captured through a camera to acquire user information of a first user and the information to be paid is acquired through Wi-Fi, bluetooth or near field communication.
S1005, the second electronic equipment outputs the user information and the information to be paid of the first user.
For example, as shown in fig. 11, the second electronic device outputting the user information and the information to be paid of the first user may be: and the second electronic equipment displays the user information and the information to be paid of the first user. Or the second electronic device outputting the user information and the information to be paid of the first user may be: the second electronic equipment outputs the user information and the information to be paid of the first user through voice. The second user may verify the calculation of the payment amount via the output.
S1006, the second electronic device receives a third input.
Illustratively, the third input may be a touch click on the confirm payment button 1101 as shown in fig. 11. Alternatively, the third input may be a voice input, such as a voice input of "confirmed no error, please pay". It should be noted that the third input includes, but is not limited to, a touch input or a voice input. The third input is for instructing the electronic device to send a payment request and payment information to the server.
S1007, the second electronic device sends a payment request and payment information to the server in response to the third input, where the payment information includes user information of the first user, user information of the second user, and payment information.
And the second electronic equipment responds to the third input and generates payment information according to the user information of the first user and the information to be paid. The payment information comprises user information of the first user, user information of the second user and payment information. The description of the user information of the first user refers to step S403, and the description of the user information of the second user refers to step S405, which is not described herein. The payment information may include a payment amount. It is understood that the second electronic device may generate the payment information according to the acquired information to be paid. For example, the second electronic device may calculate the payment amount according to the calculation process in the information to be paid, or the second electronic device may directly obtain the payment amount in the information to be paid as the payment amount in the information to be paid. The second electronic device sends a payment request and the payment information to the server. It will be appreciated that the payment information may include a calculation of the payment amount. The calculation process in the payment information is the calculation process in the acquired information to be paid.
It will be appreciated that in response to a payment request from the second device, the server performs a payment operation in accordance with the payment information. It should be noted that the server may calculate the payment amount according to the calculation process in the payment information. The description of the payment operation is referred to step S405, and will not be described herein.
S1008, the second electronic device receives the notification message and/or the first electronic device receives the notification message.
The description of step S1008 refers to step S406, and is not described herein.
Wherein the first electronic device or/and the second electronic device may be the electronic device 100.
As described above, in still another electronic payment method provided in the embodiment of the present application, the second device may acquire a calculation process of a payment amount related to the first user when acquiring the user information of the first user. Thus, the second user may obtain the calculation procedure from the first electronic device before sending a payment request to the server to verify that the calculation procedure is correct. In addition, when the server does not support the delivery of the calculation process, the detailed calculation process of the payment amount can still be obtained using the above-described further electronic payment method. The user does not need to send a calculation process to the server, so that the privacy of the user can be protected.
It will be appreciated that the electronic payment method in the above embodiment requires the user to manually verify that the payment amount and calculation process are correct. In still another electronic payment method provided in the embodiment of the present application, by comparing the first payment information of the first user with the second payment information of the second user, the payment amount is automatically verified or whether the calculation process of the payment amount is correct. Fig. 12 is a flowchart of another electronic payment method according to an embodiment of the present application. As shown in fig. 12, the electronic payment method may include:
S1201, the first electronic device receives a first input, and generates first payment information according to the first input.
The first electronic device may be, for example, a terminal of a first user. The first electronic device may receive a first input of a first user, and generate first payment information for the first user based on the first input. The description of the first input is referred to step S401, and will not be described herein. The first payment information includes a first payment amount. The first payment amount of the first user may be a calculation of the first input. Illustratively, the first input is "1" ""0"" × "" "0" ""8", and then the first payment information may be" 80". In other embodiments of the present application, the first payment information may include a first calculation process, the first calculation process being a calculation process entered for calculating the first payment amount. The description of the first calculation process refers to step S401, and is not described herein.
S1202, the first electronic device receives a second input.
The description of the second input is referred to step S402, and will not be described herein.
S1203, in response to the second input, the first electronic device obtains user information and second payment information of the second user output by the second electronic device.
The method for outputting the user information and the second payment information of the second user by the second electronic device may include steps S1221 to S1223.
S1221, the second electronic device receives a fifth input, and generates second payment information according to the fifth input.
The second electronic device may be a terminal of the second user. For a description of the fifth input, refer to the description of the first input in step S1001. The second payment information may include a second payment amount. In other embodiments of the present application, the second payment information may include a second calculation process. Wherein the description of the second payment amount for the second user is referred to the description of the first payment amount for the first user; the description of the second computing process of the second user is referred to the description of the first computing process, and is not repeated herein.
S1222, the second electronic device receives a sixth input.
Wherein the sixth input is for instructing the second electronic device to output user information of the second user and second payment information. The description of the sixth input is referred to the description of the fourth input in step S1002.
S1223, the second electronic device outputs the user information of the second user and the second payment information in response to the sixth input.
The second electronic device outputs the user information of the second user and the description of the second payment information, and the first device outputs the description of the first user information and the information to be paid in step S1003.
Illustratively, the outputting, by the second electronic device, the information of the second user and the second payment information may be: the second electronic device generates a payment code according to the second payment information and the user information of the second user, wherein the payment code comprises the user information of the second user and the second payment information. The second electronic device displays an image containing the payment code via display 194. The description of the method for the first electronic device to obtain the user information and the second payment information of the second user output by the second electronic device refers to the description for the second electronic device to obtain the user information and the payment information of the first user output by the first electronic device in step S1004.
For example, in response to the second input, the first electronic device may obtain the user information of the second user and the second payment information output by the second electronic device as follows: in response to the second input of the first user, the first electronic device activates the camera 193, capturing a still image or video containing the payment code via the camera 193. The payment code includes user information of the second user and second payment information of the second user. The first electronic device identifies a payment code in the still image or video to obtain user information and second payment information for the second user.
And S1204, the first electronic equipment judges whether the first payment information is consistent with the second payment information.
The first electronic device compares the first payment information with the second payment information, and if the first payment information matches with the second payment information, step S1205 is executed; otherwise, step S1207 is performed.
Specifically, if the first payment amount is the same as the second payment amount, the first electronic device determines that the first payment information corresponds to the second payment information; otherwise, if the first payment amount is different from the second payment amount, the first electronic device determines that the first payment information does not correspond to the second payment information. Alternatively, in other embodiments of the present application, the first calculation in the first payment information may be compared to the second calculation in the second payment information. Specifically, if the first calculation process is the same as the second calculation process, the first electronic device determines that the first payment information corresponds to the second payment information; conversely, if the first computing process is different from the second computing process, the first electronic device determines that the first payment information does not correspond to the second payment information.
Optionally, when the first payment information includes a first payment amount and the second payment information includes a second calculation process, the first electronic device calculates a calculation result of the second calculation process according to the second calculation process. If the first payment amount is the same as the calculation result of the second calculation process, the first electronic device determines that the first payment information is consistent with the second payment information; otherwise, if the first payment amount is not the same as the calculation result of the second calculation process, the first electronic device determines that the first payment information does not coincide with the second payment information. It will be appreciated that the first electronic device may similarly compare the first payment information with the second payment information when the first payment information comprises the first calculation process and the second payment information comprises the second payment amount.
S1205, the first electronic device sends a payment request and payment information to the server, and then performs step S1206.
S1206, the first electronic device receives the notification message and/or the second electronic device receives the notification message.
The step S1205 may be the same as the step S405 or S1006, the step S1206 may be the same as the step S406 or S1008, and the details are not repeated here.
S1207, the first electronic device outputs an error prompt.
For example, the first electronic device may display the error prompt. For example, as shown in fig. 13, the error hint may be: a pop-up message indicating the first user or the second user input error is displayed through the display screen 194. Optionally, the error prompt may further include: modify payment information button 1301 or exit payment button 1302. The first user may touch the modify payment information button 1301 to modify the first payment information or request modification of the second payment information. The user may touch the exit payment button to exit payment. As another example, the first electronic device may also output the error prompt through a voice message, for example, the error prompt may be: voice message output by audio device of first electronic device: "the customer is inconsistent with the payment amount you input, please confirm you". In addition, the error prompt can also be a direct return payment amount input page.
For easy understanding, the following describes another electronic payment method in conjunction with an actual application scenario.
Assuming that the first user purchases three commodities at the merchant of the second user, the prices of the three commodities are respectively 20 yuan, 30 yuan and 40 yuan. The name of the merchant of the second user is Shenzhen XX center.
For example, the first user scans the two-dimensional code (first input) of the purchased commodity in turn, and the first electronic device generates first payment information according to the first input of the first user. At this time, the first payment information generated by the first electronic device is "90". That is, the first payment information includes a first payment amount, which is "90". Then, the first user touches the payment button 601 (second input) as shown in fig. 6 (a), and the first electronic device activates the camera 193 in response to the second input of the first user.
For example, the second user sequentially inputs "2" "+" "3" ""0 "+" "4" ""0"" = "(fifth input) in the calculator application in the second electronic device, and then the second user touches the output button (sixth input), the second electronic device generates a payment code in response to the sixth input of the second user, the payment code including second payment information of the second user and user information of the second user. At this time, the user information of the second user is "Shenzhen XX center", and the second payment information of the second user is "20+30+40". That is, the second payment information includes a second calculation process, which is "20+30+40".
The first electronic device captures a still image or video containing a payment code through the camera 193, and recognizes the payment code to acquire second payment information of the second user and user information of the second user. The second payment information of the second user acquired by the first electronic device is "20+30+40".
The first electronic device compares the first payment information with the second payment information. The first electronic device calculates the calculation result of the second calculation process, and at this time, the first device calculates the calculation result of the second calculation process to be 90. The first electronic device compares the calculation result with a first payment amount in the first payment information. At this time, since the calculation result and the first payment amount are both 90, the first device determines that the first payment information coincides with the second payment information, and the first electronic device transmits a payment request and payment information to the server.
As another example, similarly, the first user purchases three products at the merchant where the second user is located, the prices of the three products being 20 yuan, 30 yuan, 40 yuan, respectively. The first electronic device generates first payment information based on a first input from the first user, the generated first payment information being "90". It is assumed that the second user erroneously inputs the commodity price in calculating the payment amount. For example, the second user sequentially inputs "2" "+" "2" ""0 "+" "4" ""0"" = "(fifth input) in the calculator. The first electronic device captures a still image or video containing the payment code through the camera 193 to acquire second payment information of the second user and user information of the second user. The second payment information of the second user acquired by the first electronic device is "20+20+40". That is, the second payment information includes a second calculation process, which is "20+20+40".
The first electronic device compares the first payment information with the second payment information. At this time, the calculation result of the second calculation process is 80, the first payment amount is 90, and the calculation result of the second calculation process does not coincide with the first payment amount. The first electronic device displays an error prompt as shown in fig. 13.
Optionally, the first electronic device may further compare the first calculation procedure with the second calculation procedure. For example, if the first payment information does not match the second payment information, the first electronic device generates a first calculation process based on a first input from the first user. The first calculation process generated at this time is "20+30+40". The first electronic device compares the second calculation process with the first calculation process. For example, at this time, the first calculation process is "20+20+40", and the second calculation process is "20+30+40". The first electronic device compares the first calculation process with the second calculation process, and can further determine which data or which operation symbol is different between the first payment information and the second payment information, so that the electronic device can specifically inform which data or which operation symbol is wrong when outputting the error prompt. For example, at this time, the first electronic device may output "the price of the second commodity input by the customer is 30 yuan, the price of the second commodity input by the merchant is 20 yuan, and check is requested" by voice.
As described above, in still another electronic payment method, by automatically verifying whether the payment amount input by the customer or the merchant is correct by comparing the payment information of the first user with the payment information of the second user, the burden of verification by the customer and the merchant can be reduced. In some embodiments of the present application, further comparing the first calculation process with the second calculation process may more carefully verify errors in the input process of the customer or merchant.
In the electronic payment method, the first user is taken as a customer, and the second user is taken as a merchant. But the first user may be a merchant and the second user may be a customer.
It should be noted that, in the above-mentioned further electronic payment method, the first electronic device may be interchanged with the second electronic device. In this embodiment, the first electronic device obtains the user information and the second payment information of the second user output by the second electronic device; alternatively, the first electronic device may output the user information and the second payment information of the first user, and the second electronic device may acquire the user information and the second payment information of the first user output by the first electronic device.
In contrast to the further electronic payment method described above, the method of comparing the first payment information and the second payment information on the first electronic device of the first user may be performed by a server in other embodiments of the present application.
For example, the first electronic device of the first user sends a first payment request to the server, and the first payment message includes the first payment information, user information of the first user, and user information of the second user. The second electronic device sends a second payment request to the server, the second payment request including second payment information, user information of the first user, and user information of the second user. The server compares the first payment request with the second payment request. If the first payment request is the same as the second payment request, the server performs the payment operation; otherwise, if the first payment request is different from the second payment request, the server sends a prompt for an input error to the first electronic device or/and the second electronic device.
In addition, the embodiment of the application also provides a Graphical User Interface (GUI) on the electronic device, wherein the GUI specifically comprises a GUI displayed by the electronic device when the method is executed.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, may be present in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
The foregoing is merely a specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (42)

1. A method of electronic payment, the method comprising:
the electronic equipment starts a calculator application and displays a calculation interface;
the electronic device receiving a first input, the first input comprising a calculation of a payment amount associated with a first user; the first input is an input on the computing interface;
the electronic device receives a second input on a control of the computing interface;
the electronic equipment responds to the second input, starts or jumps to a payment application, displays a code scanning interface, and obtains user information of a second user through a camera;
the electronic equipment sends a payment request and payment information to a server;
wherein,
the payment information comprises user information of the first user, user information of the second user and payment information;
The payment information includes the computing process;
the user information of the first user is used for indicating the transaction account of the first user, and the user information of the second user is used for indicating the transaction account of the second user;
the payment request includes a payment request by the first user to the second user or a payment request by the second user to the first user.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the calculation process includes a number and a calculation symbol.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the payment information also includes a payment amount.
4. A method according to any of claims 1-3, wherein the electronic device sending a payment request and payment information to a server, comprising:
the electronic device receives a third input;
in response to the third input, the electronic device sends the payment request and the payment information to the server.
5. A method according to any one of claims 1-3, wherein the obtaining, by the camera, user information of the second user comprises:
the electronic equipment acquires a still image or video captured by a camera of the electronic equipment;
The electronic device identifies a payment code in the still image or video, the payment code including user information of the second user.
6. A method according to any of claims 1-3, wherein the second input comprises one of:
a payment button on the computing interface is touched;
a "=" button on the computing interface is pressed for a long time;
the "=" button on the computing interface is re-pressed.
7. A method according to any one of claims 1-3, characterized in that the method further comprises:
the electronic device receives a notification message sent by the server, the notification message including the computing process and user information of the second user.
8. A method of electronic payment, the method comprising:
the first electronic equipment starts a calculator application and displays a calculation interface;
the first electronic device receiving a first input, the first input comprising a calculation of a payment amount associated with a first user; the first input is an input on a computing interface displayed by the first electronic device;
the first electronic device receiving a fourth input on the computing interface;
The first electronic device responds to the fourth input, generates a payment code according to the calculation process and user information of a first user, and displays the payment code, wherein the payment code comprises the user information of the first user and information to be paid, and the information to be paid comprises the calculation process;
the second electronic equipment acquires the payment code through a camera, and identifies the user information of the first user and the information to be paid in the payment code;
the second electronic equipment sends a payment request and payment information to a server;
wherein,
the payment request comprises a payment request from the first user to a second user or a payment request from the second user to the first user;
the payment information comprises user information of a first user, user information of a second user and payment information generated by the second electronic equipment according to the information to be paid; the user information of the first user is used for indicating the transaction account of the first user, and the user information of the second user is used for indicating the transaction account of the second user.
9. The method of claim 8, wherein the first electronic device outputting the user information of the first user and the information to be paid comprises:
The first electronic device generates a payment code according to the calculation process and the user information of the first user;
the first electronic device displays the payment code to output user information of the first user and the information to be paid.
10. The method of claim 8, wherein the second electronic device obtaining the user information and the payment to pay information of the first user output by the first electronic device, comprises:
the second electronic device captures a still image or video through a camera of the second electronic device;
the second electronic device identifies the payment code in the still image or video, the payment code including user information of the first user and the information to be paid.
11. The method according to claim 9 or 10, characterized in that,
the payment code is a two-dimensional code or a bar code.
12. The method of any of claims 8-10, wherein the fourth input comprises one of:
an output button on the computing interface is touched;
a "=" button on the computing interface is pressed for a long time;
the "=" button on the computing interface is re-pressed.
13. The method according to any of the claims 8-10, wherein before the second electronic device sends a payment request and payment information to a server, the method further comprises:
the second electronic equipment outputs the user information of the first user and the information to be paid or outputs the user information of the first user and the information to be paid;
the second electronic device receives a third input;
the second electronic device sending a payment request and payment information to a server, comprising: in response to the third input, the second electronic device sends the payment request and the payment information to the server.
14. The method according to any one of the claims 8-10, wherein,
the payment information includes a payment amount and/or the calculation process.
15. The method of claim 14, wherein the payment information generated by the second electronic device from the information to be paid comprises:
the payment amount in the payment information is the result calculated by the second electronic device according to the calculation process in the information to be paid.
16. The method according to any one of the claims 8-10 and 14, characterized in that,
The information to be paid also comprises a payment amount, and the payment amount in the information to be paid is a calculation result of the calculation process in the information to be paid.
17. The method of claim 16, wherein the step of determining the position of the probe comprises,
the payment information generated by the second electronic equipment according to the information to be paid comprises:
the payment amount in the payment information is the payment amount in the information to be paid acquired by the second electronic equipment.
18. A method of electronic payment, the method comprising:
the first electronic equipment starts a calculator application and displays a calculation interface;
the first electronic device receives a first input; the first input is an input on the computing interface; the first input includes a first calculation of a payment amount associated with the first user;
the first electronic equipment generates first payment information of a first user according to the first input, wherein the first payment information comprises a first payment amount and a first calculation process, and the first calculation process is a calculation process of the first payment amount;
the second electronic device receives a fifth input;
The second electronic equipment generates second payment information of a second user according to the fifth input, wherein the second payment information comprises a second payment amount and/or a second calculation process, and the second calculation process is a calculation process of the second payment amount;
the second electronic device displays a payment code, wherein the payment code comprises the second payment information and user information of the second user, and the user information of the second user is used for indicating a transaction account of the second user;
the first electronic device receives a second input on the computing interface;
the first electronic equipment responds to the second input, starts or jumps to a payment application, displays a code scanning interface, and obtains the second payment information in the payment code and the user information of the second user through a camera;
the first electronic equipment judges whether the first payment information is consistent with the second payment information or not;
and if the first payment information accords with the second payment information, the first electronic equipment sends a payment request and payment information to a server, wherein the payment information comprises the first payment information or the second payment information, user information of a first user and user information of the second user, and the user information of the first user is used for indicating a transaction account of the first user.
19. The method of claim 18, wherein the method further comprises:
if the first payment information does not match the second payment information, the first electronic device outputs an error prompt.
20. The method of claim 18, wherein the first payment information corresponds to the second payment information, comprising:
the first payment amount and the second payment amount are the same; or alternatively
The first calculation process and the second calculation process are the same; or alternatively
The first payment amount is the same as the calculation result of the second calculation process; or alternatively
The calculation result of the first calculation process is the same as the second payment amount.
21. The method of claim 19 or 20, wherein the first payment information does not correspond to the second payment information, comprising:
the first payment amount and the second payment amount are different; or alternatively
The first calculation process and the second calculation process are different; or alternatively
The first payment amount is different from the calculation result of the second calculation process; or alternatively
The calculation result of the first calculation process is the same as the second payment amount.
22. An electronic device for electronic payment, comprising:
a processor;
a memory for storing a computer program;
the computer program comprises instructions that, when executed by the electronic device, cause the electronic device to perform the steps of:
starting a calculator application and displaying a calculation interface;
receiving a first input of a first user, the first input of the first user comprising a calculation of a payment amount; the first input is an input on the computing interface;
receiving a second input on a control of the computing interface;
responding to the second input, starting or jumping to a payment application, displaying a code scanning interface, and acquiring user information of a second user through a camera;
sending a payment request and payment information to a server;
wherein,
the payment request comprises a payment request from a first user to a second user or a payment request from the second user to the first user;
the payment information comprises user information of a first user, user information of a second user and payment information, and the payment information comprises the calculation process; the user information of the first user is used for indicating the transaction account of the first user, and the user information of the second user is used for indicating the transaction account of the second user.
23. The electronic device of claim 22, wherein the electronic device further comprises: a display screen;
a first input of the first user, comprising:
the first user inputs the first input on a computing interface displayed by the display screen.
24. The electronic device of claim 22, wherein the electronic device comprises a memory device,
the calculation process includes a number and a calculation symbol.
25. The electronic device of any one of claims 22-24, wherein the electronic device comprises a memory device,
the payment information also includes a payment amount.
26. The electronic device of any of claims 22-24, wherein the instructions, when executed by the processor, prior to the sending of the payment request and payment information to the server, cause the electronic device to further perform the steps of:
receiving a third input of the first user;
the sending the payment request and the payment information to the server includes:
in response to a third input by the first user, a payment request and payment information are sent to a server.
27. The electronic device of any of claims 22-24, wherein the obtaining user information of the second user comprises:
Acquiring a still image or video captured by a camera;
identifying a payment code in the still image or video, the payment code comprising user information of the second user.
28. The electronic device of any one of claims 22-24, wherein the electronic device further comprises:
a touch sensor;
the second input, comprising:
the first user touches the payment button, the first user presses the "=" button for a long time or the first user presses the "=".
29. The electronic device of any of claims 22-24, wherein the instructions, when executed by the electronic device, cause the electronic device to further perform the steps of:
and receiving a notification message sent by the server, wherein the notification message comprises the computing process and user information of the second user.
30. An electronic device for electronic payment, comprising:
a processor;
a memory for storing a computer program;
the computer program comprises instructions that, when executed by the electronic device, cause the electronic device to perform the steps of:
starting a calculator application and displaying a calculation interface;
Receiving a first input, the first input comprising a calculation of a payment amount associated with a user; the first input is an input on the computing interface;
receiving a fourth input on the computing interface;
and responding to the fourth input, generating a payment code according to the calculation process and user information of a user, and displaying the payment code, wherein the payment code comprises the user information of the user and information to be paid, and the information to be paid comprises the calculation process.
31. The electronic device of claim 30, wherein the electronic device further comprises: a display screen; the displaying the payment code includes:
and displaying the payment code through the display screen.
32. An electronic device for electronic payment, comprising:
a processor;
a memory for storing a computer program;
the computer program comprises instructions that, when executed by the electronic device, cause the electronic device to perform the steps of:
acquiring a payment code through a camera, and identifying user information and to-be-paid information of a first user output by other electronic equipment in the payment code; wherein the information to be paid comprises a calculation process of a payment amount related to the first user, and the user information of the first user is used for indicating a transaction account of the first user;
Sending a payment request and payment information to a server; wherein the payment request comprises a payment request from a first user to a second user or a payment request from the second user to the first user; the payment information comprises user information of the first user, user information of a second user transacted with the first user and payment information generated by the electronic equipment according to the information to be paid, wherein the user information of the second user is used for indicating a transaction account of the second user.
33. The electronic device of claim 32, wherein the obtaining the payment code via the camera comprises:
acquiring a still image or video captured by the camera;
identifying a payment code in the still image or video, the payment code comprising user information of the first user and the information to be paid; wherein the payment code is displayed on a display screen of the other device.
34. The electronic device of claim 32, wherein the instructions, when executed by the processor, cause the electronic device to further perform, prior to the sending of the payment request and payment information to the server, the steps of:
Outputting the user information of the first user and the information to be paid;
the sending the payment request and the payment information to the server includes:
receiving a third input;
and in response to the third input, sending the payment request and the payment information to the server.
35. The electronic device of any of claims 32-34, wherein,
the payment information includes a payment amount and/or the calculation process.
36. The electronic device of claim 35, wherein the electronic device comprises a memory device,
the payment amount in the payment information is a calculation result obtained in the calculation process in the information to be paid by the electronic equipment.
37. The electronic device of any one of claims 32-34 and 36,
the information to be paid also comprises a payment amount, and the payment amount in the information to be paid is a calculation result of the calculation process in the information to be paid.
38. The electronic device of claim 37, wherein the electronic device comprises a memory device,
the payment amount in the payment information is the payment amount in the information to be paid.
39. An electronic device for electronic payment, comprising:
A processor;
a memory for storing a computer program;
the computer program comprises instructions that, when executed by the electronic device, cause the electronic device to perform the steps of:
starting a calculator application and displaying a calculation interface;
receiving a first input; the first input is an input on a computing interface displayed by the electronic device; the first input includes a first calculation of a payment amount associated with the first user;
generating first payment information of a first user according to a first input, wherein the first payment information comprises a first payment amount and a first calculation process, and the first calculation process is a calculation process of the first payment amount;
receiving a second input on the computing interface;
responding to the second input, starting or jumping to a payment application, displaying a code scanning interface, and acquiring user information of a second user in a payment code and second payment information of the second user through a camera, wherein the user information of the second user is used for indicating a transaction account of the second user, the second payment information comprises a second payment amount and/or a second calculation process, and the second calculation process is a calculation process of the second payment amount;
Judging whether the first payment information is consistent with the second payment information or not;
if the first payment information accords with the second payment information, sending a payment request and payment information to a server; the payment information comprises the first payment information, the user information of the first user and the user information of the second user or the second payment information, the user information of the first user and the user information of the second user, wherein the user information of the first user is used for indicating a transaction account of the first user;
the payment request includes a payment request by the first user to the second user or a payment request by the second user to the first user.
40. The electronic device of claim 39, wherein the instructions, when executed by the processor, cause the electronic device to further perform the steps of:
and outputting an error prompt if the first payment information does not accord with the second payment information.
41. The electronic device of claim 39 or 40, wherein the first payment information corresponds to the second payment information, comprising:
The first payment amount and the second payment amount are the same; or alternatively
The first calculation process and the second calculation process are the same; or alternatively
The first payment amount is the same as the calculation result of the second calculation process; or alternatively
The calculation result of the first calculation process is the same as the second payment amount.
42. The electronic device of claim 39 or 40, wherein the first payment information does not correspond to the second payment information, comprising:
the first payment amount and the second payment amount are different; or alternatively
The first calculation process and the second calculation process are different; or alternatively
The first payment amount is different from the calculation result of the second calculation process; or alternatively
The calculation result of the first calculation process is the same as the second payment amount.
CN201910330860.4A 2019-04-23 2019-04-23 Electronic payment method and electronic device Active CN110111101B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910330860.4A CN110111101B (en) 2019-04-23 2019-04-23 Electronic payment method and electronic device
PCT/CN2020/081896 WO2020215995A1 (en) 2019-04-23 2020-03-28 Electronic payment method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910330860.4A CN110111101B (en) 2019-04-23 2019-04-23 Electronic payment method and electronic device

Publications (2)

Publication Number Publication Date
CN110111101A CN110111101A (en) 2019-08-09
CN110111101B true CN110111101B (en) 2024-03-01

Family

ID=67486392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910330860.4A Active CN110111101B (en) 2019-04-23 2019-04-23 Electronic payment method and electronic device

Country Status (2)

Country Link
CN (1) CN110111101B (en)
WO (1) WO2020215995A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110111101B (en) * 2019-04-23 2024-03-01 华为技术有限公司 Electronic payment method and electronic device
CN110502302A (en) * 2019-08-20 2019-11-26 维沃移动通信有限公司 Control method, terminal device and the storage medium of Application Program Interface
CN111325543A (en) * 2020-02-21 2020-06-23 嘉兴壹传网络科技有限公司 Mobile payment cashier system and cashier method thereof
CN111857458B (en) * 2020-06-23 2023-03-31 北京芙睿特无限科技发展有限公司 Freight order generation method and device, electronic equipment and storage medium
CN112036860A (en) * 2020-08-31 2020-12-04 深圳市兆珑科技有限公司 Safety device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663586A (en) * 2012-03-21 2012-09-12 华为技术有限公司 Method for payment transaction completed through two mobile terminals
CN102968717A (en) * 2012-11-07 2013-03-13 华为技术有限公司 Electronic payment method, relevant device and system
CN107358421A (en) * 2017-02-23 2017-11-17 美味不用等(上海)信息科技股份有限公司 Method of payment, payment mechanism, terminal device and server
CN108510255A (en) * 2013-12-06 2018-09-07 上海掌门科技有限公司 A kind of method of payment, equipment and computer storage media

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014190542A1 (en) * 2013-05-31 2014-12-04 华为技术有限公司 Transfer information processing method and device
CN105590194A (en) * 2014-12-03 2016-05-18 中国银联股份有限公司 Offline payment method and payment system
KR101570354B1 (en) * 2015-03-05 2015-11-19 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN106296141A (en) * 2015-06-03 2017-01-04 阿里巴巴集团控股有限公司 A kind of method and device realizing paying
SG10201510507PA (en) * 2015-12-21 2017-07-28 Mastercard International Inc Methods and systems for making a payment
CN106779653A (en) * 2017-01-18 2017-05-31 世纪禾光科技发展(北京)有限公司 Payment processing method and device
CN110111101B (en) * 2019-04-23 2024-03-01 华为技术有限公司 Electronic payment method and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663586A (en) * 2012-03-21 2012-09-12 华为技术有限公司 Method for payment transaction completed through two mobile terminals
CN102968717A (en) * 2012-11-07 2013-03-13 华为技术有限公司 Electronic payment method, relevant device and system
CN108510255A (en) * 2013-12-06 2018-09-07 上海掌门科技有限公司 A kind of method of payment, equipment and computer storage media
CN107358421A (en) * 2017-02-23 2017-11-17 美味不用等(上海)信息科技股份有限公司 Method of payment, payment mechanism, terminal device and server

Also Published As

Publication number Publication date
WO2020215995A1 (en) 2020-10-29
CN110111101A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
CN110111101B (en) Electronic payment method and electronic device
CN110058777B (en) Method for starting shortcut function and electronic equipment
CN110543287B (en) Screen display method and electronic equipment
CN115866121B (en) Application interface interaction method, electronic device and computer readable storage medium
CN112395894B (en) Communication method and device based on NFC
CN117014567A (en) Video call display method and related device applied to electronic equipment
US11910197B2 (en) Service processing method and device
CN111666119A (en) UI component display method and electronic equipment
CN113641271B (en) Application window management method, terminal device and computer readable storage medium
CN115914461B (en) Position relation identification method and electronic equipment
CN111027374B (en) Image recognition method and electronic equipment
CN115134453A (en) Riding information display method and electronic equipment
CN116991274B (en) Upper sliding effect exception handling method and electronic equipment
CN116028534B (en) Method and device for processing traffic information
CN115016666B (en) Touch processing method, terminal equipment and storage medium
CN114077323B (en) Touch screen false touch prevention method of electronic equipment, electronic equipment and chip system
CN114942741B (en) Data transmission method and electronic equipment
CN116301905A (en) Data processing method and related equipment
CN116204145A (en) Method for projecting screen of electronic equipment, communication device and electronic equipment
CN117131380A (en) Matching degree calculation method and electronic equipment
CN115239322A (en) Payment method
CN117711032A (en) Fingerprint identification method and electronic equipment
CN116527266A (en) Data aggregation method and related equipment
CN116029716A (en) Remote payment method, electronic equipment and system
CN117499928A (en) Equipment security processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant