Display method, payment code recognition method, device and electronic equipment
By receiving preset input on the payment terminal device or detecting the signal of the payment device, the payment code is hidden until the conditions are met. Combined with server location verification, the problem of cumbersome payment code payment process and insufficient security is solved, achieving safer and convenient payment experience.
Patent Information
- Application Number
- CN202011568036.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-25
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-12-25
AI Technical Summary
When using a payment terminal device to present a payment code for payment, users need to frequently open and close the payment code interface, resulting in a cumbersome payment process and the risk of illegal payment equipment scanning the payment code, affecting payment security.
By receiving preset input or detecting light and near-field communication requests from the payment device, the payment code is hidden until the preset conditions are met and then displayed, reducing the risk of illegal code scanning, and verifying the matching location information through the server to facilitate payment.
It simplifies the payment code display process, reduces the risk of illegal code scanning, improves the security and convenience of payment, and reduces user operation steps.
Smart Images

Figure CN112581122B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a display method, a payment code recognition method, a device and an electronic device. Background Art
[0002] With the development of communication technology, electronic devices have more and more functions. For example, users can use electronic devices to present payment codes for scanning and payment.
[0003] Usually, when a user uses a payment device to present a payment code for payment, the user will generally open the payment code and queue up to wait for payment. However, there may be pre-placed illegal payment collection devices in the payment environment, such as pinhole cameras. Illegal payment collection devices can successfully scan the payment code presented by the payment device, thereby causing property loss to the user.
[0004] Currently, for payment security, users need to exit the payment code display interface while waiting in line to pay, and then re-trigger the electronic device to display the payment interface when the payment code is needed to make the payment, which makes the payment process complicated. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a display method, a payment code recognition method, a device and an electronic device, which can solve the problem of the complicated process of using a payment terminal to display a payment code for payment.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a display method, which includes: receiving a first input, the first input being used to trigger a first device to obtain a first payment code; in response to the first input, obtaining the first payment code and hiding the first payment code; displaying the first payment code when a preset condition is met; wherein the preset condition is any one of the following: detecting light of a preset intensity sent by a payment receiving device, receiving a scan code request message sent by the payment receiving device through near-field communication technology, detecting that the screen folding posture of the first device is a preset posture, and receiving a preset input entered by a user.
[0008] In a second aspect, an embodiment of the present application provides a display device, which includes: a receiving module, an acquisition module and a display module; the receiving module is used to receive a first input, and the first input is used to trigger the first device to obtain a first payment code; the acquisition module is used to obtain the first payment code in response to the first input received by the receiving module; the display module is used to hide the first payment code; the display module is also used to display the first payment code when a preset condition is met; wherein the preset condition is any one of the following: detecting light of a preset intensity sent by a payment receiving device, receiving a scan code request message sent by the payment receiving device through near-field communication technology, detecting that the screen folding posture of the first device is a preset posture, and receiving a preset input entered by the user.
[0009] In the third aspect, an embodiment of the application provides a payment code identification method, the method comprising: after securely verifying the user identity of a first device, sending a first payment request to a server, wherein the first payment request is a payment request sent to the first device; receiving a first payment code and first location information of the first device sent by the server; and identifying the first payment code when the first location information matches the second location information of the payment receiving device.
[0010] In a fourth aspect, an embodiment of the application provides a payment code recognition device, comprising: a sending module, a receiving module and an identification module; the sending module is used to send a first payment request to a server after a user identity security verification of a first device, wherein the first payment request is a payment request sent to the first device; the receiving module is used to receive a first payment code and first location information of the first device sent by the server; the identification module is used to identify the first payment code when the first location information matches the second location information of the payment receiving device.
[0011] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect or the third aspect.
[0012] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the third aspect are implemented.
[0013] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described in the first aspect or the third aspect.
[0014] In an embodiment of the present application, first, the first device receives a first input, and the first input is used to trigger the first device to obtain a first payment code. After that, the first device obtains the first payment code and hides the first payment code. When a preset condition is met, the first device displays the first payment code. In other words, when payment is required, the first device can hide the payment code first, and then display the payment code after determining that the preset condition is met. The preset condition can be any one of the following: detecting light of a preset intensity sent by the payment receiving device, receiving a scan code request message sent by the payment receiving device through near field communication technology, detecting that the screen folding posture of the first device is a preset posture, and receiving a preset input entered by the user. That is, when the first device is far away from the payment device, the first device can hide the payment code first. After the user places the first device at a position close to the payment device, in the first case, the first device can determine whether it is close to the payment device through the preset intensity of light sent by the payment device or the scan code request message sent by the near field communication technology. If the first device receives the above information sent by the payment device, it can trigger the first device to automatically display the hidden payment code, thereby reducing the probability that the payment code is scanned by an illegal code scanning device far away from the payment environment; in the second case, the first device can also hide the payment code first to reduce the probability that the payment code is scanned by an illegal code scanning device far away from the payment environment, thereby reducing the deduction of money by potential illegal payment terminals in the payment environment, making payment safer and more convenient, and then determine whether the user needs to display the payment code at this time according to the folding posture of the user's folding screen or the preset input entered by the user, that is, the user can trigger the first device to display the hidden payment code through some specific inputs after being close to the payment device, and the user does not need to trigger the operation of displaying the payment code again, thereby reducing the operation steps for the user to use the payment code to make a payment and increasing the convenience of display. In another embodiment of the present application, the payment receiving device can send a first payment request to the server after performing user identity authentication on the power level of the first device. After receiving the first payment request of the first device, the server can send the first payment code and first location information of the first device to the payment receiving device; when the first location information matches the second location information of the payment receiving device, the first payment code is identified, so that the user can make payment by uploading the payment code in advance, reducing the operating steps for the user to make payment using the payment code and increasing the convenience of payment based on the payment code. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flow chart of a display method provided in an embodiment of the present application;
[0016] Figure 2 A possible structural schematic diagram of a display device provided in an embodiment of the present application;
[0017] Figure 3A possible structural diagram of a payment code recognition device provided in an embodiment of the present application;
[0018] Figure 4 A possible structural diagram of another payment code recognition device provided in an embodiment of the present application;
[0019] Figure 5 A possible structural diagram of an electronic device provided in an embodiment of the present application;
[0020] Figure 6 A hardware schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0023] The display method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0024] It should be noted that in the embodiment of the present application, the first device can be used as a payment end device, as a device for a user to initiate a payment request, or as a device for receiving payment requests sent by other users. For the sake of convenience, the following is an explanation using the first device as a payment end device, a device that receives a payment request message sent by a second device, and a device that initiates a payment request message to a third device as examples.
[0025] Figure 1 A flow chart of a display method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown in , the method includes the following S101 to S103:
[0026] S101: A first device receives a first input.
[0027] The first input is used to trigger the first device to obtain the first payment code.
[0028] Exemplarily, when the user is ready to pay, the first input may be the user opening a payment application and clicking an input of a payment control.
[0029] S102: In response to the first input, the first device obtains a first payment code and hides the first payment code.
[0030] It can be understood that the first device can obtain the first payment code from the payment application first, do not display the first payment code, and then detect whether the preset conditions are met to determine whether to display the hidden first payment code.
[0031] It should be noted that after the first device hides the first payment code, the user can continue to operate the electronic device to perform other operations.
[0032] S103: When a preset condition is met, the first device displays a first payment code.
[0033] The preset condition is any one of the following (1) to (4):
[0034] (1) Detecting light of a preset intensity sent by a payment device.
[0035] It is understandable that in this scenario, the cash collection device is provided with a light emitting module, which can be used to emit light of a preset intensity. The first device can detect whether light of a preset intensity is irradiated onto the first device according to the photosensitive sensor.
[0036] (2) Receive a code scanning request message sent by the payment device via Near Field Communication (NFC) technology.
[0037] It can be understood that in the embodiment of the present application, a near field communication module can be provided in the payment device and the first device, the near field communication module in the payment device can be used to send a code scanning request message, and the near field communication module in the first device can be used to receive a code scanning request message.
[0038] Optionally, in an embodiment of the present application, the payment device may periodically send a scan code request message through NFC technology, or may send a scan code request message after confirming a payment order.
[0039] (3) It is detected that the screen folding posture of the first device is a preset posture.
[0040] In this scenario, the first device may be an electronic device with a foldable screen.
[0041] Exemplarily, the preset posture may be that the screen of the first device is folded within a preset angle range, or the two screens are folded to a preset distance.
[0042] (4) Receive preset input input from the user.
[0043] Exemplarily, the preset input may be a preset gesture input by the user, or may be biometric information input by the user, such as a fingerprint, facial features, etc.
[0044] Exemplarily, in the above S103, the first device may display the first payment code when the screen is locked and a preset condition is met.
[0045] It is understandable that after the first device displays the payment code, the payment receiving device can scan the payment code displayed by the first device to receive payment.
[0046] A display method provided by an embodiment of the present application, first, a first device receives a first input, the first input is used to trigger the first device to obtain a first payment code, then the first device obtains the first payment code and hides the first payment code, and the first device displays the first payment code when a preset condition is met. That is to say, when payment is required, the first device can hide the payment code first, and then display the payment code after determining that the preset condition is met. The preset condition can be any one of the following: detecting light of a preset intensity sent by a payment receiving device, receiving a code scanning request message sent by a payment receiving device through near field communication technology, detecting that the screen folding posture of the first device is a preset posture, and receiving a preset input entered by a user. That is, when the first device is far away from the payment device, the first device can hide the payment code first. After the user places the first device at a position close to the payment device, in the first case, the first device can determine whether it is close to the payment device through the preset intensity of light sent by the payment device or the scan code request message sent by the near field communication technology. If the first device receives the above information sent by the payment device, it can trigger the first device to automatically display the hidden payment code, thereby reducing the probability that the payment code is scanned by an illegal code scanning device far away from the payment environment; in the second case, the first device can also hide the payment code first to reduce the probability that the payment code is scanned by an illegal code scanning device far away from the payment environment, thereby reducing the deduction of money by potential illegal payment terminals in the payment environment, making payment safer and more convenient, and then determine whether the user needs to display the payment code at this time according to the folding posture of the user's folding screen or the preset input entered by the user, that is, the user can trigger the first device to display the hidden payment code through some specific inputs after being close to the payment device, and the user does not need to trigger the operation of displaying the payment code again, thereby reducing the operation steps for the user to use the payment code to make a payment and increasing the convenience of display.
[0047] Optionally, in the display method provided in the embodiment of the present application, the electronic device displays a floating ball, and the above S103 can be specifically performed by S103a:
[0048] S103a. When a preset condition is met, the first device displays a display interface of a floating ball, and the display interface includes a first payment code.
[0049] That is, the first payment code is hidden in the floating ball.
[0050] Usually, the floating ball is located at the top layer of the display interface.
[0051] Optionally, the first device may or may not prompt a payment code in the floating ball, and this embodiment of the present application does not specifically limit this.
[0052] It can be understood that after the first device receives the first input, the first device can first hide the first payment code in the floating ball. When the above-mentioned preset conditions are met, the first device can be triggered to automatically expand the display interface of the floating ball and display the first payment code in the display interface.
[0053] For example, if the first device is locked, the first device can place the floating ball at the top layer of the display interface without unlocking the screen. When the user brings the first device close to the payment device, the first device can determine whether the preset conditions are met. If the preset conditions are met, the first device can automatically wake up the floating ball to display the first payment code.
[0054] It can be understood that in the above example, the user can make payments without unlocking the screen of the first device, which not only makes payments safer, but also makes payments faster and more convenient.
[0055] Based on this solution, the first device can hide the first payment code in the floating ball first, and then display the display interface of the floating ball when the preset conditions are met, and the display interface includes the first payment code. After the first device hides the first payment code in the floating ball, if the user needs to perform other operations during the payment process, there is no need to exit the payment interface. After the operation is completed, the process of the first device displaying the payment code is triggered again, which is more convenient.
[0056] Optionally, in the display method provided in the embodiment of the present application, the above S103 may be specifically performed by S103b:
[0057] S103b. When a preset condition is met, the first device displays a first payment code on the back screen.
[0058] In this solution, the first device may be an electronic device with a double-sided screen.
[0059] The first input is the user's input on the front screen.
[0060] Based on this solution, the user operates on the front screen to trigger the first device to hide the payment code first, and then after detecting that the preset conditions are met, the payment code can be displayed on the back screen. On the one hand, the user can trigger the first device not to directly display the payment code when waiting in line, and then trigger the first device to quickly display the payment code when payment is needed, thereby making payment using the payment code safer. On the other hand, the first device displays the payment code on the back screen without affecting the user's other operations on the front screen, so that the user can continue to perform other operations on the front screen during the payment process. If the user needs to perform other operations during the payment process, there is no need for the user to exit the payment interface first and then re-trigger the first device to display the payment code after the operation. The operation is more convenient.
[0061] It should be noted that in the embodiment of the present application, the user can help others to pay through the first device.
[0062] Optionally, in the display method provided in the embodiment of the present application, before the above S103, the following S104 may be further included:
[0063] S104: The first device displays a first prompt message.
[0064] The first prompt information indicates that a first payment request message sent by the second device has been received.
[0065] Optionally, after S104, if the user chooses to delay payment, the first device may execute S105a and S106b below; if the user chooses to pay immediately, the first device may execute S105b and S106b below; if the user chooses to refuse payment, the first device may execute S105c and S106c below.
[0066] S105a: The first device receives a second input.
[0067] The second input is an input for the user to select delayed payment.
[0068] S106a. The first device displays a second prompt message in the floating ball in response to the second input, and the second prompt message indicates the deadline for payment.
[0069] Exemplarily, the second prompt information may also indicate that it is a payment request from the user of the second device.
[0070] It can be understood that the second prompt information can remind the user of the first device to make payment.
[0071] Based on this solution, after the first device receives the payment request from the second device, the first device can prompt the user that the payment request has been received. If the user decides to delay payment, the first device can display the payment request in a floating ball to prompt the user that there is an order that needs to be paid, so as to prevent the user from forgetting.
[0072] S105b: The first device receives a third input.
[0073] Among them, the third input is the input for the user to choose direct payment.
[0074] S106b. In response to the third input, send the first payment code to the second device.
[0075] Specifically, after receiving the third input, the first device may first obtain the first payment code, and then send the first payment code to the second device.
[0076] In one example, the first payment code may be a one-time payment code, that is, the first payment code becomes invalid after being scanned once.
[0077] Optionally, after S106b, the first device may display the transmitted payment code identifier in the floating ball to prompt the user that payment is being executed. After the second device uses the payment code to scan the code on the payment device, the transmitted payment code identifier may be released from the floating ball.
[0078] Based on this solution, after the first device receives the payment request from the second device, if the user decides to pay immediately, the first device can obtain the first payment code and then send it to the second device, so that the second device can use the first payment code to make payment, making payment more flexible.
[0079] S105c: The first device receives a fourth input.
[0080] Among them, the fourth input is the input of the user choosing to refuse payment.
[0081] S106c. In response to the fourth input, the first device sends a payment rejection message to the second device.
[0082] The payment rejection message may prompt the user of the second device that the payment request has failed.
[0083] Based on this solution, after the first device receives the payment request from the second device, if the user decides to refuse to pay, the first device can send a payment refusal message to the second device, so that the second device can prompt the user of the second device that the payment request has failed based on the payment refusal message.
[0084] It should be noted that during the payment process, users may need other users to pay on their behalf, for example, when the payment balance is insufficient or when purchasing for others.
[0085] Optionally, in the display method provided in the embodiment of the present application, after the above S103, the following S107 may be further included:
[0086] S107. When payment based on the first payment code fails, a second payment request message is sent to a third device.
[0087] Exemplarily, when the first device receives an input from a user requesting payment on behalf of another device, it may send a payment request message to the third device.
[0088] It is understood that after receiving the second payment request message sent by the first device, the third device can display the second payment request message in the manner of the above embodiment to prompt the user of the third device that there is a payment message. The third device can send the second message to the first device based on the user's choice of the third device.
[0089] S108. The first device receives second information sent by the third device.
[0090] S109a: When the second information includes a payment status, the first device displays the payment status in a floating ball.
[0091] Among them, the payment status is: delayed payment or refused payment.
[0092] S109b: When the second information includes a second payment code, the first device obtains and displays the second payment code.
[0093] Specifically, after the first device obtains the second payment code, the second payment code may be hidden first, for example, in a floating ball.
[0094] It can be understood that after the first device hides the second payment code in the floating ball, when it is detected that the above preset conditions are met, the first device unfolds the display interface of the floating ball, and the display interface includes the second payment code.
[0095] Based on this solution, when a user needs to request other users to pay on his or her behalf, such as when payment based on the first payment code fails, the user can initiate a payment request message to the user of the third device. After the first device sends a second payment request message to the third device, after the user of the third device selects it, the payment status can be prompted in the floating ball according to the content included in the second information sent by the third device. For example, if the second information includes a payment status of delayed payment, delayed payment can be displayed in the floating ball to prompt the user that the other party may make payment a little later. If the second information includes a payment status of refused payment, refused payment can be displayed in the floating ball to prompt the user that the other party has refused to pay. If the second information includes a second payment code, the first device can obtain the second payment code and then hide the payment code in the floating ball. When the first device detects that the preset conditions are met, it can trigger the floating ball to automatically display the second payment code, thereby ensuring the payment security of the user who is paying on behalf of the user.
[0096] Optionally, in the display method provided in the embodiment of the present application, after the above S102, the following S110 and S111 may be further included:
[0097] S110: When it is detected that the power level of the first device is less than or equal to a preset power level threshold, the first device obtains location information.
[0098] It should be noted that the preset power threshold may indicate that the power of the first device is low.
[0099] S111. The first device sends location information and a first payment code to a server.
[0100] Among them, after the server determines that the user has passed the security verification of the payment device, it sends the location information and the first payment code to the payment device. The location information is used for the security verification of the payment device, and the first payment code is used by the payment device to identify the payment.
[0101] It should be noted that the above-mentioned server can be a cloud server for secure payment of the first device.
[0102] That is to say, when the first device is low on power, it can upload the current location information of the payment code to the cloud server, so that in the subsequent payment process, the payment receiving device can obtain the payment code of the first device.
[0103] Based on this solution, after hiding the first payment code, if the first device detects that the battery of the first device is low, the first device can send the first payment code and the current location information of the first device to the server, so that when the battery is low and the payment code cannot be displayed, the payment code can be transmitted to the payment device through the server for payment.
[0104] On the payment device side:
[0105] The present application embodiment provides a display method, which is applied to a payment device and may include the following S201 and S202:
[0106] S201. The payment receiving device sends first information to the first device, where the first information is used to trigger the first device to display a payment code.
[0107] Among them, the first information is the light of preset intensity emitted by the payment device when the distance between the first device and the payment device is less than or equal to the first distance, or the scan code request message sent by the payment device through the near field communication technology.
[0108] Example 1: A payment device may include a distance sensor and a light-emitting module.
[0109] After the cash register device is turned on, the distance sensor and the light module can be initialized. After the distance sensor is initialized, it enters the detection state. The light module can be turned off by default. The distance sensor of the cash register device can enter the preparatory state for detecting and scanning codes, and detect the distance of the object close to the cash register device in real time.
[0110] Correspondingly, the payment device detects whether there is light of a preset intensity, and after detection, the payment code can be displayed to the payment device.
[0111] Example 2: A payment device may include an NFC module.
[0112] After being turned on, the payment device can initialize the NFC module so that the NFC module enters the working mode. The NFC module can be preset to broadcast a scan code request instruction every 0.1 seconds, wherein the scan code request instruction can be a basic instruction agreed upon by the industry. The purpose of the instruction is to notify the NFC module close to the payment segment to enter the state of preparing to scan the code. The instruction may not have the function of verifying identity.
[0113] Correspondingly, the payment device starts to listen to NFC commands, and after listening to the scan code request command, it can display the payment code to the payment device.
[0114] S202: The payment device collects and identifies the first payment code displayed by the first device.
[0115] In the display method provided in the embodiment of the present application, the payment device can send the first information to the first device, and the first information is used to trigger the first device to display the payment code. Since the first information is the light of preset intensity emitted by the payment device when the distance between the first device and the payment device is less than or equal to the first distance, or is the code scanning request message sent by the payment device through the near-field communication technology, the payment device can be triggered to display the payment code when the distance between the payment device and the payment device is close. A verification process is provided, so that the payment device displays the payment code after receiving the prompt from the payment device, which can reduce the probability of illegal code scanning devices at a distance around the payment environment scanning the payment code, thereby reducing the deduction of money by potential illegal payment terminals in the payment environment, and payment is safer and more convenient.
[0116] Optionally, the display method provided in the embodiment of the present application may further include the following S203 and S204 after the above S203:
[0117] S203: After collecting the second payment code displayed by the first device, the payment receiving device verifies whether the second payment code is an abnormal payment code.
[0118] The second payment code is a payment code sent by a third device when the first device requests payment on its behalf.
[0119] Exemplarily, the payment receiving device may verify whether the second payment code is a payment code for abnormal payment, such as a payment code for a locked payment account (eg, frozen), or a payment code for abnormal payment frequency (eg, stolen payment).
[0120] S204: When determining that the second payment code is an abnormal payment code, the payment receiving device sends an abnormal prompt message to the third device.
[0121] Based on this solution, if the payment receiving device detects that the first device is using a payment code for payment on behalf of another device, the payment receiving device can verify the second payment code to determine whether the second payment code is an abnormal payment code. If it is an abnormal payment code, an abnormal prompt message can be sent to the third device, thereby prompting the user of the third device that the payment is abnormal.
[0122] The present application embodiment provides a payment code recognition method, which is applied to a payment receiving device and may include the following S301 to S303:
[0123] S301. After verifying the user identity of the first device, the payment receiving device sends a first payment request to the server.
[0124] The first payment request is a payment request sent to the first device.
[0125] Exemplarily, the user may authenticate his identity in the scanning window of the payment device, for example, through facial recognition, or by entering a payment account number and making a preset gesture in the scanning area.
[0126] After receiving the payment information of the user who needs the first device, the server may send a payment code of the first device to the payment device.
[0127] S302: The payment device receives the first payment code and the first location information sent by the server.
[0128] S303: When the first location information matches the second location information of the payment device, the payment device identifies the first payment code.
[0129] Exemplarily, in an embodiment of the present application, after security verification based on the location information, the payment device obtains the historical bills on the payment device. If it is detected that the user has made payments on the payment device, the first payment code can be identified to collect the payment.
[0130] For example, the payment device can verify whether the user's current location matches the location sent by the server.
[0131] Based on this solution, the payment receiving device can send a first payment request to the server after performing user identity authentication on the first device. After receiving the first payment request from the first device, the server can send the first payment code and first location information of the first device to the payment receiving device; when the first location information matches the second location information of the payment receiving device, the first payment code is identified, so that the user can make payment by uploading the payment code in advance, reducing the operating steps for the user to make payment using the payment code and increasing the convenience of payment based on the payment code.
[0132] Furthermore, the first device can upload a first payment code and first location information to the server when the power level is less than or equal to a preset power threshold. After receiving the first payment request from the user of the first device, the server can send the first location information and first payment code uploaded by the first device to the receiving device. After receiving the first payment code, the receiving device can verify the security of the first payment code through the location information uploaded by the user and historical billing information. After the verification is passed, the code can be identified and payment can be collected, thereby making it more convenient and safer for users to pay when the power is low.
[0133] It should be noted that the display method provided in the embodiment of the present application can be executed by a display device or a control module in the display device for executing the display method. In the embodiment of the present application, the method for executing payment by a display device is taken as an example to illustrate the display device provided in the embodiment of the present application.
[0134] Figure 2 A display device provided in an embodiment of the present application, the display device 400 includes: a receiving module 401, an acquisition module 402 and a display module 403; the receiving module is used to receive a first input, the first input is used to trigger the first device to obtain a first payment code; the acquisition module is used to obtain the first payment code in response to the first input received by the receiving module; the display module is used to hide the first payment code; the display module is also used to display the first payment code when a preset condition is met; wherein the preset condition is any one of the following: detecting light of a preset intensity sent by a payment receiving device, receiving a code scanning request message sent by the payment receiving device through near-field communication technology, detecting that the screen folding posture of the first device is a preset posture, and receiving a preset input entered by a user.
[0135] Optionally, the first device displays a floating ball; the display module is specifically used to display a display interface of the floating ball, and the display interface includes the first payment code.
[0136] Optionally, the display device also includes: a sending module; a display module, which is also used to display a first prompt message before displaying the display interface of the floating ball, and the first prompt message prompts that a first payment request message sent by the second device has been received; a receiving module, which is also used to receive a second input, and the second input is an input for the user to select delayed payment; the display module is also used to display a second prompt message in the floating ball in response to the second input received by the receiving module, and the second prompt message prompts the payment deadline; the receiving module is also used to receive a third input, and the third input is an input for the user to select direct payment; an acquisition module is used to send a first payment code to the second device in response to the third input received by the receiving module.
[0137] Optionally, the display device also includes a sending module; the sending module is used to send a second payment request message to a third device after the display module displays the first payment code in case the payment based on the first payment code fails; the receiving module is also used to receive the second information sent by the third device; the display module is also used to display the payment status in the floating ball when the second information includes the payment status, and the payment status is: delayed payment or rejected payment; the acquisition module is also used to acquire the second payment code when the second information includes the second payment code; the display module is also used to display the second payment code.
[0138] Optionally, the display device also includes a sending module; an acquisition module, which is also used to acquire the first payment code and hide the first payment code, and then acquire the location information when it is detected that the power level of the first device is less than or equal to a preset power threshold; a sending module, which is used to send the location information and the first payment code to the server; wherein, after the server determines that the user has passed the security verification of the payment device, the location information and the first payment code are sent to the payment device, the location information is used for security verification of the payment device, and the first payment code is used for the payment device to identify the payment.
[0139] The embodiment of the present application provides a display device. First, the display device receives a first input, and the first input is used to trigger the first device to obtain a first payment code. After that, the first device obtains the first payment code and hides the first payment code. When a preset condition is met, the display device displays the first payment code. In other words, when payment is required, the display device can hide the payment code first, and then display the payment code after determining that the preset condition is met. The preset condition can be any one of the following: detecting light of a preset intensity sent by a payment device, receiving a scan code request message sent by the payment device through near-field communication technology, detecting that the screen folding posture of the first device is a preset posture, and receiving a preset input input by a user. That is, when the distance from the payment device is far away, the display device can first hide the payment code. After the user places the first device at a position close to the payment device, in the first case, the display device can determine whether it is close to the payment device through the preset intensity of light sent by the payment device or the scan code request message sent by the near-field communication technology. If the first device receives the above information sent by the payment device, it can trigger the display device to automatically display the hidden payment code, thereby reducing the probability that the payment code will be scanned by an illegal code scanning device far away from the payment environment; in the second case, the display device can also hide the payment code first, and then determine whether the user needs to display the payment code at this time according to the folding posture of the user's folding screen or the preset input entered by the user, that is, the user can trigger the display device to display the hidden payment code through some specific inputs after being close to the payment device, thereby reducing the probability that the payment code will be scanned by an illegal code scanning device far away from the payment environment, thereby reducing the deduction of money by potential illegal payment terminals in the payment environment, and payment is safer and more convenient.
[0140] Figure 3A payment code recognition device is provided in an embodiment of the present application. The payment code recognition device 500 includes: a sending module 501 and an identification module 502; the sending module is used to send first information to a first device, and the first information is used to trigger the first device to display a payment code; the identification module is used to collect and identify the first payment code displayed by the first device; wherein the first information is a light of preset intensity emitted by the payment device when the distance between the first device and the payment device is less than or equal to the first distance, or a scan code request message sent by the payment device through near-field communication technology.
[0141] Optionally, the payment code recognition device also includes a verification module; the verification module is used to verify whether the second payment code is an abnormal payment code after collecting the second payment code displayed by the first device, and the second payment code is a payment code sent by a third device requested by the first device to pay on its behalf; the sending module is also used to send an abnormal prompt information to the third device when it is determined that the second payment code is an abnormal payment code.
[0142] An embodiment of the present application provides a payment code recognition device, which can send first information to a first device, and the first information is used to trigger the first device to display a payment code. Since the first information is a light of preset intensity emitted by the payment receiving device when the distance between the first device and the payment receiving device is less than or equal to the first distance, or a scan code request message sent by the payment code recognition device through near-field communication technology, the payment receiving device can be triggered to display the payment code when the distance between the payment device and the payment code recognition device is close, and a verification process is provided, so that the payment device displays the payment code after receiving the prompt from the payment receiving device, which can reduce the probability of illegal scanning devices at a distance around the payment environment scanning the payment code, thereby reducing the deduction of money by potential illegal payment terminals in the payment environment, and payment is safer and more convenient.
[0143] Figure 4 A payment code recognition device is provided in an embodiment of the present application. The payment code recognition device 600 includes: a sending module 601, a receiving module 602 and an identification module 603; the sending module is used to send a first payment request to the server after the user identity of the first device is securely verified, and the first payment request is a payment request sent to the first device; the receiving module is used to receive the first payment code and first location information sent by the server; the identification module is used to identify the first payment code when the first location information matches the second location information of the payment device.
[0144] Optionally, the first payment code and the first location information sent by the server are sent by the first device to the server when the power level is less than or equal to a preset power threshold.
[0145] Based on this solution, the payment receiving device can send a first payment request to the server after performing user identity authentication on the first device. After receiving the first payment request from the first device, the server can send the first payment code and first location information of the first device to the payment receiving device; when the first location information matches the second location information of the payment receiving device, the first payment code is identified, so that the user can make payment by uploading the payment code in advance, reducing the operating steps for the user to make payment using the payment code and increasing the convenience of payment based on the payment code.
[0146] The display device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0147] The display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0148] The display device provided in the embodiment of the present application can implement each process implemented by the display device in the above method embodiment, and will not be described again here to avoid repetition.
[0149] Alternatively, if Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501, a memory 52, and a program or instruction stored in the memory 502 and executable on the processor 501. When the program or instruction is executed by the processor 501, each process of the above-mentioned display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0150] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0151] Figure 6A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0152] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0153] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0154] Among them, the user input unit 1007 is used to receive a first input, and the first input is used to trigger the first device to obtain a first payment code; the display unit 1006 is used to obtain the first payment code and hide the first payment code in response to the first input; it is also used to display the first payment code when a preset condition is met; wherein the preset condition is any one of the following: detecting light of a preset intensity sent by the payment receiving device, receiving a scan code request message sent by the payment receiving device through near-field communication technology, detecting that the screen folding posture of the first device is a preset posture, and receiving a preset input entered by the user.
[0155] An embodiment of the present application provides an electronic device, which is a first device. First, the first device receives a first input, and the first input is used to trigger the first device to obtain a first payment code. After that, the first device obtains the first payment code and hides the first payment code. When a preset condition is met, the first device displays the first payment code. In other words, when payment is required, the first device can hide the payment code first, and then display the payment code after determining that the preset condition is met. The preset condition can be any one of the following: detecting light of a preset intensity sent by a payment receiving device, receiving a code scanning request message sent by a payment receiving device through near field communication technology, detecting that the screen folding posture of the first device is a preset posture, and receiving a preset input input by a user. That is, when the first device is far away from the payment device, the first device can hide the payment code first. After the user places the first device at a position close to the payment device, in the first case, the first device can determine whether it is close to the payment device through the preset intensity of light sent by the payment device or the scan code request message sent by the near-field communication technology. If the first device receives the above information sent by the payment device, it can trigger the first device to automatically display the hidden payment code, thereby reducing the probability that the payment code will be scanned by an illegal code scanning device far away from the payment environment; in the second case, the first device can also hide the payment code first, and then determine whether the user needs to display the payment code at this time according to the folding posture of the user's folding screen or the preset input entered by the user, that is, the user can trigger the first device to display the hidden payment code through some specific inputs after being close to the payment device, thereby reducing the probability that the payment code will be scanned by an illegal code scanning device far away from the payment environment, thereby reducing the deduction of money by potential illegal payment terminals in the payment environment, and payment is safer and more convenient.
[0156] Optionally, the display unit 1006 is further used to display a display interface of the floating ball, and the display interface of the floating ball includes the first payment code.
[0157] Optionally, the display unit 1006 is also used to display a first prompt message before displaying the display interface of the floating ball, and the first prompt message prompts that a first payment request message sent by the second device has been received; the user input unit 1007 is also used to receive a second input, and the second input is an input for the user to select delayed payment; the display unit 1006 is also used to display a second prompt message in the floating ball in response to the second input, and the second prompt message prompts the payment deadline; the user input unit 1007 is also used to receive a third input, and the third input is an input for the user to select direct payment; the radio frequency unit 1001 is used to send a first payment code to the second device in response to the third input.
[0158] Optionally, the RF unit 1001 is also used to, after displaying the first payment code, send a second payment request message to a third device when payment based on the first payment code fails; receive second information sent by the third device; the display unit 1006 is also used to display the payment status in a floating ball when the second information includes the payment status, and the payment status is: delayed payment or rejected payment; or, the processor 1010 is also used to obtain the second payment code when the second information includes the second payment code; the display unit 1006 is also used to obtain and display the second payment code when the second information includes the second payment code.
[0159] Optionally, the processor 1010 is used to obtain the first payment code and hide the first payment code, and then obtain the location information when it is detected that the power level of the first device is less than or equal to a preset power threshold; the radio frequency unit 1001 is also used to send the location information and the first payment code to the server; wherein, after the server determines that the user has passed the security verification of the payment device, it sends the location information and the first payment code to the payment device, the location information is used for the security verification of the payment device, and the first payment code is used for the payment device to identify the payment.
[0160] Among them, the radio frequency unit 1001 is used to send the first information to the first device, and the first information is used to trigger the first device to display the payment code; the sensor 1005 is used to collect and identify the first payment code displayed by the first device; wherein the first information is the light of preset intensity emitted by the payment device when the distance between the first device and the payment device is less than or equal to the first distance, or the scanning request message sent by the payment device through the near field communication technology.
[0161] Optionally, the processor 1010 is used to verify whether the second payment code is an abnormal payment code after sending the first information to the first device and after collecting the second payment code displayed by the first device, and the second payment code is a payment code sent by a third device requested to pay by the first device; the radio frequency unit 1001 is also used to send an abnormal prompt message to the third device when it is determined that the second payment code is an abnormal payment code.
[0162] An embodiment of the present application provides an electronic device, which is a payment receiving device. The payment receiving device can send first information to a first device, and the first information is used to trigger the first device to display a payment code. Since the first information is a light of preset intensity emitted by the payment receiving device when the distance between the first device and the payment receiving device is less than or equal to the first distance, or is a code scanning request message sent by the payment receiving device through near-field communication technology, the payment receiving device can be triggered to display the payment code when the distance between the payment device and the payment receiving device is close. A verification process is provided, so that the payment device displays the payment code after receiving the prompt from the payment receiving device, which can reduce the probability of illegal code scanning devices at a distance around the payment environment scanning the payment code, thereby reducing the deduction of money by potential illegal payment terminals in the payment environment, and payment is safer and more convenient.
[0163] Among them, the radio frequency unit 1001 is used to send a first payment request to the server after the user identity of the first device is securely verified, and the first payment request is a payment request sent to the first device; receive the first payment code and first location information sent by the server; the sensor 1005 is used to identify the first payment code when the first location information matches the second location information of the payment device.
[0164] Optionally, the first payment code and the first location information sent by the server are sent by the first device to the server when the power level is less than or equal to a preset power threshold.
[0165] An embodiment of the present application provides an electronic device, which is a payment receiving device. After the payment receiving device authenticates the user identity of a first device, the payment receiving device can send a first payment request to a server. After receiving the first payment request of the first device, the server can send a first payment code and first location information of the first device to the payment receiving device; when the first location information matches the second location information of the payment receiving device, the first payment code is identified, so that the user can make payment by uploading the payment code in advance, reducing the operating steps for the user to make payment using the payment code and increasing the convenience of payment based on the payment code.
[0166] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.
[0167] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned display method or payment code recognition method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0168] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0169] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned display method or payment code recognition method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0170] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0171] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0172] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0173] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A display method, applied to a first device, characterized in that: receiving a first input, where the first input is used to trigger the first device to obtain a first payment code; In response to the first input, obtaining a first payment code and hiding the first payment code; If the preset conditions are met, displaying the first payment code; The preset condition is any one of the following: detecting light of preset intensity sent by the payment device, receiving a code scanning request message sent by the payment device through near field communication technology, detecting that the screen folding posture of the first device is a preset posture, and receiving a preset input input by the user; After obtaining the first payment code and hiding the first payment code, the method further includes: When it is detected that the power of the first device is less than or equal to a preset power threshold, acquiring location information; sending the location information and the first payment code to a server; Among them, the server determines that after the user passes the security verification of the payment device, it sends the location information and the first payment code to the payment device, the location information is used for the security verification of the payment device, and the first payment code is used by the payment device to identify the payment.
2. The method according to claim 1, characterized in that The first device displays a suspended ball; The displaying of the first payment code comprises: A display interface of the floating ball is displayed, wherein the display interface includes the first payment code.
3. The method according to claim 2, characterized in that Before displaying the display interface of the floating ball, the method further includes: Displaying a first prompt message, wherein the first prompt message prompts receipt of a first payment request message sent by the second device; receiving a second input, wherein the second input is an input of a user selecting to delay payment; In response to the second input, displaying a second prompt message in the floating ball, wherein the second prompt message indicates a payment deadline; Alternatively, receiving a third input, wherein the third input is an input for the user to select direct payment; In response to the third input, the first payment code is sent to the second device.
4. The method according to claim 2, characterized in that: After displaying the first payment code, the method further includes: If payment based on the first payment code fails, sending a second payment request message to a third device; receiving second information sent by the third device; In the case where the second information includes a payment status, the payment status is displayed in the floating ball, and the payment status is: delayed payment or refused payment; or, In the case where the second information includes a second payment code, the second payment code is acquired and displayed.
5. A payment code recognition method, applied to a payment device, characterized in that: After securely verifying the user identity of the first device, sending a first payment request to the server, where the first payment request is a payment request sent to the first device; Receiving a first payment code and first location information of a first device sent by a server, where the first payment code and the first location information are sent by the first device to the server when the power level of the first device is less than or equal to a preset power threshold; When the first location information matches the second location information of the payment device, the first payment code is identified.
6. A display device, characterized in that: The display device comprises: a receiving module, an acquiring module, a display module and a sending module; The receiving module is used to receive a first input, where the first input is used to trigger the first device to obtain a first payment code; The acquisition module is configured to acquire a first payment code in response to the first input received by the receiving module; The display module is used to hide the first payment code; The display module is further configured to display the first payment code when a preset condition is met; The preset condition is any one of the following: detecting light of preset intensity sent by the payment device, receiving a code scanning request message sent by the payment device through near field communication technology, detecting that the screen folding posture of the first device is a preset posture, and receiving a preset input input by the user; The acquisition module is further configured to acquire the first payment code and hide the first payment code, and acquire the location information when it is detected that the power of the first device is less than or equal to a preset power threshold; The sending module is used to send the location information and the first payment code to a server; Among them, the server determines that after the user passes the security verification of the payment device, it sends the location information and the first payment code to the payment device, the location information is used for the security verification of the payment device, and the first payment code is used by the payment device to identify the payment.
7. The display device according to claim 6, characterized in that: The first device displays a suspended ball; The display module is specifically used to display a display interface of the floating ball, and the display interface includes the first payment code.
8. The display device according to claim 7, characterized in that: The display device further includes: a sending module; The display module is further configured to display a first prompt message before displaying the display interface of the floating ball, wherein the first prompt message prompts receipt of a first payment request message sent by the second device; The receiving module is further used to receive a second input, where the second input is an input of a user selecting delayed payment; The display module is further configured to display second prompt information in the floating ball in response to the second input received by the receiving module, wherein the second prompt information indicates a deadline for payment on behalf of another. The receiving module further receives a third input, where the third input is an input for the user to select direct payment; The sending module is used to send the first payment code to the second device in response to the third input received by the receiving module.
9. The display device according to claim 7, characterized in that: The display device also includes a sending module; The sending module is configured to send a second payment request message to a third device after the display module displays the first payment code in the case where payment based on the first payment code fails; The receiving module is further configured to receive second information sent by the third device; The display module is further configured to display the payment status in the floating ball when the second information includes the payment status, wherein the payment status is: delayed payment or rejected payment; The acquisition module is further configured to acquire the second payment code when the second information includes the second payment code; The display module is also used to display the second payment code.
10. A payment code recognition device, characterized in that: The payment code recognition device comprises: a sending module, a receiving module and a recognition module; The sending module is used to send a first payment request to the server after the user identity of the first device is securely verified, where the first payment request is a payment request sent to the first device; The receiving module is used to receive a first payment code and first location information of a first device sent by a server, where the first payment code and first location information sent by the server are sent by the first device to the server when the power level is less than or equal to a preset power threshold; The identification module is used to identify the first payment code when the first location information matches the second location information of the payment device.
11. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the display method as described in any one of claims 1 to 4 or the payment code recognition method as described in claim 5.
12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the display method according to any one of claims 1 to 4 or the payment code recognition method according to claim 5 are implemented.
