WO2022143471A1 - Payment method and communication apparatus - Google Patents
Payment method and communication apparatus Download PDFInfo
- Publication number
- WO2022143471A1 WO2022143471A1 PCT/CN2021/141288 CN2021141288W WO2022143471A1 WO 2022143471 A1 WO2022143471 A1 WO 2022143471A1 CN 2021141288 W CN2021141288 W CN 2021141288W WO 2022143471 A1 WO2022143471 A1 WO 2022143471A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- payment
- character sequence
- character
- ussd
- sequence
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 183
- 238000004891 communication Methods 0.000 title claims abstract description 126
- 238000012790 confirmation Methods 0.000 claims description 50
- 230000004044 response Effects 0.000 claims description 30
- 238000012795 verification Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 14
- 230000009286 beneficial effect Effects 0.000 description 40
- 230000006870 function Effects 0.000 description 40
- 238000010586 diagram Methods 0.000 description 22
- 238000012545 processing Methods 0.000 description 22
- 238000012546 transfer Methods 0.000 description 5
- 238000012937 correction Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000012015 optical character recognition Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 210000001072 colon Anatomy 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0018—Constructional details, e.g. of drawer, printing means, input means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0036—Checkout procedures
- G07G1/0045—Checkout procedures with a code reader for reading of an identifying code of the article to be registered, e.g. barcode reader or radio-frequency identity [RFID] reader
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/12—Cash registers electronically operated
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
Definitions
- the present application relates to the field of communication technologies, and in particular, to a payment method and a communication device.
- FIG. 1 is a schematic flowchart of an existing mobile payment. As shown in Figure 1, where:
- the scanning device scans the payment barcode or the payment QR code displayed by the payment application client to obtain payment code information.
- the user can click the payment function button on the payment application client.
- the payment application client can obtain payment code information from the payment application background, and generate a payment barcode and a payment two-dimensional code based on the payment code information.
- the payment application client generates the payment barcode and the payment QR code
- the payment barcode and the payment QR code are displayed.
- the user shows the payment barcode and payment QR code displayed on the payment application client to the cashier. After the cashier enters the payment amount on the cashier platform, he can use the scanning device to scan the payment barcode and payment QR code displayed on the payment application client.
- the scanning device After the scanning device recognizes the payment code information, it sends the recognized payment code information to the cashier platform.
- the cash register platform After receiving the payment code information, the cash register platform sends a payment request to the payment application background.
- the payment request carries the payment code information, the payment amount, and the payment party information.
- the payment application background After receiving the payment request, the payment application background performs payment transfer based on the payment code information, the payment amount, and the payment party information in the payment request.
- the payment application background completes the payment transfer, the payment result is notified to the cashier platform.
- the payment application client is notified of the payment result.
- the present application provides a payment method and a communication device, which are beneficial to improve the convenience of payment of functional equipment.
- the present application provides a payment method, the method comprising: a user's terminal device receiving a payment character sequence from an unstructured supplementary service data USSD gateway; The payment account is used for payment; wherein, the payment character sequence includes a first character sequence, and the first character sequence includes a plurality of visible characters used to indicate the payment account. It can be seen that, based on the method described in the first aspect, the user can perform mobile payment by displaying the payment character sequence displayed by the terminal device to the cashier device for scanning, which improves the payment convenience of the terminal device.
- the terminal device may also present a USSD menu item, and in response to the selection operation of the USSD menu item, send to the USSD gateway a request for providing the payment character sequence A first request, where the first request includes the first identifier of the user.
- the terminal device can actively request the payment character sequence from the network side according to the user's needs, and the terminal device can acquire the payment character sequence more flexibly.
- the user triggers the terminal device to request the payment character sequence from the network side by selecting the USSD menu item in the USSD menu, which can conveniently trigger the terminal device to request the payment character sequence from the network side.
- the specific implementation of the terminal device presenting the USSD menu items is as follows: the terminal device receives the first USSD menu data from the USSD gateway; the terminal device displays the USSD menu based on the first USSD menu data, and the USSD menu includes the USSD menu item.
- the terminal device obtains the USSD menu data from the USSD gateway, which is beneficial for the terminal device to obtain the latest USSD menu data in time.
- the terminal device before receiving the USSD menu data from the USSD gateway, may also send a third request to the USSD gateway in response to a key input operation, where the third request is used to request to provide the first USSD menu data. Based on this possible implementation manner, the terminal device can actively request the first USSD menu data from the USSD gateway according to the needs of the user, and the terminal device can acquire the first USSD menu data more flexibly.
- the payment character sequence further includes a second character sequence, where the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence. Based on this possible implementation, it is beneficial for the cash register device to determine whether the first character sequence is accurately recognized.
- the payment character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character.
- the payment character sequence further includes a carriage return line feed character.
- the carriage return and line feed characters are invisible characters. That is, not all characters included in the payout character sequence are visible characters.
- the payout character sequence further includes a second delimiting character sequence
- the second delimiting character sequence includes at least one visible character.
- the payout character sequence before the second delimiting character sequence and after the first character sequence, the payout character sequence further includes a carriage return line feed character.
- a carriage return and line feed character before the second delimiting character sequence and after the first character sequence, the second delimiting character sequence and the first character sequence can be displayed on different lines, which is beneficial to improve the recognition of the first character sequence by the cashier device. speed and accuracy.
- the payment character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; after the first character sequence, the payment character sequence further includes a first character sequence A sequence of two delimited characters, the second sequence of delimited characters including at least one visible character.
- the payment character sequence further includes a carriage return line feed character.
- the payout character sequence further includes a carriage return line feed character.
- the second sequence of delimiting characters is the same as the first sequence of delimiting characters.
- the visible characters in the payment character sequence are visible ASCII characters.
- the visible ASCII characters are universal characters, and the compatibility of the scheme can be increased by making the visible characters in the payment character sequence visible ASCII characters.
- the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- the characters in the payment character sequence come from the candidate character set preset by the payment platform.
- the candidate character set is full of visible ASCII characters, and any two characters are dissimilar, the characters selected from this candidate character set are called high-recognition ASCII characters, and this candidate character set is called a high-recognition candidate character set. This is beneficial to improve the accuracy of the cash register device in recognizing the visible characters in the payment character sequence.
- the high-recognition candidate character set may also include characters that do not have similar characters selected from among the 94 visible ASCII characters.
- a high-recognition ASCII character set includes one or more of the following characters: A, D, E, G, H, L, N, Q, R, T, 3, 4, 5, 6, or 7.
- the high-recognition candidate character set includes characters with similar characters selected from 94 visible ASCII characters, but any two characters in the high-recognition candidate character set are dissimilar to each other.
- the cash register device can implement an error correction function. For example, it is assumed that the 16 high-recognition characters included in the high-recognition candidate character set are respectively: "0127ACFHJKLPSTUX”. If the cash register device recognizes an uppercase “O” or a lowercase “o”, it is considered that the recognized character is the number "0". If the cash register device recognizes an uppercase “I”, a lowercase “i”, a lowercase “l”, a vertical line "
- the high-recognition ASCII character set refers to characters whose correct recognition rate of characters is greater than or equal to a preset threshold.
- the terminal device may further perform the following steps: the terminal device receives payment confirmation information sent by the USSD gateway, where the payment confirmation information includes a message for prompting the user to input payment The prompt information of the payment password of the account; the terminal device displays the payment confirmation information; the terminal device receives the payment password of the payment account input by the user; the terminal device sends the payment password of the payment account to the USSD gateway.
- the user needs to input the payment password of the payment account on the terminal device to make payment, which is beneficial to improve the security of payment.
- the payment confirmation information also includes the user's order information.
- the payment confirmation information also includes the user's order information.
- the terminal device can also receive the user's payment result information sent by the USSD gateway, and display the payment result information. Based on this possible implementation, the user can know the payment result in time.
- the present application provides a payment method, which includes: an unstructured supplementary service data USSD gateway receives a payment character sequence sent by a payment platform; the USSD gateway sends the payment character sequence to a user's terminal device; wherein the The payment character sequence includes a first character sequence including a plurality of visible characters for indicating the user's payment account, and the payment character sequence is used for scanning by the cashier device after being displayed by the terminal device to make payment through the payment account .
- the USSD gateway may also receive a first request from the terminal device, where the first request includes the first identifier of the user; the USSD gateway responds to the first request , sending a second request to the payment platform, where the second request is used to request to provide a payment character sequence, the second request carries a second identifier of the user, and the second identifier is determined based on the first identifier.
- the USSD gateway can also send first USSD menu data to the terminal device; wherein, the first USSD menu data is used for the terminal device to display a USSD menu, the USSD menu includes USSD menu items, and the USSD menu items use to trigger the terminal device to send the first request to the USSD gateway.
- the USSD gateway may further receive a third request sent by the terminal device, where the third request is used to request to provide the first USSD menu data.
- the USSD gateway may also send a fourth request to the payment platform, where the fourth request is used to request to provide the second USSD menu data; and may also receive payment
- the second USSD menu data sent by the platform; the specific implementation of the USSD gateway sending the first USSD menu data to the terminal device is as follows: the USSD gateway sends the first USSD menu data to the terminal device based on the second USSD menu data.
- the USSD menu data for displaying the USSD menu is generated by the payment platform, so that the payment platform can update the USSD menu data.
- the payment character sequence further includes a second character sequence, where the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence.
- the payout character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character.
- the payment character sequence further includes a carriage return line feed character.
- the payout character sequence further includes a second delimiting character sequence, the second delimiting character sequence including at least one visible character.
- the payout character sequence before the second delimiting character sequence and after the first character sequence, the payout character sequence further includes a carriage return line feed character.
- the payment character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; after the first character sequence, the payment character sequence further includes a first character sequence A sequence of two delimited characters, the second sequence of delimited characters including at least one visible character.
- the payment character sequence further includes a carriage return line feed character.
- the payout character sequence further includes a carriage return line feed character.
- the second sequence of delimiting characters is the same as the first sequence of delimiting characters.
- the visible characters in the payment character sequence are visible ASCII characters.
- the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- ASCII characters For the description of the high-recognition ASCII characters, reference may be made to the description in the first aspect, and details are not repeated here.
- the USSD gateway receives payment confirmation information sent by the payment platform, where the payment confirmation information includes prompting the user to input a payment account
- the USSD gateway sends the payment confirmation information to the terminal device;
- the USSD gateway receives the payment password of the payment account sent by the terminal device;
- the USSD gateway sends the payment password of the payment account to the payment platform.
- the payment confirmation information also includes the user's order information.
- the USSD gateway after the USSD gateway sends the payment character sequence to the user's terminal device, it can also receive the user's payment result information sent by the payment platform, and send the payment result information to the terminal device.
- the present application provides a payment method, the method comprising: a payment platform sending a payment character sequence to an unstructured supplementary service data USSD gateway; wherein the payment character sequence includes a first character sequence, the first character sequence A plurality of visible characters are included for indicating the user's payment account, and the sequence of payment characters is used for scanning by the cashier device after being displayed on the user's terminal device to make payment through the payment account.
- the payment platform may further receive a second request sent by the USSD gateway, where the second request includes the second identification of the user; the payment platform may also generate a payment character sequence for the user in response to the second request, and A corresponding relationship between the identification of the payment account and the first character sequence is established, and the identification of the payment account is obtained based on the second identification of the user.
- the payment platform may also receive a fourth request sent by the USSD gateway, where the fourth request is used to request to provide the second USSD menu data;
- the gateway sends the second USSD menu data; wherein, the second USSD menu data is used for the USSD gateway to send the first USSD menu data to the terminal device, and the first USSD menu data is used for the terminal device to display the USSD menu, and the USSD menu includes the USSD menu item, the USSD menu item is used to trigger the terminal device to send a first request to the USSD gateway, where the first request is used to trigger the USSD gateway to send a second request to the payment platform.
- the payment character sequence further includes a second character sequence, where the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence.
- the payout character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character.
- the payment character sequence further includes a carriage return line feed character.
- the payout character sequence further includes a second delimiting character sequence, the second delimiting character sequence including at least one visible character.
- the payout character sequence before the second delimiting character sequence and after the first character sequence, the payout character sequence further includes a carriage return line feed character.
- the payment character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; after the first character sequence, the payment character sequence further includes a first character sequence A sequence of two delimited characters, the second sequence of delimited characters including at least one visible character.
- the payment character sequence further includes a carriage return line feed character.
- the payout character sequence further includes a carriage return line feed character.
- the second sequence of delimiting characters is the same as the first sequence of delimiting characters.
- the visible characters in the payment character sequence are visible ASCII characters.
- the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- ASCII characters For the description of the high-recognition ASCII characters, reference may be made to the description in the first aspect, and details are not repeated here.
- the first character sequence includes characters determined based on the user's mobile phone number and/or the first time, where the first time is the generation time of the first character sequence. It is beneficial to avoid generating the same first character sequence for different users, thereby improving payment security.
- the first sequence of characters includes random characters. It is beneficial to avoid the leakage of the first character sequence and improve the security of payment.
- the binary number sequence corresponding to the second character sequence consists of any binary number corresponding to each character in the first character sequence. Based on the second character sequence generated in this manner, the first character sequence can be accurately checked.
- the payment platform after the payment platform sends the payment character sequence to the unstructured supplementary service data USSD gateway, the following steps may also be performed: the payment platform receives a payment request sent by the cash register device, and the payment request carries the order information and the cash register device.
- the third character sequence obtained by scanning the payment character sequence; the payment platform determines the identifier of the user's payment account based on the third character sequence; the payment platform performs payment based on the order information and the identifier of the user's payment account.
- the payment platform sends payment confirmation information to the USSD gateway, where the payment confirmation information includes prompting the user to input The prompt information of the payment password of the payment account; the payment platform receives the payment password of the payment account sent by the USSD gateway; the payment platform successfully verifies the payment password of the payment account.
- the payment confirmation information carries order information.
- the payment platform can also send the user's payment result information to the USSD gateway and the cash register device.
- the present application provides a payment method, the method comprising: a cash register device scans a payment character sequence displayed by a user's terminal device, and identifies a first character sequence in the payment character sequence to obtain a third character sequence; The third character sequence requests the payment platform to make payment through the user's payment account; wherein, the first character sequence includes a plurality of visible characters generated by the payment platform and used to indicate the payment account.
- the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence;
- the cash register device can also identify the second character sequence in the payment character sequence to obtain a fourth character sequence; and can also verify the third character sequence based on the fourth character sequence, And the verification result is passed.
- the cash register device may prompt the position of the incorrectly recognized character in the third character sequence. This allows the cashier to manually make quick corrections to misrecognized characters.
- the payout character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character.
- the payment character sequence further includes a carriage return line feed character.
- the payout character sequence further includes a second delimiting character sequence, the second delimiting character sequence including at least one visible character.
- the payout character sequence before the second delimiting character sequence and after the first character sequence, the payout character sequence further includes a carriage return line feed character.
- the payment character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; after the first character sequence, the payment character sequence further includes a first character sequence A sequence of two delimited characters, the second sequence of delimited characters including at least one visible character.
- the payment character sequence further includes a carriage return line feed character.
- the payout character sequence further includes a carriage return line feed character.
- the second sequence of delimiting characters is the same as the first sequence of delimiting characters.
- the visible characters in the payment character sequence are visible ASCII characters.
- the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- ASCII characters For the description of the high-recognition ASCII characters, reference may be made to the description in the first aspect, and details are not repeated here.
- the specific implementation manner of identifying the first character sequence in the payment character sequence to obtain the third character sequence is as follows: identifying the first character sequence in the payment character sequence to obtain the fifth character sequence; At least one character in is replaced with a preset similar character to obtain a third character sequence. Based on this possible implementation manner, the recognized characters can be rectified, which is beneficial to improve the accuracy of character recognition.
- the cash register device requests the payment platform to pay through the user's payment account based on the third character sequence.
- the specific implementation method is: the cash register device sends a payment request to the payment platform, and the payment request carries order information and the third character. sequence.
- the cash register device may also receive payment result information of the user sent by the payment platform, and display the payment result information.
- the present application provides a communication apparatus, and the apparatus may be a terminal device, a device in a terminal device, or a device that can be matched and used with the terminal device.
- the communication device may also be a chip system.
- the communication device may perform the method described in the first aspect.
- the functions of the communication device may be implemented by hardware, or by executing corresponding software by hardware.
- the hardware or software includes one or more units corresponding to the above-mentioned functions.
- the unit may be software and/or hardware.
- the present application provides a communication device, and the device may be a USSD gateway, a device in a USSD gateway, or a device that can be matched and used with the USSD gateway.
- the communication device may also be a chip system.
- the communication device can perform the method of the second aspect.
- the functions of the communication device may be implemented by hardware, or by executing corresponding software by hardware.
- the hardware or software includes one or more units corresponding to the above-mentioned functions.
- the unit may be software and/or hardware.
- the present application provides a communication device, which can be a payment platform, a device in a payment platform, or a device that can be matched and used with the payment platform.
- the communication device may also be a chip system.
- the communication device may perform the method described in the third aspect.
- the functions of the communication device may be implemented by hardware, or by executing corresponding software by hardware.
- the hardware or software includes one or more units corresponding to the above-mentioned functions.
- the unit may be software and/or hardware.
- the present application provides a communication device, which may be a cash register device, a device in a cash register device, or a device that can be matched with a cash register device.
- the communication device may also be a chip system.
- the communication device may perform the method described in the fourth aspect.
- the functions of the communication device may be implemented by hardware, or by executing corresponding software by hardware.
- the hardware or software includes one or more units corresponding to the above-mentioned functions.
- the unit may be software and/or hardware.
- the present application provides a communication device, the communication device includes a processor, when the processor calls a computer program in a memory, the method according to any one of the first to fourth aspects be executed.
- the present application provides a communication device, the communication device includes a processor and a memory, the memory is used for storing computer-executed instructions; the processor is used for executing the computer-executed instructions stored in the memory, to The communication device is caused to execute the method according to any one of the first to fourth aspects.
- the present application provides a communication device, the communication device includes a processor, a memory and a transceiver, the transceiver is used for receiving a signal or sending a signal; the memory is used for storing a program code; The processor is configured to call the program code from the memory to execute the method according to any one of the first aspect to the fourth aspect.
- the present application provides a communication device, the communication device includes a processor and an interface circuit, the interface circuit is configured to receive code instructions and transmit them to the processor; the processor runs the The code instructions are used to execute the method according to any one of the first aspect to the fourth aspect.
- an embodiment of the present application provides a payment system, where the payment system includes the communication devices provided in the fifth to eighth aspects.
- the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store instructions, and when the instructions are executed, the instructions are as described in any one of the first to fourth aspects. The described method is implemented.
- the embodiments of the present application provide a computer program or computer program product, including codes or instructions, when the codes or instructions are run on a computer, the computer can execute any one of the first to fourth aspects.
- the described method is implemented.
- Fig. 1 is the schematic flow chart of a kind of existing mobile payment
- FIG. 2 is a schematic diagram of a system architecture provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of another system architecture provided by an embodiment of the present application.
- FIG. 4 is a schematic flowchart of a payment method provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of a display interface of a terminal device provided by an embodiment of the present application.
- FIG. 6 is a schematic flowchart of another payment method provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of a display interface of another terminal device provided by an embodiment of the present application.
- FIG. 8 is a schematic diagram of a display interface of a cash register device provided by an embodiment of the present application.
- FIG. 9 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application.
- FIG. 10 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application.
- FIG. 11 is a schematic diagram of another display interface of a terminal device provided by an embodiment of the present application.
- FIG. 12 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application.
- FIG. 13 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application.
- FIG. 14 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application.
- FIG. 15 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application.
- 16 is a schematic flowchart of another payment method provided by an embodiment of the present application.
- 17 is a schematic diagram of another display interface of a terminal device provided by an embodiment of the present application.
- 21 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application.
- FIG. 22 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
- FIG. 23 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
- At least one (item) means one or more
- plural means two or more
- at least two (item) means two or three and three
- “and/or” is used to describe the corresponding relationship between associated objects, indicating that there can be three kinds of relationships, for example, “A and/or B” can mean: only A exists, only B exists, and both A and B exist three A case where A and B can be singular or plural.
- the character “/” generally indicates that the associated objects are an “or” relationship.
- At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
- At least one (a) of a, b or c can mean: a, b, c, "a and b", “a and c", “b and c", or "a and b and c" ", where a, b, c can be single or multiple.
- OCR Optical Character Recognition
- USSD 2Unstructured supplementary service data
- GSM global system for mobile communications
- SMPP 3Short message peer to peer protocol
- SMPP Short message peer to peer protocol
- SMSP Short message peer to peer protocol
- wireless data applications short message applications
- wireless networks mobile communication
- SMPP 3Short message peer to peer protocol
- It is also one of the standard protocols for the external access interface of the short message service center system. That is, SMPP is a protocol for sending and receiving short messages, and the USSD gateway uses SMPP to communicate with terminal devices.
- ASCII American Standard Code for Information Interchange
- FIG. 2 is a schematic diagram of a system architecture provided by an embodiment of the present application.
- the system architecture includes payment platform, terminal equipment, USSD gateway and cash register equipment.
- Payment platform is the background or server of the payment application.
- the payment platform can generate the payment character sequence for the user, and send the payment character sequence to the terminal device for display through the USSD gateway.
- the payment platform can also receive a payment request sent by the cashier device after scanning the payment character sequence, and make payment through the user's payment account based on the payment request.
- Terminal device The terminal device in this embodiment of the present application is a functional device (eg, a feature phone).
- Functional devices refer to devices whose functions and applications are basically determined at the factory and are pre-installed by mobile phone manufacturers, making it difficult to expand. Functional devices can be understood as terminal devices other than smartphones.
- the terminal device in the embodiment of the present application can receive the payment character sequence sent by the payment platform through the USSD gateway, and display the payment character sequence to the cashier device to scan, so as to complete the payment through the user's payment account.
- the USSD Gateway is deployed between the terminal device and the payment platform.
- the USSD gateway interacts with the terminal device through the USSD protocol, so that the terminal device can interact with the payment platform related to payment.
- the USSD gateway can receive the specific digital instruction or specific character instruction sent by the terminal device, convert the specific digital instruction or specific character instruction into a message that can be recognized by the payment platform, and send it to the payment platform to request corresponding services from the payment platform.
- the USSD gateway After receiving the response message returned by the payment platform, converts the response message into an SMPP message that the terminal device can recognize, and sends the SMPP message to the terminal device, so that the terminal device can display the information in the SMPP message.
- the user uses the mobile phone keyboard to input some numbers or symbols that have been pre-established by the network, such as *188#, etc., and then presses the dial key of the mobile phone to send an instruction to the USSD gateway.
- the USSD gateway converts the instruction into an HTTP message that the payment platform can recognize to request the payment platform's services.
- the USSD gateway After receiving the HTTP message returned by the payment platform, converts the HTTP message into an SMPP message and sends it to the terminal device, so that the terminal device can display the information in the SMPP message.
- the cash register device is used to scan the payment character sequence displayed by the terminal device and identify the first character sequence in the payment character sequence, where the first character sequence includes a plurality of visible characters used to indicate the user's payment account.
- the cash register device may request payment through the user's payment account from the payment platform based on the recognized character sequence. That is, the cash register device has a scanning function, a character recognition function, and the function of requesting payment from the payment platform.
- the cash register device can be a device that integrates the above three functions.
- a checkout device may be a smartphone that includes a camera, a processor, and a transceiver.
- the payment character sequence displayed by the terminal device can be scanned by the camera of the smart phone, and the first character sequence in the payment character sequence can be recognized by the processor, and the transceiver can request the payment platform to pass the user's payment account based on the recognized character sequence. make a payment.
- a checkout device may consist of multiple devices.
- the cash register device may include a scanning device, a character recognition device and a cash register platform.
- a wired or wireless connection can be used between the scanning device and the cashier platform, and a wired or wireless connection between the character recognition device and the cashier platform.
- Figure 3 takes the wired connection between the scanning device and the cash register platform, and the wired connection between the character recognition device and the cash register platform as an example.
- the scanning device is used for scanning the payment character sequence displayed by the terminal device to obtain an image including the payment character sequence.
- the character recognition device is used for recognizing the first character sequence from the image including the payment character sequence, and sending the character sequence obtained by recognizing the first character sequence to the cash register platform.
- the cash register platform is used for requesting payment through the user's payment account from the payment platform based on the received character sequence.
- the scanning function and the character recognition function can be integrated in one device, and the function of requesting payment from the payment platform can be implemented separately by another device.
- the scanning function and the function of requesting payment from the payment platform can be integrated in one device, and the character recognition function can be implemented separately by another device.
- the character recognition function and the function of requesting payment from the payment platform can be integrated in one device, and the scanning function can be implemented separately by another device.
- FIG. 4 is a schematic flowchart of a payment method provided by an embodiment of the present application. As shown in FIG. 4 , the payment method includes the following steps 401 to 405 . in:
- the payment platform sends a payment character sequence to the USSD gateway.
- the payment platform after generating the payment character sequence, the payment platform sends the payment character sequence to the USSD gateway.
- the payment character sequence includes a first character sequence
- the first character sequence includes a plurality of visible characters used to indicate the user's payment account.
- the characters included in the first character sequence are random characters.
- the random character refers to a character randomly selected by the payment platform from the preset candidate character set.
- the random character is a character corresponding to the random decimal number determined based on the correspondence between the decimal number and the characters in the candidate character set after the random decimal number is generated by the payment platform.
- the candidate character set includes multiple visible characters. Generating the first character sequence in a completely random manner is beneficial to avoid leakage of the first character sequence, and improves the security of payment.
- the preset candidate character set includes 16 visible characters.
- the 16 visible characters in the candidate character set are: "0127ACFHJKLPSTUX”.
- the first character sequence includes 8 visible characters.
- the payment platform randomly selects one character from the candidate character set at a time, and conducts a total of 8 random selections, and the 8 randomly selected characters form the first character sequence.
- the first character sequence consisting of 8 randomly selected characters is: "02STAHH0".
- the first character sequence includes 8 visible characters.
- the payment platform randomly generates 8 decimal numbers between [0, 15], and the 8 decimal numbers randomly generated by the payment platform are "1, 3, 4, 5, 8, 7, 3, 9" respectively.
- the payment platform determines that the characters corresponding to these 8 decimal numbers are: "1, 7, A, C, J, H, 7, K". Therefore, the payment platform determines that the first character sequence is: "17ACJH7K". It should be understood that the correspondence between the characters and the decimal numbers shown in Table 1 is only an example, and there may be other mapping relationships between the two, which are not listed here.
- the payment platform may generate the first character sequence based on the user's mobile phone number and/or the first time. That is, the characters included in the first character sequence are characters determined based on the user's mobile phone number and/or the first time.
- the first time is the generation time of the first character sequence.
- the first time may be a date and/or time.
- the payment platform generates the first character sequence at 12:00 on November 10, 2020. Then the first time can be November 10, 2020, or November 10, or 12:00, or November 10, 2020 12:00.
- the specific implementation manner in which the payment platform generates the first character sequence based on the user's mobile phone number and/or the first time may be as follows: the payment platform determines the decimal number sequence based on the user's mobile phone number and/or the first time, and determines the decimal number sequence based on the user's mobile phone number and/or the first time, and determines the decimal number sequence based on the combination of the decimal number and the character. The corresponding relationship between the decimal numbers is mapped to the character sequence, and the character sequence obtained by the mapping is determined as the first character sequence. The first character sequence is generated based on the user's mobile phone number and/or the first character sequence generated at the first time, which is beneficial to avoid generating the same first character sequence for different users and improves payment security.
- the correspondence between characters and decimal numbers is as shown in Table 1 above.
- the user's mobile phone number is: "13812345678”.
- the generation time of the first character sequence is November 10th.
- the decimal number sequence obtained by the payment platform based on the user's mobile phone number and the generation time of the first character sequence is "1, 3, 8, 1, 2, 3, 4, 5, 6, 7, 8, 11, 10".
- the payment platform determines that the characters corresponding to these 13 decimal numbers are: "1, 7, J, 1, 2, 7, A, C, F, H, J, P, L" . Therefore, the payment platform determines that the first character sequence is: "17J127ACFHJPL".
- the first character sequence includes random characters and characters determined based on the user's mobile phone number and/or the first time. Generating the first character sequence in a partially random manner is beneficial to avoid leakage of the first character sequence, and is beneficial to avoid generating the same first character sequence for different users, thereby improving payment security.
- the correspondence between characters and decimal numbers is as shown in Table 1 above.
- the user's mobile phone number is: "13812345678”.
- the generation time of the first character sequence is November 10th.
- the decimal number sequence obtained by the payment platform based on the user's mobile phone number and the generation time of the first character sequence is "1, 3, 8, 1, 2, 3, 4, 5, 6, 7, 8, 11, 10".
- the payment platform determines that the characters corresponding to these 13 decimal numbers are: "1, 7, J, 1, 2, 7, A, C, F, H, J, P, L" .
- the payment platform then randomly selects 3 characters from the candidate character set. For example, the randomly chosen character is "TXU".
- the first character sequence generated by the payment platform may be: "17J127ACFHJPLTXU".
- the random characters may precede the non-random characters, or may follow the non-random characters.
- the random character can also be a character corresponding to the random decimal number determined based on the correspondence between the random decimal number and the characters in the candidate character set after the random decimal number is generated by the payment platform.
- For the acquisition method of random characters please refer to the foregoing description, and will not be repeated here.
- the payment platform can establish a correspondence between the first character sequence and the identifier of the user's payment account, so that the user's payment account can be indicated by the first character sequence.
- the identifier of the user's payment account may be the user's mobile phone number, or the account number of the user's payment account, or the user's ID card information, or the user's instant messaging application account, or the user's mailbox number, etc.
- the correspondence between the first character sequence established by the payment platform and the identifier of the user's payment account may be as shown in Table 2 below.
- the first character sequence 1 "0127STUX" corresponds to the identification "15232204938" of the payment account.
- the first character sequence 2 "1227STUA” corresponds to the identification "15002200938” of the payment account.
- the first character sequence 3 "2227STUC" corresponds to the identification "13032200933" of the payment account.
- the payment platform stores the correspondence between characters and decimal numbers
- the specific implementation method for the payment platform to establish the correspondence between the first character sequence and the identifier of the user's payment account may be: the payment platform A correspondence relationship between the decimal number sequence corresponding to the first character sequence and the identifier of the user's payment account is established. Since there is a corresponding relationship between the first character sequence and the decimal number sequence, there is a corresponding relationship between the decimal number sequence and the identifier of the user's payment account. Therefore, it can be considered that establishing the correspondence between the decimal number sequence corresponding to the first character sequence and the identifier of the user's payment account is equivalent to establishing the correspondence between the first character sequence and the identifier of the user's payment account.
- the decimal number sequence 1 corresponding to the first character sequence 1 "0127STUX" is "0, 1, 2, 3, 12, 13, 14, 15".
- the decimal number sequence 2 corresponding to the first character sequence 2 "1227STUA” is "1, 2, 2, 3, 12, 13, 14, 4”.
- the decimal number sequence 3 corresponding to the first character sequence 3 "2227STUC" is "2, 2, 2, 3, 12, 13, 14, 5".
- the payment platform establishes the relationship between the first character sequence 1 and the identification "15232204938" of the payment account of user 1 by establishing the correspondence between the decimal number sequence 1 and the identification "15232204938" of the payment account of user 1. Correspondence between.
- the payment platform establishes the correspondence between the first character sequence 2 and the identifier "15002200938" of the user 2's payment account through the correspondence between the decimal number sequence 2 and the identifier "15002200938" of the user 2's payment account.
- the payment platform establishes a corresponding relationship between the first character sequence 3 and the identification "13032200933" of the payment account of user 3 by establishing the corresponding relationship between the decimal number sequence 3 and the identification "13032200933" of the payment account of user 3.
- the payment platform After the payment platform receives the third character sequence obtained by scanning the payment character sequence sent by the cash register device, the payment platform determines the decimal number sequence corresponding to the third character sequence based on the correspondence between the characters and the decimal numbers.
- the payment platform can determine the user's payment account based on the correspondence between the pre-stored decimal number sequence and the identification of the payment account and the decimal number sequence corresponding to the third character sequence. For example, the payment platform receives a payment request sent by the cash register device, and the payment request carries the third character sequence "0127STUX". Based on the correspondence between characters and decimal numbers shown in Table 1, the payment platform determines that the decimal number sequence corresponding to the third character sequence "0127STUX" is "0, 1, 2, 3, 12, 13, 14, 15".
- the payment platform determines that the sequence of decimal numbers "0, 1, 2, 3, 12, 13, 14, 15" corresponds to the identification "15232204938" of the payment account.
- the payment platform makes payment through the payment account identified by "15232204938".
- the USSD gateway sends the payment character sequence to the terminal device of the user.
- the USSD gateway after receiving the payment character sequence sent by the payment platform, the USSD gateway sends the payment character sequence to the user's terminal device.
- the payment platform sends the payment character sequence to the USSD gateway through an HTTP message, that is, the payment platform carries the payment character sequence in an HTTP message and sends it to the USSD gateway.
- the USSD gateway converts the HTTP message into an SMPP message, and sends the payment character sequence to the user's terminal device through the SMPP message, that is, the USSD gateway carries the payment character sequence in the SMPP message and sends it to the terminal device.
- the terminal device displays the payment character sequence for the cashier device to scan.
- the terminal device after receiving the payment character sequence, displays the payment character sequence for the cashier device to scan.
- the payment character sequence displayed by the terminal device may be as shown in FIG. 5 .
- the terminal device may also display prompt information for prompting the user to present the payment character sequence to the merchant.
- the cash register device scans the payment character sequence displayed by the user's terminal device, and identifies the first character sequence in the payment character sequence to obtain the third character sequence.
- the cash register device scans the payment character sequence displayed by the user's terminal device to obtain an image including the payment character sequence, and the cash register device recognizes the first character sequence in the image to obtain the third character sequence. If the cash register device correctly recognizes the first character sequence, the third character sequence is the same as the first character sequence. If the first character sequence is inaccurately recognized by the cash register device, the third character sequence is different from the first character sequence.
- the specific implementation of the cash register device identifying the first character sequence in the payment character sequence to obtain the third character sequence is as follows: identifying the first character sequence in the payment character sequence to obtain the fifth character sequence; At least one character in the five-character sequence is replaced with a preset similar character to obtain a third character sequence. Based on this possible implementation manner, the recognized characters can be rectified, which is beneficial to improve the accuracy of character recognition.
- the cash register device recognizes the first character sequence and obtains the fifth character sequence: "02STLSHTA7SZ".
- the characters in the candidate character set are shown in Table 1 above. Since the capital letter "Z" does not exist in the candidate character set, and the number "2" similar to the capital letter "Z” exists in the candidate character set. Therefore, the cash register device replaces the last character "Z" in the fifth character sequence with the number "2", and the third character sequence is obtained as "02STLSHTA7S2".
- the cash register device requests the payment platform to make payment through the user's payment account based on the third character sequence.
- the cash register device After the cash register device recognizes the first character sequence in the payment character sequence and obtains the third character sequence, it requests the payment platform to make payment through the user's payment account based on the third character sequence.
- the cash register device requests the payment platform to pay through the user's payment account based on the third character sequence.
- the specific implementation method is: the cash register device sends a payment request to the payment platform, and the payment request carries the third character sequence and the order. information.
- the payment platform determines the identifier of the user's payment account based on the third character sequence; the payment platform performs payment based on the order information and the user's payment account.
- the order information may include the identification of the payee's payment account and the order amount.
- the order information may also include the payee name, order number, transaction time or transaction description, etc.
- the payment platform sends the payment character sequence to the terminal device through the USSD gateway.
- the first character sequence in the payout character sequence is "0127STUX”.
- the terminal device displays the payment character sequence.
- the payment character sequence displayed by the terminal device is shown in Figure 5.
- the cash register device scans the payment character sequence, and the third character sequence obtained by identifying the first character sequence is "0127STUX”.
- the cash register device sends a payment request to the payment platform, and the payment request carries the third character sequence "0127STUX", the identifier of the payee's payment account and the order amount of 10 yuan.
- the payment platform After receiving the payment request, the payment platform determines the identifier of the user's payment account as "15232204938" based on the corresponding relationship in Table 2 and the third character sequence. The payment platform transfers 10 yuan from the payment account identified as "15232204938" to the payee's payment account.
- the payment character sequence may only include the first character sequence, and in this case, the payment character sequence is equal to the first character sequence.
- the payout character sequence may include other character sequences in addition to the first character sequence. The following describes the case where the payment character sequence may include other character sequences in addition to the first character sequence:
- the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence.
- FIG. 6 is a schematic flowchart of another payment method provided by an embodiment of the present application.
- the payment method includes steps 601 to 607 .
- the specific implementation manners of steps 601 to 604 and step 607 are the same as the specific implementation manners of the above-mentioned steps 401 to 405, and are repeated here.
- the cash register device recognizes the second character sequence in the payment character sequence to obtain a fourth character sequence.
- the cash register device checks the third character sequence based on the fourth character sequence.
- step 607 is executed, that is, the cash register device requests the payment platform to make payment through the user's payment account based on the third character sequence.
- the cash register device can determine whether the identification of the first character sequence is accurate.
- the cash register device in the case that the verification result is unsuccessful, the cash register device prompts the position of the incorrectly recognized character in the third character sequence. This allows the cashier to manually make quick corrections to misrecognized characters.
- the cash register device may only prompt that the verification of the third character sequence fails, and does not prompt the position of the incorrectly identified character in the third character sequence. The cashier can rescan the payment character sequence through the cash register device.
- the second character sequence is obtained based on the first character sequence.
- the binary number sequence corresponding to the second character sequence is composed of any binary number corresponding to each character in the first character sequence.
- the binary number sequence corresponding to the second character sequence refers to a sequence composed of binary numbers of characters in the second character sequence.
- the binary number sequence corresponding to the second character sequence consists of the first binary number corresponding to each character in the first character sequence.
- the binary number sequence corresponding to the second character sequence consists of the second binary number corresponding to each character in the first character sequence.
- the binary number sequence corresponding to the second character sequence consists of the third binary number corresponding to each character in the first character sequence.
- the binary number sequence corresponding to the second character sequence consists of the last binary number corresponding to each character in the first character sequence.
- the payment platform and the cash register store the correspondence between characters and binary numbers, and the correspondence is shown in Table 4 below.
- the first character sequence generated by the payment platform is "1227STUA”.
- the binary numbers of each character of the first character sequence are shown in the second row of Table 5 below.
- the binary sequence composed of the last digit of each character of the first character sequence is "1001 0100", that is, the binary sequence corresponding to the second character sequence is "1001 0100". Therefore, the second character sequence is "KA”.
- the payment platform After the payment platform generates the payment character sequence, it sends the payment character sequence to the terminal device through the USSD gateway. After receiving the payment character sequence, the terminal device displays the payment character sequence.
- the payment character sequence displayed by the terminal device is shown in Figure 7.
- the second sequence of characters in the sequence of payout characters may precede the first sequence of characters, or the second sequence of characters in the sequence of payout characters may precede the first sequence of characters.
- FIG. 7 takes as an example that the second character sequence follows the first character sequence.
- the cash register device scans the payment character sequence displayed by the terminal device, identifies the first character sequence "1227STUA" and obtains the third character sequence as "L227STUA", and identifies the fourth character sequence obtained from the second character sequence as "KA".
- the cash register device verifies the third character sequence based on the fourth character sequence. As shown in the third row of Table 6 below, the binary number sequence formed by the last binary group of each character of the third character sequence is "0001 0100". The cash register device maps the binary number sequence "0001 0100" to the sixth character sequence "1A”. And the fourth character sequence is "KA”. Since the sixth character sequence and the fourth character sequence are different, the cash register device determines that the verification of the third character sequence fails. Since the last binary digit of the first character in the third character sequence is different from the first binary digit of the fourth character sequence, the cash register device determines that the first character in the third character sequence is incorrectly recognized. The cash register device may output prompt information indicating that the first character in the third character sequence is incorrectly recognized.
- the prompt information can also prompt to modify the first character in the third character sequence.
- the prompt information output by the cash register device may be as shown in FIG. 8 .
- the cashier can manually enter the misidentified characters through the keyboard.
- the cashier can also rescan the payment character sequence displayed by the terminal device through the cash register device.
- the correspondence between characters and binary numbers and/or the correspondence between characters and decimal numbers in the cash register device may be preset in the cash register device before leaving the factory.
- the cash register device may update the stored correspondence between characters and binary numbers and/or the correspondence between characters and decimal numbers through software upgrade.
- the payment platform may push a new correspondence between characters and binary numbers and/or a new correspondence between characters and decimal numbers to the cash register device.
- the cash register device After identifying the first character sequence to obtain the third character sequence, and identifying the second character sequence to obtain the fourth character sequence, the cash register device requests the payment platform to pay through the user's payment account based on the third character sequence and the fourth character sequence.
- the payment platform generates the first character sequence as "1227STUA” and the second character sequence as "KA”.
- the payment platform establishes a correspondence between "1227STUAKA” and the identifier "15232204938" of the payment account of user 1.
- the payment platform sends the payment character sequence to the terminal device for display through the USSD gateway.
- the payment character sequence displayed by the terminal device is shown in Figure 7.
- the cash register device scans the payment character sequence displayed by the terminal device, recognizes the first character sequence and obtains the third character sequence as "1227STUA", and recognizes the second character sequence and obtains the fourth character sequence as "KA”.
- the cash register device verifies the third character sequence based on the fourth character sequence.
- the cash register device After the cash register device determines that the verification of the third character sequence is passed, the cash register device sends a payment request to the payment platform, and the payment request carries the third character sequence "1227STUA" and the fourth character sequence "KA". Based on the pre-stored correspondence, the payment platform determines that "1227STUAKA” corresponds to the identifier "15232204938" of the payment account of user 1. The payment platform makes payment through the payment account identified by "15232204938".
- the payment character sequence further includes a first delimiting character sequence
- the first delimiting character sequence includes at least one visible character.
- the payment character sequence includes the first delimiting character sequence+the first character sequence+the second character sequence.
- the first delimiting character sequence is "**"
- the first character sequence is "1227STUA”
- the second character sequence is "KA”.
- the first delimiting character sequence is used by the cash register device to determine the position of the first character sequence. After the cash register device recognizes "**", it can determine that the character sequence after "**" includes the first character sequence.
- the characters in the first delimiting character sequence may be the same or different.
- FIG. 9 takes as an example that the characters in the first delimiting character sequence are the same.
- the payment character sequence further includes a carriage return line feed character.
- the carriage return and line feed characters are invisible characters. That is, not all characters included in the payout character sequence are visible characters.
- the payment character sequence includes a first delimitation character sequence + a carriage return line feed character + a first character sequence + a second character sequence.
- the first delimiting character sequence is "**********"
- the first character sequence is "1227STUA”
- the second character sequence is "KA”.
- the payment character sequence further includes a second delimiting character sequence, and the second delimiting character sequence includes at least one visible character.
- the payment character sequence includes the first character sequence + the second character sequence + the second delimiting character sequence.
- the first character sequence is "1227STUA”
- the second character sequence is "KA”
- the second delimiting character sequence is "**”.
- the second delimiting character sequence is used by the cash register device to determine the location of the first character sequence. After the cash register device recognizes "**", it can determine that the character sequence before "**” includes the first character sequence.
- the characters in the second delimiting character sequence may be the same or different.
- FIG. 11 takes as an example that the characters in the second delimiting character sequence are the same.
- the payout character sequence before the second delimiting character sequence and after the first character sequence, the payout character sequence further includes a carriage return line feed character.
- a carriage return line feed character before the second delimiting character sequence and after the first character sequence, the second delimiting character sequence and the first character sequence can be displayed on different lines, which is beneficial to improve the recognition of the first character sequence by the cashier device speed and accuracy.
- the payment character sequence includes the first character sequence + the second character sequence + the carriage return and line feed character + the second delimitation character sequence.
- the first character sequence is "1227STUA”
- the second character sequence is "KA”
- the second delimiting character sequence is "**********”.
- the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; after the first character sequence, the payment character sequence also includes a second delimiting character sequence, the second The delimiting character sequence includes at least one visible character.
- the payment character sequence includes the first delimiting character sequence+the first character sequence+the second character sequence+the second delimiting character sequence.
- the second delimiting character sequence is "**"
- the first character sequence is "1227STUA”
- the second character sequence is "KA”
- the second delimiting character sequence is "**”.
- the payment character sequence further includes a carriage return line feed character.
- the payout character sequence further includes a carriage return line feed character.
- the payment character sequence includes the first delimitation character sequence+carriage return line feed character+first character sequence+second character sequence+carriage return linefeed character+second demarcation character sequence.
- the first delimiting character sequence is "**********”
- the first character sequence is "1227STUA”
- the second character sequence is "KA”
- the second delimiting character sequence is "**** ******”.
- the second sequence of delimiting characters is the same as the first sequence of delimiting characters. For example, as shown in Figure 14.
- the second delimiting character sequence it is beneficial to improve the speed and accuracy of the cash register device recognizing the first character sequence.
- the second delimiting character sequence may also be different from the first delimiting character sequence.
- the payment character sequence includes a first delimitation character sequence+carriage return line feed character+first character sequence+second character sequence+carriage return linefeed character+second demarcation character sequence.
- the first character sequence is "1227STUA”
- the second character sequence is "KA”
- the second delimiting character sequence is "**** ******”.
- FIGS. 9 to 15 take the payment character sequence including the second character sequence as an example.
- the payment character sequence in FIGS. 9 to 15 may not include the second character sequence.
- the visible characters in the payout character sequence are visible ASCII characters.
- the visible ASCII characters are universal characters, and the compatibility of the scheme can be increased by making the visible characters in the payment character sequence visible ASCII characters.
- the visible characters in the payout character sequence are one or more of the visible ASCII characters shown in Table 7.
- character describe character describe character describe character describe character describe character describe character describe character describe character describe character describe character describe character describe character describe character describe character describe character describe ! exclamation mark : colon S capital letter S l lowercase letter l " Double quotes ; semicolon T capital letter T m lowercase letter m # Hashtag ⁇ Less than sign U capital letter U n lowercase n $ dollar sign equal sign V capital letter V o lowercase letter o % percent sign > greater than sign W capital letter W p lowercase p & ampersand ? question mark X capital letter X q lowercase q ' closed single quote @ email symbol Y capital letter Y r lowercase r ( open bracket A capital letter A Z capital letter Z s lowercase s
- the visible characters in the payment character sequence are high-recognition ASCII characters.
- the characters in the payment character sequence come from the candidate character set preset by the payment platform; when the candidate character set is full of visible ASCII characters, and any two characters are dissimilar, the candidate character set is selected from the candidate character set. Characters are called high-recognition ASCII characters, and this candidate character set is called a high-recognition candidate character set.
- the high-recognition candidate character set includes characters selected from the visible character set shown in Table 7 and having no similar characters within the range of Table 7. For example, include more than one of the following characters: A, D, E, G, H, L, N, Q, R, T, 3, 4, 5, 6, or 7.
- the high-recognition candidate character set may also include characters selected from the visible character set shown in Table 7, with similar characters within the range of Table 7, but within the range of the high-recognition candidate character set characters that do not contain similar characters. This is beneficial to improve the accuracy of the cash register device in recognizing the visible characters in the payment character sequence.
- the high-recognition candidate character set includes the number "0" and does not include the lowercase letter "o” and the uppercase letter "O".
- the high-recognition candidate character set includes the capital letter "B” and does not include the number "8”.
- the high-recognition candidate character set includes the uppercase letter "C” and does not include the lowercase letter "c”.
- the cash register device can implement an error correction function. For example, it is assumed that the 16 high-recognition characters included in the high-recognition candidate character set are respectively: "0127ACFHJKLPSTUX”. If the cash register device recognizes an uppercase “O” or a lowercase “o”, it is considered that the recognized character is the number "0". If the cash register device recognizes an uppercase "I”, a lowercase “i”, a lowercase “l”, a vertical line "
- the high-recognition ASCII character set refers to a character set whose correct recognition rate of characters is greater than or equal to a preset threshold.
- the visible characters in the payout character sequence are not lowercase letters.
- the visible characters in the payment character sequence may not be visible ASCII characters.
- the visible characters in the payment character sequence may also be Chinese characters, Korean characters, Japanese characters and other characters of a certain country.
- the user only needs to display the payment character sequence displayed by the terminal device to the cashier device for scanning, and then the mobile payment can be performed, which improves the payment convenience of the terminal device.
- FIG. 16 is a schematic flowchart of another payment method provided by an embodiment of the present application. As shown in Figure 16, the payment method includes the following steps 1601 to 1610. in:
- the terminal device presents a USSD menu item.
- the USSD menu item is used to provide the user with a payment function.
- the terminal device can also display USSD menu items for implementing other functions.
- the terminal device In response to the selection operation of the USSD menu item, the terminal device sends a first request for requesting to provide a payment character sequence to the USSD gateway, where the first request includes the first identifier of the user.
- the terminal device in response to the selection operation of the USSD menu item for providing the payment function for the user, the terminal device sends a first request for requesting to provide the payment character sequence to the USSD gateway.
- the selection operation of the USSD menu item may be a user's input operation of the number of the USSD menu item.
- the first request may further include the serial number of the USSD menu item selected by the user, so as to indicate the USSD menu item selected by the user.
- the first identifier of the user may be the user's international mobile subscriber identity (international mobile subscriber identity, IMSI) or a session identifier between the terminal device and the USSD gateway, or the like.
- IMSI international mobile subscriber identity
- the terminal device displays two USSD menu items, which are the Query Balance option and the Apply Quick Pay option respectively.
- the number corresponding to the balance query option is 1, and the number corresponding to the request quick payment option is 2.
- the user can press the keyboard of the terminal device to input the number "2".
- the terminal device After detecting the user's input operation for the number "2", the terminal device sends a first request for requesting to provide a payment character sequence to the USSD gateway, where the first request includes the user's IMSI and the number "2".
- the USSD gateway sends a second request to the payment platform, where the second request is used to request to provide a payment character sequence, and the second request carries the second identification of the user, which is determined based on the first identification .
- the USSD gateway determines the second identifier of the user based on the first identifier in the first request, and sends a second request carrying the second identifier to the payment platform.
- the second request may further carry the serial number of the USSD menu item selected by the user to indicate the USSD menu item selected by the user.
- the second identifier may be the mobile phone number of the user.
- the second identifier may also be other information that can determine the identifier of the user's payment account.
- the payment platform generates a payment character sequence for the user in response to the second request.
- the payment platform after receiving the second request, the payment platform generates a payment character sequence for the user in response to the second request.
- the payment platform establishes a correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence, where the identifier of the user's payment account is obtained based on the second identifier of the user.
- the payment platform determines the identifier of the payment account of the user based on the second identifier of the user. After determining the identifier of the user's payment account, the payment platform establishes a correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence. How the payment platform establishes the correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence can refer to the description in the embodiment corresponding to FIG. 4 , which is not repeated here.
- the identification of the user's payment account may be the same as the second identification of the user.
- the second identifier is the user's mobile phone number
- the user's payment account identifier is the user's mobile phone number.
- the identification of the user's payment account may also be different from the second identification of the user.
- the payment platform stores the correspondence between the identifier of the user's payment account and the second identifier of the user. Based on the corresponding relationship and the second identifier of the user, the payment platform can determine the identifier of the user's payment account. For example, the second identifier is the mobile phone number of the user, and the identifier of the user's payment account is the account number of the instant messaging application.
- the payment platform prestores the correspondence between the identifier of the user's payment account and the user's mobile phone number. The payment platform can determine the identity of the user's payment account based on the user's mobile phone number.
- the payment platform sends the payment character sequence to the USSD gateway.
- steps 1606 to 1610 may refer to the specific implementation of steps 401 to 405 in the embodiment shown in FIG. 4 , and details are not described herein.
- the USSD gateway sends the payment character sequence to the terminal device of the user.
- the terminal device displays the payment character sequence for the cashier device to scan.
- the cash register device scans the payment character sequence displayed by the user's terminal device, and identifies the first character sequence in the payment character sequence to obtain the third character sequence.
- the cash register device requests the payment platform to make payment through the user's payment account based on the third character sequence.
- the terminal device can actively request the payment character sequence from the network side according to the user's needs, and the terminal device can obtain the payment character sequence more flexibly.
- the user can trigger the terminal device to request the payment character sequence from the network side by selecting the USSD menu item in the USSD menu, which can conveniently trigger the terminal device to request the payment character sequence from the network side.
- the payment platform will establish a correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence, so that the user's payment account can be indicated by the first character sequence.
- FIG. 18 is a schematic flowchart of another payment method provided by an embodiment of the present application. As shown in Figure 18, the payment method includes the following steps 1801 to 1812. in:
- the terminal device sends a third request to the USSD gateway in response to the key input operation, where the third request is used to request to provide the first USSD menu data.
- the key input operation may be a dialing operation.
- the terminal device detects that the user dials *188#, the terminal device sends a third request to the USSD gateway.
- the terminal device may send a third request to the USSD gateway after detecting that the user dials other characters and/or numbers.
- the USSD gateway sends the first USSD menu data to the terminal device.
- the USSD gateway after receiving the third request, sends the first USSD menu data to the terminal device.
- step 1801 may not be executed, and the USSD gateway actively sends the first USSD menu data to the terminal device.
- the first USSD menu data may be data stored locally by the USSD gateway.
- the USSD gateway may request the payment platform for the second USSD menu data, and the USSD gateway obtains the first USSD menu data based on the second USSD menu data requested from the payment platform.
- the USSD gateway obtains the first USSD menu data based on the second USSD menu data requested from the payment platform.
- the USSD gateway carries the first USSD menu data in an SMPP message and sends it to the terminal device.
- the terminal device displays a USSD menu based on the first USSD menu data, where the USSD menu includes USSD menu items.
- the terminal device after receiving the first USSD menu data from the USSD gateway, the terminal device displays the USSD menu based on the first USSD menu data.
- the first USSD menu data may be data in HTML format, or data in other formats.
- first USSD menu data as data in HTML format as an example
- first USSD menu data is an example of the first USSD menu data:
- the USSD menu displayed by the terminal device based on the first USSD menu data may be as shown in FIG. 17 .
- the terminal device may not perform steps 1801 to 1803, the terminal device locally stores USSD menu data, and the terminal device can display the USSD menu based on the local USSD menu data.
- the terminal device In response to the selection operation of the USSD menu item, the terminal device sends a first request for requesting to provide a payment character sequence to the USSD gateway, where the first request includes the first identifier of the user.
- steps 1804 to 1807 reference may be made to the specific implementation manner of the above-mentioned steps 1602 to 1605, which will not be repeated here.
- steps 1808 to 1812 reference may be made to the specific implementation manner of steps 401 to 405, and details are not described herein.
- the USSD gateway In response to the first request, the USSD gateway sends a second request to the payment platform, where the second request is used to request to provide a payment character sequence, and the second request carries the second identification of the user, which is determined based on the first identification .
- the payment platform generates a payment character sequence for the user in response to the second request.
- the payment platform establishes a correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence, where the identifier of the user's payment account is obtained based on the second identifier of the user.
- the payment platform sends the payment character sequence to the USSD gateway.
- the USSD gateway sends the payment character sequence to the terminal device of the user.
- the terminal device displays the payment character sequence for the cashier device to scan.
- the cash register device scans the payment character sequence displayed by the user's terminal device, and identifies the first character sequence in the payment character sequence to obtain the third character sequence.
- the cash register device requests the payment platform to make payment through the user's payment account based on the third character sequence.
- the terminal device can actively request the first USSD menu data from the USSD gateway according to the user's needs, and the terminal device can obtain the first USSD menu data more flexibly.
- FIG. 19 is a schematic flowchart of a payment method provided by an embodiment of the present application. As shown in Figure 19, the payment method includes the following steps 1901 to 1914. in:
- the terminal device sends a third request to the USSD gateway in response to the key input operation, where the third request is used to request to provide the first USSD menu data.
- step 1901 For the specific implementation manner of step 1901, reference may be made to the specific implementation manner of the foregoing step 1801, and details are not described herein.
- the USSD gateway sends a fourth request to the payment platform, where the fourth request is used to request to provide second USSD menu data.
- step 1901 may be performed first, followed by steps 1902 and 1903, that is, after the terminal device requests the USSD gateway to provide the first USSD menu data, the USSD gateway requests the payment platform to provide the second USSD menu data.
- steps 1902 and 1903 may be performed first, and then step 1901 may be performed, that is, the USSD gateway may actively request the payment platform to provide the second USSD menu data.
- the USSD gateway After the terminal device requests the USSD gateway to provide the first USSD menu data, the USSD gateway sends the first USSD menu data to the terminal device based on the second USSD menu data.
- the payment platform sends the second USSD menu data to the USSD gateway.
- the payment platform after receiving the fourth request, sends the second USSD menu data to the USSD gateway.
- the USSD gateway sends the first USSD menu data to the terminal device based on the second USSD menu data.
- the USSD gateway after receiving the third request and the second USSD menu data, the USSD gateway sends the first USSD menu data to the terminal device based on the second USSD menu data.
- the second USSD menu data may be data in HTML format, or data in other formats.
- the first USSD menu data may be data in HTML format, or data in other formats.
- the second USSD menu data and the first USSD menu data may be different.
- the USSD gateway sends the first USSD menu data to the terminal device, so that the terminal device can display the USSD menu based on the first USSD menu data.
- the second USSD menu data and the first USSD menu data may also be the same.
- the second USSD menu data sent by the payment platform may not carry the ⁇ a> tag, so that the USSD gateway can directly send the second USSD menu data as the first USSD menu data to the Terminal Equipment.
- the terminal device displays a USSD menu based on the first USSD menu data, where the USSD menu includes USSD menu items.
- step 1905 For the specific implementation manner of step 1905, reference may be made to the specific implementation manner of the above-mentioned step 1803, which is not repeated here.
- the terminal device In response to the selection operation of the USSD menu item, the terminal device sends a first request for requesting to provide a payment character sequence to the USSD gateway, where the first request includes the first identifier of the user.
- steps 1906 to 1909 reference may be made to the specific implementation manner of the above-mentioned steps 1602 to 1605, which will not be repeated here.
- steps 1910 to 1914 reference may be made to the specific implementation manner of steps 401 to 405, and details are not described here.
- the USSD gateway sends a second request to the payment platform, where the second request is used to request to provide a payment character sequence, and the second request carries the second identification of the user, which is determined based on the first identification .
- the payment platform generates a payment character sequence for the user in response to the second request.
- the payment platform establishes a correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence, where the identifier of the user's payment account is obtained based on the second identifier of the user.
- the payment platform sends the payment character sequence to the USSD gateway.
- the USSD gateway sends the payment character sequence to the user's terminal device.
- the terminal device displays the payment character sequence for the cashier device to scan.
- the cash register device scans the payment character sequence displayed by the user's terminal device, and identifies the first character sequence in the payment character sequence to obtain the third character sequence.
- the cash register device requests the payment platform to make payment through the user's payment account based on the third character sequence.
- the payment platform can send the USSD menu to the USSD gateway, which facilitates flexible updating of the USSD menu.
- FIG. 20 is a schematic flowchart of another payment method provided by an embodiment of the present application. As shown in Figure 20, the payment method includes the following steps 2001 to 2018. in:
- the payment platform sends the payment character sequence to the USSD gateway.
- the USSD gateway sends the payment character sequence to the user's terminal device.
- the terminal device displays the payment character sequence for the cashier device to scan.
- the cash register device scans the payment character sequence displayed by the user's terminal device, and identifies the first character sequence in the payment character sequence to obtain the third character sequence.
- the cash register device sends a payment request to the payment platform, where the payment request carries the third character sequence and order information.
- the order information may include the identification of the payee's payment account and the order amount.
- the order information may also include order number, payee name, transaction time or transaction description, etc.
- the payment platform determines the identifier of the user's payment account based on the third character sequence.
- the payment platform determines the identifier of the user's payment account based on the third character sequence. For example, the correspondence between the first character sequence stored in the payment platform and the identifier of the payment account is shown in Table 2 above. Assuming that the third character sequence is "0127STUX", the payment platform can determine that the identifier of the user's payment account is "15232204938" based on the corresponding relationship shown in Table 1 above.
- the payment platform sends payment confirmation information to the USSD gateway, where the payment confirmation information includes prompt information for prompting the user to input the payment password of the payment account.
- the payment platform after determining the identifier of the user's payment account based on the third character sequence, the payment platform sends payment confirmation information to the USSD gateway.
- the payment platform may determine the user's second identifier based on the identifier of the user's payment account, and send the user's second identifier and payment confirmation information to the USSD. gateway, so that the USSD gateway can send payment confirmation information to the terminal device of the user based on the second identification of the user.
- the second identifier of the user may be the user's mobile phone number or other information that can determine the user's terminal device.
- the identification of the user's payment account may be the same as the second identification of the user.
- the second identifier is the user's mobile phone number
- the user's payment account identifier is the user's mobile phone number.
- the identification of the user's payment account may also be different from the second identification of the user.
- the payment platform stores the correspondence between the identifier of the user's payment account and the second identifier of the user.
- the payment platform can determine the second identifier of the user based on the corresponding relationship and the identifier of the user's payment account.
- the second identifier is the mobile phone number of the user
- the identifier of the user's payment account is the account number of the instant messaging application.
- the payment platform prestores the correspondence between the identifier of the user's payment account and the user's mobile phone number.
- the payment platform can determine the user's mobile phone number based on the identification of the user's payment account.
- the payment confirmation information also includes order information.
- order information By displaying the order information on the terminal device, it is convenient for the user to confirm whether the paid order is correct.
- the payment confirmation information may include part or all of the order information sent by the cash register device to the payment platform.
- payment confirmation information may include order number, order amount, payee name and transaction description.
- the payment platform when the order amount is greater than the preset amount, the payment platform sends payment confirmation information to the USSD gateway. In this way, the user does not need to input the payment password every time, which is beneficial to improve the convenience of payment.
- the USSD gateway sends the payment confirmation information to the terminal device.
- the USSD gateway after receiving the payment confirmation information sent by the payment platform, the USSD gateway sends the payment confirmation information to the terminal device.
- the terminal device displays the payment confirmation information.
- the terminal device after receiving the payment confirmation information, displays the payment confirmation information.
- the payment confirmation information displayed by the terminal device is shown in Figure 21.
- the terminal device receives the payment password of the payment account input by the user.
- the terminal device may receive the payment password of the payment account input by the user. For example, as shown in FIG. 21, the user inputs the payment password of the payment account through the keyboard as "213415".
- the terminal device sends the payment password of the payment account to the USSD gateway.
- the terminal device after receiving the payment password of the payment account input by the user, the terminal device sends the payment password of the payment account to the USSD gateway.
- the USSD gateway sends the payment password of the payment account to the payment platform.
- the USSD gateway after receiving the payment password of the payment account sent by the terminal device, the USSD gateway sends the payment password of the payment account to the payment platform.
- the USSD gateway may also send the second identification of the user to the payment platform together with the payment password of the payment account. Therefore, the payment platform can determine which user's payment account password the received payment password is based on the second identifier of the user. For example, assuming that the identification of the user's payment account is the same as the second identification of the user, and the second identification of the user received by the payment platform is "15232204938", then the payment platform can determine that the received payment password is the identification of the payment account identified by "15232204938". password.
- the payment platform after receiving the payment password of the user's payment account sent by the USSD gateway, the payment platform verifies the received payment password. After the payment platform successfully verifies the received payment password, step 2014 is executed. After the payment platform fails to verify the received payment password, it can send a prompt message to the terminal device to prompt the password input error through the USSD gateway.
- the payment password of the payment account identified by "15232204938" received by the payment platform from the USSD gateway is "213415”.
- the payment platform obtains the pre-stored payment password of the payment account identified by "15232204938". If the payment platform verifies that the pre-stored payment password of the payment account identified by "15232204938" is the same as "213415”. Then, the payment platform determines that the verification of the received payment password is passed. Otherwise, the payment platform determines that the verification of the received payment password fails.
- the payment platform makes payment based on the order information and the user's payment account.
- the order information includes the identification of the payee's payment account and the order amount of 10 yuan.
- the identification of the user's payment account is "15232204938".
- the payment platform transfers 10 yuan from the payment account identified as "15232204938" to the payee's payment account.
- the payment platform sends the user's payment result information to the USSD gateway and the cash register device.
- the payment platform after the payment platform performs payment based on the order information and the user's payment account, it sends the user's payment result information to the USSD gateway and the cash register device. If the payment platform successfully pays based on the order information and the user's payment account, the payment result information indicates that the payment is successful. If the payment platform fails to pay based on the order information and the user's payment account, the payment result information indicates that the payment fails.
- the USSD gateway sends payment result information to the terminal device.
- the USSD gateway after receiving the payment result information, the USSD gateway sends the payment result information to the terminal device.
- the terminal device displays payment result information.
- the terminal device after receiving the payment result information, the terminal device displays the payment result information. For example, as shown in Figure 21.
- the cash register device displays the payment result information of the user.
- the cash register device after receiving the payment result information, the cash register device displays the payment result information.
- the user needs to input the payment password of the payment account in the terminal device to make payment, which is beneficial to improve the security of payment.
- the payment platform can push payment result information to terminal devices and cashier devices in a timely manner, so that users and cashiers can timely understand the order payment results.
- steps 1601 to 1605 shown in FIG. 16 may also be performed before step 2001 .
- steps 1801 to 1807 shown in FIG. 18 may also be performed before step 2001 .
- steps 1901 to 1909 shown in FIG. 19 may also be performed before step 2001 .
- FIG. 22 shows a schematic structural diagram of a communication apparatus according to an embodiment of the present application.
- the communication apparatus shown in FIG. 22 may be used to execute part or all of the functions of the terminal device in the method embodiments described in the above-mentioned FIGS. 4 , 6 , 16 , 18 , 19 , and 20 .
- the device may be a terminal device, or a device in the terminal device, or a device that can be used in combination with the terminal device.
- the communication device may also be a chip system.
- the communication apparatus shown in FIG. 22 may include a communication unit 2201 and a processing unit 2202 . Among them, the processing unit 2202 is used for data processing.
- the communication unit 2201 integrates a receiving unit and a transmitting unit.
- the communication unit 2201 may also be referred to as a transceiving unit.
- the communication unit 2201 can also be divided into a receiving unit and a sending unit.
- the processing unit 2202 and the communication unit 2201 in the following are the same, and will not be repeated below. in:
- the communication unit 2201 is used to receive the payment character sequence from the unstructured supplementary service data USSD gateway; the processing unit 2202 is used to display the payment character sequence for the cashier device to scan for payment through the user's payment account; wherein the payment character sequence includes A first sequence of characters that includes a plurality of visible characters for indicating a payment account.
- the processing unit 2202 is further configured to present the USSD menu item; the communication unit 2201 is further configured to, in response to the selection operation of the USSD menu item, send to the USSD gateway a first request for providing the payment character sequence request, where the first request includes the first identifier of the user.
- the manner in which the processing unit 2202 presents the USSD menu items is as follows: receiving first USSD menu data from the USSD gateway; and displaying a USSD menu based on the first USSD menu data, where the USSD menu includes USSD menu items.
- the communication unit 2201 is further configured to send a third request to the USSD gateway in response to a key input operation, where the third request is used to request to provide the first USSD menu data.
- the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used for checking the first character sequence.
- the payment character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; and/or,
- the sequence of payout characters further includes a second sequence of delimiting characters, the second sequence of delimiting characters including at least one visible character.
- the visible characters in the payment character sequence are visible ASCII characters.
- the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- the communication unit 2201 is further configured to receive payment confirmation information sent by the USSD gateway, where the payment confirmation information includes prompt information for prompting the user to input the payment password of the payment account;
- the processing unit 2202 is further configured to display Payment confirmation information;
- the communication unit 2201 is further configured to receive the payment password of the payment account input by the user;
- the communication unit 2201 is further configured to send the payment password of the payment account to the USSD gateway.
- the payment confirmation information also includes the user's order information.
- the communication unit 2201 is further configured to receive payment result information of the user sent by the USSD gateway; the processing unit 2202 is further configured to display the payment result information.
- FIG. 22 shows a schematic structural diagram of a communication apparatus according to an embodiment of the present application.
- the communication device shown in FIG. 22 can be used to execute part or all of the functions of the USSD gateway in the method embodiments described in the above-mentioned FIG. 4 , FIG. 6 , FIG. 16 , FIG. 18 , FIG. 19 and FIG. 20 .
- the device may be a USSD gateway, a device in a USSD gateway, or a device that can be matched with the USSD gateway.
- the communication device may also be a chip system.
- the communication apparatus shown in FIG. 22 may include a communication unit 2201 and a processing unit 2202 . in:
- the communication unit 2201 is used to receive the payment character sequence sent by the payment platform; the communication unit 2201 is also used to send the payment character sequence to the user's terminal device; wherein the payment character sequence includes a first character sequence, and the first character sequence includes A plurality of visible characters indicating the user's payment account, and the sequence of payment characters is used to be scanned by the cashier device after being displayed by the terminal device to make payment through the payment account.
- the USSD gateway receives a first request from the terminal device, where the first request includes the first identifier of the user; the USSD gateway sends a second request to the payment platform in response to the first request, and the second request uses In response to a request to provide a payment character sequence, the second request carries a second identification of the user, and the second identification is determined based on the first identification.
- the USSD gateway sends first USSD menu data to the terminal device; wherein, the first USSD menu data is used for the terminal device to display a USSD menu, the USSD menu includes USSD menu items, and the USSD menu items are used for Trigger the terminal device to send the first request to the USSD gateway.
- the communication unit 2201 is further configured to receive a third request sent by the terminal device before sending the USSD menu data to the terminal device, where the third request is used to request to provide the first USSD menu data.
- the communication unit 2201 is further configured to send a fourth request to the payment platform before sending the first USSD menu data to the terminal device, where the fourth request is used to request to provide the second USSD menu data; and Receive the second USSD menu data sent by the payment platform; the communication unit 2201 sends the first USSD menu data to the terminal device in a specific manner: sending the first USSD menu data to the terminal device based on the second USSD menu data.
- the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence.
- the payment character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; and/or,
- the sequence of payout characters further includes a second sequence of delimiting characters, the second sequence of delimiting characters including at least one visible character.
- the visible characters in the payment character sequence are visible ASCII characters.
- the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- the communication unit 2201 is further configured to receive payment confirmation information sent by the payment platform after sending the payment character sequence to the user's terminal device, where the payment confirmation information includes a payment for prompting the user to input a payment account and sending payment confirmation information to the terminal device; and receiving the payment password of the payment account sent by the terminal device; and sending the payment password of the payment account to the payment platform.
- the payment confirmation information also includes the user's order information.
- the communication unit 2201 is further configured to, after sending the payment character sequence to the user's terminal device, receive the user's payment result information sent by the payment platform; and send the payment result information to the terminal device.
- FIG. 22 shows a schematic structural diagram of a communication apparatus according to an embodiment of the present application.
- the communication device shown in Fig. 22 can be used to execute part or all of the functions of the payment platform in the method embodiments described in Figs. 4, 6, 16, 18, 19, and 20.
- the device may be a payment platform, or a device in the payment platform, or a device that can be used in conjunction with the payment platform.
- the communication device may also be a chip system.
- the communication apparatus shown in FIG. 22 may include a communication unit 2201 and a processing unit 2202 . in:
- the communication unit 2201 is configured to send a payment character sequence to the unstructured supplementary service data USSD gateway; wherein, the payment character sequence includes a first character sequence, and the first character sequence includes a plurality of visible characters used to indicate the user's payment account , the payment character sequence is used for scanning by the cashier device after being displayed on the user's terminal device, so as to make payment through the payment account.
- the communication unit 2201 is further configured to receive a second request sent by the USSD gateway, where the second request includes the second identifier of the user; the processing unit 2202 is configured to respond to the second request and generate for the user The payment character sequence, and establishing the correspondence between the identification of the payment account and the first character sequence, the identification of the payment account is obtained based on the second identification of the user.
- the communication unit 2201 is further configured to, before receiving the second request sent by the USSD gateway, receive a fourth request sent by the USSD gateway, where the fourth request is used to request to provide the second USSD menu data; and Send the second USSD menu data to the USSD gateway; wherein, the second USSD menu data is used by the USSD gateway to send the first USSD menu data to the terminal device, and the first USSD menu data is used for the terminal device to display the USSD menu, and the USSD menu includes USSD menu items , the USSD menu item is used to trigger the terminal device to send a first request to the USSD gateway, and the first request is used to trigger the USSD gateway to send a second request to the payment platform.
- the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence.
- the payment character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; and/or,
- the sequence of payout characters further includes a second sequence of delimiting characters, the second sequence of delimiting characters including at least one visible character.
- the visible characters in the payment character sequence are visible ASCII characters.
- the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- the first character sequence includes characters determined based on the user's mobile phone number and/or the first time, where the first time is the generation time of the first character sequence.
- the first sequence of characters includes random characters.
- the binary number sequence corresponding to the second character sequence consists of any binary number corresponding to each character in the first character sequence.
- the communication unit 2201 is further configured to receive a payment request sent by the cash register device after sending the payment character sequence to the unstructured supplementary service data USSD gateway, where the payment request carries the order information and the cash register device scans and pays The third character sequence obtained from the character sequence; the processing unit 2202 is further configured to determine the identifier of the user's payment account based on the third character sequence, and perform payment based on the order information and the identifier of the user's payment account.
- the communication unit 2201 is further configured to send payment confirmation information to the USSD gateway before the processing unit 2202 performs payment based on the order information and the identifier of the payment account of the user, where the payment confirmation information includes information for prompting the user The prompt information for entering the payment password of the payment account; the communication unit 2201 is further configured to receive the payment password of the payment account sent by the USSD gateway; the processing unit 2202 is further configured to successfully verify the payment password of the payment account.
- the payment confirmation information carries order information.
- the communication unit 2201 is further configured to send the user's payment result information to the USSD gateway and the cash register device.
- FIG. 22 shows a schematic structural diagram of a communication apparatus according to an embodiment of the present application.
- the communication apparatus shown in FIG. 22 can be used to execute part or all of the functions of the cash register device in the method embodiments described in the above-mentioned FIGS. 4 , 6 , 16 , 18 , 19 , and 20 .
- the device may be a cash register device, a device in a cash register device, or a device that can be matched with the cash register device.
- the communication device may also be a chip system.
- the communication apparatus shown in FIG. 22 may include a communication unit 2201 and a processing unit 2202 . in:
- the processing unit 2202 is used to scan the payment character sequence displayed by the user's terminal device, and identify the first character sequence in the payment character sequence to obtain the third character sequence; the communication unit 2201 is used to request the payment platform based on the third character sequence to pass the user's The payment account is used for payment; wherein, the first character sequence includes a plurality of visible characters generated by the payment platform and used to indicate the payment account.
- the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence;
- the processing unit 2202 is configured to The communication unit 2201 identifies the second character sequence in the payment character sequence to obtain the fourth character sequence before requesting the payment platform to pay through the user's payment account based on the third character sequence; and verifies the third character sequence based on the fourth character sequence, and The verification result is passed.
- the processing unit 2202 is further configured to prompt the position of the incorrectly recognized character in the third character sequence.
- the payment character sequence before the first character sequence, further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; and/or,
- the sequence of payout characters further includes a second sequence of delimiting characters, the second sequence of delimiting characters including at least one visible character.
- the visible characters in the payment character sequence are visible ASCII characters.
- the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- the manner in which the processing unit 2202 identifies the first character sequence in the payment character sequence to obtain the third character sequence is specifically: identifying the first character sequence in the payment character sequence to obtain the fifth character sequence; At least one character in the character sequence is replaced with a preset similar character to obtain a third character sequence.
- the communication unit 2201 requests the payment platform to pay through the user's payment account based on the third character sequence: sending a payment request to the payment platform, where the payment request carries the order information and the third character sequence.
- the communication unit 2201 is further configured to receive the payment result information of the user sent by the payment platform; the processing unit 2202 is further configured to display the payment result information of the user.
- FIG. 23 shows a communication apparatus 230 provided by an embodiment of the present application, which is used to implement the functions of the terminal equipment in the above-mentioned FIGS. 4 , 6 , 16 , 18 , 19 , and 20 .
- the apparatus may be a terminal device or an apparatus for a terminal device.
- the means for the terminal device may be a system-on-a-chip or a chip within the terminal device. Wherein, the chip system may be composed of chips, and may also include chips and other discrete devices.
- the communication device 230 is configured to implement the functions of the USSD gateway in the above-mentioned FIG. 4 , FIG. 6 , FIG. 16 , FIG. 18 , FIG. 19 , and FIG. 20 .
- the device may be a USSD gateway or a device for a USSD gateway.
- the means for the USSD gateway may be a system-on-a-chip or chip within the USSD gateway.
- the communication device 230 is configured to implement the functions of the payment platform in the above-mentioned FIG. 4 , FIG. 6 , FIG. 16 , FIG. 18 , FIG. 19 , and FIG. 20 .
- the device may be a payment platform or a device for a payment platform.
- the means for the payment platform may be a system-on-a-chip or chip within the payment platform.
- the communication device 230 is configured to implement the functions of the cash register device in the above-mentioned FIG. 4 , FIG. 6 , FIG. 16 , FIG. 18 , FIG. 19 , and FIG. 20 .
- the device may be a checkout device or a device for a checkout device.
- the means for the cash register may be a chip system or chip within the cash register.
- the communication apparatus 230 includes at least one processor 2320, configured to implement the data processing function of the terminal device or the USSD gateway or the payment platform or the cashier device in the method provided in the embodiment of the present application.
- the apparatus 230 may further include a communication interface 2310, configured to implement the sending and receiving operations of the terminal device or the USSD gateway or the payment platform or the cashier device in the method provided in the embodiment of the present application.
- the communication interface may be a transceiver, a circuit, a bus, a module or other types of communication interfaces, which are used to communicate with other devices through a transmission medium.
- the communication interface 2310 is used by the apparatus in the apparatus 230 to communicate with other devices.
- the processor 2320 uses the communication interface 2310 to send and receive data, and is used to implement the methods described in the foregoing method embodiments in FIGS. 4 , 6 , 16 , 18 , 19 , and 20 .
- Apparatus 230 may also include at least one memory 2330 for storing program instructions and/or data.
- Memory 2330 and processor 2320 are coupled.
- the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
- the processor 2320 may cooperate with the memory 2330.
- the processor 2320 may execute program instructions stored in the memory 2330 . At least one of the at least one memory may be included in the processor.
- the specific connection medium between the communication interface 2310, the processor 2320, and the memory 2330 is not limited in this embodiment of the present application.
- the memory 2330, the processor 2320, and the communication interface 2310 are connected through a bus 2340 in FIG. 23.
- the bus is represented by a thick line in FIG. 23, and the connection between other components is only for schematic illustration. , is not limited.
- the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is shown in FIG. 23, but it does not mean that there is only one bus or one type of bus.
- the communication interface 2310 may output or receive baseband signals.
- the output or reception of the communication interface 2310 may be a radio frequency signal.
- the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or The methods, operations, and logic block diagrams disclosed in the embodiments of the present application are executed.
- a general purpose processor may be a microprocessor or any conventional processor or the like.
- the operations of the methods disclosed in combination with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
- Embodiments of the present application further provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a processor, the method flow of the foregoing method embodiment is implemented.
- the embodiments of the present application further provide a computer program product, when the computer program product runs on a processor, the method flow of the above method embodiments is realized.
Landscapes
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Cash Registers Or Receiving Machines (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
A payment method and a communication apparatus. The method comprises: a terminal device of a user receives a payment character sequence from an unstructured supplementary service data (USSD) gateway; and the terminal device displays the payment character sequence for scanning by a cashier device, so as to make a payment by means of a payment account of the user. The payment character sequence comprises a first character sequence, the first character sequence comprising a plurality of visible characters for indicating the payment account. Hence, on the basis of said method, a user can carry out a mobile payment merely by presenting the payment character sequence displayed by a terminal device for a cashier device to scan, thus improving the payment convenience of terminal devices.
Description
本申请要求于2020年12月30日提交中国专利局、申请号为202011624212.9、申请名称为“一种支付方法及通信装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011624212.9 and the application title "a payment method and communication device" filed with the China Patent Office on December 30, 2020, the entire contents of which are incorporated into this application by reference .
本申请涉及通信技术领域,尤其涉及一种支付方法及通信装置。The present application relates to the field of communication technologies, and in particular, to a payment method and a communication device.
移动支付是指利用手机等终端设备来进行电子货币支付,移动支付将互联网、终端设备和金融机构有效地联合起来,形成了一个新型的支付体系,极大地提升了用户支付的便捷性。图1是现有的一种移动支付的流程示意图。如图1所示,其中:Mobile payment refers to the use of mobile phones and other terminal equipment for electronic currency payment. Mobile payment effectively combines the Internet, terminal equipment and financial institutions to form a new type of payment system, which greatly improves the convenience of user payment. FIG. 1 is a schematic flowchart of an existing mobile payment. As shown in Figure 1, where:
101、扫描设备扫描支付应用客户端展示的支付条形码或支付二维码,得到支付码信息。101. The scanning device scans the payment barcode or the payment QR code displayed by the payment application client to obtain payment code information.
其中,用户可在支付应用客户端点击付钱功能按钮。用户点击该付钱功能按钮之后,支付应用客户端就可从支付应用后台获取支付码信息,并基于该支付码信息生成支付条形码和支付二维码。支付应用客户端生成支付条形码和支付二维码之后,显示支付条形码和支付二维码。用户将支付应用客户端显示的支付条形码和支付二维码出示给收银员。收银员在收银平台输入收款金额之后,就可使用扫描设备扫描支付应用客户端显示的支付条形码和支付二维码。The user can click the payment function button on the payment application client. After the user clicks the payment function button, the payment application client can obtain payment code information from the payment application background, and generate a payment barcode and a payment two-dimensional code based on the payment code information. After the payment application client generates the payment barcode and the payment QR code, the payment barcode and the payment QR code are displayed. The user shows the payment barcode and payment QR code displayed on the payment application client to the cashier. After the cashier enters the payment amount on the cashier platform, he can use the scanning device to scan the payment barcode and payment QR code displayed on the payment application client.
102、扫描设备识别到支付码信息之后,发送识别到的支付码信息至收银平台。102. After the scanning device recognizes the payment code information, it sends the recognized payment code information to the cashier platform.
103、收银平台接收支付码信息之后,向支付应用后台发送支付请求。其中,该支付请求中携带了支付码信息、收款金额以及收款方信息。103. After receiving the payment code information, the cash register platform sends a payment request to the payment application background. The payment request carries the payment code information, the payment amount, and the payment party information.
104、支付应用后台接收支付请求之后,基于该支付请求中的支付码信息、收款金额以及收款方信息进行支付转账。104. After receiving the payment request, the payment application background performs payment transfer based on the payment code information, the payment amount, and the payment party information in the payment request.
105、支付应用后台完成支付转账之后,向收银平台通知支付结果。105. After the payment application background completes the payment transfer, the payment result is notified to the cashier platform.
106、支付应用后台完成支付转账之后,向支付应用客户端通知支付结果。106. After the payment application background completes the payment transfer, the payment application client is notified of the payment result.
目前只有智能设备(如智能手机、智能手表等)支持生成条形码或二维码,某些功能设备(如功能手机),无法生成条形码或二维码。功能设备是指设备的功能与应用在出厂时基本已经确定,由设备厂商预置安装,很难进行扩展。因此目前用户只能使用智能设备进行扫码支付,无法使用功能设备进行扫码支付。但当前相当大一部分发展中国家的智能设备的占有率并未占到完全的主导地位,还有大量用户在使用功能设备。因此,如何提升功能设备的支付便捷性是目前亟待解决的问题。Currently, only smart devices (such as smart phones, smart watches, etc.) support the generation of barcodes or QR codes, and some functional devices (such as feature phones) cannot generate barcodes or QR codes. Functional equipment means that the functions and applications of the equipment have been basically determined at the factory, and are preset and installed by the equipment manufacturer, which is difficult to expand. Therefore, at present, users can only use smart devices to scan code for payment, and cannot use functional devices to scan code to pay. However, the current share of smart devices in a considerable number of developing countries is not fully dominant, and there are still a large number of users using functional devices. Therefore, how to improve the payment convenience of functional devices is an urgent problem to be solved at present.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种支付方法及通信装置,有利于提升功能设备的支付便捷性。The present application provides a payment method and a communication device, which are beneficial to improve the convenience of payment of functional equipment.
第一方面,本申请提供了一种支付方法,该方法包括:用户的终端设备从非结构化补充业务数据USSD网关接收支付字符序列;终端设备显示该支付字符序列供收银设备扫描,以通过用户的支付账户进行支付;其中,支付字符序列包括第一字符序列,该第一字符序列包 括用于指示支付账户的多个可见字符。可见,基于第一方面所描述的方法,用户展示终端设备显示的支付字符序列给收银设备进行扫描,就能进行移动支付,提升了终端设备的支付便捷性。In a first aspect, the present application provides a payment method, the method comprising: a user's terminal device receiving a payment character sequence from an unstructured supplementary service data USSD gateway; The payment account is used for payment; wherein, the payment character sequence includes a first character sequence, and the first character sequence includes a plurality of visible characters used to indicate the payment account. It can be seen that, based on the method described in the first aspect, the user can perform mobile payment by displaying the payment character sequence displayed by the terminal device to the cashier device for scanning, which improves the payment convenience of the terminal device.
在一种可能的实现中,终端设备从USSD网关接收支付字符序列之前,终端设备还可呈现USSD菜单项,以及响应于USSD菜单项的选择操作,向USSD网关发送用于请求提供支付字符序列的第一请求,该第一请求包含用户的第一标识。基于该可能的实现方式,终端设备能够根据用户的需求主动向网络侧请求支付字符序列,终端设备能够更加灵活地获取支付字符序列。并且用户通过在USSD菜单中选择USSD菜单项,来触发终端设备向网络侧请求支付字符序列,能够便捷地触发终端设备向网络侧请求支付字符序列。In a possible implementation, before the terminal device receives the payment character sequence from the USSD gateway, the terminal device may also present a USSD menu item, and in response to the selection operation of the USSD menu item, send to the USSD gateway a request for providing the payment character sequence A first request, where the first request includes the first identifier of the user. Based on this possible implementation manner, the terminal device can actively request the payment character sequence from the network side according to the user's needs, and the terminal device can acquire the payment character sequence more flexibly. And the user triggers the terminal device to request the payment character sequence from the network side by selecting the USSD menu item in the USSD menu, which can conveniently trigger the terminal device to request the payment character sequence from the network side.
在一种可能的实现中,终端设备呈现USSD菜单项的具体实施方式为:终端设备从USSD网关接收第一USSD菜单数据;终端设备基于第一USSD菜单数据显示USSD菜单,该USSD菜单包含USSD菜单项。在该可能的实现方式,相比于终端设备基于本地USSD菜单数据来显示USSD菜单,终端设备从USSD网关获取USSD菜单数据,有利于终端设备及时地获取到最新的USSD菜单数据。In a possible implementation, the specific implementation of the terminal device presenting the USSD menu items is as follows: the terminal device receives the first USSD menu data from the USSD gateway; the terminal device displays the USSD menu based on the first USSD menu data, and the USSD menu includes the USSD menu item. In this possible implementation manner, compared with the terminal device displaying the USSD menu based on the local USSD menu data, the terminal device obtains the USSD menu data from the USSD gateway, which is beneficial for the terminal device to obtain the latest USSD menu data in time.
在一种可能的实现中,终端设备从USSD网关接收USSD菜单数据之前,还可响应于按键输入操作向USSD网关发送第三请求,该第三请求用于请求提供第一USSD菜单数据。基于该可能的实现方式,终端设备能够根据用户的需求主动向USSD网关请求第一USSD菜单数据,终端设备能够更加灵活地获取第一USSD菜单数据。In a possible implementation, before receiving the USSD menu data from the USSD gateway, the terminal device may also send a third request to the USSD gateway in response to a key input operation, where the third request is used to request to provide the first USSD menu data. Based on this possible implementation manner, the terminal device can actively request the first USSD menu data from the USSD gateway according to the needs of the user, and the terminal device can acquire the first USSD menu data more flexibly.
在一种可能的实现中,支付字符序列还包括第二字符序列,该第二字符序列包括至少一个可见字符,该第二字符序列用于对第一字符序列进行校验。基于该可能的实现方式,有利于收银设备确定对第一字符序列是否识别准确。In a possible implementation, the payment character sequence further includes a second character sequence, where the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence. Based on this possible implementation, it is beneficial for the cash register device to determine whether the first character sequence is accurately recognized.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,第一分界字符序列包括至少一个可见字符。通过在第一字符序列之前显示第一分界字符序列,有利于提高收银设备识别第一字符序列的速度和准确度。In a possible implementation, before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character. By displaying the first delimiting character sequence before the first character sequence, it is beneficial to improve the speed and accuracy of the cash register device recognizing the first character sequence.
在一种可能的实现中,在第一分界字符序列之后,在第一字符序列之前,支付字符序列还包括回车换行字符。回车换行字符为不可见字符。也就是说,支付字符序列中包括的字符不全是可见字符。通过在第一分界字符序列之后,在第一字符序列之前,增加回车换行字符,能够使第一分界字符序列和第一字符序列不在同一行显示,这样有利于提高收银设备识别第一字符序列的速度和准确度。In one possible implementation, after the first delimiting character sequence and before the first character sequence, the payment character sequence further includes a carriage return line feed character. The carriage return and line feed characters are invisible characters. That is, not all characters included in the payout character sequence are visible characters. By adding a carriage return and line feed character after the first delimiting character sequence and before the first character sequence, the first delimiting character sequence and the first character sequence can not be displayed on the same line, which is beneficial to improve the recognition of the first character sequence by the cashier device speed and accuracy.
在一种可能的实现中,在第一字符序列之后,支付字符序列还包括第二分界字符序列,第二分界字符序列包括至少一个可见字符。通过在第一字符序列之后显示第二分界字符序列,有利于提高收银设备识别第一字符序列的速度和准确度。In a possible implementation, after the first character sequence, the payout character sequence further includes a second delimiting character sequence, and the second delimiting character sequence includes at least one visible character. By displaying the second delimiting character sequence after the first character sequence, it is beneficial to improve the speed and accuracy of the cash register device recognizing the first character sequence.
在一种可能的实现中,在第二分界字符序列之前,在第一字符序列之后,支付字符序列还包括回车换行字符。通过在第二分界字符序列之前,在第一字符序列之后,增加回车换行字符,这样能使第二分界字符序列和第一字符序列不在同一行显示,有利于提高收银设备识别第一字符序列的速度和准确度。In one possible implementation, before the second delimiting character sequence and after the first character sequence, the payout character sequence further includes a carriage return line feed character. By adding a carriage return and line feed character before the second delimiting character sequence and after the first character sequence, the second delimiting character sequence and the first character sequence can be displayed on different lines, which is beneficial to improve the recognition of the first character sequence by the cashier device. speed and accuracy.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,第一分界字符序列包括至少一个可见字符;在第一字符序列之后,支付字符序列还包括第二分界字符序列,第二分界字符序列包括至少一个可见字符。通过在第一字符序列之前显示第一分界字符序列,以及在第一字符序列之后显示第二分界字符序列,有利于提高收银设备识别第一字符序列的速度和准确度。In a possible implementation, before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; after the first character sequence, the payment character sequence further includes a first character sequence A sequence of two delimited characters, the second sequence of delimited characters including at least one visible character. By displaying the first delimiting character sequence before the first character sequence and displaying the second delimiting character sequence after the first character sequence, it is beneficial to improve the speed and accuracy of the cash register device recognizing the first character sequence.
在一种可能的实现中,在第一分界字符序列之后,在第一字符序列之前,支付字符序列还包括回车换行字符。并且在第二分界字符序列之前,在第一字符序列之后,支付字符序列还包括回车换行字符。这样能使第一分界字符序列、第二分界字符序列和第一字符序列不在同一行显示,有利于提高收银设备识别第一字符序列的速度和准确度。In one possible implementation, after the first delimiting character sequence and before the first character sequence, the payment character sequence further includes a carriage return line feed character. And before the second delimiting character sequence, after the first character sequence, the payout character sequence further includes a carriage return line feed character. In this way, the first delimiting character sequence, the second delimiting character sequence and the first character sequence are not displayed on the same line, which is beneficial to improve the speed and accuracy of the cash register device recognizing the first character sequence.
在一种可能的实现中,第二分界字符序列与第一分界字符序列相同。通过使第二分界字符序列与第一分界字符序列相同,有利于提高收银设备识别第一字符序列的速度和准确度。In one possible implementation, the second sequence of delimiting characters is the same as the first sequence of delimiting characters. By making the second delimiting character sequence the same as the first delimiting character sequence, it is beneficial to improve the speed and accuracy of the cash register device recognizing the first character sequence.
在一种可能的实现中,支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。可见ASCII字符为全球通用字符,通过使支付字符序列中的可见字符为可见ASCII字符,能够增加方案的兼容性。In one possible implementation, the visible characters in the payment character sequence are visible ASCII characters. The visible ASCII characters are universal characters, and the compatibility of the scheme can be increased by making the visible characters in the payment character sequence visible ASCII characters.
在一种可能的实现中,支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。支付字符序列中的字符来自支付平台预设的候选字符集。当候选字符集中全是可见ASCII字符,且其中任意两个字符都不相似时,从这种候选字符集中选出的字符称为高识别度ASCII字符,这种候选字符集称为高识别度候选字符集。这样有利于提高收银设备识别支付字符序列中的可见字符的准确度。In one possible implementation, the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters. The characters in the payment character sequence come from the candidate character set preset by the payment platform. When the candidate character set is full of visible ASCII characters, and any two characters are dissimilar, the characters selected from this candidate character set are called high-recognition ASCII characters, and this candidate character set is called a high-recognition candidate character set. This is beneficial to improve the accuracy of the cash register device in recognizing the visible characters in the payment character sequence.
在一种可能的实现中,高识别度候选字符集也可包括在94个可见ASCII字符中选出的不具有相似字符的字符。例如,高识别度ASCII字符集包括以下字符中的一个或多个:A、D、E、G、H、L、N、Q、R、T、3、4、5、6或7。In one possible implementation, the high-recognition candidate character set may also include characters that do not have similar characters selected from among the 94 visible ASCII characters. For example, a high-recognition ASCII character set includes one or more of the following characters: A, D, E, G, H, L, N, Q, R, T, 3, 4, 5, 6, or 7.
在另一种可能的实现中,高识别度候选字符集包括在94个可见ASCII字符中选出的具有相似字符的字符,但高识别度候选字符集中的任意两个字符互不相似。In another possible implementation, the high-recognition candidate character set includes characters with similar characters selected from 94 visible ASCII characters, but any two characters in the high-recognition candidate character set are dissimilar to each other.
如果高识别度候选字符集包括从94个可见字符集中选出的具有相似字符的字符,那么收银设备可实现纠错功能。例如,假设高识别度候选字符集中包括的16个高识别度字符分别为:“0127ACFHJKLPSTUX”。如果收银设备识别到大写字母“O”或小写字母“o”,则认为识别到的字符为数字“0”。如果收银设备识别到大写字母“I”,小写字母“i”,小写字母“l”,垂线“|”,开方括号“[”或闭方括号“]”,则认为识别到的字符为数字“1”。如果收银设备识别到大写字母“Z”或小写字母“z”,则认为识别到的字符为数字“2”。If the high-recognition candidate character set includes characters with similar characters selected from a set of 94 visible characters, the cash register device can implement an error correction function. For example, it is assumed that the 16 high-recognition characters included in the high-recognition candidate character set are respectively: "0127ACFHJKLPSTUX". If the cash register device recognizes an uppercase "O" or a lowercase "o", it is considered that the recognized character is the number "0". If the cash register device recognizes an uppercase "I", a lowercase "i", a lowercase "l", a vertical line "|", an opening square bracket "[" or a closing square bracket "]", it is considered that the recognized character is Number 1". If the cash register device recognizes an uppercase "Z" or a lowercase "z", it considers the recognized character to be the number "2".
在又一种可能的实现中,高识别度ASCII字符集是指字符的正确识别率大于或等于预设阈值的字符。In yet another possible implementation, the high-recognition ASCII character set refers to characters whose correct recognition rate of characters is greater than or equal to a preset threshold.
在一种可能的实现中,终端设备显示支付字符序列供收银设备扫描之后,终端设备还可执行以下步骤:终端设备接收USSD网关发送的支付确认信息,该支付确认信息包括用于提示用户输入支付账户的支付密码的提示信息;终端设备显示该支付确认信息;终端设备接收用户输入的支付账户的支付密码;终端设备向USSD网关发送该支付账户的支付密码。基于该可能的实现方式,用户需要在终端设备输入支付账户的支付密码才能进行支付,有利于提高支付的安全性。In a possible implementation, after the terminal device displays the payment character sequence for the cashier device to scan, the terminal device may further perform the following steps: the terminal device receives payment confirmation information sent by the USSD gateway, where the payment confirmation information includes a message for prompting the user to input payment The prompt information of the payment password of the account; the terminal device displays the payment confirmation information; the terminal device receives the payment password of the payment account input by the user; the terminal device sends the payment password of the payment account to the USSD gateway. Based on this possible implementation, the user needs to input the payment password of the payment account on the terminal device to make payment, which is beneficial to improve the security of payment.
在一种可能的实现中,支付确认信息还包括用户的订单信息。通过在终端设备显示订单信息,便于用户确认支付的订单是否正确。In a possible implementation, the payment confirmation information also includes the user's order information. By displaying the order information on the terminal device, it is convenient for the user to confirm whether the paid order is correct.
在一种可能的实现中,终端设备显示支付字符序列供收银设备扫描之后,还可接收USSD网关发送的用户的支付结果信息,以及显示支付结果信息。基于该可能的实现方式,用户能够及时了解支付结果。In a possible implementation, after displaying the payment character sequence for the cashier device to scan, the terminal device can also receive the user's payment result information sent by the USSD gateway, and display the payment result information. Based on this possible implementation, the user can know the payment result in time.
第二方面,本申请提供了一种支付方法,该方法包括:非结构化补充业务数据USSD网关接收支付平台发送的支付字符序列;USSD网关向用户的终端设备发送该支付字符序列;其中,该支付字符序列包括第一字符序列,该第一字符序列包括用于指示用户的支付账户的 多个可见字符,该支付字符序列用于在终端设备显示后供收银设备扫描,以通过支付账户进行支付。In a second aspect, the present application provides a payment method, which includes: an unstructured supplementary service data USSD gateway receives a payment character sequence sent by a payment platform; the USSD gateway sends the payment character sequence to a user's terminal device; wherein the The payment character sequence includes a first character sequence including a plurality of visible characters for indicating the user's payment account, and the payment character sequence is used for scanning by the cashier device after being displayed by the terminal device to make payment through the payment account .
在一种可能的实现中,USSD网关接收支付平台发送的支付字符序列之前,USSD网关还可从终端设备接收第一请求,该第一请求包含用户的第一标识;USSD网关响应于第一请求,向支付平台发送第二请求,该第二请求用于请求提供支付字符序列,该第二请求携带用户的第二标识,第二标识基于第一标识确定。In a possible implementation, before the USSD gateway receives the payment character sequence sent by the payment platform, the USSD gateway may also receive a first request from the terminal device, where the first request includes the first identifier of the user; the USSD gateway responds to the first request , sending a second request to the payment platform, where the second request is used to request to provide a payment character sequence, the second request carries a second identifier of the user, and the second identifier is determined based on the first identifier.
在一种可能的实现中,USSD网关还可向终端设备发送第一USSD菜单数据;其中,第一USSD菜单数据用于终端设备显示USSD菜单,该USSD菜单包括USSD菜单项,该USSD菜单项用于触发终端设备向USSD网关发送第一请求。In a possible implementation, the USSD gateway can also send first USSD menu data to the terminal device; wherein, the first USSD menu data is used for the terminal device to display a USSD menu, the USSD menu includes USSD menu items, and the USSD menu items use to trigger the terminal device to send the first request to the USSD gateway.
在一种可能的实现中,USSD网关向终端设备发送USSD菜单数据之前,还可接收终端设备发送的第三请求,该第三请求用于请求提供第一USSD菜单数据。In a possible implementation, before sending the USSD menu data to the terminal device, the USSD gateway may further receive a third request sent by the terminal device, where the third request is used to request to provide the first USSD menu data.
在一种可能的实现中,USSD网关向终端设备发送第一USSD菜单数据之前,还可向支付平台发送第四请求,该第四请求用于请求提供第二USSD菜单数据;以及还可接收支付平台发送的第二USSD菜单数据;USSD网关向终端设备发送第一USSD菜单数据的具体实施方式为:USSD网关基于第二USSD菜单数据向终端设备发送第一USSD菜单数据。在该可能的实现方式中,由支付平台来生成用于显示USSD菜单的USSD菜单数据,便于支付平台对USSD菜单数据进行更新。In a possible implementation, before sending the first USSD menu data to the terminal device, the USSD gateway may also send a fourth request to the payment platform, where the fourth request is used to request to provide the second USSD menu data; and may also receive payment The second USSD menu data sent by the platform; the specific implementation of the USSD gateway sending the first USSD menu data to the terminal device is as follows: the USSD gateway sends the first USSD menu data to the terminal device based on the second USSD menu data. In this possible implementation manner, the USSD menu data for displaying the USSD menu is generated by the payment platform, so that the payment platform can update the USSD menu data.
在一种可能的实现中,支付字符序列还包括第二字符序列,该第二字符序列包括至少一个可见字符,该第二字符序列用于对第一字符序列进行校验。In a possible implementation, the payment character sequence further includes a second character sequence, where the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,该第一分界字符序列包括至少一个可见字符。In a possible implementation, before the first character sequence, the payout character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character.
在一种可能的实现中,在第一分界字符序列之后,在第一字符序列之前,支付字符序列还包括回车换行字符。In one possible implementation, after the first delimiting character sequence and before the first character sequence, the payment character sequence further includes a carriage return line feed character.
在一种可能的实现中,在第一字符序列之后,支付字符序列还包括第二分界字符序列,该第二分界字符序列包括至少一个可见字符。In a possible implementation, after the first character sequence, the payout character sequence further includes a second delimiting character sequence, the second delimiting character sequence including at least one visible character.
在一种可能的实现中,在第二分界字符序列之前,在第一字符序列之后,支付字符序列还包括回车换行字符。In one possible implementation, before the second delimiting character sequence and after the first character sequence, the payout character sequence further includes a carriage return line feed character.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,第一分界字符序列包括至少一个可见字符;在第一字符序列之后,支付字符序列还包括第二分界字符序列,第二分界字符序列包括至少一个可见字符。In a possible implementation, before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; after the first character sequence, the payment character sequence further includes a first character sequence A sequence of two delimited characters, the second sequence of delimited characters including at least one visible character.
在一种可能的实现中,在第一分界字符序列之后,在第一字符序列之前,支付字符序列还包括回车换行字符。并且在第二分界字符序列之前,在第一字符序列之后,支付字符序列还包括回车换行字符。In one possible implementation, after the first delimiting character sequence and before the first character sequence, the payment character sequence further includes a carriage return line feed character. And before the second delimiting character sequence, after the first character sequence, the payout character sequence further includes a carriage return line feed character.
在一种可能的实现中,第二分界字符序列与第一分界字符序列相同。In one possible implementation, the second sequence of delimiting characters is the same as the first sequence of delimiting characters.
在一种可能的实现中,支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。In one possible implementation, the visible characters in the payment character sequence are visible ASCII characters.
在一种可能的实现中,支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。关于高识别度ASCII字符的描述可参见第一方面中的描述,在此不赘述。In one possible implementation, the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters. For the description of the high-recognition ASCII characters, reference may be made to the description in the first aspect, and details are not repeated here.
在一种可能的实现中,USSD网关向用户的终端设备发送支付字符序列之后,还可执行以下步骤:USSD网关接收支付平台发送的支付确认信息,该支付确认信息包括用于提示用户输入支付账户的支付密码的提示信息;USSD网关向终端设备发送支付确认信息;USSD网 关接收终端设备发送的支付账户的支付密码;USSD网关向支付平台发送支付账户的支付密码。In a possible implementation, after the USSD gateway sends the payment character sequence to the user's terminal device, the following steps may also be performed: the USSD gateway receives payment confirmation information sent by the payment platform, where the payment confirmation information includes prompting the user to input a payment account The USSD gateway sends the payment confirmation information to the terminal device; the USSD gateway receives the payment password of the payment account sent by the terminal device; the USSD gateway sends the payment password of the payment account to the payment platform.
在一种可能的实现中,支付确认信息还包括用户的订单信息。In a possible implementation, the payment confirmation information also includes the user's order information.
在一种可能的实现中,USSD网关向用户的终端设备发送支付字符序列之后,还可接收支付平台发送的用户的支付结果信息,以及向终端设备发送支付结果信息。In a possible implementation, after the USSD gateway sends the payment character sequence to the user's terminal device, it can also receive the user's payment result information sent by the payment platform, and send the payment result information to the terminal device.
第二方面的有益效果可参见第一方面的有益效果,在此不赘述。For the beneficial effects of the second aspect, reference may be made to the beneficial effects of the first aspect, which will not be repeated here.
第三方面,本申请提供了一种支付方法,该方法包括:支付平台向非结构化补充业务数据USSD网关发送支付字符序列;其中,该支付字符序列包括第一字符序列,该第一字符序列包括用于指示用户的支付账户的多个可见字符,该支付字符序列用于在用户的终端设备显示后供收银设备扫描,以通过支付账户进行支付。In a third aspect, the present application provides a payment method, the method comprising: a payment platform sending a payment character sequence to an unstructured supplementary service data USSD gateway; wherein the payment character sequence includes a first character sequence, the first character sequence A plurality of visible characters are included for indicating the user's payment account, and the sequence of payment characters is used for scanning by the cashier device after being displayed on the user's terminal device to make payment through the payment account.
在一种可能的实现中,支付平台还可接收USSD网关发送的第二请求,该第二请求包含用户的第二标识;支付平台还可响应于第二请求,为用户生成支付字符序列,以及建立支付账户的标识与第一字符序列之间的对应关系,该支付账户的标识基于用户的第二标识得到。In a possible implementation, the payment platform may further receive a second request sent by the USSD gateway, where the second request includes the second identification of the user; the payment platform may also generate a payment character sequence for the user in response to the second request, and A corresponding relationship between the identification of the payment account and the first character sequence is established, and the identification of the payment account is obtained based on the second identification of the user.
在一种可能的实现中,支付平台接收USSD网关发送的第二请求之前,还可接收USSD网关发送的第四请求,该第四请求用于请求提供第二USSD菜单数据;以及还可向USSD网关发送第二USSD菜单数据;其中,该第二USSD菜单数据用于USSD网关向终端设备发送第一USSD菜单数据,该第一USSD菜单数据用于终端设备显示USSD菜单,该USSD菜单包括USSD菜单项,该USSD菜单项用于触发终端设备向USSD网关发送第一请求,该第一请求用于触发USSD网关向支付平台发送第二请求。In a possible implementation, before receiving the second request sent by the USSD gateway, the payment platform may also receive a fourth request sent by the USSD gateway, where the fourth request is used to request to provide the second USSD menu data; The gateway sends the second USSD menu data; wherein, the second USSD menu data is used for the USSD gateway to send the first USSD menu data to the terminal device, and the first USSD menu data is used for the terminal device to display the USSD menu, and the USSD menu includes the USSD menu item, the USSD menu item is used to trigger the terminal device to send a first request to the USSD gateway, where the first request is used to trigger the USSD gateway to send a second request to the payment platform.
在一种可能的实现中,支付字符序列还包括第二字符序列,该第二字符序列包括至少一个可见字符,该第二字符序列用于对第一字符序列进行校验。In a possible implementation, the payment character sequence further includes a second character sequence, where the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,该第一分界字符序列包括至少一个可见字符。In a possible implementation, before the first character sequence, the payout character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character.
在一种可能的实现中,在第一分界字符序列之后,在第一字符序列之前,支付字符序列还包括回车换行字符。In one possible implementation, after the first delimiting character sequence and before the first character sequence, the payment character sequence further includes a carriage return line feed character.
在一种可能的实现中,在第一字符序列之后,支付字符序列还包括第二分界字符序列,该第二分界字符序列包括至少一个可见字符。In a possible implementation, after the first character sequence, the payout character sequence further includes a second delimiting character sequence, the second delimiting character sequence including at least one visible character.
在一种可能的实现中,在第二分界字符序列之前,在第一字符序列之后,支付字符序列还包括回车换行字符。In one possible implementation, before the second delimiting character sequence and after the first character sequence, the payout character sequence further includes a carriage return line feed character.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,第一分界字符序列包括至少一个可见字符;在第一字符序列之后,支付字符序列还包括第二分界字符序列,第二分界字符序列包括至少一个可见字符。In a possible implementation, before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; after the first character sequence, the payment character sequence further includes a first character sequence A sequence of two delimited characters, the second sequence of delimited characters including at least one visible character.
在一种可能的实现中,在第一分界字符序列之后,在第一字符序列之前,支付字符序列还包括回车换行字符。并且在第二分界字符序列之前,在第一字符序列之后,支付字符序列还包括回车换行字符。In one possible implementation, after the first delimiting character sequence and before the first character sequence, the payment character sequence further includes a carriage return line feed character. And before the second delimiting character sequence, after the first character sequence, the payout character sequence further includes a carriage return line feed character.
在一种可能的实现中,第二分界字符序列与第一分界字符序列相同。In one possible implementation, the second sequence of delimiting characters is the same as the first sequence of delimiting characters.
在一种可能的实现中,支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。In one possible implementation, the visible characters in the payment character sequence are visible ASCII characters.
在一种可能的实现中,支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。关于高识别度ASCII字符的描述可参见第一方面中的描述,在此不赘述。In one possible implementation, the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters. For the description of the high-recognition ASCII characters, reference may be made to the description in the first aspect, and details are not repeated here.
在一种可能的实现中,第一字符序列包括基于用户的手机号码和/或第一时间确定的字符, 第一时间为第一字符序列的生成时间。有利于避免为不同用户生成相同的第一字符序列,提高了支付安全性。In a possible implementation, the first character sequence includes characters determined based on the user's mobile phone number and/or the first time, where the first time is the generation time of the first character sequence. It is beneficial to avoid generating the same first character sequence for different users, thereby improving payment security.
在一种可能的实现中,第一字符序列包括随机字符。有利于避免第一字符序列被泄露,提高了支付的安全性。In one possible implementation, the first sequence of characters includes random characters. It is beneficial to avoid the leakage of the first character sequence and improve the security of payment.
在一种可能的实现中,第二字符序列对应的二进制数序列由第一字符序列中的各个字符对应的任意一位二进制数组成。基于该方式生成的第二字符序列,能够准确地对第一字符序列进行校验。In a possible implementation, the binary number sequence corresponding to the second character sequence consists of any binary number corresponding to each character in the first character sequence. Based on the second character sequence generated in this manner, the first character sequence can be accurately checked.
在一种可能的实现中,支付平台向非结构化补充业务数据USSD网关发送支付字符序列之后,还可执行以下步骤:支付平台接收收银设备发送的支付请求,该支付请求携带订单信息和收银设备扫描支付字符序列得到的第三字符序列;支付平台基于第三字符序列确定用户的支付账户的标识;支付平台基于订单信息和用户的支付账户的标识进行支付。In a possible implementation, after the payment platform sends the payment character sequence to the unstructured supplementary service data USSD gateway, the following steps may also be performed: the payment platform receives a payment request sent by the cash register device, and the payment request carries the order information and the cash register device. The third character sequence obtained by scanning the payment character sequence; the payment platform determines the identifier of the user's payment account based on the third character sequence; the payment platform performs payment based on the order information and the identifier of the user's payment account.
在一种可能的实现中,支付平台基于订单信息和用户的支付账户的标识进行支付之前,还可执行以下步骤:支付平台向USSD网关发送支付确认信息,该支付确认信息包括用于提示用户输入支付账户的支付密码的提示信息;支付平台接收USSD网关发送的支付账户的支付密码;支付平台成功校验支付账户的支付密码。In a possible implementation, before the payment platform performs payment based on the order information and the identifier of the user's payment account, the following steps may be further performed: the payment platform sends payment confirmation information to the USSD gateway, where the payment confirmation information includes prompting the user to input The prompt information of the payment password of the payment account; the payment platform receives the payment password of the payment account sent by the USSD gateway; the payment platform successfully verifies the payment password of the payment account.
在一种可能的实现中,支付确认信息携带订单信息。In a possible implementation, the payment confirmation information carries order information.
在一种可能的实现中,支付平台还可向USSD网关和收银设备发送用户的支付结果信息。In a possible implementation, the payment platform can also send the user's payment result information to the USSD gateway and the cash register device.
第四方面,本申请提供了一种支付方法,该方法包括:收银设备扫描用户的终端设备显示的支付字符序列,识别支付字符序列中的第一字符序列得到第三字符序列;收银设备基于该第三字符序列请求支付平台通过用户的支付账户进行支付;其中,该第一字符序列包括支付平台生成的、用于指示支付账户的多个可见字符。In a fourth aspect, the present application provides a payment method, the method comprising: a cash register device scans a payment character sequence displayed by a user's terminal device, and identifies a first character sequence in the payment character sequence to obtain a third character sequence; The third character sequence requests the payment platform to make payment through the user's payment account; wherein, the first character sequence includes a plurality of visible characters generated by the payment platform and used to indicate the payment account.
在一种可能的实现中,支付字符序列还包括第二字符序列,该第二字符序列包括至少一个可见字符,该第二字符序列用于对第一字符序列进行校验;在收银设备基于第三字符序列请求支付平台通过用户的支付账户进行支付之前,收银设备还可识别支付字符序列中的第二字符序列得到第四字符序列;以及还可基于第四字符序列校验第三字符序列,且校验结果为通过。In a possible implementation, the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence; Before the three-character sequence requests the payment platform to pay through the user's payment account, the cash register device can also identify the second character sequence in the payment character sequence to obtain a fourth character sequence; and can also verify the third character sequence based on the fourth character sequence, And the verification result is passed.
在一种可能的实现中,在校验结果为不通过的情况下,收银设备可提示第三字符序列中识别错误的字符的位置。这样收银员就可手动对识别错误的字符进行快速修改。In a possible implementation, in the case that the verification result is unsuccessful, the cash register device may prompt the position of the incorrectly recognized character in the third character sequence. This allows the cashier to manually make quick corrections to misrecognized characters.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,该第一分界字符序列包括至少一个可见字符。In a possible implementation, before the first character sequence, the payout character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character.
在一种可能的实现中,在第一分界字符序列之后,在第一字符序列之前,支付字符序列还包括回车换行字符。In one possible implementation, after the first delimiting character sequence and before the first character sequence, the payment character sequence further includes a carriage return line feed character.
在一种可能的实现中,在第一字符序列之后,支付字符序列还包括第二分界字符序列,该第二分界字符序列包括至少一个可见字符。In a possible implementation, after the first character sequence, the payout character sequence further includes a second delimiting character sequence, the second delimiting character sequence including at least one visible character.
在一种可能的实现中,在第二分界字符序列之前,在第一字符序列之后,支付字符序列还包括回车换行字符。In one possible implementation, before the second delimiting character sequence and after the first character sequence, the payout character sequence further includes a carriage return line feed character.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,第一分界字符序列包括至少一个可见字符;在第一字符序列之后,支付字符序列还包括第二分界字符序列,第二分界字符序列包括至少一个可见字符。In a possible implementation, before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; after the first character sequence, the payment character sequence further includes a first character sequence A sequence of two delimited characters, the second sequence of delimited characters including at least one visible character.
在一种可能的实现中,在第一分界字符序列之后,在第一字符序列之前,支付字符序列还包括回车换行字符。并且在第二分界字符序列之前,在第一字符序列之后,支付字符序列 还包括回车换行字符。In one possible implementation, after the first delimiting character sequence and before the first character sequence, the payment character sequence further includes a carriage return line feed character. And before the second delimiting character sequence, after the first character sequence, the payout character sequence further includes a carriage return line feed character.
在一种可能的实现中,第二分界字符序列与第一分界字符序列相同。In one possible implementation, the second sequence of delimiting characters is the same as the first sequence of delimiting characters.
在一种可能的实现中,支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。In one possible implementation, the visible characters in the payment character sequence are visible ASCII characters.
在一种可能的实现中,支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。关于高识别度ASCII字符的描述可参见第一方面中的描述,在此不赘述。In one possible implementation, the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters. For the description of the high-recognition ASCII characters, reference may be made to the description in the first aspect, and details are not repeated here.
在一种可能的实现中,识别支付字符序列中的第一字符序列得到第三字符序列的具体实现方式为:识别支付字符序列中的第一字符序列得到第五字符序列;将第五字符序列中的至少一个字符替换为预设的相似字符,得到第三字符序列。基于该可能的实现方式,能够对识别到的字符进行纠偏,有利于提高字符识别的准确性。In a possible implementation, the specific implementation manner of identifying the first character sequence in the payment character sequence to obtain the third character sequence is as follows: identifying the first character sequence in the payment character sequence to obtain the fifth character sequence; At least one character in is replaced with a preset similar character to obtain a third character sequence. Based on this possible implementation manner, the recognized characters can be rectified, which is beneficial to improve the accuracy of character recognition.
在一种可能的实现中,收银设备基于第三字符序列请求支付平台通过用户的支付账户进行支付的具体实现方式为:收银设备向支付平台发送支付请求,该支付请求携带订单信息和第三字符序列。In a possible implementation, the cash register device requests the payment platform to pay through the user's payment account based on the third character sequence. The specific implementation method is: the cash register device sends a payment request to the payment platform, and the payment request carries order information and the third character. sequence.
在一种可能的实现中,收银设备还可接收支付平台发送的用户的支付结果信息,以及显示该支付结果信息。In a possible implementation, the cash register device may also receive payment result information of the user sent by the payment platform, and display the payment result information.
第五方面,本申请提供了一种通信装置,该装置可以是终端设备,也可以是终端设备中的装置,或者是能够和终端设备匹配使用的装置。其中,该通信装置还可以为芯片系统。该通信装置可执行第一方面所述的方法。该通信装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的单元。该单元可以是软件和/或硬件。该通信装置执行的操作及有益效果可以参见上述第一方面所述的方法以及有益效果,重复之处不再赘述。In a fifth aspect, the present application provides a communication apparatus, and the apparatus may be a terminal device, a device in a terminal device, or a device that can be matched and used with the terminal device. Wherein, the communication device may also be a chip system. The communication device may perform the method described in the first aspect. The functions of the communication device may be implemented by hardware, or by executing corresponding software by hardware. The hardware or software includes one or more units corresponding to the above-mentioned functions. The unit may be software and/or hardware. For operations and beneficial effects performed by the communication device, reference may be made to the method and beneficial effects described in the first aspect above, and repeated details will not be repeated.
第六方面,本申请提供了一种通信装置,该装置可以是USSD网关,也可以是USSD网关中的装置,或者是能够和USSD网关匹配使用的装置。其中,该通信装置还可以为芯片系统。该通信装置可执行第二方面所述的方法。该通信装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的单元。该单元可以是软件和/或硬件。该通信装置执行的操作及有益效果可以参见上述第二方面所述的方法以及有益效果,重复之处不再赘述。In a sixth aspect, the present application provides a communication device, and the device may be a USSD gateway, a device in a USSD gateway, or a device that can be matched and used with the USSD gateway. Wherein, the communication device may also be a chip system. The communication device can perform the method of the second aspect. The functions of the communication device may be implemented by hardware, or by executing corresponding software by hardware. The hardware or software includes one or more units corresponding to the above-mentioned functions. The unit may be software and/or hardware. For operations and beneficial effects performed by the communication device, reference may be made to the method and beneficial effects described in the second aspect above, and repeated details will not be repeated.
第七方面,本申请提供了一种通信装置,该装置可以是支付平台,也可以是支付平台中的装置,或者是能够和支付平台匹配使用的装置。其中,该通信装置还可以为芯片系统。该通信装置可执行第三方面所述的方法。该通信装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的单元。该单元可以是软件和/或硬件。该通信装置执行的操作及有益效果可以参见上述第三方面所述的方法以及有益效果,重复之处不再赘述。In a seventh aspect, the present application provides a communication device, which can be a payment platform, a device in a payment platform, or a device that can be matched and used with the payment platform. Wherein, the communication device may also be a chip system. The communication device may perform the method described in the third aspect. The functions of the communication device may be implemented by hardware, or by executing corresponding software by hardware. The hardware or software includes one or more units corresponding to the above-mentioned functions. The unit may be software and/or hardware. For operations and beneficial effects performed by the communication device, reference may be made to the method and beneficial effects described in the third aspect above, and repeated details will not be repeated.
第八方面,本申请提供了一种通信装置,该装置可以是收银设备,也可以是收银设备中的装置,或者是能够和收银设备匹配使用的装置。其中,该通信装置还可以为芯片系统。该通信装置可执行第四方面所述的方法。该通信装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的单元。该单元可以是软件和/或硬件。该通信装置执行的操作及有益效果可以参见上述第四方面所述的方法以及有益效果,重复之处不再赘述。In an eighth aspect, the present application provides a communication device, which may be a cash register device, a device in a cash register device, or a device that can be matched with a cash register device. Wherein, the communication device may also be a chip system. The communication device may perform the method described in the fourth aspect. The functions of the communication device may be implemented by hardware, or by executing corresponding software by hardware. The hardware or software includes one or more units corresponding to the above-mentioned functions. The unit may be software and/or hardware. For operations and beneficial effects performed by the communication device, reference may be made to the method and beneficial effects described in the fourth aspect above, and repeated descriptions will not be repeated.
第九方面,本申请提供了一种通信装置,所述通信装置包括处理器,当所述处理器调用存储器中的计算机程序时,如第一方面~第四方面中任意一项所述的方法被执行。In a ninth aspect, the present application provides a communication device, the communication device includes a processor, when the processor calls a computer program in a memory, the method according to any one of the first to fourth aspects be executed.
第十方面,本申请提供了一种通信装置,所述通信装置包括处理器和存储器,所述存储器用于存储计算机执行指令;所述处理器用于执行所述存储器所存储的计算机执行指令,以使所述通信装置执行如第一方面~第四方面中任意一项所述的方法。In a tenth aspect, the present application provides a communication device, the communication device includes a processor and a memory, the memory is used for storing computer-executed instructions; the processor is used for executing the computer-executed instructions stored in the memory, to The communication device is caused to execute the method according to any one of the first to fourth aspects.
第十一方面,本申请提供了一种通信装置,所述通信装置包括处理器、存储器和收发器,所述收发器,用于接收信号或者发送信号;所述存储器,用于存储程序代码;所述处理器,用于从所述存储器调用所述程序代码执行如第一方面~第四方面中任意一项所述的方法。In an eleventh aspect, the present application provides a communication device, the communication device includes a processor, a memory and a transceiver, the transceiver is used for receiving a signal or sending a signal; the memory is used for storing a program code; The processor is configured to call the program code from the memory to execute the method according to any one of the first aspect to the fourth aspect.
第十二方面,本申请提供了一种通信装置,所述通信装置包括处理器和接口电路,所述接口电路,用于接收代码指令并传输至所述处理器;所述处理器运行所述代码指令以执行如第一方面~第四方面中任意一项所述的方法。In a twelfth aspect, the present application provides a communication device, the communication device includes a processor and an interface circuit, the interface circuit is configured to receive code instructions and transmit them to the processor; the processor runs the The code instructions are used to execute the method according to any one of the first aspect to the fourth aspect.
第十三方面,本申请实施例提供一种支付系统,该支付系统包括上述第五方面~第八方面提供的通信装置。In a thirteenth aspect, an embodiment of the present application provides a payment system, where the payment system includes the communication devices provided in the fifth to eighth aspects.
第十四方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储指令,当所述指令被执行时,使得如第一方面~第四方面中任意一项所述的方法被实现。In a fourteenth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store instructions, and when the instructions are executed, the instructions are as described in any one of the first to fourth aspects. The described method is implemented.
第十五方面,本申请实施例提供一种计算机程序或计算机程序产品,包括代码或指令,当代码或指令在计算机上运行时,使得计算机执行如第一方面~第四方面中任意一项所述的方法被实现。In a fifteenth aspect, the embodiments of the present application provide a computer program or computer program product, including codes or instructions, when the codes or instructions are run on a computer, the computer can execute any one of the first to fourth aspects. The described method is implemented.
图1是现有的一种移动支付的流程示意图;Fig. 1 is the schematic flow chart of a kind of existing mobile payment;
图2是本申请实施例提供的一种系统架构的示意图;2 is a schematic diagram of a system architecture provided by an embodiment of the present application;
图3是本申请实施例提供的另一种系统架构的示意图;3 is a schematic diagram of another system architecture provided by an embodiment of the present application;
图4是本申请实施例提供的一种支付方法的流程示意图;4 is a schematic flowchart of a payment method provided by an embodiment of the present application;
图5是本申请实施例提供的一种终端设备显示界面的示意图;5 is a schematic diagram of a display interface of a terminal device provided by an embodiment of the present application;
图6是本申请实施例提供的另一种支付方法的流程示意图;6 is a schematic flowchart of another payment method provided by an embodiment of the present application;
图7是本申请实施例提供的另一种终端设备显示界面的示意图;7 is a schematic diagram of a display interface of another terminal device provided by an embodiment of the present application;
图8是本申请实施例提供的一种收银设备显示界面的示意图;8 is a schematic diagram of a display interface of a cash register device provided by an embodiment of the present application;
图9是本申请实施例提供的又一种终端设备显示界面的示意图;9 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application;
图10是本申请实施例提供的又一种终端设备显示界面的示意图;10 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application;
图11是本申请实施例提供的又一种终端设备显示界面的示意图;FIG. 11 is a schematic diagram of another display interface of a terminal device provided by an embodiment of the present application;
图12是本申请实施例提供的又一种终端设备显示界面的示意图;FIG. 12 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application;
图13是本申请实施例提供的又一种终端设备显示界面的示意图;13 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application;
图14是本申请实施例提供的又一种终端设备显示界面的示意图;14 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application;
图15是本申请实施例提供的又一种终端设备显示界面的示意图;FIG. 15 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application;
图16是本申请实施例提供的又一种支付方法的流程示意图;16 is a schematic flowchart of another payment method provided by an embodiment of the present application;
图17是本申请实施例提供的又一种终端设备显示界面的示意图;17 is a schematic diagram of another display interface of a terminal device provided by an embodiment of the present application;
图18是本申请实施例提供的又一种支付方法的流程示意图;18 is a schematic flowchart of another payment method provided by an embodiment of the present application;
图19是本申请实施例提供的又一种支付方法的流程示意图;19 is a schematic flowchart of another payment method provided by an embodiment of the present application;
图20是本申请实施例提供的又一种支付方法的流程示意图;20 is a schematic flowchart of another payment method provided by an embodiment of the present application;
图21是本申请实施例提供的又一种终端设备显示界面的示意图;21 is a schematic diagram of another terminal device display interface provided by an embodiment of the present application;
图22是本申请实施例提供的一种通信装置的结构示意图;FIG. 22 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图23是本申请实施例提供的另一种通信装置的结构示意图。FIG. 23 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
下面结合附图对本申请具体实施例作进一步的详细描述。The specific embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
本申请的说明书、权利要求书及附图中的术语“第一”和“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first" and "second" in the description, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上,“至少两个(项)”是指两个或三个及三个以上,“和/或”,用于描述关联对象的对应关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。In this application, "at least one (item)" means one or more, "plurality" means two or more, "at least two (item)" means two or three and three In the above, "and/or" is used to describe the corresponding relationship between associated objects, indicating that there can be three kinds of relationships, for example, "A and/or B" can mean: only A exists, only B exists, and both A and B exist three A case where A and B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b or c, can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c" ", where a, b, c can be single or multiple.
为了提升功能手机的支付便捷性,本申请实施例提供了一种支付方法及通信装置,为了更好地理解本申请提供的方案,下面先对本申请涉及的专业术语进行介绍:In order to improve the payment convenience of the feature phone, the embodiment of this application provides a payment method and a communication device. In order to better understand the solution provided by this application, the following is an introduction to the technical terms involved in this application:
①光学字符识别(optical character recognition,OCR):光学字符识别是将图像或扫描件中的字符识别成可编辑的文本,可代替人工录入文本,能够提升业务效率。①Optical Character Recognition (OCR): Optical character recognition is to recognize characters in images or scans into editable text, which can replace manual text entry and improve business efficiency.
②非结构化补充业务数据(unstructured supplementary service data,USSD):USSD是一种新型的基于全球移动通信系统(global system for mobile communications,GSM)网络的交互式数据业务。当用户使用手机键盘输入一些网络已预先制定的数字或者符号(比如*、#等),再按拨号键就可以向网络发送一条指令,网络根据该指令选择用户需要的服务提供给用户。②Unstructured supplementary service data (USSD): USSD is a new type of interactive data service based on the global system for mobile communications (GSM) network. When the user uses the mobile phone keyboard to input some numbers or symbols (such as *, #, etc.) that have been pre-established by the network, and then presses the dial key, an instruction can be sent to the network, and the network selects the service required by the user and provides it to the user according to the instruction.
③短消息对等协议(short message peer to peer protocol,SMPP):短消息对等协议(SMPP)是适用于无线数据应用(短消息应用)与无线网络之间(移动通讯)消息传送的协议,也是短消息服务中心系统外部访问接口的标准协议之一。即SMPP是短信的收发协议,USSD网关使用SMPP与终端设备进行通讯。③Short message peer to peer protocol (SMPP): Short message peer to peer protocol (SMPP) is a protocol for message transmission between wireless data applications (short message applications) and wireless networks (mobile communication). It is also one of the standard protocols for the external access interface of the short message service center system. That is, SMPP is a protocol for sending and receiving short messages, and the USSD gateway uses SMPP to communicate with terminal devices.
④美国信息交换标准代码(American Standard Code for Information Interchange,ASCII):是基于拉丁字母的一套电脑编码系统,主要用于显示现代英语和其他西欧语言。它是最通用的信息交换标准,并等同于国际标准ISO/IEC 646。ASCII第一次以规范标准的类型发表是在1967年,最后一次更新则是在1986年,到目前为止共定义了128个字符。④ American Standard Code for Information Interchange (ASCII): It is a computer coding system based on the Latin alphabet, mainly used to display modern English and other Western European languages. It is the most common information exchange standard and is equivalent to the international standard ISO/IEC 646. ASCII was first published as a canonical standard type in 1967, last updated in 1986, and has so far defined a total of 128 characters.
下面对本申请实施例的系统架构进行介绍:The following describes the system architecture of the embodiments of the present application:
请参见图2,图2是本申请实施例提供的一种系统架构的示意图。如图2所示,该系统架构包括支付平台、终端设备、USSD网关和收银设备。Please refer to FIG. 2, which is a schematic diagram of a system architecture provided by an embodiment of the present application. As shown in Figure 2, the system architecture includes payment platform, terminal equipment, USSD gateway and cash register equipment.
支付平台:支付平台是支付应用的后台或服务器。支付平台可以为用户生成支付字符序 列,并通过USSD网关发送该支付字符序列给终端设备进行显示。支付平台还可以接收收银设备扫描支付字符序列之后发送的支付请求,并基于该支付请求通过用户的支付账户进行支付。Payment platform: The payment platform is the background or server of the payment application. The payment platform can generate the payment character sequence for the user, and send the payment character sequence to the terminal device for display through the USSD gateway. The payment platform can also receive a payment request sent by the cashier device after scanning the payment character sequence, and make payment through the user's payment account based on the payment request.
终端设备:本申请实施例中的终端设备为功能设备(如功能手机)。功能设备是指设备的功能与应用在出厂时基本已经确定,由手机厂商预置安装,很难进行扩展。功能设备可以理解为除智能手机之外的终端设备。本申请实施例中的终端设备可接收支付平台通过USSD网关发送的支付字符序列,并显示该支付字符序列给收银设备扫描,以便通过用户的支付账户完成支付。Terminal device: The terminal device in this embodiment of the present application is a functional device (eg, a feature phone). Functional devices refer to devices whose functions and applications are basically determined at the factory and are pre-installed by mobile phone manufacturers, making it difficult to expand. Functional devices can be understood as terminal devices other than smartphones. The terminal device in the embodiment of the present application can receive the payment character sequence sent by the payment platform through the USSD gateway, and display the payment character sequence to the cashier device to scan, so as to complete the payment through the user's payment account.
USSD网关:USSD网关部署于终端设备和支付平台之间。USSD网关通过USSD协议与终端设备交互,使终端设备能与支付平台进行与支付有关的交互。USSD网关可接收终端设备发送的特定数字指令或特定字符指令,并将该特定数字指令或特定字符指令转换为支付平台能够识别的消息发送给支付平台,以向支付平台请求相应的服务。USSD网关在接收到支付平台返回的响应消息之后,将该响应消息转换成终端设备能够识别的SMPP消息,并将该SMPP消息发送给终端设备,以便终端设备对SMPP消息中的信息进行显示。例如,用户使用手机键盘输入一些网络已预先制定的数字或者符号,比如*188#等,再按压手机的拨号键就可以向USSD网关发送一条指令。USSD网关将该指令转换成支付平台能识别的HTTP消息,以请求支付平台的服务。USSD网关接收到支付平台返回的HTTP消息之后,将该HTTP消息转换为SMPP消息发送给终端设备,以便终端设备对SMPP消息中的信息进行显示。USSD Gateway: The USSD Gateway is deployed between the terminal device and the payment platform. The USSD gateway interacts with the terminal device through the USSD protocol, so that the terminal device can interact with the payment platform related to payment. The USSD gateway can receive the specific digital instruction or specific character instruction sent by the terminal device, convert the specific digital instruction or specific character instruction into a message that can be recognized by the payment platform, and send it to the payment platform to request corresponding services from the payment platform. After receiving the response message returned by the payment platform, the USSD gateway converts the response message into an SMPP message that the terminal device can recognize, and sends the SMPP message to the terminal device, so that the terminal device can display the information in the SMPP message. For example, the user uses the mobile phone keyboard to input some numbers or symbols that have been pre-established by the network, such as *188#, etc., and then presses the dial key of the mobile phone to send an instruction to the USSD gateway. The USSD gateway converts the instruction into an HTTP message that the payment platform can recognize to request the payment platform's services. After receiving the HTTP message returned by the payment platform, the USSD gateway converts the HTTP message into an SMPP message and sends it to the terminal device, so that the terminal device can display the information in the SMPP message.
收银设备:收银设备用于扫描终端设备显示的支付字符序列,并识别支付字符序列中的第一字符序列,该第一字符序列包括用于指示用户的支付账户的多个可见字符。收银设备可基于识别到的字符序列向支付平台请求通过用户的支付账户进行支付。也就是说,收银设备具有扫描功能,字符识别功能以及向支付平台请求支付的功能。Cash register device: The cash register device is used to scan the payment character sequence displayed by the terminal device and identify the first character sequence in the payment character sequence, where the first character sequence includes a plurality of visible characters used to indicate the user's payment account. The cash register device may request payment through the user's payment account from the payment platform based on the recognized character sequence. That is, the cash register device has a scanning function, a character recognition function, and the function of requesting payment from the payment platform.
收银设备可以是一个设备,该设备集成了以上三种功能。例如,收银设备可以是智能手机,该智能手机包括摄像头、处理器和收发器。可通过智能手机的摄像头扫描终端设备显示的支付字符序列,并通过处理器来识别支付字符序列中的第一字符序列,并通过收发器基于识别到的字符序列向支付平台请求通过用户的支付账户进行支付。The cash register device can be a device that integrates the above three functions. For example, a checkout device may be a smartphone that includes a camera, a processor, and a transceiver. The payment character sequence displayed by the terminal device can be scanned by the camera of the smart phone, and the first character sequence in the payment character sequence can be recognized by the processor, and the transceiver can request the payment platform to pass the user's payment account based on the recognized character sequence. make a payment.
或者,收银设备可以由多个设备组成。例如,如图3所示,收银设备可以包括扫描设备、字符识别设备和收银平台。扫描设备与收银平台之间可以通过有线或无线连接,字符识别设备与收银平台之间可以通过有线或无线连接。图3以扫描设备与收银平台之间通过有线连接,字符识别设备与收银平台之间通过有线连接为例。扫描设备用于对终端设备显示的支付字符序列进行扫描,得到包括支付字符序列的图像。字符识别设备用于从该包括支付字符序列的图像中识别第一字符序列,并将识别第一字符序列得到的字符序列发送至收银平台。收银平台用于基于接收的字符序列向支付平台请求通过用户的支付账户进行支付。Alternatively, a checkout device may consist of multiple devices. For example, as shown in FIG. 3, the cash register device may include a scanning device, a character recognition device and a cash register platform. A wired or wireless connection can be used between the scanning device and the cashier platform, and a wired or wireless connection between the character recognition device and the cashier platform. Figure 3 takes the wired connection between the scanning device and the cash register platform, and the wired connection between the character recognition device and the cash register platform as an example. The scanning device is used for scanning the payment character sequence displayed by the terminal device to obtain an image including the payment character sequence. The character recognition device is used for recognizing the first character sequence from the image including the payment character sequence, and sending the character sequence obtained by recognizing the first character sequence to the cash register platform. The cash register platform is used for requesting payment through the user's payment account from the payment platform based on the received character sequence.
或者,扫描功能和字符识别功能可以集成于一个设备,向支付平台请求支付的功能单独由另一个设备实现。或者,扫描功能和向支付平台请求支付的功能可以集成于一个设备,字符识别功能单独由另一个设备实现。或者,字符识别功能和向支付平台请求支付的功能可以集成于一个设备,扫描功能单独由另一个设备实现。Alternatively, the scanning function and the character recognition function can be integrated in one device, and the function of requesting payment from the payment platform can be implemented separately by another device. Alternatively, the scanning function and the function of requesting payment from the payment platform can be integrated in one device, and the character recognition function can be implemented separately by another device. Alternatively, the character recognition function and the function of requesting payment from the payment platform can be integrated in one device, and the scanning function can be implemented separately by another device.
下面对本申请实施例提供的支付方法及通信装置进一步进行详细描述:The payment method and the communication device provided by the embodiments of the present application are further described in detail below:
请参见图4,图4是本申请实施例提供的一种支付方法的流程示意图。如图4所示,该支付方法包括如下步骤401~步骤405。其中:Please refer to FIG. 4 , which is a schematic flowchart of a payment method provided by an embodiment of the present application. As shown in FIG. 4 , the payment method includes the following steps 401 to 405 . in:
401、支付平台向USSD网关发送支付字符序列。401. The payment platform sends a payment character sequence to the USSD gateway.
本申请实施例中,支付平台生成支付字符序列之后,向USSD网关发送支付字符序列。其中,该支付字符序列包括第一字符序列,该第一字符序列包括用于指示用户的支付账户的多个可见字符。In the embodiment of the present application, after generating the payment character sequence, the payment platform sends the payment character sequence to the USSD gateway. Wherein, the payment character sequence includes a first character sequence, and the first character sequence includes a plurality of visible characters used to indicate the user's payment account.
下面对第一字符序列的三种生成方式进行介绍:The three generation methods of the first character sequence are described below:
①全随机方式。即第一字符序列包括的字符为随机字符。该随机字符是指支付平台从预设的候选字符集中随机选择的字符。或者,该随机字符是支付平台生成随机十进制数之后,基于十进制数与候选字符集中的字符之间的对应关系,确定的与随机十进制数对应的字符。其中,候选字符集中包括多个可见字符。通过全随机方式来生成第一字符序列,有利于避免第一字符序列被泄露,提高了支付的安全性。①All random way. That is, the characters included in the first character sequence are random characters. The random character refers to a character randomly selected by the payment platform from the preset candidate character set. Or, the random character is a character corresponding to the random decimal number determined based on the correspondence between the decimal number and the characters in the candidate character set after the random decimal number is generated by the payment platform. Wherein, the candidate character set includes multiple visible characters. Generating the first character sequence in a completely random manner is beneficial to avoid leakage of the first character sequence, and improves the security of payment.
举例来说,假设预设的候选字符集中包括16个可见字符。候选字符集中的16个可见字符分别为:“0127ACFHJKLPSTUX”。第一字符序列包括8个可见字符。支付平台每次从候选字符集中随机选择一个字符,总共进行8次随机选择,将8次随机选择的字符组成第一字符序列。例如,8次随机选择的字符组成的第一字符序列为:“02STAHH0”。For example, it is assumed that the preset candidate character set includes 16 visible characters. The 16 visible characters in the candidate character set are: "0127ACFHJKLPSTUX". The first character sequence includes 8 visible characters. The payment platform randomly selects one character from the candidate character set at a time, and conducts a total of 8 random selections, and the 8 randomly selected characters form the first character sequence. For example, the first character sequence consisting of 8 randomly selected characters is: "02STAHH0".
再举例来说,假设十进制数与候选字符集中的字符之间的对应关系可以如表1所示。第一字符序列包括8个可见字符。支付平台随机生成[0,15]之间的8个十进制数,支付平台随机生成的8个十进制数分别为“1,3,4,5,8,7,3,9”。基于表1所示的对应关系,支付平台确定这8个十进制数对应的字符分别为:“1,7,A,C,J,H,7,K”。因此,支付平台确定第一字符序列为:“17ACJH7K”。应理解,表1中所示的字符和十进制数之间的对应关系仅为举例,两者之间还可以有其他的映射关系,在此不一一举例。For another example, it is assumed that the correspondence between the decimal numbers and the characters in the candidate character set can be as shown in Table 1. The first character sequence includes 8 visible characters. The payment platform randomly generates 8 decimal numbers between [0, 15], and the 8 decimal numbers randomly generated by the payment platform are "1, 3, 4, 5, 8, 7, 3, 9" respectively. Based on the correspondence shown in Table 1, the payment platform determines that the characters corresponding to these 8 decimal numbers are: "1, 7, A, C, J, H, 7, K". Therefore, the payment platform determines that the first character sequence is: "17ACJH7K". It should be understood that the correspondence between the characters and the decimal numbers shown in Table 1 is only an example, and there may be other mapping relationships between the two, which are not listed here.
表1Table 1
字符character | 十进制数Decimal |
00 | 00 |
11 | 11 |
22 | 22 |
77 | 33 |
AA | 44 |
CC | 55 |
FF | 66 |
HH | 77 |
JJ | 88 |
KK | 99 |
LL | 1010 |
PP | 1111 |
SS | 1212 |
TT | 1313 |
UU | 1414 |
XX | 1515 |
②无随机方式。可选的,支付平台可以基于用户的手机号码和/或第一时间生成第一字符序列。即第一字符序列包括的字符为基于用户的手机号码和/或第一时间确定的字符。其中,第一时间为第一字符序列的生成时间。第一时间可以是日期和/或时刻。例如,支付平台在2020 年11月10日12:00生成第一字符序列。那么第一时间可以为2020年11月10日,或11月10日,或12:00,或2020年11月10日12:00。②There is no random method. Optionally, the payment platform may generate the first character sequence based on the user's mobile phone number and/or the first time. That is, the characters included in the first character sequence are characters determined based on the user's mobile phone number and/or the first time. The first time is the generation time of the first character sequence. The first time may be a date and/or time. For example, the payment platform generates the first character sequence at 12:00 on November 10, 2020. Then the first time can be November 10, 2020, or November 10, or 12:00, or November 10, 2020 12:00.
支付平台基于用户的手机号码和/或第一时间生成第一字符序列的具体实现方式可以为:支付平台基于用户的手机号码和/或第一时间确定十进制数序列,并基于十进制数与字符之间的对应关系,将十进制数序列映射为字符序列,并确定映射得到的字符序列为第一字符序列。基于用户的手机号码和/或第一时间生成第一字符序列来生成第一字符序列,有利于避免为不同用户生成相同的第一字符序列,提高了支付安全性。The specific implementation manner in which the payment platform generates the first character sequence based on the user's mobile phone number and/or the first time may be as follows: the payment platform determines the decimal number sequence based on the user's mobile phone number and/or the first time, and determines the decimal number sequence based on the user's mobile phone number and/or the first time, and determines the decimal number sequence based on the combination of the decimal number and the character. The corresponding relationship between the decimal numbers is mapped to the character sequence, and the character sequence obtained by the mapping is determined as the first character sequence. The first character sequence is generated based on the user's mobile phone number and/or the first character sequence generated at the first time, which is beneficial to avoid generating the same first character sequence for different users and improves payment security.
举例来说,假设字符与十进制数之间的对应关系如上表1所示。用户的手机号码为:“13812345678”。第一字符序列的生成时间为11月10日。支付平台基于用户的手机号码和第一字符序列的生成时间得到的十进制数序列为“1,3,8,1,2,3,4,5,6,7,8,11,10”。基于表1所示的对应关系,支付平台确定这13个十进制数对应的字符分别为:“1,7,J,1,2,7,A,C,F,H,J,P,L”。因此,支付平台确定第一字符序列为:“17J127ACFHJPL”。For example, assume that the correspondence between characters and decimal numbers is as shown in Table 1 above. The user's mobile phone number is: "13812345678". The generation time of the first character sequence is November 10th. The decimal number sequence obtained by the payment platform based on the user's mobile phone number and the generation time of the first character sequence is "1, 3, 8, 1, 2, 3, 4, 5, 6, 7, 8, 11, 10". Based on the correspondence shown in Table 1, the payment platform determines that the characters corresponding to these 13 decimal numbers are: "1, 7, J, 1, 2, 7, A, C, F, H, J, P, L" . Therefore, the payment platform determines that the first character sequence is: "17J127ACFHJPL".
③部分随机方式。也就是说,第一字符序列中包括的一些字符是随机字符,另一些字符不是随机字符。例如,第一字符序列包括随机字符和基于用户的手机号码和/或第一时间确定的字符。通过部分随机方式来生成第一字符序列,有利于避免第一字符序列被泄露,且有利于避免为不同用户生成相同的第一字符序列,提高了支付安全性。③ Partially random way. That is, some of the characters included in the first character sequence are random characters, and other characters are not random characters. For example, the first sequence of characters includes random characters and characters determined based on the user's mobile phone number and/or the first time. Generating the first character sequence in a partially random manner is beneficial to avoid leakage of the first character sequence, and is beneficial to avoid generating the same first character sequence for different users, thereby improving payment security.
举例来说,假设字符与十进制数之间的对应关系如上表1所示。用户的手机号码为:“13812345678”。第一字符序列的生成时间为11月10日。支付平台基于用户的手机号码和第一字符序列的生成时间得到的十进制数序列为“1,3,8,1,2,3,4,5,6,7,8,11,10”。基于表1所示的对应关系,支付平台确定这13个十进制数对应的字符分别为:“1,7,J,1,2,7,A,C,F,H,J,P,L”。支付平台再从候选字符集中随机选择3个字符。例如,随机选择的字符为“TXU”。支付平台生成的第一字符序列可以为:“17J127ACFHJPLTXU”。其中,随机字符可以在非随机字符之前,或可以在非随机字符之后。随机字符也可以是支付平台生成随机十进制数之后,基于随机十进制数与候选字符集中的字符之间的对应关系,确定的与随机十进制数对应的字符。随机字符的获取方式可参见前述说明,再此不赘述。For example, assume that the correspondence between characters and decimal numbers is as shown in Table 1 above. The user's mobile phone number is: "13812345678". The generation time of the first character sequence is November 10th. The decimal number sequence obtained by the payment platform based on the user's mobile phone number and the generation time of the first character sequence is "1, 3, 8, 1, 2, 3, 4, 5, 6, 7, 8, 11, 10". Based on the correspondence shown in Table 1, the payment platform determines that the characters corresponding to these 13 decimal numbers are: "1, 7, J, 1, 2, 7, A, C, F, H, J, P, L" . The payment platform then randomly selects 3 characters from the candidate character set. For example, the randomly chosen character is "TXU". The first character sequence generated by the payment platform may be: "17J127ACFHJPLTXU". Wherein, the random characters may precede the non-random characters, or may follow the non-random characters. The random character can also be a character corresponding to the random decimal number determined based on the correspondence between the random decimal number and the characters in the candidate character set after the random decimal number is generated by the payment platform. For the acquisition method of random characters, please refer to the foregoing description, and will not be repeated here.
本申请实施例中,支付平台可以建立该第一字符序列与用户的支付账户的标识之间的对应关系,这样就可以通过第一字符序列来指示用户的支付账户。其中,用户的支付账户的标识可以是用户的手机号码,或用户的支付账户的账号,或用户的身份证信息,或用户的即时通讯应用的账号,或用户的邮箱号等。In this embodiment of the present application, the payment platform can establish a correspondence between the first character sequence and the identifier of the user's payment account, so that the user's payment account can be indicated by the first character sequence. The identifier of the user's payment account may be the user's mobile phone number, or the account number of the user's payment account, or the user's ID card information, or the user's instant messaging application account, or the user's mailbox number, etc.
举例来说,支付平台建立的第一字符序列与用户的支付账户的标识之间的对应关系可以如下表2所示。其中,第一字符序列1“0127STUX”与支付账户的标识“15232204938”对应。第一字符序列2“1227STUA”与支付账户的标识“15002200938”对应。第一字符序列3“2227STUC”与支付账户的标识“13032200933”对应。For example, the correspondence between the first character sequence established by the payment platform and the identifier of the user's payment account may be as shown in Table 2 below. Wherein, the first character sequence 1 "0127STUX" corresponds to the identification "15232204938" of the payment account. The first character sequence 2 "1227STUA" corresponds to the identification "15002200938" of the payment account. The first character sequence 3 "2227STUC" corresponds to the identification "13032200933" of the payment account.
表2Table 2
第一字符序列first character sequence | 支付账户的标识Identification of the payment account |
0127STUX0127STUX | 1523220493815232204938 |
1227STUA1227STUA | 1500220093815002200938 |
2227STUC2227STUC | 1303220093313032200933 |
在一种可能的实现中,支付平台存储有字符与十进制数之间的对应关系,支付平台建立第一字符序列与用户的支付账户的标识之间的对应关系的具体实现方式可以是:支付平台建立第一字符序列对应的十进制数序列与用户的支付账户的标识之间的对应关系。由于第一字 符序列与十进制数序列之间具有对应关系,十进制数序列与用户的支付账户的标识之间具有对应关系。因此,可以认为建立第一字符序列对应的十进制数序列与用户的支付账户的标识之间的对应关系,相当于建立了第一字符序列与用户的支付账户的标识之间的对应关系。In a possible implementation, the payment platform stores the correspondence between characters and decimal numbers, and the specific implementation method for the payment platform to establish the correspondence between the first character sequence and the identifier of the user's payment account may be: the payment platform A correspondence relationship between the decimal number sequence corresponding to the first character sequence and the identifier of the user's payment account is established. Since there is a corresponding relationship between the first character sequence and the decimal number sequence, there is a corresponding relationship between the decimal number sequence and the identifier of the user's payment account. Therefore, it can be considered that establishing the correspondence between the decimal number sequence corresponding to the first character sequence and the identifier of the user's payment account is equivalent to establishing the correspondence between the first character sequence and the identifier of the user's payment account.
举例来说,假设字符与十进制数之间的对应关系如表1所示。第一字符序列1“0127STUX”对应的十进制数序列1为“0,1,2,3,12,13,14,15”。第一字符序列2“1227STUA”对应的十进制数序列2为“1,2,2,3,12,13,14,4”。第一字符序列3“2227STUC”对应的十进制数序列3为“2,2,2,3,12,13,14,5”。For example, suppose the correspondence between characters and decimal numbers is shown in Table 1. The decimal number sequence 1 corresponding to the first character sequence 1 "0127STUX" is "0, 1, 2, 3, 12, 13, 14, 15". The decimal number sequence 2 corresponding to the first character sequence 2 "1227STUA" is "1, 2, 2, 3, 12, 13, 14, 4". The decimal number sequence 3 corresponding to the first character sequence 3 "2227STUC" is "2, 2, 2, 3, 12, 13, 14, 5".
如下表3所示,支付平台通过建立十进制数序列1与用户1的支付账户的标识“15232204938”之间的对应关系,来建立第一字符序列1与用户1的支付账户的标识“15232204938”之间的对应关系。支付平台通过十进制数序列2与用户2的支付账户的标识“15002200938”之间的对应关系,来建立第一字符序列2与用户2的支付账户的标识“15002200938”之间的对应关系。支付平台通过建立十进制数序列3与用户3的支付账户的标识“13032200933”之间的对应关系,来建立第一字符序列3与用户3的支付账户的标识“13032200933”之间具有对应关系。As shown in Table 3 below, the payment platform establishes the relationship between the first character sequence 1 and the identification "15232204938" of the payment account of user 1 by establishing the correspondence between the decimal number sequence 1 and the identification "15232204938" of the payment account of user 1. Correspondence between. The payment platform establishes the correspondence between the first character sequence 2 and the identifier "15002200938" of the user 2's payment account through the correspondence between the decimal number sequence 2 and the identifier "15002200938" of the user 2's payment account. The payment platform establishes a corresponding relationship between the first character sequence 3 and the identification "13032200933" of the payment account of user 3 by establishing the corresponding relationship between the decimal number sequence 3 and the identification "13032200933" of the payment account of user 3.
支付平台接收到收银设备发送的对支付字符序列扫描得到的第三字符序列之后,支付平台基于字符与十进制数之间的对应关系确定第三字符序列对应的十进制数序列。支付平台基于预先存储的十进制数序列与支付账户的标识之间的对应关系以及第三字符序列对应的十进制数序列,就能确定用户的支付账户。例如,支付平台接收到收银设备发送的支付请求,该支付请求携带第三字符序列“0127STUX”。基于表1所示的字符与十进制数之间的对应关系,支付平台确定第三字符序列“0127STUX”对应的十进制数序列为“0,1,2,3,12,13,14,15”。支付平台基于下表3所示的对应关系,确定十进制数序列“0,1,2,3,12,13,14,15”对应支付账户的标识“15232204938”。支付平台通过“15232204938”标识的支付账户进行支付。After the payment platform receives the third character sequence obtained by scanning the payment character sequence sent by the cash register device, the payment platform determines the decimal number sequence corresponding to the third character sequence based on the correspondence between the characters and the decimal numbers. The payment platform can determine the user's payment account based on the correspondence between the pre-stored decimal number sequence and the identification of the payment account and the decimal number sequence corresponding to the third character sequence. For example, the payment platform receives a payment request sent by the cash register device, and the payment request carries the third character sequence "0127STUX". Based on the correspondence between characters and decimal numbers shown in Table 1, the payment platform determines that the decimal number sequence corresponding to the third character sequence "0127STUX" is "0, 1, 2, 3, 12, 13, 14, 15". Based on the corresponding relationship shown in Table 3 below, the payment platform determines that the sequence of decimal numbers "0, 1, 2, 3, 12, 13, 14, 15" corresponds to the identification "15232204938" of the payment account. The payment platform makes payment through the payment account identified by "15232204938".
表3table 3
十进制数序列sequence of decimal numbers |
支付账户的标识Identification of the |
0,1,2,3,12,13,14,150, 1, 2, 3, 12, 13, 14, 15 | 1523220493815232204938 |
1,2,2,3,12,13,14,41, 2, 2, 3, 12, 13, 14, 4 | 1500220093815002200938 |
2,2,2,3,12,13,14,52, 2, 2, 3, 12, 13, 14, 5 | 1303220093313032200933 |
402、USSD网关向用户的终端设备发送该支付字符序列。402. The USSD gateway sends the payment character sequence to the terminal device of the user.
本申请实施例中,USSD网关接收支付平台发送的支付字符序列之后,向用户的终端设备发送该支付字符序列。In the embodiment of the present application, after receiving the payment character sequence sent by the payment platform, the USSD gateway sends the payment character sequence to the user's terminal device.
在一种可能的实现中,支付平台通过HTTP消息向USSD网关发送支付字符序列,即支付平台将支付字符序列承载于HTTP消息中发送至USSD网关。USSD网关接收该HTTP消息之后,将该HTTP消息转换为SMPP消息,并通过该SMPP消息向用户的终端设备发送该支付字符序列,即USSD网关将支付字符序列承载于SMPP消息中发送至终端设备。In a possible implementation, the payment platform sends the payment character sequence to the USSD gateway through an HTTP message, that is, the payment platform carries the payment character sequence in an HTTP message and sends it to the USSD gateway. After receiving the HTTP message, the USSD gateway converts the HTTP message into an SMPP message, and sends the payment character sequence to the user's terminal device through the SMPP message, that is, the USSD gateway carries the payment character sequence in the SMPP message and sends it to the terminal device.
403、终端设备显示该支付字符序列供收银设备扫描。403. The terminal device displays the payment character sequence for the cashier device to scan.
本申请实施例中,终端设备接收支付字符序列之后,显示该支付字符序列供收银设备扫描。In this embodiment of the present application, after receiving the payment character sequence, the terminal device displays the payment character sequence for the cashier device to scan.
例如,假设支付字符序列中的第一字符序列为“0127STUX”。终端设备显示的支付字符序列可如图5所示。可选的,如图5所示,终端设备还可显示用于提示用户将支付字符序列展示给商家的提示信息。For example, assume that the first character sequence in the payout character sequence is "0127STUX". The payment character sequence displayed by the terminal device may be as shown in FIG. 5 . Optionally, as shown in FIG. 5 , the terminal device may also display prompt information for prompting the user to present the payment character sequence to the merchant.
404、收银设备扫描用户的终端设备显示的支付字符序列,识别该支付字符序列中的第一字符序列得到第三字符序列。404. The cash register device scans the payment character sequence displayed by the user's terminal device, and identifies the first character sequence in the payment character sequence to obtain the third character sequence.
本申请实施例中,收银设备扫描用户的终端设备显示的支付字符序列可以得到包括支付字符序列的图像,收银设备对该图像中的第一字符序列进行识别,得到第三字符序列。如果收银设备对第一字符序列识别准确,则第三字符序列与第一字符序列相同。如果收银设备对第一字符序列识别不准确,则第三字符序列与第一字符序列不相同。In the embodiment of the present application, the cash register device scans the payment character sequence displayed by the user's terminal device to obtain an image including the payment character sequence, and the cash register device recognizes the first character sequence in the image to obtain the third character sequence. If the cash register device correctly recognizes the first character sequence, the third character sequence is the same as the first character sequence. If the first character sequence is inaccurately recognized by the cash register device, the third character sequence is different from the first character sequence.
在一种可能的实现方式,收银设备识别该支付字符序列中的第一字符序列得到第三字符序列的具体实施方式为:识别支付字符序列中的第一字符序列得到第五字符序列;将第五字符序列中的至少一个字符替换为预设的相似字符,得到第三字符序列。基于该可能的实现方式,能够对识别到的字符进行纠偏,有利于提高字符识别的准确性。In a possible implementation manner, the specific implementation of the cash register device identifying the first character sequence in the payment character sequence to obtain the third character sequence is as follows: identifying the first character sequence in the payment character sequence to obtain the fifth character sequence; At least one character in the five-character sequence is replaced with a preset similar character to obtain a third character sequence. Based on this possible implementation manner, the recognized characters can be rectified, which is beneficial to improve the accuracy of character recognition.
例如,假设第一字符序列为:“02STLSHTA7S2”。收银设备识别该第一字符序列得到第五字符序列为:“02STLSHTA7SZ”。候选字符集中的字符如上表1所示。由于候选字符集中不存在大写字母“Z”,且候选字符集中存在与大写字母“Z”相似的数字“2”。因此,收银设备将第五字符序列中的最后一个字符“Z”替换为数字“2”,得到第三字符序列为“02STLSHTA7S2”。For example, suppose the first character sequence is: "02STLSHTA7S2". The cash register device recognizes the first character sequence and obtains the fifth character sequence: "02STLSHTA7SZ". The characters in the candidate character set are shown in Table 1 above. Since the capital letter "Z" does not exist in the candidate character set, and the number "2" similar to the capital letter "Z" exists in the candidate character set. Therefore, the cash register device replaces the last character "Z" in the fifth character sequence with the number "2", and the third character sequence is obtained as "02STLSHTA7S2".
405、收银设备基于第三字符序列请求支付平台通过用户的支付账户进行支付。405. The cash register device requests the payment platform to make payment through the user's payment account based on the third character sequence.
本申请实施例中,收银设备识别该支付字符序列中的第一字符序列得到第三字符序列之后,基于第三字符序列请求支付平台通过用户的支付账户进行支付。In the embodiment of the present application, after the cash register device recognizes the first character sequence in the payment character sequence and obtains the third character sequence, it requests the payment platform to make payment through the user's payment account based on the third character sequence.
在一种可能的实现中,收银设备基于第三字符序列请求支付平台通过用户的支付账户进行支付的具体实现方式为:收银设备向支付平台发送支付请求,该支付请求携带第三字符序列和订单信息。支付平台接收到该支付请求之后,基于该第三字符序列确定用户的支付账户的标识;支付平台基于该订单信息和用户的支付账户进行支付。订单信息可包括收款方的支付账户的标识和订单金额。订单信息还可包括收款方名称、订单号、交易时间或交易描述等。In a possible implementation, the cash register device requests the payment platform to pay through the user's payment account based on the third character sequence. The specific implementation method is: the cash register device sends a payment request to the payment platform, and the payment request carries the third character sequence and the order. information. After receiving the payment request, the payment platform determines the identifier of the user's payment account based on the third character sequence; the payment platform performs payment based on the order information and the user's payment account. The order information may include the identification of the payee's payment account and the order amount. The order information may also include the payee name, order number, transaction time or transaction description, etc.
举例来说,支付平台通过USSD网关向终端设备发送支付字符序列。该支付字符序列中的第一字符序列为“0127STUX”。终端设备接收该支付字符序列之后,显示该支付字符序列。终端设备显示的支付字符序列如图5所示。收银设备扫描该支付字符序列,识别第一字符序列得到的第三字符序列为“0127STUX”。收银设备向支付平台发送支付请求,该支付请求携带第三字符序列“0127STUX”、收款方的支付账户的标识和订单金额10元。支付平台接收该支付请求之后,基于上述表2的对应关系和第三字符序列,确定用户的支付账户的标识为“15232204938”。支付平台从标识为“15232204938”的支付账户中转移10元钱至收款方的支付账户。For example, the payment platform sends the payment character sequence to the terminal device through the USSD gateway. The first character sequence in the payout character sequence is "0127STUX". After receiving the payment character sequence, the terminal device displays the payment character sequence. The payment character sequence displayed by the terminal device is shown in Figure 5. The cash register device scans the payment character sequence, and the third character sequence obtained by identifying the first character sequence is "0127STUX". The cash register device sends a payment request to the payment platform, and the payment request carries the third character sequence "0127STUX", the identifier of the payee's payment account and the order amount of 10 yuan. After receiving the payment request, the payment platform determines the identifier of the user's payment account as "15232204938" based on the corresponding relationship in Table 2 and the third character sequence. The payment platform transfers 10 yuan from the payment account identified as "15232204938" to the payee's payment account.
本申请实施例中,支付字符序列可只包括第一字符序列,此时,支付字符序列等于第一字符序列。或者,支付字符序列除包括第一字符序列之外还可包括其他字符序列。下面对支付字符序列除包括第一字符序列之外还可包括其他字符序列的情况进行说明:In this embodiment of the present application, the payment character sequence may only include the first character sequence, and in this case, the payment character sequence is equal to the first character sequence. Alternatively, the payout character sequence may include other character sequences in addition to the first character sequence. The following describes the case where the payment character sequence may include other character sequences in addition to the first character sequence:
①支付字符序列还包括第二字符序列,该第二字符序列包括至少一个可见字符,该第二字符序列用于对第一字符序列进行校验。① The payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence.
请参见图6,图6是本申请实施例提供的另一种支付方法的流程示意图。如图6所示,该支付方法包括步骤601~步骤607。步骤601~步骤604和步骤607的具体实现方式与上述步骤401~步骤405的具体实现方式相同,在此赘述。其中:605、收银设备识别支付字符序列中的第二字符序列得到第四字符序列。606、收银设备基于第四字符序列校验第三字符序列。在校验结果为通过的情况下,执行步骤607,即收银设备基于第三字符序列请求支付平台通 过用户的支付账户进行支付。通过执行步骤605和步骤606,收银设备能够确定对第一字符序列是否识别准确。Please refer to FIG. 6, which is a schematic flowchart of another payment method provided by an embodiment of the present application. As shown in FIG. 6 , the payment method includes steps 601 to 607 . The specific implementation manners of steps 601 to 604 and step 607 are the same as the specific implementation manners of the above-mentioned steps 401 to 405, and are repeated here. Wherein: 605, the cash register device recognizes the second character sequence in the payment character sequence to obtain a fourth character sequence. 606. The cash register device checks the third character sequence based on the fourth character sequence. In the case that the verification result is passed, step 607 is executed, that is, the cash register device requests the payment platform to make payment through the user's payment account based on the third character sequence. By performing steps 605 and 606, the cash register device can determine whether the identification of the first character sequence is accurate.
在一种可能的实现中,在校验结果为不通过的情况下,收银设备提示第三字符序列中识别错误的字符的位置。这样收银员就可手动对识别错误的字符进行快速修改。或者,在校验第三字符序列不通过的情况下,收银设备也可以只提示校验第三字符序列不通过,不提示第三字符序列中识别错误的字符的位置。收银员可通过收银设备对支付字符序列进行重新扫描。In a possible implementation, in the case that the verification result is unsuccessful, the cash register device prompts the position of the incorrectly recognized character in the third character sequence. This allows the cashier to manually make quick corrections to misrecognized characters. Alternatively, in the case that the verification of the third character sequence fails, the cash register device may only prompt that the verification of the third character sequence fails, and does not prompt the position of the incorrectly identified character in the third character sequence. The cashier can rescan the payment character sequence through the cash register device.
其中,第二字符序列是基于第一字符序列得到的。可选的,第二字符序列对应的二进制数序列由第一字符序列中的各个字符对应的任意一位二进制数组成。第二字符序列对应的二进制数序列是指第二字符序列中的字符的二进制数组成的序列。例如,第二字符序列对应的二进制数序列由第一字符序列中的各个字符对应的第一位二进制数组成。或者,第二字符序列对应的二进制数序列由第一字符序列中的各个字符对应的第二位二进制数组成。或者,第二字符序列对应的二进制数序列由第一字符序列中的各个字符对应的第三位二进制数组成。或者,第二字符序列对应的二进制数序列由第一字符序列中的各个字符对应的最后一位二进制数组成。Wherein, the second character sequence is obtained based on the first character sequence. Optionally, the binary number sequence corresponding to the second character sequence is composed of any binary number corresponding to each character in the first character sequence. The binary number sequence corresponding to the second character sequence refers to a sequence composed of binary numbers of characters in the second character sequence. For example, the binary number sequence corresponding to the second character sequence consists of the first binary number corresponding to each character in the first character sequence. Or, the binary number sequence corresponding to the second character sequence consists of the second binary number corresponding to each character in the first character sequence. Or, the binary number sequence corresponding to the second character sequence consists of the third binary number corresponding to each character in the first character sequence. Or, the binary number sequence corresponding to the second character sequence consists of the last binary number corresponding to each character in the first character sequence.
举例来说,支付平台和收银设备存储了字符与二进制数之间的对应关系,该对应关系如下表4所示。假设支付平台生成的第一字符序列为“1227STUA”。基于表4所示的对应关系,第一字符序列的各个字符的二进制数如下表5的第二行所示。如下表5的第三行所示,第一字符序列的各个字符的最后一位二进制组成的二进制序列为“1001 0100”,即第二字符序列对应的二进制数序列为“1001 0100”。因此,第二字符序列为“KA”。For example, the payment platform and the cash register store the correspondence between characters and binary numbers, and the correspondence is shown in Table 4 below. Suppose the first character sequence generated by the payment platform is "1227STUA". Based on the correspondence shown in Table 4, the binary numbers of each character of the first character sequence are shown in the second row of Table 5 below. As shown in the third row of Table 5 below, the binary sequence composed of the last digit of each character of the first character sequence is "1001 0100", that is, the binary sequence corresponding to the second character sequence is "1001 0100". Therefore, the second character sequence is "KA".
表4Table 4
字符character | 二进制数binary number |
00 | 00000000 |
11 | 00010001 |
22 | 00100010 |
77 | 00110011 |
AA | 01000100 |
CC | 01010101 |
FF | 01100110 |
HH | 01110111 |
JJ | 10001000 |
KK | 10011001 |
LL | 10101010 |
PP | 10111011 |
SS | 11001100 |
TT | 11011101 |
UU | 11101110 |
XX | 11111111 |
表5table 5
支付平台生成支付字符序列之后,通过USSD网关发送支付字符序列给终端设备。终端设备接收该支付字符序列之后,显示该支付字符序列。例如,终端设备显示的支付字符序列如图7所示。支付字符序列中的第二字符序列可以在第一字符序列之前,或者,支付字符序列中的第二字符序列可以在第一字符序列之后。图7以第二字符序列在第一字符序列之后为例。收银设备扫描终端设备显示的支付字符序列,识别第一字符序列“1227STUA”得到的第三字符序列为“L227STUA”,识别第二字符序列得到的第四字符序列为“KA”。收银设备基于第四字符序列校验第三字符序列。如下表6的第三行所示,第三字符序列的各个字符的最后一位二进制组数成的二进制数序列为“0001 0100”。收银设备将该二进制数序列“0001 0100”映射为第六字符序列“1A”。而第四字符序列为“KA”。由于第六字符序列和第四字符序列不相同,收银设备确定对第三字符序列校验不通过。由于第三字符序列中的第一个字符的最后一位二进制数与第四字符序列的第一个二进制数不相同,收银设备确定对第三字符序列中的第一个字符识别错误。收银设备可输出提示信息,该提示信息提示第三字符序列中的第一个字符识别错误。该提示信息还可提示对第三字符序列中的第一个字符进行修改。例如,收银设备输出的提示信息可如图8所示。收银员可通过键盘手动输入识别错误的字符。或者,收银员也可以通过收银设备重新扫描终端设备显示的支付字符序列。After the payment platform generates the payment character sequence, it sends the payment character sequence to the terminal device through the USSD gateway. After receiving the payment character sequence, the terminal device displays the payment character sequence. For example, the payment character sequence displayed by the terminal device is shown in Figure 7. The second sequence of characters in the sequence of payout characters may precede the first sequence of characters, or the second sequence of characters in the sequence of payout characters may precede the first sequence of characters. FIG. 7 takes as an example that the second character sequence follows the first character sequence. The cash register device scans the payment character sequence displayed by the terminal device, identifies the first character sequence "1227STUA" and obtains the third character sequence as "L227STUA", and identifies the fourth character sequence obtained from the second character sequence as "KA". The cash register device verifies the third character sequence based on the fourth character sequence. As shown in the third row of Table 6 below, the binary number sequence formed by the last binary group of each character of the third character sequence is "0001 0100". The cash register device maps the binary number sequence "0001 0100" to the sixth character sequence "1A". And the fourth character sequence is "KA". Since the sixth character sequence and the fourth character sequence are different, the cash register device determines that the verification of the third character sequence fails. Since the last binary digit of the first character in the third character sequence is different from the first binary digit of the fourth character sequence, the cash register device determines that the first character in the third character sequence is incorrectly recognized. The cash register device may output prompt information indicating that the first character in the third character sequence is incorrectly recognized. The prompt information can also prompt to modify the first character in the third character sequence. For example, the prompt information output by the cash register device may be as shown in FIG. 8 . The cashier can manually enter the misidentified characters through the keyboard. Alternatively, the cashier can also rescan the payment character sequence displayed by the terminal device through the cash register device.
表6Table 6
在一种可能的实现中,收银设备中的字符与二进制数之间的对应关系和/或字符与十进制数的对应关系可以是收银设备出厂前预置在收银设备中的。或者,收银设备可以通过软件升级来更新其存储的字符与二进制数之间的对应关系和/或字符与十进制数的对应关系。或者,支付平台可向收银设备推送新的字符与二进制数之间的对应关系和/或新的字符与十进制数的对应关系。In a possible implementation, the correspondence between characters and binary numbers and/or the correspondence between characters and decimal numbers in the cash register device may be preset in the cash register device before leaving the factory. Alternatively, the cash register device may update the stored correspondence between characters and binary numbers and/or the correspondence between characters and decimal numbers through software upgrade. Alternatively, the payment platform may push a new correspondence between characters and binary numbers and/or a new correspondence between characters and decimal numbers to the cash register device.
在一种可能的实现中,支付平台生成第一字符序列和第二字符序列之后,也可以建立第一字符序列和第二字符序列与用户的支付账户的标识之间的对应关系,这样就可以通过第一字符序列和第二字符序列来指示用户的支付账户。收银设备识别第一字符序列得到第三字符序列,以及识别第二字符序列得到第四字符序列之后,基于第三字符序列和第四字符序列请 求支付平台通过用户的支付账户进行支付。In a possible implementation, after the payment platform generates the first character sequence and the second character sequence, the corresponding relationship between the first character sequence and the second character sequence and the identifier of the user's payment account can also be established, so that the The user's payment account is indicated by the first character sequence and the second character sequence. After identifying the first character sequence to obtain the third character sequence, and identifying the second character sequence to obtain the fourth character sequence, the cash register device requests the payment platform to pay through the user's payment account based on the third character sequence and the fourth character sequence.
举例来说,支付平台生成第一字符序列为“1227STUA”,第二字符序列为“KA”。支付平台建立“1227STUAKA”与用户1的支付账户的标识“15232204938”之间的对应关系。支付平台通过USSD网关发送支付字符序列给终端设备进行显示。例如,终端设备显示的支付字符序列如图7所示。收银设备扫描终端设备展示的支付字符序列,识别第一字符序列得到第三字符序列为“1227STUA”,识别第二字符序列得到第四字符序列为“KA”。收银设备基于第四字符序列对第三字符序列进行校验。收银设备确定对第三字符序列校验通过之后,收银设备向支付平台发送支付请求,该支付请求中携带第三字符序列“1227STUA”和第四字符序列“KA”。支付平台基于预存的对应关系,确定“1227STUAKA”对应用户1的支付账户的标识“15232204938”。支付平台通过“15232204938”标识的支付账户进行支付。For example, the payment platform generates the first character sequence as "1227STUA" and the second character sequence as "KA". The payment platform establishes a correspondence between "1227STUAKA" and the identifier "15232204938" of the payment account of user 1. The payment platform sends the payment character sequence to the terminal device for display through the USSD gateway. For example, the payment character sequence displayed by the terminal device is shown in Figure 7. The cash register device scans the payment character sequence displayed by the terminal device, recognizes the first character sequence and obtains the third character sequence as "1227STUA", and recognizes the second character sequence and obtains the fourth character sequence as "KA". The cash register device verifies the third character sequence based on the fourth character sequence. After the cash register device determines that the verification of the third character sequence is passed, the cash register device sends a payment request to the payment platform, and the payment request carries the third character sequence "1227STUA" and the fourth character sequence "KA". Based on the pre-stored correspondence, the payment platform determines that "1227STUAKA" corresponds to the identifier "15232204938" of the payment account of user 1. The payment platform makes payment through the payment account identified by "15232204938".
②在第一字符序列之前,支付字符序列还包括第一分界字符序列,第一分界字符序列包括至少一个可见字符。通过在第一字符序列之前显示第一分界字符序列,有利于提高收银设备识别第一字符序列的速度和准确度。②Before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character. By displaying the first delimiting character sequence before the first character sequence, it is beneficial to improve the speed and accuracy of the cash register device recognizing the first character sequence.
其中,第一分界字符序列中的字符可以为“-”、“—”、“=”、“+”、“*”、“#”等可见符号。例如,如图9所示,支付字符序列中包括第一分界字符序列+第一字符序列+第二字符序列。其中,第一分界字符序列为“**”,第一字符序列为“1227STUA”,第二字符序列为“KA”。第一分界字符序列用于收银设备确定第一字符序列的位置。收银设备识别到“**”之后,就能确定“**”之后的字符序列中包括第一字符序列。第一分界字符序列中的字符可以相同或不同。图9以第一分界字符序列中的字符相同为例。The characters in the first delimiting character sequence may be visible symbols such as "-", "-", "=", "+", "*", "#", etc. For example, as shown in FIG. 9 , the payment character sequence includes the first delimiting character sequence+the first character sequence+the second character sequence. Wherein, the first delimiting character sequence is "**", the first character sequence is "1227STUA", and the second character sequence is "KA". The first delimiting character sequence is used by the cash register device to determine the position of the first character sequence. After the cash register device recognizes "**", it can determine that the character sequence after "**" includes the first character sequence. The characters in the first delimiting character sequence may be the same or different. FIG. 9 takes as an example that the characters in the first delimiting character sequence are the same.
在一种可能的实现中,在第一分界字符序列之后,在第一字符序列之前,支付字符序列还包括回车换行字符。回车换行字符为不可见字符。也就是说,支付字符序列中包括的字符不全是可见字符。通过在第一分界字符序列之后,在第一字符序列之前,增加回车换行字符,能够使第一分界字符序列和第一字符序列不在同一行显示,这样有利于提高收银设备识别第一字符序列的速度和准确度。In one possible implementation, after the first delimiting character sequence and before the first character sequence, the payment character sequence further includes a carriage return line feed character. The carriage return and line feed characters are invisible characters. That is, not all characters included in the payout character sequence are visible characters. By adding a carriage return line feed character after the first character sequence and before the first character sequence, the first character sequence and the first character sequence can be displayed on different lines, which is beneficial to improve the recognition of the first character sequence by the cashier device. speed and accuracy.
例如,如图10所示,支付字符序列中包括第一分界字符序列+回车换行字符+第一字符序列+第二字符序列。第一分界字符序列为“**********”,第一字符序列为“1227STUA”,第二字符序列为“KA”。For example, as shown in FIG. 10 , the payment character sequence includes a first delimitation character sequence + a carriage return line feed character + a first character sequence + a second character sequence. The first delimiting character sequence is "**********", the first character sequence is "1227STUA", and the second character sequence is "KA".
③在第一字符序列之后,支付字符序列还包括第二分界字符序列,第二分界字符序列包括至少一个可见字符。通过在第一字符序列之后显示第二分界字符序列,有利于提高收银设备识别第一字符序列的速度和准确度。③ After the first character sequence, the payment character sequence further includes a second delimiting character sequence, and the second delimiting character sequence includes at least one visible character. By displaying the second delimiting character sequence after the first character sequence, it is beneficial to improve the speed and accuracy of the cash register device recognizing the first character sequence.
其中,第二分界字符序列中的字符可以为“-”、“—”、“=”、“+”、“*”、“#”等符号。例如,如图11所示,支付字符序列中包括第一字符序列+第二字符序列+第二分界字符序列。其中,第一字符序列为“1227STUA”,第二字符序列为“KA”,第二分界字符序列为“**”。第二分界字符序列用于收银设备确定第一字符序列的位置。收银设备识别到“**”之后,就能确定“**”之前的字符序列中包括第一字符序列。第二分界字符序列中的字符可以相同或不同。图11以第二分界字符序列中的字符相同为例。Wherein, the characters in the second delimiting character sequence may be symbols such as "-", "-", "=", "+", "*", "#", etc. For example, as shown in FIG. 11 , the payment character sequence includes the first character sequence + the second character sequence + the second delimiting character sequence. The first character sequence is "1227STUA", the second character sequence is "KA", and the second delimiting character sequence is "**". The second delimiting character sequence is used by the cash register device to determine the location of the first character sequence. After the cash register device recognizes "**", it can determine that the character sequence before "**" includes the first character sequence. The characters in the second delimiting character sequence may be the same or different. FIG. 11 takes as an example that the characters in the second delimiting character sequence are the same.
在一种可能的实现中,在第二分界字符序列之前,在第一字符序列之后,支付字符序列还包括回车换行字符。通过在第二分界字符序列之前,在第一字符序列之后,增加回车换行字符,这样能使第二分界字符序列和第一字符序列不在同一行显示,有利于提高收银设备识别第一字符序列的速度和准确度。In one possible implementation, before the second delimiting character sequence and after the first character sequence, the payout character sequence further includes a carriage return line feed character. By adding a carriage return line feed character before the second delimiting character sequence and after the first character sequence, the second delimiting character sequence and the first character sequence can be displayed on different lines, which is beneficial to improve the recognition of the first character sequence by the cashier device speed and accuracy.
例如,如图12所示,支付字符序列中包括第一字符序列+第二字符序列+回车换行字符+ 第二分界字符序列。第一字符序列为“1227STUA”,第二字符序列为“KA”,第二分界字符序列为“**********”。For example, as shown in FIG. 12 , the payment character sequence includes the first character sequence + the second character sequence + the carriage return and line feed character + the second delimitation character sequence. The first character sequence is "1227STUA", the second character sequence is "KA", and the second delimiting character sequence is "**********".
④在第一字符序列之前,支付字符序列还包括第一分界字符序列,第一分界字符序列包括至少一个可见字符;在第一字符序列之后,支付字符序列还包括第二分界字符序列,第二分界字符序列包括至少一个可见字符。通过在第一字符序列之前显示第一分界字符序列,以及在第一字符序列之后显示第二分界字符序列,有利于提高收银设备识别第一字符序列的速度和准确度。④ Before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; after the first character sequence, the payment character sequence also includes a second delimiting character sequence, the second The delimiting character sequence includes at least one visible character. By displaying the first delimiting character sequence before the first character sequence and displaying the second delimiting character sequence after the first character sequence, it is beneficial to improve the speed and accuracy of the cash register device recognizing the first character sequence.
例如,如图13所示,支付字符序列中包括第一分界字符序列+第一字符序列+第二字符序列+第二分界字符序列。其中,第二分界字符序列为“**”,第一字符序列为“1227STUA”,第二字符序列为“KA”,第二分界字符序列为“**”。For example, as shown in FIG. 13 , the payment character sequence includes the first delimiting character sequence+the first character sequence+the second character sequence+the second delimiting character sequence. Wherein, the second delimiting character sequence is "**", the first character sequence is "1227STUA", the second character sequence is "KA", and the second delimiting character sequence is "**".
在一种可能的实现中,在第一分界字符序列之后,在第一字符序列之前,支付字符序列还包括回车换行字符。并且在第二分界字符序列之前,在第一字符序列之后,支付字符序列还包括回车换行字符。这样能使第一分界字符序列、第二分界字符序列和第一字符序列不在同一行显示,有利于提高收银设备识别第一字符序列的速度和准确度。In one possible implementation, after the first delimiting character sequence and before the first character sequence, the payment character sequence further includes a carriage return line feed character. And before the second delimiting character sequence, after the first character sequence, the payout character sequence further includes a carriage return line feed character. In this way, the first delimiting character sequence, the second delimiting character sequence and the first character sequence are not displayed on the same line, which is beneficial to improve the speed and accuracy of the cash register device recognizing the first character sequence.
例如,如图14所示,支付字符序列中包括第一分界字符序列+回车换行字符+第一字符序列+第二字符序列+回车换行字符+第二分界字符序列。其中,第一分界字符序列为“**********”,第一字符序列为“1227STUA”,第二字符序列为“KA”,第二分界字符序列为“**********”。For example, as shown in FIG. 14 , the payment character sequence includes the first delimitation character sequence+carriage return line feed character+first character sequence+second character sequence+carriage return linefeed character+second demarcation character sequence. Among them, the first delimiting character sequence is "**********", the first character sequence is "1227STUA", the second character sequence is "KA", and the second delimiting character sequence is "**** ******”.
在一种可能的实现中,第二分界字符序列与第一分界字符序列相同。例如,如图14所示。通过使第二分界字符序列与第一分界字符序列相同,有利于提高收银设备识别第一字符序列的速度和准确度。In one possible implementation, the second sequence of delimiting characters is the same as the first sequence of delimiting characters. For example, as shown in Figure 14. By making the second delimiting character sequence the same as the first delimiting character sequence, it is beneficial to improve the speed and accuracy of the cash register device recognizing the first character sequence.
当然第二分界字符序列与第一分界字符序列也可以不相同。例如,如图15所示,支付字符序列中包括第一分界字符序列+回车换行字符+第一字符序列+第二字符序列+回车换行字符+第二分界字符序列。其中,第一分界字符序列为“==========”,第一字符序列为“1227STUA”,第二字符序列为“KA”,第二分界字符序列为“**********”。Of course, the second delimiting character sequence may also be different from the first delimiting character sequence. For example, as shown in FIG. 15 , the payment character sequence includes a first delimitation character sequence+carriage return line feed character+first character sequence+second character sequence+carriage return linefeed character+second demarcation character sequence. Wherein, the first delimiting character sequence is "============", the first character sequence is "1227STUA", the second character sequence is "KA", and the second delimiting character sequence is "**** ******”.
其中,图9~图15以支付字符序列包括第二字符序列为例。图9~图15中的支付字符序列也可以不包括第二字符序列。9 to 15 take the payment character sequence including the second character sequence as an example. The payment character sequence in FIGS. 9 to 15 may not include the second character sequence.
在一种可能的实现中,支付字符序列中的可见字符为可见ASCII字符。可见ASCII字符为全球通用字符,通过使支付字符序列中的可见字符为可见ASCII字符,能够增加方案的兼容性。In one possible implementation, the visible characters in the payout character sequence are visible ASCII characters. The visible ASCII characters are universal characters, and the compatibility of the scheme can be increased by making the visible characters in the payment character sequence visible ASCII characters.
例如,支付字符序列中的可见字符为表7所示的一个或多个可见ASCII字符。For example, the visible characters in the payout character sequence are one or more of the visible ASCII characters shown in Table 7.
表7Table 7
字符character | 描述describe | 字符character | 描述describe | 字符character | 描述describe | 字符character | 描述describe |
!! | 叹号exclamation mark | :: | 冒号colon | SS | 大写字母Scapital letter S | ll | 小写字母llowercase letter l |
"" | 双引号Double quotes | ;; | 分号semicolon | TT | 大写字母Tcapital letter T | mm | 小写字母mlowercase letter m |
## | 井号Hashtag | << | 小于号Less than sign | UU | 大写字母Ucapital letter U | nn | 小写字母nlowercase n |
$$ | 美元符dollar sign | == | 等号equal sign | VV | 大写字母Vcapital letter V | oo | 小写字母olowercase letter o |
%% | 百分号percent sign | >> | 大于号greater than sign | WW | 大写字母Wcapital letter W | pp | 小写字母plowercase p |
&& | 和号ampersand | ?? | 问号question mark | XX | 大写字母Xcapital letter X | 小写字母qlowercase q | |
'' | 闭单引号closed single quote | @@ | 电子邮件符号email symbol | YY | 大写字母Ycapital letter Y | rr | 小写字母rlowercase r |
(( | 开括号open bracket | AA | 大写字母Acapital letter A | ZZ | 大写字母Zcapital letter Z | ss | 小写字母slowercase s |
)) | 闭括号closing bracket | BB | 大写字母Bcapital letter B | [[ | 开方括号open square bracket | tt | 小写字母tlowercase t |
** | 星号Asterisk | CC | 大写字母Ccapital letter C | \\ | 反斜杠backslash | uu | 小写字母ulowercase u |
++ | 加号plus | DD | 大写字母Dcapital letter D | ]] | 闭方括号closing square bracket | vv | 小写字母vlowercase letter v |
,, | 逗号comma | EE | 大写字母Ecapital letter E | ^^ | 脱字符caret | ww | 小写字母wlowercase letter w |
-- | 减号/破折号Minus/Dash | FF | 大写字母Fcapital letter F | __ | 下划线underscore | xx | 小写字母xlowercase x |
.. | 句号period | GG | 大写字母Gcapital letter G | `` | 开单引号open single quote | yy | 小写字母ylowercase y |
// | 斜杠slash | HH | 大写字母Hcapital letter H | aa | 小写字母alowercase a | zz | 小写字母zlowercase z |
00 | 数字0number 0 | II | 大写字母Icapital letter I | bb | 小写字母blowercase b | {{ |
开花括号 |
11 | 数字1Number 1 | JJ | 大写字母Jcapital letter J | cc | 小写字母clowercase letter c | || | 垂线perpendicular |
22 | 数字2number 2 | KK | 大写字母Kcapital letter K | dd | 小写字母dlowercase d | }} |
闭花括号closing |
33 | 数字3number 3 | LL | 大写字母Lcapital letter L | ee | 小写字母elowercase e | ~~ | 波浪号tilde |
44 | 数字4number 4 | MM | 大写字母Mcapital letter M | ff | 小写字母flowercase letter f | ||
55 | 数字5number 5 | NN | 大写字母Ncapital letter N | gg | 小写字母glowercase letter g | ||
66 | 数字6number 6 | OO | 大写字母Ocapital letter O | hh | 小写字母hlowercase h | ||
77 | 数字7number 7 | PP | 大写字母Pcapital letter P | ii | 小写字母ilowercase i | ||
88 | 数字8number 8 | 大写字母Qcapital letter Q | jj | 小写字母jlowercase j | |||
99 | 数字9number 9 | RR | 大写字母Rcapital letter R | kk | 小写字母klowercase letter k |
在另一种可能的实现中,支付字符序列中的可见字符为高识别度ASCII字符。如前文描述,支付字符序列中的字符来自支付平台预设的候选字符集合;当候选字符集中全是可见ASCII字符,且其中任意两个字符都不相似时,从这种候选字符集中选出的字符称为高识别度ASCII字符,这种候选字符集称为高识别度候选字符集。In another possible implementation, the visible characters in the payment character sequence are high-recognition ASCII characters. As described above, the characters in the payment character sequence come from the candidate character set preset by the payment platform; when the candidate character set is full of visible ASCII characters, and any two characters are dissimilar, the candidate character set is selected from the candidate character set. Characters are called high-recognition ASCII characters, and this candidate character set is called a high-recognition candidate character set.
一种可能的方案中,高识别度候选字符集包括从表7所示的可见字符集中选出的、在表7范围内不具有相似字符的字符。例如,包括以下字符中的多个:A、D、E、G、H、L、N、Q、R、T、3、4、5、6或7。In a possible solution, the high-recognition candidate character set includes characters selected from the visible character set shown in Table 7 and having no similar characters within the range of Table 7. For example, include more than one of the following characters: A, D, E, G, H, L, N, Q, R, T, 3, 4, 5, 6, or 7.
关于相似字符,解释如下。假设有两个字符,分别为第一个字符和第二个字符,如果第一个字符和第二个字符外观相似,或者在OCR识别时,容易将第一个字符识别为第二个字符,或者将第二个字符识别为第一个字符,则称这两个字符互为相似字符,如表8所示,一个相似字符组中的字符之间两两相似。在本申请实施例中,避免将相似字符放在同一个候选字符集中,可以提高收银设备识别支付字符序列的准确度。Regarding similar characters, the explanation is as follows. Suppose there are two characters, the first character and the second character, if the first character and the second character are similar in appearance, or the first character is easily recognized as the second character during OCR recognition, Or if the second character is identified as the first character, the two characters are said to be similar to each other. As shown in Table 8, the characters in a similar character group are similar to each other. In the embodiment of the present application, it is avoided to put similar characters in the same candidate character set, which can improve the accuracy of the cash register device in recognizing the payment character sequence.
表8Table 8
在又一种可能的方案中,高识别度候选字符集也可包括从表7所示的可见字符集中选出的、在表7范围内具有相似字符、但在该高识别度候选字符集范围内没有相似字符的字符。这样有利于提高收银设备识别支付字符序列中的可见字符的准确度。例如,高识别度候选字符集中包括数字“0”,不包括小写字母“o”和大写字母“O”。高识别度候选字符集中包括大写字母“B”,不包括数字“8”。高识别度候选字符集中包括大写字母“C”,不包括小写字母“c”。In yet another possible solution, the high-recognition candidate character set may also include characters selected from the visible character set shown in Table 7, with similar characters within the range of Table 7, but within the range of the high-recognition candidate character set characters that do not contain similar characters. This is beneficial to improve the accuracy of the cash register device in recognizing the visible characters in the payment character sequence. For example, the high-recognition candidate character set includes the number "0" and does not include the lowercase letter "o" and the uppercase letter "O". The high-recognition candidate character set includes the capital letter "B" and does not include the number "8". The high-recognition candidate character set includes the uppercase letter "C" and does not include the lowercase letter "c".
如果高识别度候选字符集包括从表7所示的可见字符集中选出的具有相似字符的字符,那么收银设备可实现纠错功能。例如,假设高识别度候选字符集中包括的16个高识别度字符分别为:“0127ACFHJKLPSTUX”。如果收银设备识别到大写字母“O”或小写字母“o”,则认为识别到的字符为数字“0”。如果收银设备识别到大写字母“I”,小写字母“i”,小写字母“l”,垂线“|”,开方括号“[”或闭方括号“]”,则认为识别到的字符为数字“1”。如果收银设备识别到大写字母“Z”或小写字母“z”,则认为识别到的字符为数字“2”。If the high-recognition candidate character set includes characters with similar characters selected from the visible character set shown in Table 7, the cash register device can implement an error correction function. For example, it is assumed that the 16 high-recognition characters included in the high-recognition candidate character set are respectively: "0127ACFHJKLPSTUX". If the cash register device recognizes an uppercase "O" or a lowercase "o", it is considered that the recognized character is the number "0". If the cash register device recognizes an uppercase "I", a lowercase "i", a lowercase "l", a vertical line "|", an opening square bracket "[" or a closing square bracket "]", it is considered that the recognized character is Number 1". If the cash register device recognizes an uppercase "Z" or a lowercase "z", it considers the recognized character to be the number "2".
在又一种可能的方案中,高识别度ASCII字符集是指字符的正确识别率大于或等于预设阈值的字符集。In another possible solution, the high-recognition ASCII character set refers to a character set whose correct recognition rate of characters is greater than or equal to a preset threshold.
在又一种可能的实现中,支付字符序列中的可见字符不是小写字母。In yet another possible implementation, the visible characters in the payout character sequence are not lowercase letters.
在又一种可能的实现中,支付字符序列中的可见字符也可以不是可见ASCII字符,例如,支付字符序列中的可见字符也可以为中文字符、韩文字符、日文字符等某个国家的文字。In another possible implementation, the visible characters in the payment character sequence may not be visible ASCII characters. For example, the visible characters in the payment character sequence may also be Chinese characters, Korean characters, Japanese characters and other characters of a certain country.
可见,基于图4所描述的方法,用户只需要展示终端设备显示的支付字符序列给收银设备进行扫描,就能进行移动支付,提升了终端设备的支付便捷性。It can be seen that, based on the method described in FIG. 4 , the user only needs to display the payment character sequence displayed by the terminal device to the cashier device for scanning, and then the mobile payment can be performed, which improves the payment convenience of the terminal device.
请参见图16,图16是本申请实施例提供的又一种支付方法的流程示意图。如图16所示,该支付方法包括如下步骤1601~步骤1610。其中:Please refer to FIG. 16. FIG. 16 is a schematic flowchart of another payment method provided by an embodiment of the present application. As shown in Figure 16, the payment method includes the following steps 1601 to 1610. in:
1601、终端设备呈现USSD菜单项。1601. The terminal device presents a USSD menu item.
其中,该USSD菜单项用于为用户提供支付功能。终端设备还可以显示用于实现其他功能的USSD菜单项。Wherein, the USSD menu item is used to provide the user with a payment function. The terminal device can also display USSD menu items for implementing other functions.
1602、终端设备响应于该USSD菜单项的选择操作,向USSD网关发送用于请求提供支付字符序列的第一请求,该第一请求包含用户的第一标识。1602. In response to the selection operation of the USSD menu item, the terminal device sends a first request for requesting to provide a payment character sequence to the USSD gateway, where the first request includes the first identifier of the user.
具体地,终端设备响应于对用于为用户提供支付功能的USSD菜单项的选择操作,向USSD网关发送用于请求提供支付字符序列的第一请求。其中,USSD菜单项的选择操作可以是用户对该USSD菜单项的编号的输入操作。可选的,第一请求中还可包括用户选择的USSD 菜单项的编号,以指示用户选择的USSD菜单项。可选的,用户的第一标识可以是用户的国际移动用户识别码(international mobile subscriber identity,IMSI)或终端设备与USSD网关之间的会话标识等。Specifically, in response to the selection operation of the USSD menu item for providing the payment function for the user, the terminal device sends a first request for requesting to provide the payment character sequence to the USSD gateway. The selection operation of the USSD menu item may be a user's input operation of the number of the USSD menu item. Optionally, the first request may further include the serial number of the USSD menu item selected by the user, so as to indicate the USSD menu item selected by the user. Optionally, the first identifier of the user may be the user's international mobile subscriber identity (international mobile subscriber identity, IMSI) or a session identifier between the terminal device and the USSD gateway, or the like.
例如,如图17所示,假设终端设备显示了两个USSD菜单项,分别为余额查询(Query Balance)选项和请求快捷支付(Apply Quick Pay)选项。余额查询选项对应的编号为1,请求快捷支付选项对应的编号为2。用户可按压终端设备的键盘,输入编号“2”。终端设备检测到用户对编号“2”的输入操作之后,向USSD网关发送用于请求提供支付字符序列的第一请求,该第一请求包含用户的IMSI和编号“2”。For example, as shown in FIG. 17 , it is assumed that the terminal device displays two USSD menu items, which are the Query Balance option and the Apply Quick Pay option respectively. The number corresponding to the balance query option is 1, and the number corresponding to the request quick payment option is 2. The user can press the keyboard of the terminal device to input the number "2". After detecting the user's input operation for the number "2", the terminal device sends a first request for requesting to provide a payment character sequence to the USSD gateway, where the first request includes the user's IMSI and the number "2".
1603、USSD网关响应于第一请求,向支付平台发送第二请求,该第二请求用于请求提供支付字符序列,该第二请求携带用户的第二标识,该第二标识基于第一标识确定。1603. In response to the first request, the USSD gateway sends a second request to the payment platform, where the second request is used to request to provide a payment character sequence, and the second request carries the second identification of the user, which is determined based on the first identification .
本申请实施例中,USSD网关接收第一请求之后,基于第一请求中的第一标识确定用户的第二标识,并向支付平台发送携带该第二标识的第二请求。可选的,该第二请求中还可携带用户选择的USSD菜单项的编号,以指示用户选择的USSD菜单项。可选的,第二标识可以是用户的手机号。或者,第二标识也可以是其他能够确定用户的支付账户的标识的信息。In the embodiment of the present application, after receiving the first request, the USSD gateway determines the second identifier of the user based on the first identifier in the first request, and sends a second request carrying the second identifier to the payment platform. Optionally, the second request may further carry the serial number of the USSD menu item selected by the user to indicate the USSD menu item selected by the user. Optionally, the second identifier may be the mobile phone number of the user. Alternatively, the second identifier may also be other information that can determine the identifier of the user's payment account.
1604、支付平台响应于第二请求,为用户生成支付字符序列。1604. The payment platform generates a payment character sequence for the user in response to the second request.
本申请实施例中,支付平台接收第二请求之后,响应于第二请求,为用户生成支付字符序列。In the embodiment of the present application, after receiving the second request, the payment platform generates a payment character sequence for the user in response to the second request.
1605、支付平台建立用户的支付账户的标识与支付字符序列中的第一字符序列之间的对应关系,该用户的支付账户的标识基于用户的第二标识得到。1605. The payment platform establishes a correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence, where the identifier of the user's payment account is obtained based on the second identifier of the user.
本申请实施例中,支付平台接收第二请求之后,基于用户的第二标识确定用户的支付账户的标识。支付平台确定用户的支付账户的标识之后,建立用户的支付账户的标识与支付字符序列中的第一字符序列之间的对应关系。支付平台如何建立用户的支付账户的标识与支付字符序列中的第一字符序列之间的对应关系可参见图4所对应的实施例中的描述,在此不赘述。In the embodiment of the present application, after receiving the second request, the payment platform determines the identifier of the payment account of the user based on the second identifier of the user. After determining the identifier of the user's payment account, the payment platform establishes a correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence. How the payment platform establishes the correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence can refer to the description in the embodiment corresponding to FIG. 4 , which is not repeated here.
可选的,用户的支付账户的标识可以与用户的第二标识相同。例如,第二标识为用户的手机号码,用户的支付账户的标识为用户的手机号码。Optionally, the identification of the user's payment account may be the same as the second identification of the user. For example, the second identifier is the user's mobile phone number, and the user's payment account identifier is the user's mobile phone number.
或者,用户的支付账户的标识也可以与用户的第二标识不相同。支付平台存储了用户的支付账户的标识与用户的第二标识之间的对应关系。支付平台基于该对应关系和用户的第二标识,就能确定用户的支付账户的标识。例如,第二标识为用户的手机号码,用户的支付账户的标识为即时通讯应用的账号。支付平台预先存储了用户的支付账户的标识与用户的手机号码的对应关系。支付平台基于用户的手机号码,就能确定用户的支付账户的标识。Alternatively, the identification of the user's payment account may also be different from the second identification of the user. The payment platform stores the correspondence between the identifier of the user's payment account and the second identifier of the user. Based on the corresponding relationship and the second identifier of the user, the payment platform can determine the identifier of the user's payment account. For example, the second identifier is the mobile phone number of the user, and the identifier of the user's payment account is the account number of the instant messaging application. The payment platform prestores the correspondence between the identifier of the user's payment account and the user's mobile phone number. The payment platform can determine the identity of the user's payment account based on the user's mobile phone number.
1606、支付平台向USSD网关发送该支付字符序列。1606. The payment platform sends the payment character sequence to the USSD gateway.
其中,步骤1606~步骤1610的具体实现方式可参见图4所示的实施例中的步骤401~步骤405的具体实现方式,在此不赘述。The specific implementation of steps 1606 to 1610 may refer to the specific implementation of steps 401 to 405 in the embodiment shown in FIG. 4 , and details are not described herein.
1607、USSD网关向用户的终端设备发送该支付字符序列。1607. The USSD gateway sends the payment character sequence to the terminal device of the user.
1608、终端设备显示该支付字符序列供收银设备扫描。1608. The terminal device displays the payment character sequence for the cashier device to scan.
1609、收银设备扫描用户的终端设备显示的支付字符序列,识别该支付字符序列中的第一字符序列得到第三字符序列。1609. The cash register device scans the payment character sequence displayed by the user's terminal device, and identifies the first character sequence in the payment character sequence to obtain the third character sequence.
1610、收银设备基于第三字符序列请求支付平台通过用户的支付账户进行支付。1610. The cash register device requests the payment platform to make payment through the user's payment account based on the third character sequence.
可见,基于图16所描述的方法,终端设备能够根据用户的需求主动向网络侧请求支付字符序列,终端设备能够更加灵活地获取支付字符序列。并且用户通过在USSD菜单中选择 USSD菜单项,来触发终端设备向网络侧请求支付字符序列,能够便捷地触发终端设备向网络侧请求支付字符序列。并且支付平台生成支付字符序列之后,会建立用户的支付账户的标识与支付字符序列中的第一字符序列之间的对应关系,这样能够实现通过第一字符序列来指示用户的支付账户。It can be seen that, based on the method described in FIG. 16 , the terminal device can actively request the payment character sequence from the network side according to the user's needs, and the terminal device can obtain the payment character sequence more flexibly. And the user can trigger the terminal device to request the payment character sequence from the network side by selecting the USSD menu item in the USSD menu, which can conveniently trigger the terminal device to request the payment character sequence from the network side. And after generating the payment character sequence, the payment platform will establish a correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence, so that the user's payment account can be indicated by the first character sequence.
请参见图18,图18是本申请实施例提供的又一种支付方法的流程示意图。如图18所示,该支付方法包括如下步骤1801~步骤1812。其中:Please refer to FIG. 18. FIG. 18 is a schematic flowchart of another payment method provided by an embodiment of the present application. As shown in Figure 18, the payment method includes the following steps 1801 to 1812. in:
1801、终端设备响应于按键输入操作向USSD网关发送第三请求,该第三请求用于请求提供第一USSD菜单数据。1801. The terminal device sends a third request to the USSD gateway in response to the key input operation, where the third request is used to request to provide the first USSD menu data.
可选的,该按键输入操作可以是拨号操作。例如,终端设备检测到用户拨打*188#的拨号操作之后,终端设备向USSD网关发送第三请求。或者,终端设备可以在检测到用户拨打其他字符和/或数字的拨号操作之后,向USSD网关发送第三请求。Optionally, the key input operation may be a dialing operation. For example, after the terminal device detects that the user dials *188#, the terminal device sends a third request to the USSD gateway. Alternatively, the terminal device may send a third request to the USSD gateway after detecting that the user dials other characters and/or numbers.
1802、USSD网关向终端设备发送第一USSD菜单数据。1802. The USSD gateway sends the first USSD menu data to the terminal device.
本申请实施例中,USSD网关接收第三请求之后,向终端设备发送第一USSD菜单数据。或者,也可以不执行步骤1801,由USSD网关主动向终端设备发送第一USSD菜单数据。In this embodiment of the present application, after receiving the third request, the USSD gateway sends the first USSD menu data to the terminal device. Alternatively, step 1801 may not be executed, and the USSD gateway actively sends the first USSD menu data to the terminal device.
第一USSD菜单数据可以是USSD网关本地存储的数据。或者,USSD网关可以向支付平台请求第二USSD菜单数据,USSD网关基于从支付平台请求的第二USSD菜单数据来得到第一USSD菜单数据。后者可参见下面图19所对应的实施例中的描述,在此不赘述。The first USSD menu data may be data stored locally by the USSD gateway. Alternatively, the USSD gateway may request the payment platform for the second USSD menu data, and the USSD gateway obtains the first USSD menu data based on the second USSD menu data requested from the payment platform. For the latter, reference may be made to the description in the embodiment corresponding to FIG. 19 below, which is not repeated here.
在一种可能的实现中,USSD网关将第一USSD菜单数据承载于SMPP消息中发送至终端设备。In a possible implementation, the USSD gateway carries the first USSD menu data in an SMPP message and sends it to the terminal device.
1803、终端设备基于第一USSD菜单数据显示USSD菜单,该USSD菜单包含USSD菜单项。1803. The terminal device displays a USSD menu based on the first USSD menu data, where the USSD menu includes USSD menu items.
本申请实施例中,终端设备从USSD网关接收第一USSD菜单数据之后,基于第一USSD菜单数据显示USSD菜单。第一USSD菜单数据可以为HTML格式的数据,或者为其他格式的数据。In this embodiment of the present application, after receiving the first USSD menu data from the USSD gateway, the terminal device displays the USSD menu based on the first USSD menu data. The first USSD menu data may be data in HTML format, or data in other formats.
例如,以第一USSD菜单数据为HTML格式的数据为例,如下为第一USSD菜单数据的示例:For example, taking the first USSD menu data as data in HTML format as an example, the following is an example of the first USSD menu data:
终端设备基于该第一USSD菜单数据显示的USSD菜单可如图17所示。The USSD menu displayed by the terminal device based on the first USSD menu data may be as shown in FIG. 17 .
在一种可能的实现中,终端设备也可以不执行步骤1801~步骤1803,终端设备本地存储有USSD菜单数据,终端设备可基于本地USSD菜单数据显示USSD菜单。In a possible implementation, the terminal device may not perform steps 1801 to 1803, the terminal device locally stores USSD menu data, and the terminal device can display the USSD menu based on the local USSD menu data.
1804、终端设备响应于该USSD菜单项的选择操作,向USSD网关发送用于请求提供支付字符序列的第一请求,该第一请求包含用户的第一标识。1804. In response to the selection operation of the USSD menu item, the terminal device sends a first request for requesting to provide a payment character sequence to the USSD gateway, where the first request includes the first identifier of the user.
其中,步骤1804~步骤1807的具体实现方式可参见上述步骤1602~步骤1605的具体实现 方式,在此不赘述。步骤1808~步骤1812的具体实现方式可参见步骤401~步骤405的具体实现方式,在此不赘述。For the specific implementation manner of steps 1804 to 1807, reference may be made to the specific implementation manner of the above-mentioned steps 1602 to 1605, which will not be repeated here. For the specific implementation manner of steps 1808 to 1812, reference may be made to the specific implementation manner of steps 401 to 405, and details are not described herein.
1805、USSD网关响应于第一请求,向支付平台发送第二请求,该第二请求用于请求提供支付字符序列,该第二请求携带用户的第二标识,该第二标识基于第一标识确定。1805. In response to the first request, the USSD gateway sends a second request to the payment platform, where the second request is used to request to provide a payment character sequence, and the second request carries the second identification of the user, which is determined based on the first identification .
1806、支付平台响应于第二请求,为用户生成支付字符序列。1806. The payment platform generates a payment character sequence for the user in response to the second request.
1807、支付平台建立用户的支付账户的标识与支付字符序列中的第一字符序列之间的对应关系,该用户的支付账户的标识基于用户的第二标识得到。1807. The payment platform establishes a correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence, where the identifier of the user's payment account is obtained based on the second identifier of the user.
1808、支付平台向USSD网关发送该支付字符序列。1808. The payment platform sends the payment character sequence to the USSD gateway.
1809、USSD网关向用户的终端设备发送该支付字符序列。1809. The USSD gateway sends the payment character sequence to the terminal device of the user.
1810、终端设备显示该支付字符序列供收银设备扫描。1810. The terminal device displays the payment character sequence for the cashier device to scan.
1811、收银设备扫描用户的终端设备显示的支付字符序列,识别该支付字符序列中的第一字符序列得到第三字符序列。1811. The cash register device scans the payment character sequence displayed by the user's terminal device, and identifies the first character sequence in the payment character sequence to obtain the third character sequence.
1812、收银设备基于第三字符序列请求支付平台通过用户的支付账户进行支付。1812. The cash register device requests the payment platform to make payment through the user's payment account based on the third character sequence.
可见,基于图18所描述的方法,终端设备能够根据用户的需求主动向USSD网关请求第一USSD菜单数据,终端设备能够更加灵活地获取第一USSD菜单数据。It can be seen that, based on the method described in FIG. 18 , the terminal device can actively request the first USSD menu data from the USSD gateway according to the user's needs, and the terminal device can obtain the first USSD menu data more flexibly.
请参见图19,图19是本申请实施例提供的一种支付方法的流程示意图。如图19所示,该支付方法包括如下步骤1901~步骤1914。其中:Please refer to FIG. 19. FIG. 19 is a schematic flowchart of a payment method provided by an embodiment of the present application. As shown in Figure 19, the payment method includes the following steps 1901 to 1914. in:
1901、终端设备响应于按键输入操作向USSD网关发送第三请求,该第三请求用于请求提供第一USSD菜单数据。1901. The terminal device sends a third request to the USSD gateway in response to the key input operation, where the third request is used to request to provide the first USSD menu data.
步骤1901的具体实现方式可参见上述步骤1801的具体实现方式,在此不赘述。For the specific implementation manner of step 1901, reference may be made to the specific implementation manner of the foregoing step 1801, and details are not described herein.
1902、USSD网关向支付平台发送第四请求,该第四请求用于请求提供第二USSD菜单数据。1902. The USSD gateway sends a fourth request to the payment platform, where the fourth request is used to request to provide second USSD menu data.
其中,可以先执行步骤1901,再执行步骤1902和步骤1903,即终端设备向USSD网关请求提供第一USSD菜单数据之后,USSD网关才向支付平台请求提供第二USSD菜单数据。Wherein, step 1901 may be performed first, followed by steps 1902 and 1903, that is, after the terminal device requests the USSD gateway to provide the first USSD menu data, the USSD gateway requests the payment platform to provide the second USSD menu data.
或者,可以先执行步骤1902和步骤1903,再执行步骤1901,即USSD网关可主动向支付平台请求提供第二USSD菜单数据。在终端设备向USSD网关请求提供第一USSD菜单数据之后,USSD网关才基于第二USSD菜单数据向终端设备发送第一USSD菜单数据。Alternatively, steps 1902 and 1903 may be performed first, and then step 1901 may be performed, that is, the USSD gateway may actively request the payment platform to provide the second USSD menu data. After the terminal device requests the USSD gateway to provide the first USSD menu data, the USSD gateway sends the first USSD menu data to the terminal device based on the second USSD menu data.
1903、支付平台向USSD网关发送第二USSD菜单数据。1903. The payment platform sends the second USSD menu data to the USSD gateway.
本申请实施例中,支付平台接收第四请求之后,向USSD网关发送第二USSD菜单数据。In the embodiment of the present application, after receiving the fourth request, the payment platform sends the second USSD menu data to the USSD gateway.
1904、USSD网关基于第二USSD菜单数据向终端设备发送第一USSD菜单数据。1904. The USSD gateway sends the first USSD menu data to the terminal device based on the second USSD menu data.
本申请实施例中,USSD网关接收第三请求和第二USSD菜单数据之后,基于第二USSD菜单数据向终端设备发送第一USSD菜单数据。In this embodiment of the present application, after receiving the third request and the second USSD menu data, the USSD gateway sends the first USSD menu data to the terminal device based on the second USSD menu data.
其中,第二USSD菜单数据可以是HTML格式的数据,或者为其他格式的数据。第一USSD菜单数据可以是HTML格式的数据,或者为其他格式的数据。Wherein, the second USSD menu data may be data in HTML format, or data in other formats. The first USSD menu data may be data in HTML format, or data in other formats.
第二USSD菜单数据和第一USSD菜单数据可以不相同。例如,如下为第二USSD菜单数据的示例:The second USSD menu data and the first USSD menu data may be different. For example, the following is an example of the second USSD menu data:
由于终端设备可能无法识别<a>标签,所以USSD网关接收第二USSD菜单数据之后,可以将第二USSD菜单数据中的“<a href="mobilepayment.ussd"default="yes"></a>”去掉,得到第一USSD菜单数据。USSD网关将第一USSD菜单数据发送给终端设备,这样终端设备就能基于第一USSD菜单数据显示USSD菜单。Since the terminal device may not recognize the <a> tag, after receiving the second USSD menu data, the USSD gateway can change the "<a href="mobilepayment.ussd" default="yes"></a in the second USSD menu data >" to get the first USSD menu data. The USSD gateway sends the first USSD menu data to the terminal device, so that the terminal device can display the USSD menu based on the first USSD menu data.
当然第二USSD菜单数据和第一USSD菜单数据也可以相同。例如,由于终端设备无法显示<a>标签,所以支付平台发送的第二USSD菜单数据中可以不携带<a>标签,这样USSD网关可以直接将第二USSD菜单数据作为第一USSD菜单数据发送给终端设备。Of course, the second USSD menu data and the first USSD menu data may also be the same. For example, since the terminal device cannot display the <a> tag, the second USSD menu data sent by the payment platform may not carry the <a> tag, so that the USSD gateway can directly send the second USSD menu data as the first USSD menu data to the Terminal Equipment.
1905、终端设备基于第一USSD菜单数据显示USSD菜单,该USSD菜单包含USSD菜单项。1905. The terminal device displays a USSD menu based on the first USSD menu data, where the USSD menu includes USSD menu items.
其中,步骤1905的具体实现方式可参见上述步骤1803的具体实现方式,在此不赘述。For the specific implementation manner of step 1905, reference may be made to the specific implementation manner of the above-mentioned step 1803, which is not repeated here.
1906、终端设备响应于该USSD菜单项的选择操作,向USSD网关发送用于请求提供支付字符序列的第一请求,该第一请求包含用户的第一标识。1906. In response to the selection operation of the USSD menu item, the terminal device sends a first request for requesting to provide a payment character sequence to the USSD gateway, where the first request includes the first identifier of the user.
其中,步骤1906~步骤1909的具体实现方式可参见上述步骤1602~步骤1605的具体实现方式,在此不赘述。步骤1910~步骤1914的具体实现方式可参见步骤401~步骤405的具体实现方式,在此不赘述。For the specific implementation manner of steps 1906 to 1909, reference may be made to the specific implementation manner of the above-mentioned steps 1602 to 1605, which will not be repeated here. For the specific implementation manner of steps 1910 to 1914, reference may be made to the specific implementation manner of steps 401 to 405, and details are not described here.
1907、USSD网关响应于第一请求,向支付平台发送第二请求,该第二请求用于请求提供支付字符序列,该第二请求携带用户的第二标识,该第二标识基于第一标识确定。1907. In response to the first request, the USSD gateway sends a second request to the payment platform, where the second request is used to request to provide a payment character sequence, and the second request carries the second identification of the user, which is determined based on the first identification .
1908、支付平台响应于第二请求,为用户生成支付字符序列。1908. The payment platform generates a payment character sequence for the user in response to the second request.
1909、支付平台建立用户的支付账户的标识与支付字符序列中的第一字符序列之间的对应关系,该用户的支付账户的标识基于用户的第二标识得到。1909. The payment platform establishes a correspondence between the identifier of the user's payment account and the first character sequence in the payment character sequence, where the identifier of the user's payment account is obtained based on the second identifier of the user.
1910、支付平台向USSD网关发送该支付字符序列。1910. The payment platform sends the payment character sequence to the USSD gateway.
1911、USSD网关向用户的终端设备发送该支付字符序列。1911. The USSD gateway sends the payment character sequence to the user's terminal device.
1912、终端设备显示该支付字符序列供收银设备扫描。1912. The terminal device displays the payment character sequence for the cashier device to scan.
1913、收银设备扫描用户的终端设备显示的支付字符序列,识别该支付字符序列中的第一字符序列得到第三字符序列。1913. The cash register device scans the payment character sequence displayed by the user's terminal device, and identifies the first character sequence in the payment character sequence to obtain the third character sequence.
1914、收银设备基于第三字符序列请求支付平台通过用户的支付账户进行支付。1914. The cash register device requests the payment platform to make payment through the user's payment account based on the third character sequence.
可见,基于图19所描述的方法,支付平台能够向USSD网关发送USSD菜单,便于USSD 菜单的灵活更新。It can be seen that, based on the method described in FIG. 19 , the payment platform can send the USSD menu to the USSD gateway, which facilitates flexible updating of the USSD menu.
请参见图20,图20是本申请实施例提供的又一种支付方法的流程示意图。如图20所示,该支付方法包括如下步骤2001~步骤2018。其中:Please refer to FIG. 20. FIG. 20 is a schematic flowchart of another payment method provided by an embodiment of the present application. As shown in Figure 20, the payment method includes the following steps 2001 to 2018. in:
2001、支付平台向USSD网关发送该支付字符序列。2001. The payment platform sends the payment character sequence to the USSD gateway.
2002、USSD网关向用户的终端设备发送该支付字符序列。2002. The USSD gateway sends the payment character sequence to the user's terminal device.
2003、终端设备显示该支付字符序列供收银设备扫描。2003. The terminal device displays the payment character sequence for the cashier device to scan.
2004、收银设备扫描用户的终端设备显示的支付字符序列,识别该支付字符序列中的第一字符序列得到第三字符序列。2004. The cash register device scans the payment character sequence displayed by the user's terminal device, and identifies the first character sequence in the payment character sequence to obtain the third character sequence.
其中,步骤2001~步骤2004的具体实现方式可参见上述步骤401~步骤404的具体实现方式,在此不赘述。For the specific implementation manner of steps 2001 to 2004, reference may be made to the specific implementation manner of the above-mentioned steps 401 to 404, which will not be repeated here.
2005、收银设备向支付平台发送支付请求,该支付请求携带第三字符序列和订单信息。2005. The cash register device sends a payment request to the payment platform, where the payment request carries the third character sequence and order information.
其中,订单信息可包括收款方的支付账户的标识和订单金额。订单信息还可包括订单号、收款方名称、交易时间或交易描述等。Wherein, the order information may include the identification of the payee's payment account and the order amount. The order information may also include order number, payee name, transaction time or transaction description, etc.
2006、支付平台基于第三字符序列确定用户的支付账户的标识。2006. The payment platform determines the identifier of the user's payment account based on the third character sequence.
本申请实施例中,支付平台接收支付请求之后,基于第三字符序列确定用户的支付账户的标识。例如,支付平台存储的第一字符序列与支付账户的标识的对应关系如上表2所示。假设第三字符序列为“0127STUX”,支付平台基于上表1所示的对应关系可以确定用户的支付账户的标识为“15232204938”。In the embodiment of the present application, after receiving the payment request, the payment platform determines the identifier of the user's payment account based on the third character sequence. For example, the correspondence between the first character sequence stored in the payment platform and the identifier of the payment account is shown in Table 2 above. Assuming that the third character sequence is "0127STUX", the payment platform can determine that the identifier of the user's payment account is "15232204938" based on the corresponding relationship shown in Table 1 above.
2007、支付平台向USSD网关发送支付确认信息,该支付确认信息包括用于提示用户输入支付账户的支付密码的提示信息。2007. The payment platform sends payment confirmation information to the USSD gateway, where the payment confirmation information includes prompt information for prompting the user to input the payment password of the payment account.
本申请实施例中,支付平台基于第三字符序列确定用户的支付账户的标识之后,向USSD网关发送支付确认信息。In the embodiment of the present application, after determining the identifier of the user's payment account based on the third character sequence, the payment platform sends payment confirmation information to the USSD gateway.
可选的,支付平台基于第三字符序列确定用户的支付账户的标识之后,可基于用户的支付账户的标识确定用户的第二标识,并将用户的第二标识与支付确认信息一起发送给USSD网关,以便USSD网关能够基于用户的第二标识将支付确认信息发送给用户的终端设备。可选的,用户的第二标识可以为用户的手机号或其他能够确定用户的终端设备的信息。Optionally, after determining the identifier of the user's payment account based on the third character sequence, the payment platform may determine the user's second identifier based on the identifier of the user's payment account, and send the user's second identifier and payment confirmation information to the USSD. gateway, so that the USSD gateway can send payment confirmation information to the terminal device of the user based on the second identification of the user. Optionally, the second identifier of the user may be the user's mobile phone number or other information that can determine the user's terminal device.
可选的,用户的支付账户的标识可以与用户的第二标识相同。例如,第二标识为用户的手机号码,用户的支付账户的标识为用户的手机号码。Optionally, the identification of the user's payment account may be the same as the second identification of the user. For example, the second identifier is the user's mobile phone number, and the user's payment account identifier is the user's mobile phone number.
或者,用户的支付账户的标识也可以与用户的第二标识不相同。支付平台存储了用户的支付账户的标识与用户的第二标识之间的对应关系。支付平台基于该对应关系和用户的支付账户的标识,就能确定用户的第二标识。例如,第二标识为用户的手机号码,用户的支付账户的标识为即时通讯应用的账号。支付平台预先存储了用户的支付账户的标识与用户的手机号码的对应关系。支付平台基于用户的支付账户的标识,就能确定用户的手机号码。Alternatively, the identification of the user's payment account may also be different from the second identification of the user. The payment platform stores the correspondence between the identifier of the user's payment account and the second identifier of the user. The payment platform can determine the second identifier of the user based on the corresponding relationship and the identifier of the user's payment account. For example, the second identifier is the mobile phone number of the user, and the identifier of the user's payment account is the account number of the instant messaging application. The payment platform prestores the correspondence between the identifier of the user's payment account and the user's mobile phone number. The payment platform can determine the user's mobile phone number based on the identification of the user's payment account.
在一种可能的实现中,支付确认信息还包括订单信息。通过在终端设备显示订单信息,便于用户确认支付的订单是否正确。支付确认信息中可以包括收银设备发送给支付平台的部分或全部订单信息。例如,支付确认信息中可以包括订单号、订单金额、收款方名称和交易描述等。In a possible implementation, the payment confirmation information also includes order information. By displaying the order information on the terminal device, it is convenient for the user to confirm whether the paid order is correct. The payment confirmation information may include part or all of the order information sent by the cash register device to the payment platform. For example, payment confirmation information may include order number, order amount, payee name and transaction description.
在一种可能的实现中,当订单金额大于预设金额时,支付平台向USSD网关发送支付确认信息。这样用户不用每次都输入支付密码,有利于提高支付便捷性。In a possible implementation, when the order amount is greater than the preset amount, the payment platform sends payment confirmation information to the USSD gateway. In this way, the user does not need to input the payment password every time, which is beneficial to improve the convenience of payment.
2008、USSD网关基于向终端设备发送该支付确认信息。2008, the USSD gateway sends the payment confirmation information to the terminal device.
本申请实施例中,USSD网关接收支付平台发送的支付确认信息之后,向终端设备发送该支付确认信息。In the embodiment of the present application, after receiving the payment confirmation information sent by the payment platform, the USSD gateway sends the payment confirmation information to the terminal device.
2009、终端设备显示该支付确认信息。2009. The terminal device displays the payment confirmation information.
本申请实施例中,终端设备接收该支付确认信息之后,显示该支付确认信息。例如,终端设备显示的支付确认信息如图21所示。In this embodiment of the present application, after receiving the payment confirmation information, the terminal device displays the payment confirmation information. For example, the payment confirmation information displayed by the terminal device is shown in Figure 21.
2010、终端设备接收用户输入的支付账户的支付密码。2010. The terminal device receives the payment password of the payment account input by the user.
本申请实施例中,终端设备显示该支付确认信息之后,可以接收用户输入的支付账户的支付密码。例如,如图21所示,用户通过键盘输入支付账户的支付密码为“213415”。In this embodiment of the present application, after displaying the payment confirmation information, the terminal device may receive the payment password of the payment account input by the user. For example, as shown in FIG. 21, the user inputs the payment password of the payment account through the keyboard as "213415".
2011、终端设备向USSD网关发送支付账户的支付密码。2011. The terminal device sends the payment password of the payment account to the USSD gateway.
本申请实施例中,终端设备接收用户输入的支付账户的支付密码之后,向USSD网关发送支付账户的支付密码。In the embodiment of the present application, after receiving the payment password of the payment account input by the user, the terminal device sends the payment password of the payment account to the USSD gateway.
2012、USSD网关向支付平台发送支付账户的支付密码。2012. The USSD gateway sends the payment password of the payment account to the payment platform.
本申请实施例中,USSD网关接收终端设备发送的支付账户的支付密码之后,向支付平台发送支付账户的支付密码。可选的,USSD网关还可将用户的第二标识与支付账户的支付密码一起发送给支付平台。从而支付平台可以基于用户的第二标识确定接收的支付密码是哪个用户的支付账户的密码。例如,假设用户的支付账户的标识与用户的第二标识相同,支付平台接收的用户的第二标识为“15232204938”,那么支付平台可以确定接收的支付密码为“15232204938”所标识的支付账户的密码。In the embodiment of the present application, after receiving the payment password of the payment account sent by the terminal device, the USSD gateway sends the payment password of the payment account to the payment platform. Optionally, the USSD gateway may also send the second identification of the user to the payment platform together with the payment password of the payment account. Therefore, the payment platform can determine which user's payment account password the received payment password is based on the second identifier of the user. For example, assuming that the identification of the user's payment account is the same as the second identification of the user, and the second identification of the user received by the payment platform is "15232204938", then the payment platform can determine that the received payment password is the identification of the payment account identified by "15232204938". password.
2013、支付平台成功校验接收的支付密码。In 2013, the payment platform successfully verified the received payment password.
本申请实施例中,支付平台接收USSD网关发送的用户的支付账户的支付密码之后,对接收的支付密码进行校验。支付平台成功校验接收的支付密码之后,执行步骤2014。支付平台校验接收的支付密码失败之后,可通过USSD网关向终端设备发送用于提示密码输入错误的提示信息。In the embodiment of the present application, after receiving the payment password of the user's payment account sent by the USSD gateway, the payment platform verifies the received payment password. After the payment platform successfully verifies the received payment password, step 2014 is executed. After the payment platform fails to verify the received payment password, it can send a prompt message to the terminal device to prompt the password input error through the USSD gateway.
例如,支付平台从USSD网关接收的“15232204938”标识的支付账户的支付密码为“213415”。支付平台获取预先存储的“15232204938”标识的支付账户的支付密码。如果支付平台校验预先存储的“15232204938”标识的支付账户的支付密码与“213415”相同。那么,支付平台确定对接收的支付密码校验通过。否则,支付平台确定对接收的支付密码校验不通过。For example, the payment password of the payment account identified by "15232204938" received by the payment platform from the USSD gateway is "213415". The payment platform obtains the pre-stored payment password of the payment account identified by "15232204938". If the payment platform verifies that the pre-stored payment password of the payment account identified by "15232204938" is the same as "213415". Then, the payment platform determines that the verification of the received payment password is passed. Otherwise, the payment platform determines that the verification of the received payment password fails.
2014、支付平台基于订单信息和用户的支付账户进行支付。2014. The payment platform makes payment based on the order information and the user's payment account.
例如,订单信息包括收款方的支付账户的标识和订单金额10元。用户的支付账户的标识为“15232204938”。支付平台从标识为“15232204938”的支付账户中转移10元钱至收款方的支付账户。For example, the order information includes the identification of the payee's payment account and the order amount of 10 yuan. The identification of the user's payment account is "15232204938". The payment platform transfers 10 yuan from the payment account identified as "15232204938" to the payee's payment account.
2015、支付平台向USSD网关和收银设备发送用户的支付结果信息。2015. The payment platform sends the user's payment result information to the USSD gateway and the cash register device.
本申请实施例中,支付平台基于订单信息和用户的支付账户进行支付之后,向USSD网关和收银设备发送用户的支付结果信息。如果支付平台基于订单信息和用户的支付账户支付成功,则支付结果信息指示支付成功。如果支付平台基于订单信息和用户的支付账户支付失败,则支付结果信息指示支付失败。In the embodiment of the present application, after the payment platform performs payment based on the order information and the user's payment account, it sends the user's payment result information to the USSD gateway and the cash register device. If the payment platform successfully pays based on the order information and the user's payment account, the payment result information indicates that the payment is successful. If the payment platform fails to pay based on the order information and the user's payment account, the payment result information indicates that the payment fails.
2016、USSD网关向终端设备发送支付结果信息。2016. The USSD gateway sends payment result information to the terminal device.
本申请实施例中,USSD网关接收支付结果信息之后,向终端设备发送支付结果信息。In the embodiment of the present application, after receiving the payment result information, the USSD gateway sends the payment result information to the terminal device.
2017、终端设备显示支付结果信息。2017. The terminal device displays payment result information.
本申请实施例中,终端设备接收支付结果信息之后,显示支付结果信息。例如,如图21 所示。In this embodiment of the present application, after receiving the payment result information, the terminal device displays the payment result information. For example, as shown in Figure 21.
2018、收银设备显示用户的支付结果信息。2018. The cash register device displays the payment result information of the user.
本申请实施例中,收银设备接收支付结果信息之后,显示支付结果信息。In this embodiment of the present application, after receiving the payment result information, the cash register device displays the payment result information.
可见,基于图20所描述的方法,用户需要在终端设备输入支付账户的支付密码才能进行支付,有利于提高支付的安全性。并且支付平台能够及时向终端设备和收银设备推送支付结果信息,以便用户和收银员及时了解订单支付结果。It can be seen that, based on the method described in FIG. 20 , the user needs to input the payment password of the payment account in the terminal device to make payment, which is beneficial to improve the security of payment. In addition, the payment platform can push payment result information to terminal devices and cashier devices in a timely manner, so that users and cashiers can timely understand the order payment results.
值得一提的是,在步骤2001之前还可执行图16所示的步骤1601~步骤1605。或者,在步骤2001之前还可执行图18所示的步骤1801~步骤1807。或者,在步骤2001之前还可执行图19所示的步骤1901~步骤1909。It is worth mentioning that steps 1601 to 1605 shown in FIG. 16 may also be performed before step 2001 . Alternatively, steps 1801 to 1807 shown in FIG. 18 may also be performed before step 2001 . Alternatively, steps 1901 to 1909 shown in FIG. 19 may also be performed before step 2001 .
请参见图22,图22示出了本申请实施例的一种通信装置的结构示意图。图22所示的通信装置可以用于执行上述图4、图6、图16、图18、图19、图20所描述的方法实施例中终端设备的部分或全部功能。该装置可以是终端设备,也可以是终端设备中的装置,或者是能够和终端设备匹配使用的装置。其中,该通信装置还可以为芯片系统。图22所示的通信装置可以包括通信单元2201和处理单元2202。其中,处理单元2202,用于进行数据处理。通信单元2201集成有接收单元和发送单元。通信单元2201也可以称为收发单元。或者,也可将通信单元2201拆分为接收单元和发送单元。下文的处理单元2202和通信单元2201同理,下文不再赘述。其中:Referring to FIG. 22, FIG. 22 shows a schematic structural diagram of a communication apparatus according to an embodiment of the present application. The communication apparatus shown in FIG. 22 may be used to execute part or all of the functions of the terminal device in the method embodiments described in the above-mentioned FIGS. 4 , 6 , 16 , 18 , 19 , and 20 . The device may be a terminal device, or a device in the terminal device, or a device that can be used in combination with the terminal device. Wherein, the communication device may also be a chip system. The communication apparatus shown in FIG. 22 may include a communication unit 2201 and a processing unit 2202 . Among them, the processing unit 2202 is used for data processing. The communication unit 2201 integrates a receiving unit and a transmitting unit. The communication unit 2201 may also be referred to as a transceiving unit. Alternatively, the communication unit 2201 can also be divided into a receiving unit and a sending unit. The processing unit 2202 and the communication unit 2201 in the following are the same, and will not be repeated below. in:
通信单元2201,用于从非结构化补充业务数据USSD网关接收支付字符序列;处理单元2202,用于显示支付字符序列供收银设备扫描,以通过用户的支付账户进行支付;其中,支付字符序列包括第一字符序列,该第一字符序列包括用于指示支付账户的多个可见字符。The communication unit 2201 is used to receive the payment character sequence from the unstructured supplementary service data USSD gateway; the processing unit 2202 is used to display the payment character sequence for the cashier device to scan for payment through the user's payment account; wherein the payment character sequence includes A first sequence of characters that includes a plurality of visible characters for indicating a payment account.
在一种可能的实现中,处理单元2202,还用于呈现USSD菜单项;通信单元2201,还用于响应于USSD菜单项的选择操作,向USSD网关发送用于请求提供支付字符序列的第一请求,该第一请求包含用户的第一标识。In a possible implementation, the processing unit 2202 is further configured to present the USSD menu item; the communication unit 2201 is further configured to, in response to the selection operation of the USSD menu item, send to the USSD gateway a first request for providing the payment character sequence request, where the first request includes the first identifier of the user.
在一种可能的实现中,处理单元2202呈现USSD菜单项的方式具体为:从USSD网关接收第一USSD菜单数据;基于第一USSD菜单数据显示USSD菜单,USSD菜单包含USSD菜单项。In a possible implementation, the manner in which the processing unit 2202 presents the USSD menu items is as follows: receiving first USSD menu data from the USSD gateway; and displaying a USSD menu based on the first USSD menu data, where the USSD menu includes USSD menu items.
在一种可能的实现中,通信单元2201,还用于响应于按键输入操作向USSD网关发送第三请求,该第三请求用于请求提供第一USSD菜单数据。In a possible implementation, the communication unit 2201 is further configured to send a third request to the USSD gateway in response to a key input operation, where the third request is used to request to provide the first USSD menu data.
在一种可能的实现中,支付字符序列还包括第二字符序列,第二字符序列包括至少一个可见字符,第二字符序列用于对第一字符序列进行校验。In a possible implementation, the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used for checking the first character sequence.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,第一分界字符序列包括至少一个可见字符;和/或,In a possible implementation, before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; and/or,
在第一字符序列之后,支付字符序列还包括第二分界字符序列,第二分界字符序列包括至少一个可见字符。After the first sequence of characters, the sequence of payout characters further includes a second sequence of delimiting characters, the second sequence of delimiting characters including at least one visible character.
在一种可能的实现中,支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。In one possible implementation, the visible characters in the payment character sequence are visible ASCII characters.
在一种可能的实现中,支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。In one possible implementation, the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
在一种可能的实现中,通信单元2201,还用于接收USSD网关发送的支付确认信息,支付确认信息包括用于提示用户输入支付账户的支付密码的提示信息;处理单元2202,还用于 显示支付确认信息;通信单元2201,还用于接收用户输入的支付账户的支付密码;通信单元2201,还用于向USSD网关发送支付账户的支付密码。In a possible implementation, the communication unit 2201 is further configured to receive payment confirmation information sent by the USSD gateway, where the payment confirmation information includes prompt information for prompting the user to input the payment password of the payment account; the processing unit 2202 is further configured to display Payment confirmation information; the communication unit 2201 is further configured to receive the payment password of the payment account input by the user; the communication unit 2201 is further configured to send the payment password of the payment account to the USSD gateway.
在一种可能的实现中,支付确认信息还包括用户的订单信息。In a possible implementation, the payment confirmation information also includes the user's order information.
在一种可能的实现中,通信单元2201,还用于接收USSD网关发送的用户的支付结果信息;处理单元2202,还用于显示支付结果信息。In a possible implementation, the communication unit 2201 is further configured to receive payment result information of the user sent by the USSD gateway; the processing unit 2202 is further configured to display the payment result information.
请参见图22,图22示出了本申请实施例的一种通信装置的结构示意图。图22所示的通信装置可以用于执行上述图4、图6、图16、图18、图19、图20所描述的方法实施例中USSD网关的部分或全部功能。该装置可以是USSD网关,也可以是USSD网关中的装置,或者是能够和USSD网关匹配使用的装置。其中,该通信装置还可以为芯片系统。图22所示的通信装置可以包括通信单元2201和处理单元2202。其中:Referring to FIG. 22, FIG. 22 shows a schematic structural diagram of a communication apparatus according to an embodiment of the present application. The communication device shown in FIG. 22 can be used to execute part or all of the functions of the USSD gateway in the method embodiments described in the above-mentioned FIG. 4 , FIG. 6 , FIG. 16 , FIG. 18 , FIG. 19 and FIG. 20 . The device may be a USSD gateway, a device in a USSD gateway, or a device that can be matched with the USSD gateway. Wherein, the communication device may also be a chip system. The communication apparatus shown in FIG. 22 may include a communication unit 2201 and a processing unit 2202 . in:
通信单元2201,用于接收支付平台发送的支付字符序列;通信单元2201,还用于向用户的终端设备发送支付字符序列;其中,支付字符序列包括第一字符序列,第一字符序列包括用于指示用户的支付账户的多个可见字符,支付字符序列用于在终端设备显示后供收银设备扫描,以通过支付账户进行支付。The communication unit 2201 is used to receive the payment character sequence sent by the payment platform; the communication unit 2201 is also used to send the payment character sequence to the user's terminal device; wherein the payment character sequence includes a first character sequence, and the first character sequence includes A plurality of visible characters indicating the user's payment account, and the sequence of payment characters is used to be scanned by the cashier device after being displayed by the terminal device to make payment through the payment account.
在一种可能的实现中,USSD网关从终端设备接收第一请求,该第一请求包含用户的第一标识;USSD网关响应于第一请求,向支付平台发送第二请求,该第二请求用于请求提供支付字符序列,该第二请求携带用户的第二标识,该第二标识基于第一标识确定。In a possible implementation, the USSD gateway receives a first request from the terminal device, where the first request includes the first identifier of the user; the USSD gateway sends a second request to the payment platform in response to the first request, and the second request uses In response to a request to provide a payment character sequence, the second request carries a second identification of the user, and the second identification is determined based on the first identification.
在一种可能的实现中,USSD网关向终端设备发送第一USSD菜单数据;其中,该第一USSD菜单数据用于终端设备显示USSD菜单,该USSD菜单包括USSD菜单项,该USSD菜单项用于触发终端设备向USSD网关发送第一请求。In a possible implementation, the USSD gateway sends first USSD menu data to the terminal device; wherein, the first USSD menu data is used for the terminal device to display a USSD menu, the USSD menu includes USSD menu items, and the USSD menu items are used for Trigger the terminal device to send the first request to the USSD gateway.
在一种可能的实现中,通信单元2201,还用于在向终端设备发送USSD菜单数据之前,接收终端设备发送的第三请求,该第三请求用于请求提供第一USSD菜单数据。In a possible implementation, the communication unit 2201 is further configured to receive a third request sent by the terminal device before sending the USSD menu data to the terminal device, where the third request is used to request to provide the first USSD menu data.
在一种可能的实现中,通信单元2201,还用于在向终端设备发送第一USSD菜单数据之前,向支付平台发送第四请求,该第四请求用于请求提供第二USSD菜单数据;以及接收支付平台发送的第二USSD菜单数据;通信单元2201向终端设备发送第一USSD菜单数据的方式具体为:基于第二USSD菜单数据向终端设备发送第一USSD菜单数据。In a possible implementation, the communication unit 2201 is further configured to send a fourth request to the payment platform before sending the first USSD menu data to the terminal device, where the fourth request is used to request to provide the second USSD menu data; and Receive the second USSD menu data sent by the payment platform; the communication unit 2201 sends the first USSD menu data to the terminal device in a specific manner: sending the first USSD menu data to the terminal device based on the second USSD menu data.
在一种可能的实现中,支付字符序列还包括第二字符序列,第二字符序列包括至少一个可见字符,第二字符序列用于对第一字符序列进行校验。In a possible implementation, the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,第一分界字符序列包括至少一个可见字符;和/或,In a possible implementation, before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; and/or,
在第一字符序列之后,支付字符序列还包括第二分界字符序列,第二分界字符序列包括至少一个可见字符。After the first sequence of characters, the sequence of payout characters further includes a second sequence of delimiting characters, the second sequence of delimiting characters including at least one visible character.
在一种可能的实现中,支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。In one possible implementation, the visible characters in the payment character sequence are visible ASCII characters.
在一种可能的实现中,支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。In one possible implementation, the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
在一种可能的实现中,通信单元2201,还用于在向用户的终端设备发送支付字符序列之后,接收支付平台发送的支付确认信息,该支付确认信息包括用于提示用户输入支付账户的支付密码的提示信息;以及向终端设备发送支付确认信息;以及接收终端设备发送的支付账户的支付密码;以及向支付平台发送支付账户的支付密码。In a possible implementation, the communication unit 2201 is further configured to receive payment confirmation information sent by the payment platform after sending the payment character sequence to the user's terminal device, where the payment confirmation information includes a payment for prompting the user to input a payment account and sending payment confirmation information to the terminal device; and receiving the payment password of the payment account sent by the terminal device; and sending the payment password of the payment account to the payment platform.
在一种可能的实现中,支付确认信息还包括用户的订单信息。In a possible implementation, the payment confirmation information also includes the user's order information.
在一种可能的实现中,通信单元2201,还用于在向用户的终端设备发送支付字符序列之后,接收支付平台发送的用户的支付结果信息;以及向终端设备发送支付结果信息。In a possible implementation, the communication unit 2201 is further configured to, after sending the payment character sequence to the user's terminal device, receive the user's payment result information sent by the payment platform; and send the payment result information to the terminal device.
请参见图22,图22示出了本申请实施例的一种通信装置的结构示意图。图22所示的通信装置可以用于执行上述图4、图6、图16、图18、图19、图20所描述的方法实施例中支付平台的部分或全部功能。该装置可以是支付平台,也可以是支付平台中的装置,或者是能够和支付平台匹配使用的装置。其中,该通信装置还可以为芯片系统。图22所示的通信装置可以包括通信单元2201和处理单元2202。其中:Referring to FIG. 22, FIG. 22 shows a schematic structural diagram of a communication apparatus according to an embodiment of the present application. The communication device shown in Fig. 22 can be used to execute part or all of the functions of the payment platform in the method embodiments described in Figs. 4, 6, 16, 18, 19, and 20. The device may be a payment platform, or a device in the payment platform, or a device that can be used in conjunction with the payment platform. Wherein, the communication device may also be a chip system. The communication apparatus shown in FIG. 22 may include a communication unit 2201 and a processing unit 2202 . in:
通信单元2201,用于向非结构化补充业务数据USSD网关发送支付字符序列;其中,该支付字符序列包括第一字符序列,该第一字符序列包括用于指示用户的支付账户的多个可见字符,支付字符序列用于在用户的终端设备显示后供收银设备扫描,以通过支付账户进行支付。The communication unit 2201 is configured to send a payment character sequence to the unstructured supplementary service data USSD gateway; wherein, the payment character sequence includes a first character sequence, and the first character sequence includes a plurality of visible characters used to indicate the user's payment account , the payment character sequence is used for scanning by the cashier device after being displayed on the user's terminal device, so as to make payment through the payment account.
在一种可能的实现中,通信单元2201,还用于接收USSD网关发送的第二请求,该第二请求包含用户的第二标识;处理单元2202,用于响应于第二请求,为用户生成支付字符序列,以及建立支付账户的标识与第一字符序列之间的对应关系,支付账户的标识基于用户的第二标识得到。In a possible implementation, the communication unit 2201 is further configured to receive a second request sent by the USSD gateway, where the second request includes the second identifier of the user; the processing unit 2202 is configured to respond to the second request and generate for the user The payment character sequence, and establishing the correspondence between the identification of the payment account and the first character sequence, the identification of the payment account is obtained based on the second identification of the user.
在一种可能的实现中,通信单元2201,还用于在接收USSD网关发送的第二请求之前,接收USSD网关发送的第四请求,该第四请求用于请求提供第二USSD菜单数据;以及向USSD网关发送第二USSD菜单数据;其中,第二USSD菜单数据用于USSD网关向终端设备发送第一USSD菜单数据,第一USSD菜单数据用于终端设备显示USSD菜单,USSD菜单包括USSD菜单项,USSD菜单项用于触发终端设备向USSD网关发送第一请求,第一请求用于触发USSD网关向支付平台发送第二请求。In a possible implementation, the communication unit 2201 is further configured to, before receiving the second request sent by the USSD gateway, receive a fourth request sent by the USSD gateway, where the fourth request is used to request to provide the second USSD menu data; and Send the second USSD menu data to the USSD gateway; wherein, the second USSD menu data is used by the USSD gateway to send the first USSD menu data to the terminal device, and the first USSD menu data is used for the terminal device to display the USSD menu, and the USSD menu includes USSD menu items , the USSD menu item is used to trigger the terminal device to send a first request to the USSD gateway, and the first request is used to trigger the USSD gateway to send a second request to the payment platform.
在一种可能的实现中,支付字符序列还包括第二字符序列,第二字符序列包括至少一个可见字符,第二字符序列用于对第一字符序列进行校验。In a possible implementation, the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,第一分界字符序列包括至少一个可见字符;和/或,In a possible implementation, before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; and/or,
在第一字符序列之后,支付字符序列还包括第二分界字符序列,第二分界字符序列包括至少一个可见字符。After the first sequence of characters, the sequence of payout characters further includes a second sequence of delimiting characters, the second sequence of delimiting characters including at least one visible character.
在一种可能的实现中,支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。In one possible implementation, the visible characters in the payment character sequence are visible ASCII characters.
在一种可能的实现中,支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。In one possible implementation, the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
在一种可能的实现中,第一字符序列包括基于用户的手机号码和/或第一时间确定的字符,第一时间为第一字符序列的生成时间。In a possible implementation, the first character sequence includes characters determined based on the user's mobile phone number and/or the first time, where the first time is the generation time of the first character sequence.
在一种可能的实现中,第一字符序列包括随机字符。In one possible implementation, the first sequence of characters includes random characters.
在一种可能的实现中,第二字符序列对应的二进制数序列由第一字符序列中的各个字符对应的任意一位二进制数组成。In a possible implementation, the binary number sequence corresponding to the second character sequence consists of any binary number corresponding to each character in the first character sequence.
在一种可能的实现中,通信单元2201,还用于在向非结构化补充业务数据USSD网关发送支付字符序列之后,接收收银设备发送的支付请求,该支付请求携带订单信息和收银设备扫描支付字符序列得到的第三字符序列;处理单元2202,还用于基于第三字符序列确定用户 的支付账户的标识,以及基于订单信息和用户的支付账户的标识进行支付。In a possible implementation, the communication unit 2201 is further configured to receive a payment request sent by the cash register device after sending the payment character sequence to the unstructured supplementary service data USSD gateway, where the payment request carries the order information and the cash register device scans and pays The third character sequence obtained from the character sequence; the processing unit 2202 is further configured to determine the identifier of the user's payment account based on the third character sequence, and perform payment based on the order information and the identifier of the user's payment account.
在一种可能的实现中,通信单元2201,还用于在处理单元2202基于订单信息和用户的支付账户的标识进行支付之前,向USSD网关发送支付确认信息,该支付确认信息包括用于提示用户输入支付账户的支付密码的提示信息;通信单元2201,还用于接收USSD网关发送的支付账户的支付密码;处理单元2202,还用于成功校验支付账户的支付密码。In a possible implementation, the communication unit 2201 is further configured to send payment confirmation information to the USSD gateway before the processing unit 2202 performs payment based on the order information and the identifier of the payment account of the user, where the payment confirmation information includes information for prompting the user The prompt information for entering the payment password of the payment account; the communication unit 2201 is further configured to receive the payment password of the payment account sent by the USSD gateway; the processing unit 2202 is further configured to successfully verify the payment password of the payment account.
在一种可能的实现中,支付确认信息携带订单信息。In a possible implementation, the payment confirmation information carries order information.
在一种可能的实现中,通信单元2201,还用于向USSD网关和收银设备发送用户的支付结果信息。In a possible implementation, the communication unit 2201 is further configured to send the user's payment result information to the USSD gateway and the cash register device.
请参见图22,图22示出了本申请实施例的一种通信装置的结构示意图。图22所示的通信装置可以用于执行上述图4、图6、图16、图18、图19、图20所描述的方法实施例中收银设备的部分或全部功能。该装置可以是收银设备,也可以是收银设备中的装置,或者是能够和收银设备匹配使用的装置。其中,该通信装置还可以为芯片系统。图22所示的通信装置可以包括通信单元2201和处理单元2202。其中:Referring to FIG. 22, FIG. 22 shows a schematic structural diagram of a communication apparatus according to an embodiment of the present application. The communication apparatus shown in FIG. 22 can be used to execute part or all of the functions of the cash register device in the method embodiments described in the above-mentioned FIGS. 4 , 6 , 16 , 18 , 19 , and 20 . The device may be a cash register device, a device in a cash register device, or a device that can be matched with the cash register device. Wherein, the communication device may also be a chip system. The communication apparatus shown in FIG. 22 may include a communication unit 2201 and a processing unit 2202 . in:
处理单元2202,用于扫描用户的终端设备显示的支付字符序列,识别支付字符序列中的第一字符序列得到第三字符序列;通信单元2201,用于基于第三字符序列请求支付平台通过用户的支付账户进行支付;其中,第一字符序列包括支付平台生成的、用于指示支付账户的多个可见字符。The processing unit 2202 is used to scan the payment character sequence displayed by the user's terminal device, and identify the first character sequence in the payment character sequence to obtain the third character sequence; the communication unit 2201 is used to request the payment platform based on the third character sequence to pass the user's The payment account is used for payment; wherein, the first character sequence includes a plurality of visible characters generated by the payment platform and used to indicate the payment account.
在一种可能的实现中,支付字符序列还包括第二字符序列,第二字符序列包括至少一个可见字符,第二字符序列用于对第一字符序列进行校验;处理单元2202,用于在通信单元2201基于第三字符序列请求支付平台通过用户的支付账户进行支付之前,识别支付字符序列中的第二字符序列得到第四字符序列;以及基于第四字符序列校验第三字符序列,且校验结果为通过。In a possible implementation, the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence is used to verify the first character sequence; the processing unit 2202 is configured to The communication unit 2201 identifies the second character sequence in the payment character sequence to obtain the fourth character sequence before requesting the payment platform to pay through the user's payment account based on the third character sequence; and verifies the third character sequence based on the fourth character sequence, and The verification result is passed.
在一种可能的实现中,在校验结果为不通过的情况下,处理单元2202还用于提示第三字符序列中识别错误的字符的位置。In a possible implementation, in the case that the verification result is unsuccessful, the processing unit 2202 is further configured to prompt the position of the incorrectly recognized character in the third character sequence.
在一种可能的实现中,在第一字符序列之前,支付字符序列还包括第一分界字符序列,第一分界字符序列包括至少一个可见字符;和/或,In a possible implementation, before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least one visible character; and/or,
在第一字符序列之后,支付字符序列还包括第二分界字符序列,第二分界字符序列包括至少一个可见字符。After the first sequence of characters, the sequence of payout characters further includes a second sequence of delimiting characters, the second sequence of delimiting characters including at least one visible character.
在一种可能的实现中,支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。In one possible implementation, the visible characters in the payment character sequence are visible ASCII characters.
在一种可能的实现中,支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。In one possible implementation, the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
在一种可能的实现中,处理单元2202识别支付字符序列中的第一字符序列得到第三字符序列的方式具体为:识别支付字符序列中的第一字符序列得到第五字符序列;将第五字符序列中的至少一个字符替换为预设的相似字符,得到第三字符序列。In a possible implementation, the manner in which the processing unit 2202 identifies the first character sequence in the payment character sequence to obtain the third character sequence is specifically: identifying the first character sequence in the payment character sequence to obtain the fifth character sequence; At least one character in the character sequence is replaced with a preset similar character to obtain a third character sequence.
在一种可能的实现中,通信单元2201基于第三字符序列请求支付平台通过用户的支付账户进行支付的方式具体为:向支付平台发送支付请求,该支付请求携带订单信息和第三字符序列。In a possible implementation, the communication unit 2201 requests the payment platform to pay through the user's payment account based on the third character sequence: sending a payment request to the payment platform, where the payment request carries the order information and the third character sequence.
在一种可能的实现中,通信单元2201,还用于收银设备接收支付平台发送的用户的支付结果信息;处理单元2202,还用于显示用户的支付结果信息。In a possible implementation, the communication unit 2201 is further configured to receive the payment result information of the user sent by the payment platform; the processing unit 2202 is further configured to display the payment result information of the user.
如图23所示为本申请实施例提供的一种通信装置230,用于实现上述图4、图6、图16、图18、图19、图20中终端设备的功能。该装置可以是终端设备或用于终端设备的装置。用于终端设备的装置可以为终端设备内的芯片系统或芯片。其中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。FIG. 23 shows a communication apparatus 230 provided by an embodiment of the present application, which is used to implement the functions of the terminal equipment in the above-mentioned FIGS. 4 , 6 , 16 , 18 , 19 , and 20 . The apparatus may be a terminal device or an apparatus for a terminal device. The means for the terminal device may be a system-on-a-chip or a chip within the terminal device. Wherein, the chip system may be composed of chips, and may also include chips and other discrete devices.
或者,通信装置230,用于实现上述图4、图6、图16、图18、图19、图20中USSD网关的功能。该装置可以是USSD网关或用于USSD网关的装置。用于USSD网关的装置可以为USSD网关内的芯片系统或芯片。Alternatively, the communication device 230 is configured to implement the functions of the USSD gateway in the above-mentioned FIG. 4 , FIG. 6 , FIG. 16 , FIG. 18 , FIG. 19 , and FIG. 20 . The device may be a USSD gateway or a device for a USSD gateway. The means for the USSD gateway may be a system-on-a-chip or chip within the USSD gateway.
或者,通信装置230,用于实现上述图4、图6、图16、图18、图19、图20中支付平台的功能。该装置可以是支付平台或用于支付平台的装置。用于支付平台的装置可以为支付平台内的芯片系统或芯片。Alternatively, the communication device 230 is configured to implement the functions of the payment platform in the above-mentioned FIG. 4 , FIG. 6 , FIG. 16 , FIG. 18 , FIG. 19 , and FIG. 20 . The device may be a payment platform or a device for a payment platform. The means for the payment platform may be a system-on-a-chip or chip within the payment platform.
或者,通信装置230,用于实现上述图4、图6、图16、图18、图19、图20中收银设备的功能。该装置可以是收银设备或用于收银设备的装置。用于收银设备的装置可以为收银设备内的芯片系统或芯片。Alternatively, the communication device 230 is configured to implement the functions of the cash register device in the above-mentioned FIG. 4 , FIG. 6 , FIG. 16 , FIG. 18 , FIG. 19 , and FIG. 20 . The device may be a checkout device or a device for a checkout device. The means for the cash register may be a chip system or chip within the cash register.
通信装置230包括至少一个处理器2320,用于实现本申请实施例提供的方法中终端设备或USSD网关或支付平台或收银设备的数据处理功能。装置230还可以包括通信接口2310,用于实现本申请实施例提供的方法中终端设备或USSD网关或支付平台或收银设备的收发操作。在本申请实施例中,通信接口可以是收发器、电路、总线、模块或其它类型的通信接口,用于通过传输介质和其它设备进行通信。例如,通信接口2310用于装置230中的装置可以和其它设备进行通信。处理器2320利用通信接口2310收发数据,并用于实现上述方法实施例图4、图6、图16、图18、图19、图20所述的方法。The communication apparatus 230 includes at least one processor 2320, configured to implement the data processing function of the terminal device or the USSD gateway or the payment platform or the cashier device in the method provided in the embodiment of the present application. The apparatus 230 may further include a communication interface 2310, configured to implement the sending and receiving operations of the terminal device or the USSD gateway or the payment platform or the cashier device in the method provided in the embodiment of the present application. In this embodiment of the present application, the communication interface may be a transceiver, a circuit, a bus, a module or other types of communication interfaces, which are used to communicate with other devices through a transmission medium. For example, the communication interface 2310 is used by the apparatus in the apparatus 230 to communicate with other devices. The processor 2320 uses the communication interface 2310 to send and receive data, and is used to implement the methods described in the foregoing method embodiments in FIGS. 4 , 6 , 16 , 18 , 19 , and 20 .
装置230还可以包括至少一个存储器2330,用于存储程序指令和/或数据。存储器2330和处理器2320耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器2320可能和存储器2330协同操作。处理器2320可能执行存储器2330中存储的程序指令。所述至少一个存储器中的至少一个可以包括于处理器中。Apparatus 230 may also include at least one memory 2330 for storing program instructions and/or data. Memory 2330 and processor 2320 are coupled. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 2320 may cooperate with the memory 2330. The processor 2320 may execute program instructions stored in the memory 2330 . At least one of the at least one memory may be included in the processor.
本申请实施例中不限定上述通信接口2310、处理器2320以及存储器2330之间的具体连接介质。本申请实施例在图23中以存储器2330、处理器2320以及通信接口2310之间通过总线2340连接,总线在图23中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图23中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the communication interface 2310, the processor 2320, and the memory 2330 is not limited in this embodiment of the present application. In this embodiment of the present application, the memory 2330, the processor 2320, and the communication interface 2310 are connected through a bus 2340 in FIG. 23. The bus is represented by a thick line in FIG. 23, and the connection between other components is only for schematic illustration. , is not limited. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is shown in FIG. 23, but it does not mean that there is only one bus or one type of bus.
装置230具体是用于终端设备或USSD网关或支付平台或收银设备的装置时,例如装置230具体是芯片或者芯片系统时,通信接口2310所输出或接收的可以是基带信号。装置230具体是终端设备或接入网设备时,通信接口2310所输出或接收的可以是射频信号。在本申请实施例中,处理器可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、操作及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的操作可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。When the device 230 is specifically a device used for a terminal device or a USSD gateway or a payment platform or a cash register device, for example, when the device 230 is a chip or a chip system, the communication interface 2310 may output or receive baseband signals. When the apparatus 230 is specifically a terminal device or an access network device, the output or reception of the communication interface 2310 may be a radio frequency signal. In this embodiment of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or The methods, operations, and logic block diagrams disclosed in the embodiments of the present application are executed. A general purpose processor may be a microprocessor or any conventional processor or the like. The operations of the methods disclosed in combination with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在处理器上运行时,上述方法实施例的方法流程得以实现。Embodiments of the present application further provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a processor, the method flow of the foregoing method embodiment is implemented.
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在处理器上运行时,上述方法实施例的方法流程得以实现。The embodiments of the present application further provide a computer program product, when the computer program product runs on a processor, the method flow of the above method embodiments is realized.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些操作可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain operations may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
本申请提供的各实施例的描述可以相互参照,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。为描述的方便和简洁,例如关于本申请实施例提供的各装置、设备的功能以及执行的操作可以参照本申请方法实施例的相关描述,各方法实施例之间、各装置实施例之间也可以互相参考、结合或引用。The descriptions of the embodiments provided in this application may refer to each other, and the descriptions of the various embodiments have their own emphasis. For the parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments. For the convenience and brevity of description, for example, regarding the functions and operations of each device and device provided in the embodiments of the present application, reference may be made to the related descriptions of the method embodiments of the present application, and also between the method embodiments and the device embodiments. There may be mutual reference, combination or reference.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. scope.
Claims (62)
- 一种支付方法,其特征在于,所述方法包括:A payment method, characterized in that the method comprises:用户的终端设备从非结构化补充业务数据USSD网关接收支付字符序列;The user's terminal device receives the payment character sequence from the unstructured supplementary service data USSD gateway;所述终端设备显示所述支付字符序列供收银设备扫描,以通过所述用户的支付账户进行支付;The terminal device displays the payment character sequence for the cashier device to scan for payment through the user's payment account;其中,所述支付字符序列包括第一字符序列,所述第一字符序列包括用于指示所述支付账户的多个可见字符。Wherein, the payment character sequence includes a first character sequence, and the first character sequence includes a plurality of visible characters for indicating the payment account.
- 根据权利要求1所述的方法,其特征在于,所述终端设备从所述USSD网关接收支付字符序列之前,所述方法还包括:The method according to claim 1, wherein before the terminal device receives the payment character sequence from the USSD gateway, the method further comprises:所述终端设备呈现USSD菜单项;The terminal device presents USSD menu items;所述终端设备响应于所述USSD菜单项的选择操作,向所述USSD网关发送用于请求提供所述支付字符序列的第一请求,所述第一请求包含所述用户的第一标识。In response to the selection operation of the USSD menu item, the terminal device sends a first request for requesting to provide the payment character sequence to the USSD gateway, the first request including the first identification of the user.
- 根据权利要求2所述的方法,其特征在于,所述终端设备呈现所述USSD菜单项,包括:The method according to claim 2, wherein the terminal device presents the USSD menu item, comprising:所述终端设备从所述USSD网关接收第一USSD菜单数据;The terminal device receives the first USSD menu data from the USSD gateway;所述终端设备基于所述第一USSD菜单数据显示USSD菜单,所述USSD菜单包含所述USSD菜单项。The terminal device displays a USSD menu based on the first USSD menu data, and the USSD menu includes the USSD menu item.
- 根据权利要求3所述的方法,其特征在于,所述终端设备从所述USSD网关接收USSD菜单数据之前,所述方法还包括:The method according to claim 3, wherein before the terminal device receives USSD menu data from the USSD gateway, the method further comprises:所述终端设备响应于按键输入操作向所述USSD网关发送第三请求,所述第三请求用于请求提供所述第一USSD菜单数据。The terminal device sends a third request to the USSD gateway in response to a key input operation, where the third request is used to request to provide the first USSD menu data.
- 根据权利要求1~4中任意一项所述的方法,其特征在于,所述支付字符序列还包括第二字符序列,所述第二字符序列包括至少一个可见字符,所述第二字符序列用于对所述第一字符序列进行校验。The method according to any one of claims 1 to 4, wherein the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence uses for verifying the first character sequence.
- 根据权利要求1~5中任意一项所述的方法,其特征在于,The method according to any one of claims 1 to 5, wherein,在所述第一字符序列之前,所述支付字符序列还包括第一分界字符序列,所述第一分界字符序列包括至少一个可见字符;和/或,Before the first character sequence, the payment character sequence further includes a first delimiting character sequence, the first delimiting character sequence includes at least one visible character; and/or,在所述第一字符序列之后,所述支付字符序列还包括第二分界字符序列,所述第二分界字符序列包括至少一个可见字符。After the first sequence of characters, the sequence of payout characters further includes a second sequence of delimited characters, the second sequence of delimited characters including at least one visible character.
- 根据权利要求1~6中任意一项所述的方法,其特征在于,所述支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。The method according to any one of claims 1 to 6, wherein the visible characters in the payment character sequence are visible American Standard Code for Information Interchange ASCII characters.
- 根据权利要求1~6中任意一项所述的方法,其特征在于,所述支付字符序列中的可见 字符为高识别度美国信息交换标准代码ASCII字符。The method according to any one of claims 1 to 6, wherein the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- 根据权利要求1~8中任意一项所述的方法,其特征在于,所述终端设备显示所述支付字符序列供收银设备扫描之后,所述方法还包括:The method according to any one of claims 1 to 8, wherein after the terminal device displays the payment character sequence for the cashier device to scan, the method further comprises:所述终端设备接收所述USSD网关发送的支付确认信息,所述支付确认信息包括用于提示用户输入所述支付账户的支付密码的提示信息;The terminal device receives payment confirmation information sent by the USSD gateway, where the payment confirmation information includes prompt information for prompting the user to input the payment password of the payment account;所述终端设备显示所述支付确认信息;The terminal device displays the payment confirmation information;所述终端设备接收用户输入的所述支付账户的支付密码;The terminal device receives the payment password of the payment account input by the user;所述终端设备向所述USSD网关发送所述支付账户的支付密码。The terminal device sends the payment password of the payment account to the USSD gateway.
- 根据权利要求9所述的方法,其特征在于,所述支付确认信息还包括所述用户的订单信息。The method according to claim 9, wherein the payment confirmation information further includes order information of the user.
- 根据权利要求1~10中任意一项所述的方法,其特征在于,所述终端设备显示所述支付字符序列供收银设备扫描之后,所述方法还包括:The method according to any one of claims 1 to 10, wherein after the terminal device displays the payment character sequence for the cashier device to scan, the method further comprises:所述终端设备接收所述USSD网关发送的所述用户的支付结果信息;receiving, by the terminal device, the payment result information of the user sent by the USSD gateway;所述终端设备显示所述支付结果信息。The terminal device displays the payment result information.
- 一种支付方法,其特征在于,所述方法包括:A payment method, characterized in that the method comprises:非结构化补充业务数据USSD网关接收支付平台发送的支付字符序列;The unstructured supplementary business data USSD gateway receives the payment character sequence sent by the payment platform;所述USSD网关向用户的终端设备发送所述支付字符序列;The USSD gateway sends the payment character sequence to the user's terminal device;其中,所述支付字符序列包括第一字符序列,所述第一字符序列包括用于指示所述用户的支付账户的多个可见字符,所述支付字符序列用于在所述终端设备显示后供收银设备扫描,以通过所述支付账户进行支付。Wherein, the payment character sequence includes a first character sequence, the first character sequence includes a plurality of visible characters used to indicate the user's payment account, and the payment character sequence is used for displaying on the terminal device for display The checkout device scans to make payment through the payment account.
- 根据权利要求12所述的方法,其特征在于,所述USSD网关接收所述支付平台发送的所述支付字符序列之前,所述方法还包括:The method according to claim 12, wherein before the USSD gateway receives the payment character sequence sent by the payment platform, the method further comprises:所述USSD网关从所述终端设备接收第一请求,所述第一请求包含所述用户的第一标识;receiving, by the USSD gateway, a first request from the terminal device, where the first request includes a first identifier of the user;所述USSD网关响应于所述第一请求,向所述支付平台发送第二请求,所述第二请求用于请求提供所述支付字符序列,所述第二请求携带所述用户的第二标识,所述第二标识基于所述第一标识确定。In response to the first request, the USSD gateway sends a second request to the payment platform, where the second request is used to request to provide the payment character sequence, and the second request carries the second identifier of the user , and the second identifier is determined based on the first identifier.
- 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method of claim 13, wherein the method further comprises:所述USSD网关向所述终端设备发送第一USSD菜单数据;The USSD gateway sends the first USSD menu data to the terminal device;其中,所述第一USSD菜单数据用于所述终端设备显示USSD菜单,所述USSD菜单包括USSD菜单项,所述USSD菜单项用于触发所述终端设备向所述USSD网关发送所述第一请求。The first USSD menu data is used for the terminal device to display a USSD menu, the USSD menu includes a USSD menu item, and the USSD menu item is used to trigger the terminal device to send the first USSD gateway to the USSD gateway. ask.
- 根据权利要求14所述的方法,其特征在于,所述USSD网关向所述终端设备发送USSD菜单数据之前,所述方法还包括:The method according to claim 14, wherein before the USSD gateway sends USSD menu data to the terminal device, the method further comprises:所述USSD网关接收所述终端设备发送的第三请求,所述第三请求用于请求提供所述第 一USSD菜单数据。The USSD gateway receives a third request sent by the terminal device, where the third request is used to request to provide the first USSD menu data.
- 根据权利要求14或15所述的方法,其特征在于,所述USSD网关向所述终端设备发送第一USSD菜单数据之前,所述方法还包括:The method according to claim 14 or 15, wherein before the USSD gateway sends the first USSD menu data to the terminal device, the method further comprises:所述USSD网关向所述支付平台发送第四请求,所述第四请求用于请求提供第二USSD菜单数据;The USSD gateway sends a fourth request to the payment platform, where the fourth request is used to request to provide second USSD menu data;所述USSD网关接收所述支付平台发送的所述第二USSD菜单数据;The USSD gateway receives the second USSD menu data sent by the payment platform;所述USSD网关向所述终端设备发送第一USSD菜单数据,包括:The USSD gateway sends first USSD menu data to the terminal device, including:所述USSD网关基于所述第二USSD菜单数据向所述终端设备发送第一USSD菜单数据。The USSD gateway sends the first USSD menu data to the terminal device based on the second USSD menu data.
- 根据权利要求12~16中任意一项所述的方法,其特征在于,所述支付字符序列还包括第二字符序列,所述第二字符序列包括至少一个可见字符,所述第二字符序列用于对所述第一字符序列进行校验。The method according to any one of claims 12 to 16, wherein the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence uses for verifying the first character sequence.
- 根据权利要求12~17中任意一项所述的方法,其特征在于,The method according to any one of claims 12 to 17, wherein,在所述第一字符序列之前,所述支付字符序列还包括第一分界字符序列,所述第一分界字符序列包括至少一个可见字符;和/或,Before the first character sequence, the payment character sequence further includes a first delimiting character sequence, the first delimiting character sequence includes at least one visible character; and/or,在所述第一字符序列之后,所述支付字符序列还包括第二分界字符序列,所述第二分界字符序列包括至少一个可见字符。After the first sequence of characters, the sequence of payout characters further includes a second sequence of delimited characters, the second sequence of delimited characters including at least one visible character.
- 根据权利要求12~18中任意一项所述的方法,其特征在于,所述支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。The method according to any one of claims 12 to 18, wherein the visible characters in the payment character sequence are visible American Standard Code for Information Interchange ASCII characters.
- 根据权利要求12~18中任意一项所述的方法,其特征在于,所述支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。The method according to any one of claims 12 to 18, wherein the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- 根据权利要求12~20中任意一项所述的方法,其特征在于,所述USSD网关向用户的终端设备发送所述支付字符序列之后,所述方法还包括:The method according to any one of claims 12 to 20, wherein after the USSD gateway sends the payment character sequence to the user's terminal device, the method further comprises:所述USSD网关接收所述支付平台发送的支付确认信息,所述支付确认信息包括用于提示用户输入所述支付账户的支付密码的提示信息;The USSD gateway receives payment confirmation information sent by the payment platform, where the payment confirmation information includes prompt information for prompting the user to input the payment password of the payment account;所述USSD网关向所述终端设备发送所述支付确认信息;The USSD gateway sends the payment confirmation information to the terminal device;所述USSD网关接收所述终端设备发送的所述支付账户的支付密码;The USSD gateway receives the payment password of the payment account sent by the terminal device;所述USSD网关向所述支付平台发送所述支付账户的支付密码。The USSD gateway sends the payment password of the payment account to the payment platform.
- 根据权利要求21所述的方法,其特征在于,所述支付确认信息还包括所述用户的订单信息。The method of claim 21, wherein the payment confirmation information further includes order information of the user.
- 根据权利要求12~22中任意一项所述的方法,其特征在于,所述USSD网关向用户的终端设备发送所述支付字符序列之后,所述方法还包括:The method according to any one of claims 12 to 22, wherein after the USSD gateway sends the payment character sequence to the user's terminal device, the method further comprises:所述USSD网关接收所述支付平台发送的所述用户的支付结果信息;The USSD gateway receives the payment result information of the user sent by the payment platform;所述USSD网关向所述终端设备发送所述支付结果信息。The USSD gateway sends the payment result information to the terminal device.
- 一种支付方法,其特征在于,所述方法包括:A payment method, characterized in that the method comprises:支付平台向非结构化补充业务数据USSD网关发送支付字符序列;The payment platform sends the payment character sequence to the unstructured supplementary service data USSD gateway;其中,所述支付字符序列包括第一字符序列,所述第一字符序列包括用于指示用户的支付账户的多个可见字符,所述支付字符序列用于在所述用户的终端设备显示后供收银设备扫描,以通过所述支付账户进行支付。Wherein, the payment character sequence includes a first character sequence, and the first character sequence includes a plurality of visible characters used to indicate the user's payment account, and the payment character sequence is used for display on the user's terminal device for display The checkout device scans to make payment through the payment account.
- 根据权利要求24所述的方法,其特征在于,所述方法还包括:The method of claim 24, wherein the method further comprises:所述支付平台接收所述USSD网关发送的第二请求,所述第二请求包含所述用户的第二标识;receiving, by the payment platform, a second request sent by the USSD gateway, where the second request includes the second identifier of the user;所述支付平台响应于所述第二请求,为所述用户生成所述支付字符序列;The payment platform generates the payment character sequence for the user in response to the second request;所述支付平台建立所述支付账户的标识与所述第一字符序列之间的对应关系,所述支付账户的标识基于所述用户的第二标识得到。The payment platform establishes a correspondence between the identification of the payment account and the first character sequence, and the identification of the payment account is obtained based on the second identification of the user.
- 根据权利要求25所述的方法,其特征在于,所述支付平台接收USSD网关发送的第二请求之前,所述方法还包括:The method according to claim 25, wherein before the payment platform receives the second request sent by the USSD gateway, the method further comprises:所述支付平台接收所述USSD网关发送的第四请求,所述第四请求用于请求提供第二USSD菜单数据;receiving, by the payment platform, a fourth request sent by the USSD gateway, where the fourth request is used to request to provide second USSD menu data;所述支付平台向所述USSD网关发送所述第二USSD菜单数据;The payment platform sends the second USSD menu data to the USSD gateway;其中,所述第二USSD菜单数据用于所述USSD网关向所述终端设备发送第一USSD菜单数据,所述第一USSD菜单数据用于所述终端设备显示USSD菜单,所述USSD菜单包括USSD菜单项,所述USSD菜单项用于触发所述终端设备向所述USSD网关发送第一请求,所述第一请求用于触发所述USSD网关向所述支付平台发送所述第二请求。The second USSD menu data is used by the USSD gateway to send the first USSD menu data to the terminal device, and the first USSD menu data is used by the terminal device to display a USSD menu, and the USSD menu includes USSD A menu item, where the USSD menu item is used to trigger the terminal device to send a first request to the USSD gateway, where the first request is used to trigger the USSD gateway to send the second request to the payment platform.
- 根据权利要求24~26中任意一项所述的方法,其特征在于,所述支付字符序列还包括第二字符序列,所述第二字符序列包括至少一个可见字符,所述第二字符序列用于对所述第一字符序列进行校验。The method according to any one of claims 24 to 26, wherein the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence uses for verifying the first character sequence.
- 根据权利要求24~27中任意一项所述的方法,其特征在于,The method according to any one of claims 24 to 27, wherein,在所述第一字符序列之前,所述支付字符序列还包括第一分界字符序列,所述第一分界字符序列包括至少一个可见字符;和/或,Before the first character sequence, the payment character sequence further includes a first delimiting character sequence, the first delimiting character sequence includes at least one visible character; and/or,在所述第一字符序列之后,所述支付字符序列还包括第二分界字符序列,所述第二分界字符序列包括至少一个可见字符。After the first sequence of characters, the sequence of payout characters further includes a second sequence of delimited characters, the second sequence of delimited characters including at least one visible character.
- 根据权利要求24~28中任意一项所述的方法,其特征在于,所述支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。The method according to any one of claims 24 to 28, wherein the visible characters in the payment character sequence are visible American Standard Code for Information Interchange ASCII characters.
- 根据权利要求24~28中任意一项所述的方法,其特征在于,所述支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。The method according to any one of claims 24 to 28, wherein the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- 根据权利要求24~30中任意一项所述的方法,其特征在于,所述第一字符序列包括基 于所述用户的手机号码和/或第一时间确定的字符,所述第一时间为所述第一字符序列的生成时间。The method according to any one of claims 24 to 30, wherein the first character sequence includes characters determined based on the user's mobile phone number and/or a first time, the first time being the Describe the generation time of the first character sequence.
- 根据权利要求24~31中任意一项所述的方法,其特征在于,所述第一字符序列包括随机字符。The method according to any one of claims 24 to 31, wherein the first character sequence comprises random characters.
- 根据权利要求27所述的方法,其特征在于,所述第二字符序列对应的二进制数序列由所述第一字符序列中的各个字符对应的任意一位二进制数组成。The method according to claim 27, wherein the binary number sequence corresponding to the second character sequence is composed of any binary number corresponding to each character in the first character sequence.
- 根据权利要求24~33中任意一项所述的方法,其特征在于,所述支付平台向非结构化补充业务数据USSD网关发送支付字符序列之后,所述方法还包括:The method according to any one of claims 24 to 33, wherein after the payment platform sends the payment character sequence to the unstructured supplementary service data USSD gateway, the method further comprises:所述支付平台接收所述收银设备发送的支付请求,所述支付请求携带订单信息和所述收银设备扫描所述支付字符序列得到的第三字符序列;receiving, by the payment platform, a payment request sent by the cash register device, the payment request carrying order information and a third character sequence obtained by the cash register device scanning the payment character sequence;所述支付平台基于所述第三字符序列确定所述用户的支付账户的标识;the payment platform determines an identification of the user's payment account based on the third sequence of characters;所述支付平台基于所述订单信息和所述用户的支付账户的标识进行支付。The payment platform performs payment based on the order information and the identification of the user's payment account.
- 根据权利要求34所述的方法,其特征在于,所述支付平台基于所述订单信息和所述用户的支付账户的标识进行支付之前,所述方法还包括:The method according to claim 34, wherein before the payment platform performs payment based on the order information and the identification of the payment account of the user, the method further comprises:所述支付平台向所述USSD网关发送支付确认信息,所述支付确认信息包括用于提示用户输入所述支付账户的支付密码的提示信息;The payment platform sends payment confirmation information to the USSD gateway, where the payment confirmation information includes prompt information for prompting the user to input the payment password of the payment account;所述支付平台接收所述USSD网关发送的所述支付账户的支付密码;The payment platform receives the payment password of the payment account sent by the USSD gateway;所述支付平台成功校验所述支付账户的支付密码。The payment platform successfully verifies the payment password of the payment account.
- 根据权利要求35所述的方法,其特征在于,所述支付确认信息携带所述订单信息。The method according to claim 35, wherein the payment confirmation information carries the order information.
- 根据权利要求34~36中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 34 to 36, wherein the method further comprises:所述支付平台向所述USSD网关和所述收银设备发送所述用户的支付结果信息。The payment platform sends the payment result information of the user to the USSD gateway and the cash register device.
- 一种支付方法,其特征在于,所述方法包括:A payment method, characterized in that the method comprises:收银设备扫描用户的终端设备显示的支付字符序列,识别所述支付字符序列中的第一字符序列得到第三字符序列;The cash register device scans the payment character sequence displayed by the user's terminal device, and identifies the first character sequence in the payment character sequence to obtain the third character sequence;所述收银设备基于所述第三字符序列请求支付平台通过所述用户的支付账户进行支付;The cash register device requests the payment platform to pay through the user's payment account based on the third character sequence;其中,所述第一字符序列包括所述支付平台生成的、用于指示所述支付账户的多个可见字符。Wherein, the first character sequence includes a plurality of visible characters generated by the payment platform and used to indicate the payment account.
- 根据权利要求38所述的方法,其特征在于,所述支付字符序列还包括第二字符序列,所述第二字符序列包括至少一个可见字符,所述第二字符序列用于对所述第一字符序列进行校验;在所述收银设备基于所述第三字符序列请求支付平台通过所述用户的支付账户进行支付之前,所述方法还包括:The method of claim 38, wherein the payment character sequence further includes a second character sequence, the second character sequence including at least one visible character, the second character sequence being used to respond to the first character The character sequence is checked; before the cash register device requests the payment platform to pay through the user's payment account based on the third character sequence, the method further includes:所述收银设备识别所述支付字符序列中的第二字符序列得到第四字符序列;The cash register device recognizes the second character sequence in the payment character sequence to obtain a fourth character sequence;所述收银设备基于所述第四字符序列校验所述第三字符序列,且校验结果为通过。The cash register device checks the third character sequence based on the fourth character sequence, and the check result is passed.
- 根据权利要求39所述的方法,其特征在于,The method of claim 39, wherein在所述校验结果为不通过的情况下,所述方法还包括:所述收银设备提示所述第三字符序列中识别错误的字符的位置。In the case that the verification result is unsuccessful, the method further includes: the cash register device prompts the position of the incorrectly recognized character in the third character sequence.
- 根据权利要求38~40中任意一项所述的方法,其特征在于,在所述第一字符序列之前,所述支付字符序列还包括第一分界字符序列,所述第一分界字符序列包括至少一个可见字符;和/或,The method according to any one of claims 38 to 40, wherein, before the first character sequence, the payment character sequence further includes a first delimiting character sequence, and the first delimiting character sequence includes at least a visible character; and/or,在所述第一字符序列之后,所述支付字符序列还包括第二分界字符序列,所述第二分界字符序列包括至少一个可见字符。After the first sequence of characters, the sequence of payout characters further includes a second sequence of delimited characters, the second sequence of delimited characters including at least one visible character.
- 根据权利要求38~41中任意一项所述的方法,其特征在于,所述支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。The method according to any one of claims 38 to 41, wherein the visible characters in the payment character sequence are visible American Standard Code for Information Interchange ASCII characters.
- 根据权利要求38~41中任意一项所述的方法,其特征在于,所述支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。The method according to any one of claims 38 to 41, wherein the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- 根据权利要求38~43中任意一项所述的方法,其特征在于,所述识别所述支付字符序列中的第一字符序列得到第三字符序列,包括:The method according to any one of claims 38 to 43, wherein the identifying the first character sequence in the payment character sequence to obtain the third character sequence comprises:识别所述支付字符序列中的第一字符序列得到第五字符序列;Identifying the first character sequence in the payment character sequence to obtain a fifth character sequence;将所述第五字符序列中的至少一个字符替换为预设的相似字符,得到第三字符序列。At least one character in the fifth character sequence is replaced with a preset similar character to obtain a third character sequence.
- 根据权利要求38~44中任意一项所述的方法,其特征在于,所述收银设备基于所述第三字符序列请求支付平台通过所述用户的支付账户进行支付,包括:The method according to any one of claims 38 to 44, wherein the cash register device requests the payment platform to pay through the user's payment account based on the third character sequence, comprising:所述收银设备向所述支付平台发送支付请求,所述支付请求携带订单信息和第三字符序列。The cash register device sends a payment request to the payment platform, and the payment request carries order information and a third character sequence.
- 根据权利要求38~45中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 38 to 45, wherein the method further comprises:所述收银设备接收所述支付平台发送的所述用户的支付结果信息;The cash register device receives the payment result information of the user sent by the payment platform;所述收银设备显示所述用户的支付结果信息。The cash register device displays payment result information of the user.
- 一种支付系统,其特征在于,所述支付系统包括:支付平台、非结构化补充业务数据USSD网关、用户的终端设备和收银设备,其中:A payment system, characterized in that the payment system comprises: a payment platform, an unstructured supplementary service data USSD gateway, a user's terminal device and a cash register device, wherein:所述支付平台,用于向所述USSD网关发送支付字符序列;the payment platform, configured to send a payment character sequence to the USSD gateway;所述USSD网关,用于向所述终端设备发送所述支付字符序列;the USSD gateway, configured to send the payment character sequence to the terminal device;所述终端设备,用于显示所述支付字符序列供收银设备扫描;the terminal device, configured to display the payment character sequence for the cashier device to scan;所述收银设备,用于扫描用户的终端设备显示的支付字符序列,识别所述支付字符序列中的第一字符序列得到第三字符序列;基于所述第三字符序列请求支付平台通过所述用户的支付账户进行支付;The cash register device is used for scanning the payment character sequence displayed by the user's terminal device, identifying the first character sequence in the payment character sequence to obtain a third character sequence; requesting the payment platform through the user based on the third character sequence payment account for payment;其中,所述支付字符序列包括第一字符序列,所述第一字符序列包括用于指示所述支付账户的多个可见字符。Wherein, the payment character sequence includes a first character sequence, and the first character sequence includes a plurality of visible characters for indicating the payment account.
- 根据权利要求47所述的系统,其特征在于,The system of claim 47, wherein:所述终端设备,还用于呈现USSD菜单项;响应于所述USSD菜单项的选择操作,向所述USSD网关发送用于请求提供所述支付字符序列的第一请求,所述第一请求包含所述用户的第一标识;The terminal device is further configured to present a USSD menu item; in response to a selection operation of the USSD menu item, send a first request for requesting to provide the payment character sequence to the USSD gateway, the first request including the first identification of the user;所述USSD网关,还用于响应于所述第一请求,向所述支付平台发送第二请求,所述第二请求用于请求提供所述支付字符序列,所述第二请求携带所述用户的第二标识,所述第二标识基于所述第一标识确定;The USSD gateway is further configured to, in response to the first request, send a second request to the payment platform, where the second request is used to request to provide the payment character sequence, and the second request carries the user the second identification, the second identification is determined based on the first identification;所述支付平台,还用于响应于所述第二请求,为所述用户生成所述支付字符序列;建立所述支付账户的标识与所述第一字符序列之间的对应关系,所述支付账户的标识基于所述用户的第二标识得到。The payment platform is further configured to, in response to the second request, generate the payment character sequence for the user; establish a correspondence between the identifier of the payment account and the first character sequence, and the payment The identity of the account is derived based on the second identity of the user.
- 根据权利要求48所述的系统,其特征在于,所述终端设备呈现USSD菜单项,包括:The system of claim 48, wherein the terminal device presents USSD menu items, comprising:所述终端设备从所述USSD网关接收第一USSD菜单数据;The terminal device receives the first USSD menu data from the USSD gateway;所述终端设备基于所述第一USSD菜单数据显示USSD菜单,所述USSD菜单包含所述USSD菜单项。The terminal device displays a USSD menu based on the first USSD menu data, and the USSD menu includes the USSD menu item.
- 根据权利要求49所述的系统,其特征在于,The system of claim 49, wherein所述终端设备,还用于在从所述USSD网关接收USSD菜单数据之前,响应于按键输入操作向所述USSD网关发送第三请求,所述第三请求用于请求提供所述第一USSD菜单数据。The terminal device is further configured to send a third request to the USSD gateway in response to a key input operation before receiving the USSD menu data from the USSD gateway, where the third request is used to request to provide the first USSD menu data.
- 根据权利要求47~50中任意一项所述的系统,其特征在于,所述支付字符序列还包括第二字符序列,所述第二字符序列包括至少一个可见字符,所述第二字符序列用于对所述第一字符序列进行校验;The system according to any one of claims 47 to 50, wherein the payment character sequence further includes a second character sequence, the second character sequence includes at least one visible character, and the second character sequence uses for verifying the first character sequence;所述收银设备,还用于在基于所述第三字符序列请求支付平台通过所述用户的支付账户进行支付之前,识别所述支付字符序列中的第二字符序列得到第四字符序列;基于所述第四字符序列校验所述第三字符序列,且校验结果为通过。The cash register device is further configured to identify the second character sequence in the payment character sequence to obtain a fourth character sequence before requesting the payment platform to pay through the user's payment account based on the third character sequence; The fourth character sequence verifies the third character sequence, and the verification result is passed.
- 根据权利要求51所述的系统,其特征在于,The system of claim 51, wherein:所述收银设备,还用于在所述校验结果为不通过的情况下,提示所述第三字符序列中识别错误的字符的位置。The cash register device is further configured to prompt the position of the wrongly recognized character in the third character sequence when the verification result is not passed.
- 根据权利要求47~52中任意一项所述的系统,其特征在于,The system according to any one of claims 47 to 52, characterized in that:在所述第一字符序列之前,所述支付字符序列还包括第一分界字符序列,所述第一分界字符序列包括至少一个可见字符;和/或,Before the first character sequence, the payment character sequence further includes a first delimiting character sequence, the first delimiting character sequence includes at least one visible character; and/or,在所述第一字符序列之后,所述支付字符序列还包括第二分界字符序列,所述第二分界字符序列包括至少一个可见字符。After the first sequence of characters, the sequence of payout characters further includes a second sequence of delimited characters, the second sequence of delimited characters including at least one visible character.
- 根据权利要求47~53中任意一项所述的系统,其特征在于,所述支付字符序列中的可见字符为可见美国信息交换标准代码ASCII字符。The system according to any one of claims 47 to 53, wherein the visible characters in the payment character sequence are visible American Standard Code for Information Interchange ASCII characters.
- 根据权利要求47~53中任意一项所述的系统,其特征在于,所述支付字符序列中的可见字符为高识别度美国信息交换标准代码ASCII字符。The system according to any one of claims 47 to 53, wherein the visible characters in the payment character sequence are high-recognition American Standard Code for Information Interchange ASCII characters.
- 一种通信装置,其特征在于,所述通信装置包括用于实现权利要求1~11中任意一项所述方法的单元,或包括用于实现权利要求12~23中任意一项所述方法的单元,或包括用于实现权利要求24~37中任意一项所述方法的单元,或包括用于实现权利要求38~46中任意一项所述方法的单元。A communication device, characterized in that the communication device includes a unit for implementing the method in any one of claims 1 to 11, or a unit for implementing the method in any one of claims 12 to 23. A unit, or a unit for implementing the method of any one of claims 24-37, or a unit for implementing the method of any one of claims 38-46.
- 一种通信装置,所述通信装置包括处理器,当所述处理器执行存储器中的计算机程序时,如权利要求1~11中任意一项所述的方法被执行,或如权利要求12~23中任意一项所述的方法被执行,或如权利要求24~37中任意一项所述的方法被执行,或如权利要求38~46中任意一项所述的方法被执行。A communication device comprising a processor, when the processor executes a computer program in a memory, the method according to any one of claims 1 to 11 is performed, or the method according to claim 12 to 23 is performed The method of any one of the above is performed, or the method of any one of claims 24 to 37 is performed, or the method of any one of claims 38 to 46 is performed.
- 一种通信装置,其特征在于,包括处理器和存储器;A communication device, comprising a processor and a memory;所述存储器用于存储计算机执行指令;the memory is used to store computer-executable instructions;所述处理器用于执行所述存储器所存储的计算机执行指令,以使所述通信装置执行如权利要求1~11中任一项所述的方法,或使所述通信装置执行如权利要求12~23中任一项所述的方法,或使所述通信装置执行如权利要求24~37中任一项所述的方法,或使所述通信装置执行如权利要求38~46中任一项所述的方法。The processor is configured to execute computer-executable instructions stored in the memory, so as to cause the communication device to perform the method of any one of claims 1 to 11, or to cause the communication device to execute the method of claims 12 to 12. 23, or cause the communication device to perform the method of any one of claims 24 to 37, or cause the communication device to perform the method of any one of claims 38 to 46 method described.
- 一种通信装置,其特征在于,包括处理器、存储器和收发器;A communication device, comprising a processor, a memory and a transceiver;所述收发器,用于接收信号或者发送信号;the transceiver, for receiving signals or transmitting signals;所述存储器,用于存储计算机程序;the memory for storing computer programs;所述处理器,用于从所述存储器调用所述计算机程序执行如权利要求1~11中任一项所述的方法,或用于从所述存储器调用所述计算机程序执行如权利要求12~23中任一项所述的方法,或用于从所述存储器调用所述计算机程序执行如权利要求24~37中任一项所述的方法,或用于从所述存储器调用所述计算机程序执行如权利要求38~46中任一项所述的方法。The processor, for calling the computer program from the memory to execute the method according to any one of claims 1 to 11, or for calling the computer program from the memory to execute the method according to claim 12 to 23, or for invoking the computer program from the memory to perform the method of any one of claims 24 to 37, or for invoking the computer program from the memory A method as claimed in any one of claims 38 to 46 is performed.
- 一种通信装置,其特征在于,包括处理器和通信接口;A communication device, comprising a processor and a communication interface;所述通信接口用于与其它通信装置进行通信;所述处理器用于运行程序,以使得所述通信装置实现如权利要求1~11中任一项所述的方法,或使得所述通信装置实现如权利要求12~23中任一项所述的方法,或使得所述通信装置实现如权利要求24~37中任一项所述的方法,或使得所述通信装置实现如权利要求38~46中任一项所述的方法。The communication interface is used for communicating with other communication apparatuses; the processor is used for running a program, so that the communication apparatus implements the method according to any one of claims 1 to 11, or makes the communication apparatus implement The method according to any one of claims 12 to 23, or the communication device is caused to implement the method according to any one of claims 24 to 37, or the communication device is caused to realize the method according to claim 38 to 46 The method of any of the above.
- 一种计算机可读存储介质,其特征在于,所述计算机存储介质中存储有计算机可读指令,当所述计算机可读指令在通信装置上运行时,使得所述通信装置执行如权利要求1~11中任一项所述的方法,或使得所述通信装置执行如权利要求12~23中任一项所述的方法,或使得所述通信装置执行如权利要求24~37中任一项所述的方法,或使得所述通信装置执行如权利要求38~46中任一项所述的方法。A computer-readable storage medium, characterized in that, the computer-readable instructions are stored in the computer storage medium, and when the computer-readable instructions are executed on a communication device, the communication device is made to perform the method according to claim 1 to 11, or cause the communication device to perform the method of any one of claims 12 to 23, or cause the communication device to perform the method of any one of claims 24 to 37 the method described, or cause the communication device to perform the method according to any one of claims 38-46.
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括:计算机程序代码,所 述计算机程序代码被计算机运行时,使得所述计算机执行如权利要求1~11中任一项所述的方法,或使得所述计算机执行如权利要求12~23中任一项所述的方法,或使得所述计算机执行如权利要求24~37中任一项所述的方法,或使得所述计算机执行如权利要求38~46中任一项所述的方法。A computer program product, characterized in that the computer program product comprises: computer program code, which, when executed by a computer, causes the computer to execute the method according to any one of claims 1 to 11 , or cause the computer to execute the method as claimed in any one of claims 12 to 23, or cause the computer to execute the method as claimed in any one of claims 24 to 37, or cause the computer to execute the method as claimed in any one of claims 24 to 37. The method of any one of claims 38-46.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011624212.9A CN114694327A (en) | 2020-12-30 | 2020-12-30 | Payment method and communication device |
CN202011624212.9 | 2020-12-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022143471A1 true WO2022143471A1 (en) | 2022-07-07 |
Family
ID=82133865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/141288 WO2022143471A1 (en) | 2020-12-30 | 2021-12-24 | Payment method and communication apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114694327A (en) |
WO (1) | WO2022143471A1 (en) |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030046236A1 (en) * | 2001-08-16 | 2003-03-06 | Andreas Berg | Method and arrangement for paying electronically for a goods item or service, in particular an application in a data network |
CN101355732A (en) * | 2008-09-08 | 2009-01-28 | 中兴通讯股份有限公司 | Method and apparatus for providing non-structured replenish service in on-line charging system |
CN101384004A (en) * | 2008-10-20 | 2009-03-11 | 中兴通讯股份有限公司 | Non-structured supplement data service implementing method |
US7831246B1 (en) * | 2006-12-08 | 2010-11-09 | At&T Mobility Ii, Llc | Mobile merchant |
CN101964125A (en) * | 2009-07-24 | 2011-02-02 | 黄金富 | Mobile phone payment system authenticated by double communication paths and corresponding method |
CN102165472A (en) * | 2008-11-06 | 2011-08-24 | 亚历山大·真那迪尔维奇·罗泽科夫 | Transaction verification method, automatic transaction verification system and transaction verification unit (variants) |
CN102509213A (en) * | 2011-11-16 | 2012-06-20 | 上海翰鑫信息科技有限公司 | System and method for remote payment and trade, mobile terminal and subscriber identity module (SIM) card |
CN104053135A (en) * | 2013-03-13 | 2014-09-17 | 中兴通讯股份有限公司 | Method and device for realizing unstructured supplementary service data |
CN105324782A (en) * | 2013-10-09 | 2016-02-10 | 贝宝公司 | Credit through unstructured supplementary service data |
WO2016024183A2 (en) * | 2011-07-18 | 2016-02-18 | Andrew Zhou | Systems and methods for messaging, calling, digital multimedia capture and payment transactions |
CN106934622A (en) * | 2015-12-31 | 2017-07-07 | 华为技术有限公司 | A kind of method and apparatus of shared account |
CN107026815A (en) * | 2016-01-29 | 2017-08-08 | 华为技术有限公司 | A kind of payment transaction processing method, paying server, relevant device and system |
CN107545425A (en) * | 2016-06-24 | 2018-01-05 | 华为软件技术有限公司 | A kind of method of payment and device |
CN107871235A (en) * | 2017-09-27 | 2018-04-03 | 努比亚技术有限公司 | A kind of terminal fee payment method, mobile terminal, network center and storage medium |
CN111684481A (en) * | 2019-07-05 | 2020-09-18 | 深圳海付移通科技有限公司 | Aggregated payment method and related equipment |
WO2020198764A2 (en) * | 2019-03-25 | 2020-10-01 | Angus Pohl | Method & system for terminal coded mobile payments |
-
2020
- 2020-12-30 CN CN202011624212.9A patent/CN114694327A/en active Pending
-
2021
- 2021-12-24 WO PCT/CN2021/141288 patent/WO2022143471A1/en active Application Filing
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030046236A1 (en) * | 2001-08-16 | 2003-03-06 | Andreas Berg | Method and arrangement for paying electronically for a goods item or service, in particular an application in a data network |
US7831246B1 (en) * | 2006-12-08 | 2010-11-09 | At&T Mobility Ii, Llc | Mobile merchant |
CN101355732A (en) * | 2008-09-08 | 2009-01-28 | 中兴通讯股份有限公司 | Method and apparatus for providing non-structured replenish service in on-line charging system |
CN101384004A (en) * | 2008-10-20 | 2009-03-11 | 中兴通讯股份有限公司 | Non-structured supplement data service implementing method |
CN102165472A (en) * | 2008-11-06 | 2011-08-24 | 亚历山大·真那迪尔维奇·罗泽科夫 | Transaction verification method, automatic transaction verification system and transaction verification unit (variants) |
CN101964125A (en) * | 2009-07-24 | 2011-02-02 | 黄金富 | Mobile phone payment system authenticated by double communication paths and corresponding method |
WO2016024183A2 (en) * | 2011-07-18 | 2016-02-18 | Andrew Zhou | Systems and methods for messaging, calling, digital multimedia capture and payment transactions |
CN102509213A (en) * | 2011-11-16 | 2012-06-20 | 上海翰鑫信息科技有限公司 | System and method for remote payment and trade, mobile terminal and subscriber identity module (SIM) card |
CN104053135A (en) * | 2013-03-13 | 2014-09-17 | 中兴通讯股份有限公司 | Method and device for realizing unstructured supplementary service data |
CN105324782A (en) * | 2013-10-09 | 2016-02-10 | 贝宝公司 | Credit through unstructured supplementary service data |
CN106934622A (en) * | 2015-12-31 | 2017-07-07 | 华为技术有限公司 | A kind of method and apparatus of shared account |
CN107026815A (en) * | 2016-01-29 | 2017-08-08 | 华为技术有限公司 | A kind of payment transaction processing method, paying server, relevant device and system |
CN107545425A (en) * | 2016-06-24 | 2018-01-05 | 华为软件技术有限公司 | A kind of method of payment and device |
CN107871235A (en) * | 2017-09-27 | 2018-04-03 | 努比亚技术有限公司 | A kind of terminal fee payment method, mobile terminal, network center and storage medium |
WO2020198764A2 (en) * | 2019-03-25 | 2020-10-01 | Angus Pohl | Method & system for terminal coded mobile payments |
CN111684481A (en) * | 2019-07-05 | 2020-09-18 | 深圳海付移通科技有限公司 | Aggregated payment method and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114694327A (en) | 2022-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU750024B2 (en) | Tele/datacommunications payment method and apparatus | |
EP2131537B1 (en) | Phone based text message language translation | |
CN100401797C (en) | Power discriminating method for service request start flow | |
CN102405474A (en) | User challenge using information based on geography or user identity | |
US20210218779A1 (en) | Communication Method And Communication System | |
US20080263159A1 (en) | System and Method for Filtering Message | |
US20060199600A1 (en) | Method of applying for communication service and communication terminal thereof | |
TW202042136A (en) | Mobile payment self-service signing method, device and system | |
US20220067690A1 (en) | Peer-to-peer digital transaction detail error reduction | |
TWI779291B (en) | IoT device startup method, device and device | |
WO2022143471A1 (en) | Payment method and communication apparatus | |
CN113779346A (en) | Method and device for identifying one person with multiple accounts | |
GB2380897A (en) | Sending email to mobile phone as text message | |
CN116362206A (en) | File processing method, device, equipment and medium | |
CN106856535A (en) | A kind of notification message processing method and device | |
CN102098643A (en) | Mobile communication terminal and method for inquiring telephone fee information | |
US8027838B2 (en) | Method and system for connecting characters, words and signs to a telecommunication number | |
CN107609843A (en) | Contract renewal method and server | |
CN102594832B (en) | Method and device for carrying out services by service delivery platform (SDP) | |
CN109815454B (en) | Font conversion method and device | |
CN113852627B (en) | Extensible payment message processing method and device and electronic equipment | |
CN104537541B (en) | A kind of method and device for verifying security code | |
CN104376481A (en) | Method and device for acquiring service authority | |
CN115422512A (en) | Identity authentication method and device, electronic equipment and storage medium | |
TWI716099B (en) | Intelligent guidance service method and system for mobile online banking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21914208 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 202317043796 Country of ref document: IN |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21914208 Country of ref document: EP Kind code of ref document: A1 |