Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The payment method, the payment device, the electronic device, and the payment medium provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 1, an execution subject of the method may be a payment apparatus, where the payment apparatus includes at least a camera for code scanning and a display screen capable of being used for touch operation, and a payment-type application APP capable of being used for code scanning payment is pre-installed in the payment apparatus. The method specifically comprises the following steps:
and step S01, identifying each identification code in the scanning range, and displaying the payment mode to be selected.
The payment device firstly identifies the currently installed application, applies payment authorization to each payment application in advance, and determines the payment authorization state of each payment application.
When the user is ready to pay by scanning the code, the camera of the payment device is turned on to scan the identification code provided by the merchant. And identifying all identification codes in the scanning area according to the application realizing the payment authorization, and acquiring payment modes respectively corresponding to the applications realizing the payment authorization. The identification code may be various, and may include a two-dimensional code, a bar code, and the like, and for the sake of simplicity, the two-dimensional code is exemplified in the following embodiments.
The payment device takes all the acquired payment modes as the payment modes to be selected, and displays the payment modes on the display screen, wherein the specifically displayed content can comprise the payment modes, the payment amount and the like. Specific examples are as follows:
as shown in fig. 2, if two-dimensional codes a1 and a2 exist in the scanning area, which correspond to applications B1 and B2, respectively, and in a case that the applications B1 and B2 are installed in the payment apparatus and payment authorization is completed, the payment apparatus identifies a payment method C1 corresponding to the application B1 and a payment method C2 corresponding to the application B2 through scanning, so that, as shown in fig. 3, the payment methods C1 and C2 are displayed on a display screen.
If two-dimensional codes A1, A2 and A3 exist in the scanning area and respectively correspond to applications B1, B2 and B3, and if the applications B1, B2 and B3 are installed in the payment device, but only the applications B1 and B2 complete payment authorization, the payment device also identifies and displays payment modes C1 and C2.
If only the two-dimensional code a1 exists in the scanning area and simultaneously corresponds to the applications B1, B2 and B3, in the case that the applications B1, B2 and B3 are installed in the payment device, but only the applications B1 and B2 complete payment authorization, the payment device will also identify and display the payment modes C1 and C2.
And step S02, receiving a first input of a user.
And step S03, responding to the first input, determining a first payment mode from the candidate payment modes, and executing a preset verification process.
And the user selects the payment mode to be selected displayed on the display screen through the first input according to the self requirement. The payment device determines a first payment method according to a first input of the user.
The first input mode may be a plurality of modes, for example, the identifier corresponding to the first payment mode may be input by text or voice, and the first payment mode may be selected from the display screen by touch operation. In the embodiment of the invention, the user inputs the first input in a touch operation mode.
Further, the step S03 includes:
step S031, when the touch operation of the user is monitored, determine the first payment method according to the touch area of the touch operation.
The touch operation may be set according to actual needs, for example, the touch operation may be a long press operation, a circling operation, a hooking operation, or the like. Taking the touch control operation as a long press operation as an example, the payment device may determine the first payment method to be selected by the user through the touch control operation according to the monitored position relationship between the touch control area of the long press operation and the display area of each payment method to be paid.
And the payment device determines a first payment mode from the candidate payment modes according to the monitored touch operation.
Step S033, performing a preset verification process.
After the first payment method is determined, a preset verification process is performed for payment verification.
Further, there are many specific implementations of the verification process, for example, performing voice verification, face recognition verification, and the like, and the embodiment of the present invention only gives an example of one of them: and executing a preset fingerprint verification process on the current touch area.
It should be understood that the payment device simultaneously performs fingerprint verification on the user while the user selects the first payment method through a touch operation.
And step S04, if the verification is successful, executing the payment operation by adopting the first payment method.
And if the verification result is successful, executing corresponding payment operation according to the determined first payment mode.
And if the verification result is verification failure, determining that the payment fails.
In practice, when the verification fails, the payment apparatus may further select to perform the preset verification process again or replace another verification process to perform payment verification according to a preset setting, which is not limited in detail herein.
According to the technical scheme provided by the embodiment of the invention, the embodiment of the invention displays the payment mode to be selected by identifying each identification code in the scanning range; receiving a first input of a user; responding to the first input, determining a first payment mode from the payment modes to be selected, and executing a preset verification process; and if the verification is successful, executing the payment operation by adopting the first payment mode. By the embodiment of the invention, the payment method can flexibly select the required payment mode when code scanning payment is carried out, and the payment efficiency of a user is improved.
Based on the above embodiment, further, as shown in fig. 4, before the step S033, the method further includes:
step S032, acquiring a total payment amount, and determining the payment amount of the first payment mode based on the total payment amount; and the payment amount corresponding to the payment operation is the payment amount.
There are many methods for acquiring the total payment amount paid by scanning the code, and a merchant can record the related information of the total payment amount into the scanned two-dimensional code, so that the payment device can simultaneously analyze the total payment amount paid by scanning the code when scanning the two-dimensional code.
In practice, the payment sum may also be obtained by voice input. After the payment device determines the first payment mode, the voice acquisition equipment is started, and the user or the merchant inputs the payment sum into the payment device through voice.
Further, the step S032 includes: and taking the total payment amount as the payment amount of the first payment mode. As shown in fig. 3, the total amount of payment and the payment amount of the first payment method are displayed on the display screen to facilitate the user to determine whether they are accurate.
According to the technical scheme provided by the embodiment of the invention, after the first payment mode is determined, the payment sum of the first payment mode is determined according to the acquired payment sum and the payment amount of the first payment mode based on the payment sum. By the embodiment of the invention, the required payment mode and the payment amount can be flexibly input when code scanning payment is carried out, and the payment efficiency of a user is improved.
Based on the above embodiment, as shown in fig. 5, the step S032 further includes:
step S0321, obtain the payment sum.
Step S0322, after the first payment method is determined, if it is determined that the touch area generates a sliding operation, adjusting the payment amount of the first payment method according to the sliding operation.
After the payment device determines a first payment mode according to the touch operation and acquires a total payment amount, if it is monitored that a sliding operation, such as up-down sliding or left-right sliding, occurs in a touch area of the touch operation, the payment amount of the first payment mode is adjusted according to the sliding operation. And correcting the proportion of the payment amount of the first payment mode in the total payment amount according to the sliding direction and the sliding distance by a preset calculation method.
Step S0323, determining a second payment mode from other payment modes to be selected, and taking the residual amount of the total payment amount as the payment amount of the second payment mode.
It should be understood that in the case where the first payment method cannot pay the total amount of the payment in full, that is, the payment amount of the first payment method is less than the total amount of the payment, the payment apparatus needs to determine a second payment method to complete the payment of the remaining amount.
If the payment device only identifies two payment modes to be selected in the process of identifying the two-dimension code, the other payment mode to be selected is used as the second payment mode. If the two-dimensional code is identified by the payment device in the process of identifying the two-dimensional code, the two payment methods are more than two, namely, after the first payment method is determined, one payment method needs to be selected from other payment methods to be selected as a second payment method.
The method for determining the second payment method has many methods, and the embodiment of the invention only gives an example, and determines the second payment method from other payment methods to be selected according to a preset selection sequence.
The preset selection sequence can be specifically preset by the user at the payment device, and can also be obtained by the payment device by pre-sequencing the payment modes according to the use habits of the user.
As shown in fig. 6 and 7, through the sliding operation of the touch area, the amount histogram displayed by the payment method C1 changes along with the up-and-down sliding of the touch area, the allocation ratio of the total payment amount in the first payment method and the second payment method is adjusted, the payment amount of the payment method C1 is reduced from 5288 in fig. 6 to 3288 in fig. 7, and the payment amount of the payment method C2 is increased from 0 to 2000, so that the payment amount of the first payment method and the payment amount of the second payment method are determined.
And then, after the subsequent verification process, if the verification is successful, the corresponding payment operation is executed by the first payment mode and the second payment mode according to the respective corresponding payment amount, so that the code scanning payment is realized.
In implementation, the selection sequence may be applied to the process of identifying the two-dimensional codes by the payment device, and the identification operation is performed on each two-dimensional code within the scanning range according to a preset applied payment authorization state and a preset selection sequence, so as to obtain at most two payment modes to be selected. Thus, after the first payment method is determined, the remaining payment methods to be selected are determined as the second payment methods.
According to the technical scheme provided by the embodiment of the invention, the payment amount of the first payment mode is adjusted through the monitored sliding operation of the touch area, and the residual amount is used as the payment amount of the second payment mode. By the embodiment of the invention, the required payment mode and the payment amount can be flexibly selected when code scanning payment is carried out, so that a user does not need to open a plurality of applications for payment operation, and the payment efficiency of the user is improved.
Based on the above embodiment, further, as shown in fig. 8, the step S04 includes:
and S041, if the verification is successful, after the touch operation is monitored to be finished, executing payment operation by adopting the first payment mode and the second payment mode.
And S042, after the verification is successful, if the preset canceling operation is monitored, canceling the payment operation.
It should be understood that when the payment device monitors that the touch operation of the user starts, in the current touch operation, the payment device selects the first payment method according to the touch operation, adjusts the payment amounts of the first payment method and the second payment method through subsequent sliding operation, and executes a fingerprint verification process on the touch area where the touch operation is located.
If the verification is not successful, it is required to first determine whether the current touch operation is finished, for example, determine whether the finger of the user has left the display screen, and if it is monitored that the current touch operation is finished, that is, after the finger of the user leaves the display screen, determine that the current code scanning payment is failed.
If the verification is not successful, before the touch operation is finished, the payment device can select to execute the preset verification process again or replace another verification process to perform payment verification according to the preset setting. And judging that the code scanning payment fails if the verification result is still verification failure until the touch operation is monitored to be finished.
If the verification is successful, whether the touch operation is finished or not needs to be determined, and if the touch operation is monitored to be finished, the payment operation can be executed based on the currently determined payment mode and the corresponding payment amount.
If the user is not satisfied with the current payment amount or payment method or finds that an error exists after the verification is successful, the preset canceling operation can be executed before the touch operation is not finished. The canceling operation may be a sliding operation in a preset direction or an arbitrary direction, and is not particularly limited herein.
And when the payment device is verified successfully, if the preset cancellation operation is monitored to occur in the touch area of the touch operation, the payment operation is cancelled, and the failure of the code scanning payment is judged.
According to the technical scheme provided by the embodiment of the invention, after the verification is successful, if the preset cancelling operation is monitored, the current payment operation is cancelled. By the embodiment of the invention, the required payment mode and the payment amount can be flexibly selected when code scanning payment is carried out, the payment is cancelled at any time, and the payment efficiency and the safety of a user are improved.
It should be noted that, in the payment method provided in the embodiment of the present application, the execution subject may be a payment apparatus, or a control module in the payment apparatus for executing the payment method. In the embodiment of the present application, a payment method executed by a payment apparatus is taken as an example, and the payment apparatus provided in the embodiment of the present application is described.
Corresponding to the payment method provided in the foregoing embodiment, based on the same technical concept, an embodiment of the present invention further provides a payment apparatus, and fig. 9 is a schematic structural diagram of a payment apparatus provided in an embodiment of the present invention, the payment apparatus is configured to execute the payment method described in fig. 1 to 8, and as shown in fig. 9, the payment apparatus includes: a payment identification module 901, an input receiving module 902, a payment determination module 903 and a payment execution module 904.
The payment identification module 901 is used for identifying each identification code in the scanning range and displaying the payment mode to be selected; the input receiving module 902 is used for receiving a first input of a user; the payment determining module 903 is configured to determine a first payment method from the candidate payment methods in response to the first input, and execute a preset verification process; the payment executing module 904 is configured to execute the payment operation in the first payment manner if the verification is successful.
Further, the payment determining module 903 is configured to determine the first payment method according to a touch area of a touch operation when the touch operation of the user is monitored.
Further, the payment determination module 903 is configured to perform a preset fingerprint verification process on the current touch area.
According to the technical scheme provided by the embodiment of the invention, the embodiment of the invention displays the payment mode to be selected by identifying each identification code in the scanning range; receiving a first input of a user; responding to the first input, determining a first payment mode from the payment modes to be selected, and executing a preset verification process; and if the verification is successful, executing the payment operation by adopting the first payment mode. By the embodiment of the invention, the payment method can flexibly select the required payment mode when code scanning payment is carried out, and the payment efficiency of a user is improved.
Further, the apparatus further comprises:
the amount determining module is used for acquiring the total payment amount and determining the payment amount of the first payment mode based on the total payment amount; and the payment amount corresponding to the payment operation is the payment amount.
Further, the amount determination module is configured to use the total payment amount as the payment amount of the first payment method.
According to the technical scheme provided by the embodiment of the invention, after the first payment mode is determined, the payment sum of the first payment mode is determined according to the acquired payment sum and the payment amount of the first payment mode based on the payment sum. By the embodiment of the invention, the required payment mode and the payment amount can be flexibly selected when code scanning payment is carried out, and the payment efficiency of a user is improved.
Further, the amount determination module comprises: a first determination unit and a second determination unit.
The first determining unit is used for adjusting the payment amount of the first payment mode according to the sliding operation if the touch area is judged to generate the sliding operation after the first payment mode is determined; the second determining unit is used for determining a second payment mode from other payment modes to be selected, and taking the residual amount of the total payment amount as the payment amount of the second payment mode.
According to the technical scheme provided by the embodiment of the invention, the payment amount of the first payment mode is adjusted through the monitored sliding operation of the touch area, and the residual amount is used as the payment amount of the second payment mode. By the embodiment of the invention, the required payment mode and the payment amount can be flexibly selected when code scanning payment is carried out, so that a user does not need to open a plurality of applications for payment operation, and the payment efficiency of the user is improved.
Further, the payment execution module includes: a first execution unit and a second execution unit.
The first execution unit is used for executing payment operation by adopting the first payment mode and the second payment mode after the touch operation is monitored to be finished if the verification is successful; and the second execution unit is used for canceling the payment operation if the preset canceling operation is monitored after the verification is successful.
According to the technical scheme provided by the embodiment of the invention, after the verification is successful, if the preset cancelling operation is monitored, the current payment operation is cancelled. By the embodiment of the invention, the required payment mode and the payment amount can be flexibly selected when code scanning payment is carried out, the payment is cancelled at any time, and the payment efficiency and the safety of a user are improved.
The payment device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The payment device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The payment device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 8, and is not described here again to avoid repetition.
Optionally, as shown in fig. 10, an electronic device 1000 is further provided in this embodiment of the present application, and includes a processor 1001, a memory 1002, and a program or an instruction stored in the memory 1002 and executable on the processor 1001, where the program or the instruction is executed by the processor 1001 to implement each process of the payment method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The input unit 104, which may be a camera in the embodiment of the present application, is configured to identify each identification code in the scanning range.
The user input unit 107, which may be a touch panel in the embodiment of the present invention, is configured to receive a first input of a user.
The processor 110 is configured to determine a first payment method from the candidate payment methods in response to the first input, and execute a preset verification process; and if the verification is successful, executing the payment operation by adopting the first payment mode.
The display unit 106, which is a display panel in the embodiment of the present invention, is configured to display the payment method to be selected and the first payment method.
Optionally, the user input unit 107 is further configured to monitor a touch operation of a user.
The processor 110 is further configured to determine the first payment method according to a touch area of the touch operation when the touch operation of the user is monitored.
Optionally, the processor 110 is further configured to perform a preset fingerprint verification process on the current touch area.
By the embodiment of the invention, the payment method can flexibly select the required payment mode when code scanning payment is carried out, and the payment efficiency of a user is improved.
Optionally, the input unit 104, which may be a microphone according to an embodiment of the present invention, is used for acquiring the payment sum.
A processor 110, further configured to determine a payment amount of the first payment method based on the total payment amount; wherein the payment amount of the payment operation is the total payment amount.
The display unit 106, which is a display panel in the embodiment of the present invention, is further configured to display the total payment amount and the payment amount of the first payment method.
Optionally, the processor 110 is further configured to use the total payment amount as a payment amount of the first payment method.
By the embodiment of the invention, the required payment mode and the payment amount can be flexibly selected when code scanning payment is carried out, and the payment efficiency of a user is improved.
Optionally, the user input unit 107, which is a touch panel in the embodiment of the present invention, is further configured to monitor whether the touch area generates a sliding operation.
The processor 110 is further configured to adjust the payment amount of the first payment method according to the sliding operation; and determining a second payment mode from other payment modes to be selected, and taking the residual amount of the total payment amount as the payment amount of the second payment mode.
The display unit 106, which is a display panel in the embodiment of the present invention, is further configured to display the second payment method and the payment amount of the second payment method.
By the embodiment of the invention, the required payment mode and the payment amount can be flexibly selected when code scanning payment is carried out, so that a user does not need to open a plurality of applications for payment operation, and the payment efficiency of the user is improved.
Optionally, the user input unit 107, which is a touch panel in the embodiment of the present invention, is further configured to monitor whether the touch operation is finished; and a preset cancel operation.
The processor 110 is further configured to execute a payment operation by using the first payment method and the second payment method after the touch operation is monitored to be ended if the verification is successful; and if the preset canceling operation is monitored after the verification is successful, canceling the payment operation.
By the embodiment of the invention, the required payment mode and the payment amount can be flexibly selected when code scanning payment is carried out, the payment is cancelled at any time, and the payment efficiency and the safety of a user are improved.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 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, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by the processor, the process of the payment method embodiment is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above payment method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.