Transaction method, system, device, electronic device and storage medium
By using only Bluetooth names for transaction data exchange in Bluetooth near-field mobile payment, the problems of long transaction time and inconvenient multi-user transactions in the existing technology are solved, and fast and safe multi-user transactions are realized.
Patent Information
- Application Number
- CN202111300114.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-01-26
- Filing Date
- 2021-11-04
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-11-04
Smart Images

Figure CN113962679B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to transaction methods, systems, devices, electronic devices, and storage media. Background Art
[0002] The existing Bluetooth near-field mobile payment solution is to establish a Bluetooth connection between the payer's phone and the payee's phone through the phone's own Bluetooth network, and then conduct data communication transactions based on the established Bluetooth channel. In the process of establishing the Bluetooth channel, both parties need to communicate and confirm information. This method has the following disadvantages:
[0003] (1) Single transaction takes a long time. The existing method requires Bluetooth to participate in the entire process for each transaction. The Bluetooth connection process includes steps such as Bluetooth search, connection, data exchange, and Bluetooth disconnection. The participation of Bluetooth in the entire process makes the transaction process cumbersome and time-consuming, and the connection process is cumbersome.
[0004] (2) Multiple users cannot conduct transactions simultaneously. Existing methods cannot effectively realize simultaneous transactions between multiple users. Multiple user connections can easily lead to Bluetooth conflicts or freezes in the payee's Bluetooth device. Even if the order of connection between multiple payer Bluetooth devices and payee Bluetooth devices is determined by identifying the Bluetooth distance and the strength of the Bluetooth signal, it can only be an improvement, but cannot fundamentally solve the problem of multiple users connecting to transactions simultaneously. The reason is that a single Bluetooth device can currently only connect to 1 to 2 Bluetooth devices and communicate simultaneously. When multiple user Bluetooth devices are connected to the payee's Bluetooth device at the same time, the payee's Bluetooth device will be constantly in the process of connecting, communicating, disconnecting, reconnecting, communicating, and disconnecting, which means that the payee's Bluetooth device will perform Bluetooth connection operations multiple times in a row, which is inconvenient to use.
[0005] (3) Long transaction time for multiple users. The payee's Bluetooth device is in the process of repeatedly communicating with multiple payer's Bluetooth devices. Each time it communicates with a payer's Bluetooth device, it needs to go through the complete Bluetooth communication process of Bluetooth search, connection, data exchange, disconnection, etc., which causes the payee's Bluetooth device to be in a Bluetooth time-sharing multiplexing state. In other words, multiple payer's Bluetooth devices cannot complete transactions with the payee's Bluetooth device at the same time, which leads to long transaction time for multiple users. Summary of the invention
[0006] An object of embodiments of the present invention is to solve at least the above problems and / or disadvantages and to provide at least the advantages to be described below.
[0007] The embodiments of the present invention provide a transaction method, system, device, electronic device and storage medium, which can reduce transaction time, improve transaction speed and support simultaneous transactions by multiple users.
[0008] In a first aspect, a transaction method is provided, which is applied to a transaction system, wherein the transaction system includes a payment terminal and a payment receiving terminal, and the transaction method includes:
[0009] The payment terminal generates transaction data based on the user's payment operation;
[0010] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data;
[0011] The payment terminal searches for the payment terminal via Bluetooth;
[0012] The payment terminal extracts the transaction data from the searched current Bluetooth name of the payment terminal;
[0013] The payment terminal completes the transaction according to the transaction data.
[0014] Optionally,
[0015] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data, including:
[0016] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data and the payment terminal identifier;
[0017] The payment terminal searches for the payment terminal via Bluetooth, including:
[0018] The payment terminal searches for the payment terminal via Bluetooth based on the payment terminal identifier.
[0019] Optionally,
[0020] Before the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data, the method includes:
[0021] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes public key information;
[0022] After the payment terminal generates transaction data based on the user's payment operation, the method includes:
[0023] The payment terminal searches for the payment terminal via Bluetooth;
[0024] The payment terminal extracts public key information from the searched current Bluetooth name of the payment terminal, and encrypts the transaction data based on the public key information;
[0025] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains transaction data, including:
[0026] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the encrypted transaction data;
[0027] The payment terminal extracts the transaction data from the searched current Bluetooth name of the payment terminal, including:
[0028] The payment terminal extracts the encrypted transaction data from the searched current Bluetooth name of the payment terminal, and decrypts the encrypted transaction data based on the private key information paired with the public key information.
[0029] Optionally,
[0030] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains public key information, including:
[0031] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes public key information and a payment terminal identifier;
[0032] The payment terminal searches for the payment terminal via Bluetooth, including:
[0033] The payment terminal searches for the payment terminal through Bluetooth based on the payment terminal identifier.
[0034] Optionally, the payment terminal extracts the transaction data from the searched current Bluetooth name of the payment terminal, or, after the payment terminal completes the transaction according to the transaction data, the method includes:
[0035] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes confirmation information;
[0036] The payment terminal searches for the payment terminal via Bluetooth;
[0037] The payment terminal extracts the confirmation information from the searched current Bluetooth name of the payment terminal, and determines that the transaction is completed based on the confirmation information.
[0038] Optionally,
[0039] The payment terminal generates transaction data based on the user's payment operation, including:
[0040] The payment terminal generates transaction data and the confirmation information based on the user's payment operation, and the confirmation information is information that has a unique corresponding relationship with the payment terminal;
[0041] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains transaction data, including:
[0042] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data and the confirmation information;
[0043] The payment terminal extracts the transaction data from the searched current Bluetooth name of the payment terminal, including:
[0044] The payment terminal extracts the transaction data and the confirmation information from the searched current Bluetooth name of the payment terminal.
[0045] Optionally,
[0046] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains confirmation information, including:
[0047] The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes confirmation information and a payment terminal identifier;
[0048] The payment terminal searches for the payment terminal via Bluetooth, including:
[0049] The payment terminal searches for the payment terminal through Bluetooth based on the payment terminal identifier.
[0050] Optionally,
[0051] Before the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data, the method includes:
[0052] The payment terminal records its own initial Bluetooth name;
[0053] The payment terminal extracts the confirmation information from the current Bluetooth name of the payment receiving terminal that has been searched, and after determining that the transaction is completed based on the confirmation information, the method includes:
[0054] The payment terminal restores its current Bluetooth name to its initial Bluetooth name.
[0055] Optionally,
[0056] Before the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes confirmation information, the method includes:
[0057] The payment terminal records its own initial Bluetooth name;
[0058] After the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes confirmation information, the method includes:
[0059] The payment terminal restores its current Bluetooth name to its initial Bluetooth name.
[0060] Optionally, the transaction data includes digital currency.
[0061] Optionally, the transaction data includes a transaction voucher, wherein the transaction voucher includes identity information of the payment terminal and a payment amount;
[0062] The payment terminal completes the transaction according to the transaction data, including:
[0063] The payment terminal provides the transaction voucher to the payment server, so that the payment server completes the payment to the payment terminal according to the identity information of the payment terminal and the payment amount contained in the transaction voucher.
[0064] In a second aspect, a transaction method is provided, which is applied to a payment terminal, comprising:
[0065] Generate transaction data based on user payment operations;
[0066] The Bluetooth name of the payment terminal itself is set so that the current Bluetooth name of the payment terminal includes the transaction data, so that the payment terminal searches for the payment terminal via Bluetooth, extracts the transaction data from the searched current Bluetooth name of the payment terminal, and completes the transaction according to the transaction data.
[0067] In a third aspect, a transaction method is provided, which is applied to a payment terminal, comprising:
[0068] Search for payment terminals via Bluetooth;
[0069] Extract transaction data from the searched payment terminal's current Bluetooth name;
[0070] The transaction is completed according to the transaction data.
[0071] In a fourth aspect, a trading system is provided, comprising:
[0072] The payment terminal is used to generate transaction data based on the user's payment operation and set its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data;
[0073] The payment terminal is used to search the payment terminal via Bluetooth, extract the transaction data from the current Bluetooth name of the searched payment terminal, and complete the transaction according to the transaction data.
[0074] In a fifth aspect, a transaction device is provided, which is applied to a payment terminal, comprising:
[0075] A transaction data generation module, used to generate transaction data based on the user's payment operation;
[0076] The Bluetooth name setting module is used to set the Bluetooth name of the payment terminal itself so that the current Bluetooth name of the payment terminal includes the transaction data, so that the payment terminal searches for the payment terminal via Bluetooth, extracts the transaction data from the searched current Bluetooth name of the payment terminal, and completes the transaction according to the transaction data.
[0077] In a sixth aspect, a transaction device is provided, which is applied to a payment terminal, comprising:
[0078] A Bluetooth search module, used to search for payment terminals via Bluetooth;
[0079] A transaction data extraction module, used to extract transaction data from the searched current Bluetooth name of the payment terminal;
[0080] The transaction data processing module is used to complete the transaction according to the transaction data.
[0081] In the seventh aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the described method.
[0082] In an eighth aspect, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the described method is implemented.
[0083] The embodiments of the present invention have at least the following beneficial effects:
[0084] The transaction method, system, device, electronic device and storage medium provided by the embodiments of the present invention. The transaction method is applied to a transaction system, which includes a payment terminal and a payment terminal. In the method, the payment terminal first generates transaction data based on the user's payment operation, and then the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains the transaction data. Then the payment terminal searches for the payment terminal via Bluetooth, and the payment terminal extracts the transaction data from the searched current Bluetooth name of the payment terminal. Finally, the payment terminal completes the transaction according to the transaction data. The method only relies on the Bluetooth name to realize the exchange of transaction data, and only uses the Bluetooth search function, without the need to establish a Bluetooth channel between the payment terminal and the payment terminal, that is, there is no need to perform a complete Bluetooth connection process. Based on this, the transaction time can be shortened, the transaction speed can be improved, and multiple users can be supported to trade simultaneously.
[0085] Other advantages, objectives and features of the embodiments of the present invention will be reflected in part through the following description, and in part will be understood by those skilled in the art through study and practice of the embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 A schematic diagram of an application scenario of a connection-free transaction method provided by an embodiment of the present invention;
[0087] Figure 2 A flow chart of a transaction method provided by one embodiment of the present invention;
[0088] Figure 3 A flow chart of a transaction method provided by another embodiment of the present invention;
[0089] Figure 4 A flowchart of a transaction method provided by another embodiment of the present invention;
[0090] Figure 5 A flow chart of a transaction method provided by another embodiment of the present invention;
[0091] Figure 6 A flow chart of a transaction method provided by another embodiment of the present invention;
[0092] Figure 7 A flow chart of a transaction method provided by another embodiment of the present invention;
[0093] Figure 8 A schematic diagram of the architecture of a trading system provided by an embodiment of the present invention;
[0094] Fig. 9 A schematic diagram of the structure of a transaction device provided by an embodiment of the present invention;
[0095] Fig.10 A schematic diagram of the structure of a transaction device provided by another embodiment of the present invention;
[0096] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0097] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement the embodiments according to the description.
[0098] Figure 1 The following is a schematic diagram showing an application scenario of a transaction method provided by an embodiment of the present invention. Figure 1 The invention comprises a transaction system 100, a payment terminal 110 and a payment terminal 120. The payment terminal 110 may be installed with a first application having a payment function, and the first application may generate transaction data according to the payment operation of the user, and the first application may be a digital currency wallet or other payment application that may generate transaction vouchers. The payment terminal 110 is built with a first Bluetooth module 130, and the first Bluetooth module 130 may perform operations such as Bluetooth search, connection, data exchange and disconnection. Figure 1 The payment terminal 110 shown in the figure takes a mobile phone as an example. In actual applications, the payment terminal 110 can also be a PAD (tablet computer) and a wearable device, etc., which is not limited by the embodiment of the present invention. The payment terminal 120 can be installed with a second application with a payment collection function, and the second application can complete the transaction according to the transaction data. For example, when the first application is a digital currency wallet, the second application also needs to be a digital currency wallet, so that the extracted digital currency can be stored and managed. When the first application is other payment applications, the second application can be a payment application that can communicate with the payment server and submit transaction data to the payment server to implement the transaction process. Figure 1 The payment terminal 120 shown in the figure takes a mobile phone as an example. In actual application, the payment terminal 120 can also be a PAD (tablet computer), a wearable device, a POS machine, etc., and the embodiment of the present invention does not limit this. The payment terminal 120 has a built-in second Bluetooth module 140, and the second Bluetooth module 140 can perform Bluetooth search, connection, data exchange and disconnection operations.
[0099] It should be noted that, although the payment terminal 110 and the payment terminal 120 have their own Bluetooth modules, and their respective Bluetooth modules also have all the functions of Bluetooth search, connection, data exchange and disconnection that can realize the corresponding Bluetooth communication, during the execution of the transaction method provided in the embodiment of the present invention, the payment terminal 110 and the payment terminal 120 transmit transaction data through the Bluetooth name. In this process, only the Bluetooth search function is used. The payment terminal 110 and the payment terminal 120 do not establish a Bluetooth connection, and the transaction data is not exchanged through the Bluetooth channel. Therefore, the transaction time can be greatly shortened and the transaction speed can be improved. Moreover, since there is no need to establish a Bluetooth connection, the transaction can be realized only by identifying the Bluetooth name, and the Bluetooth conflict and the freezing of the payment terminal caused by the simultaneous connection of multiple payment terminals and the payment terminal can be avoided, thereby supporting multiple users to trade at the same time.
[0100] Embodiment 1
[0101] Figure 2 The following is a flow chart of the transaction method provided by the embodiment of the present invention. Figure 1 As an example, the transaction process between the payment terminal 110 and the payment terminal 120 is described. The transaction method provided by the embodiment of the present invention is applied to the transaction system 100, and the transaction system 100 includes the payment terminal 110 and the payment terminal 120. The transaction method includes:
[0102] Step 210: The payment terminal generates transaction data based on the user's payment operation.
[0103] Specifically, the user performs a payment operation on the first application on the payment terminal, so that the first application on the payment terminal generates transaction data.
[0104] In some embodiments, transaction data includes digital currency. Digital currency (DC / EP) is usually issued by the central bank or authorized by the central bank, with cryptography as the technical support and encrypted strings representing specific amounts as the legal currency. The digital currency issuers are all central banks. Digital currency operators are usually third-party operators authorized by the central bank to issue DC / EP. For example, commercial banks, third-party payment platforms and other third-party operators can obtain the right to issue DC / EP with the permission of the central bank.
[0105] Here, the payment terminal 110 may submit a digital currency exchange request to the digital currency operating institution, and the digital currency operating institution provides a specific amount of digital currency to the payment terminal 110 according to the digital currency exchange request submitted by the payment terminal 110. In the above process, when the payment terminal 110 exchanges digital currency with the digital currency operating institution for the first time, it may first register and open a digital currency wallet, which is installed on the payment terminal 110 and can manage the digital currency in the payment terminal 110. Correspondingly, the payment terminal 120 may also register and open a digital currency wallet with the digital currency operating institution, which is installed on the payment terminal 120 and can manage the digital currency in the payment terminal 120.
[0106] In other embodiments, the transaction data includes a transaction voucher, which includes the identity information of the payment terminal and the payment amount. The transaction voucher serves as a voucher for the payment terminal to communicate with the payment server and complete the entire transaction process.
[0107] Step 220: The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data.
[0108] For example, the initial Bluetooth name of the payment terminal itself is the Bluetooth name of the device itself, including information such as the device name and device model. After the setting, the current Bluetooth name of the payment terminal is modified to the device name, device model and transaction data. Since the essence of digital currency is an encrypted string containing payment amount information, when the transaction data is digital currency in some embodiments, the current Bluetooth name of the payment terminal contains the encrypted string of digital currency. In other embodiments, the transaction data is a transaction voucher. In this case, the current Bluetooth name of the payment terminal contains the information contained in the transaction voucher. Specifically, the current Bluetooth name of the payment terminal contains the identity information of the payment terminal and the payment amount.
[0109] Through the above modification, the transaction data can be directly reflected in the Bluetooth name of the payment terminal. When the payment terminal searches for the payment terminal through Bluetooth, the payment terminal can directly extract the transaction data from the current Bluetooth name of the searched payment terminal, and then conduct transactions based on the transaction data. In this transaction process, the payment terminal does not need to establish a direct Bluetooth connection with the payment terminal, that is, the transaction data can be transmitted through the Bluetooth name, the transaction speed is improved, and the transaction time is greatly shortened. Even if there are multiple payment terminals at the same time, the payment terminal can extract the transaction data from the current Bluetooth names of multiple payment terminals, thereby realizing transactions with multiple payment terminals.
[0110] Step 230: the payment terminal searches for the payment terminal via Bluetooth.
[0111] Step 240: The payment terminal extracts transaction data from the searched current Bluetooth name of the payment terminal.
[0112] Step 250: the payment terminal completes the transaction according to the transaction data.
[0113] In some embodiments, the transaction data is digital currency. In this case, in step 240, the payment terminal identifies the encrypted string of digital currency from the current Bluetooth name of the payment terminal and extracts the digital currency. Next, in step 250, the payment terminal can use the digital currency wallet to store and manage the digital currency, thereby completing the entire transaction process.
[0114] In other embodiments, the transaction data includes a transaction voucher, and the transaction voucher includes the identity information of the payment terminal and the payment amount; the payment terminal completes the transaction according to the transaction data, including: the payment terminal provides the transaction voucher to the payment server, so that the payment server completes the payment to the payment terminal according to the identity information of the payment terminal and the payment amount contained in the transaction voucher. In this case, in step 240, the payment terminal identifies and extracts the identity information of the payment terminal and the payment amount contained in the transaction voucher from the current Bluetooth name of the payment terminal. Next, in step 250, the payment terminal can send the transaction voucher to the payment server, and the payment server determines the account information of the payer user according to the identity information of the payment terminal contained in the transaction voucher, and completes the payment to the payment terminal according to the account information and the payment amount. It should be noted that the payment terminal can send the transaction voucher to the payment server immediately after receiving the transaction voucher to complete the transaction process, or it can send the transaction voucher to the payment server after a certain period of time to complete the transaction process. The latter operation is more suitable for the case where the payment terminal and the payment terminal are in an offline state. Specifically, when both the payment terminal and the payment terminal are offline, that is, they cannot use the wireless communication network normally, the payment terminal can first obtain the transaction voucher through the Bluetooth name with the help of the Bluetooth search function, and store the transaction voucher. When the payment terminal can use the wireless network or wired communication network normally, it will communicate with the payment server and provide the transaction voucher to the payment server to complete the transaction.
[0115] In some embodiments, the payment terminal extracts transaction data from the current Bluetooth name of the searched payment terminal, or, after the payment terminal completes the transaction based on the transaction data, the method includes: the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains confirmation information; the payment terminal searches for the payment terminal via Bluetooth; the payment terminal extracts confirmation information from the current Bluetooth name of the searched payment terminal, and determines that the transaction is completed based on the confirmation information.
[0116] Specifically, the payment terminal sets its own Bluetooth name so that its current Bluetooth name contains confirmation information, and the payment terminal obtains the confirmation information through the Bluetooth name by means of the Bluetooth search function, and determines that the transaction is completed based on the confirmation information. In this process, there is still no need to establish a direct Bluetooth connection between the payment terminal and the payment terminal.
[0117] Here, when the payment terminal directly completes the transaction instantly according to the transaction data, for example, the payment terminal extracts and stores the digital currency from the current Bluetooth name of the payment terminal, or the payment terminal extracts the transaction voucher from the current Bluetooth name of the payment terminal and instantly provides the transaction voucher to the payment server, so that the payment server instantly completes the payment to the payment terminal, then the payment terminal can publish a confirmation message through the Bluetooth name after completing the transaction according to the transaction data to notify the payment terminal that the transaction is completed. However, in another situation, when the payment terminal and the payment terminal are offline, the payment terminal needs to provide the transaction voucher to the payment server after restoring normal communication with the payment server. At this time, the time when the payment terminal completes the transaction according to the transaction data may be much later than the time when the payment terminal extracts the transaction data from the current Bluetooth name of the payment terminal. In this case, the payment terminal can also publish a confirmation message through the Bluetooth name after extracting the transaction data to notify the completion of the transaction at the current stage.
[0118] In some examples, the payment terminal may not issue the confirmation information through the Bluetooth name. The payment terminal may broadcast the confirmation information by voice, and the payer user knows that the transaction is completed when hearing the confirmation information.
[0119] In summary, an embodiment of the present invention provides a transaction method, which is applied to a transaction system, and the transaction system includes a payment terminal and a payment terminal. In the transaction method, the payment terminal first generates transaction data based on the user's payment operation, and then the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains the transaction data. Then the payment terminal searches for the payment terminal via Bluetooth, and the payment terminal extracts the transaction data from the searched current Bluetooth name of the payment terminal. Finally, the payment terminal completes the transaction according to the transaction data. The transaction method only relies on the Bluetooth name to realize the exchange of transaction data, and only uses the Bluetooth search function, without the need to establish a Bluetooth channel between the payment terminal and the payment terminal, that is, there is no need to perform a complete Bluetooth connection process. Based on this, the transaction time can be shortened, the transaction speed can be improved, and multiple users can be supported to trade simultaneously.
[0120] Embodiment 2
[0121] Figure 3 The following is a flow chart of the transaction method provided by the embodiment of the present invention. Figure 1As an example, the transaction process between the payment terminal 110 and the payment terminal 120 is described. The transaction method provided by the embodiment of the present invention is applied to the transaction system 100, and the transaction system 100 includes the payment terminal 110 and the payment terminal 120. The transaction method includes:
[0122] Step 310: The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes public key information.
[0123] Specifically, the payment terminal can generate a public-private key pair according to the payment operation of the payee user, and publish the public key information in the Bluetooth name by setting its own Bluetooth name. Based on the public key information published by the payment terminal, the payment terminal can obtain the public key information through the Bluetooth name with the help of the Bluetooth search function, and further use the public key information to encrypt the generated transaction data. After the payment terminal extracts the encrypted transaction data from the current Bluetooth name of the payment terminal, it decrypts it using the private key information and completes the transaction based on the decrypted transaction data. For other Bluetooth devices, even if they obtain transaction data, they cannot decrypt the transaction data. Therefore, the use of public-private key pairs can prevent other Bluetooth devices from illegally obtaining transaction data, thereby improving the security of transaction data.
[0124] It should be noted that in some examples, when there are no other Bluetooth devices around the payment terminal and the payment terminal, or when all Bluetooth devices around the payment terminal can be used as payment terminals (for example, sending red envelopes), the transaction data may not be encrypted.
[0125] In some embodiments, the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes public key information and a payment terminal identifier. Specifically, the payment terminal identifier is used to identify the current Bluetooth device as a payment terminal that expects to conduct transactions with the payment terminal, and can distinguish the payment terminal from other Bluetooth devices. When the payment terminal performs a Bluetooth search, it may generate a list of Bluetooth names of multiple Bluetooth devices. The payment terminal determines the Bluetooth names of multiple Bluetooth devices in the list, finds the Bluetooth name with the payment terminal identifier, determines the Bluetooth device corresponding to the Bluetooth name as the payment terminal, and then extracts the public key information from the Bluetooth name. The payment terminal identifier may be in the form of "SHOUKUAN", which is not specifically limited in the embodiments of the present invention.
[0126] Step 320: The payment terminal generates transaction data based on the user's payment operation.
[0127] Step 330: the payment terminal searches for the payment terminal via Bluetooth.
[0128] In some embodiments, the payment terminal searches for the payment terminal via Bluetooth based on the payment terminal identifier.
[0129] Step 340: The payment terminal extracts public key information from the searched current Bluetooth name of the payment terminal, and encrypts the transaction data based on the public key information.
[0130] Step 350: The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the encrypted transaction data.
[0131] In some embodiments, the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes transaction data and a payment terminal identifier. Specifically, the payment terminal identifier is used to identify the current Bluetooth device as a payment terminal that expects to conduct transactions with the payment terminal. This is so that the payment terminal can distinguish the payment terminal from other Bluetooth devices when performing a Bluetooth search for the payment terminal. When performing a Bluetooth search, the payment terminal may generate a list of Bluetooth names of multiple Bluetooth devices. The payment terminal determines the Bluetooth names of multiple Bluetooth devices in the list, finds the Bluetooth names with the payment terminal identifier, determines the Bluetooth devices corresponding to these Bluetooth names as payment terminals, and then extracts transaction data from the current Bluetooth name of the payment terminal. The payment terminal identifier may be in the form of "FUKUAN", which is not specifically limited in the embodiments of the present invention.
[0132] Step 360: the payment terminal searches for the payment terminal via Bluetooth.
[0133] In some embodiments, the payment terminal searches for the payment terminal via Bluetooth based on the payment terminal identification.
[0134] Step 370: the payment terminal extracts the encrypted transaction data from the searched current Bluetooth name of the payment terminal, and decrypts the encrypted transaction data based on the private key information paired with the public key information.
[0135] Step 380: The payment terminal completes the transaction based on the transaction data.
[0136] In summary, an embodiment of the present invention provides a transaction method, which is applied to a transaction system, and the transaction system includes a payment terminal and a payment terminal. In the transaction method, first, the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains public key information, and then the payment terminal generates transaction data based on the user's payment operation, and the payment terminal searches for the payment terminal through Bluetooth, extracts public key information from the current Bluetooth name of the payment terminal searched, and encrypts the transaction data based on the public key information, and then the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains transaction data, and then the payment terminal searches for the payment terminal through Bluetooth, and the payment terminal extracts the encrypted transaction data from the current Bluetooth name of the payment terminal searched, and decrypts the encrypted transaction data based on the private key information paired with the public key information, and finally the payment terminal completes the transaction according to the transaction data. The transaction method only relies on the Bluetooth name to realize the exchange of public key information and transaction data, and only uses the Bluetooth search function, without the need to establish a Bluetooth channel between the payment terminal and the payment terminal, that is, there is no need to perform a complete Bluetooth connection process. Based on this, the transaction time can be shortened, the transaction speed can be improved, and multiple users can be supported to trade at the same time, which improves the security of the transaction.
[0137] Embodiment 3
[0138] Figure 4 The following is a flow chart of the transaction method provided by the embodiment of the present invention. Figure 1 As an example, the transaction process between the payment terminal 110 and the payment terminal 120 is described. The transaction method provided by the embodiment of the present invention is applied to the transaction system 100, and the transaction system 100 includes the payment terminal 110 and the payment terminal 120. The transaction method includes:
[0139] Step 410: The payment terminal generates transaction data and confirmation information based on the user's payment operation. The confirmation information is information that has a unique corresponding relationship with the payment terminal.
[0140] In actual applications, there are situations where multiple payment terminals are trading with the payment terminal at the same time. In this case, after the payment terminal extracts different transaction data from different payment terminals, it needs to notify different payment terminals that the transaction is completed, that is, it needs to publish different confirmation information for different payment terminals. Each payment terminal can only determine that the transaction is completed after extracting the confirmation information corresponding to itself from the current Bluetooth name of the payment terminal. Specifically, in an embodiment of the present invention, the confirmation information is generated by the payment terminal. After the confirmation information is generated, the payment terminal publishes the confirmation information together with the transaction data through the Bluetooth name. The payment terminal extracts multiple transaction data and multiple confirmation information from the current Bluetooth names of multiple payment terminals. When the payment terminal completes the transaction according to the multiple transaction data, the multiple confirmation information can be published in its own Bluetooth name. Each payment terminal can then search for the corresponding confirmation information from the multiple confirmation information published in the current Bluetooth name of the payment terminal, and determine that the transaction between itself and the payment terminal is completed based on the confirmation information. If a payment terminal cannot find the corresponding confirmation information from the multiple confirmation information published in the current Bluetooth name of the payment terminal, it means that the payment terminal has not yet completed the transaction with the payment terminal.
[0141] In the embodiment of the present invention, the payment terminal generates unique corresponding confirmation information, and the payment terminal publishes the confirmation information through its own Bluetooth name, and different payment terminals confirm the completion of the transaction based on their respective confirmation information. Based on this, the efficiency of simultaneous transactions between multiple payment terminals and payment terminals can be improved, and the time for multiple users to trade simultaneously can be shortened.
[0142] It should be understood that the failure of the payment terminal to complete the transaction with the payment terminal corresponds to two different situations. In the case where the payment terminal directly completes the transaction immediately based on the transaction data, the failure of the payment terminal to complete the transaction with the payment terminal means that the payment terminal has not been successfully paid. In the case where the payment terminal and the payment terminal are offline, and the payment terminal needs to provide the transaction voucher to the payment server to complete the transaction after resuming normal communication with the payment server, the failure of the payment terminal to complete the transaction with the payment terminal means that the payment terminal has not extracted the transaction data from the current Bluetooth name of the payment terminal.
[0143] When the payment terminal publishes the confirmation information of different payment terminals through its own Bluetooth name, it can publish multiple confirmation information corresponding to multiple payment terminals at the same time or in batches. The selection can be made according to the payment terminal's requirement for the length of its own Bluetooth name.
[0144] In some examples, the confirmation information generated by each payment terminal may be a random number.
[0145] Step 420: The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data and confirmation information.
[0146] In some embodiments, before the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data, the method includes: the payment terminal records its own initial Bluetooth name. Specifically, the initial Bluetooth name of the payment terminal is the Bluetooth name of the device itself, which may include information such as the device name and device model.
[0147] Step 430: the payment terminal searches for the payment terminal via Bluetooth.
[0148] Step 440: The payment terminal extracts the transaction data and confirmation information from the searched current Bluetooth name of the payment terminal.
[0149] Step 450: the payment terminal completes the transaction according to the transaction data.
[0150] Step 460: the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes confirmation information.
[0151] In some embodiments, the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the confirmation information and the payment terminal identifier.
[0152] In some embodiments, before the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes confirmation information, the method includes: the payment terminal records its own initial Bluetooth name. Specifically, the initial Bluetooth name of the payment terminal is the Bluetooth name of the device itself, which may include information such as the device name and device model.
[0153] Furthermore, after the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes confirmation information, the method includes: the payment terminal restores its current Bluetooth name to its initial Bluetooth name. Specifically, after the payment terminal publishes the confirmation information for the payment terminal through its own Bluetooth name, the payment terminal can restore the current Bluetooth name to its initial Bluetooth name according to its own pre-recorded initial Bluetooth name. In addition, the payment terminal can also restore its own Bluetooth connection status. For example, before the transaction with the payment terminal, the payment terminal is in a Bluetooth connection state with other Bluetooth devices. After publishing the confirmation information, the payment terminal can be restored to the Bluetooth connection state with other Bluetooth devices.
[0154] Step 470: The payment terminal searches for the payment terminal via Bluetooth.
[0155] In some embodiments, the payment terminal searches for the payment terminal via Bluetooth based on the payment terminal identifier.
[0156] Step 480: The payment terminal extracts confirmation information from the searched current Bluetooth name of the payment terminal, and determines that the transaction is completed based on the confirmation information.
[0157] In some embodiments, the payment terminal extracts confirmation information from the current Bluetooth name of the payment terminal that is searched, and after determining that the transaction is completed based on the confirmation information, the method includes: the payment terminal restores its current Bluetooth name to its initial Bluetooth name. Specifically, the payment terminal searches for confirmation information corresponding to itself from multiple confirmation information published in the current Bluetooth name of the payment terminal, and determines that the transaction between itself and the payment terminal is completed based on the confirmation information. The current Bluetooth name can be restored according to the pre-recorded initial Bluetooth name of itself, and the current Bluetooth name can be restored to its initial Bluetooth name. In addition, the payment terminal can also restore its own Bluetooth connection status. For example, before the transaction with the payment terminal is conducted, the payment terminal is in a Bluetooth connection state with other Bluetooth devices. After confirming that the transaction is completed, the payment terminal can be restored to the Bluetooth connection state with other Bluetooth devices.
[0158] In summary, the transaction method provided by the embodiment of the present invention is applied to a transaction system, and the transaction system includes a payment terminal and a payment terminal. In the transaction method, first, the payment terminal generates transaction data and confirmation information based on the user's payment operation, and the confirmation information is information with a unique corresponding relationship with the payment terminal. Then, the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains the transaction data and confirmation information. Then, the payment terminal searches for the payment terminal through Bluetooth. Then, the payment terminal extracts the transaction data and confirmation information from the searched current Bluetooth name of the payment terminal. The payment terminal completes the transaction according to the transaction data. The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains the confirmation information. The payment terminal searches for the payment terminal through Bluetooth. Finally, the payment terminal extracts the confirmation information from the searched current Bluetooth name of the payment terminal, and determines that the transaction is completed based on the confirmation information. The transaction method only relies on the Bluetooth name to realize the exchange of transaction data and confirmation information, and only uses the Bluetooth search function, without the need to establish a Bluetooth channel between the payment terminal and the payment terminal, that is, there is no need to perform a complete Bluetooth connection process. Based on this, the transaction time can be shortened, the transaction speed can be improved, and the efficiency of multi-user simultaneous transactions can be improved.
[0159] Embodiment 4
[0160] The following describes the implementation process of the transaction method provided by the embodiment of the present invention in conjunction with a specific scenario.
[0161] Figure 5 Flow chart of the transaction method provided by the embodiment of the present invention. In this embodiment, the payee A is a merchant, corresponding to the payee terminal A; the payers B and C are customers, corresponding to the payment terminals B and C. The payment terminals B and C conduct transactions with the payee terminal A at the same time. Figure 5 Describe the above transaction process.
[0162] Identity setting phase:
[0163] Payment terminal A starts payment mode based on payment operation of payee A. Generate public and private key pair, record existing Bluetooth name, and modify its own Bluetooth name to the following content: payment terminal identification + public key information + confirmation information space (confirmation information has not been generated at this stage, so when payment terminal does not actually publish confirmation information, in order to ensure the consistency of payment terminal Bluetooth name format in payment mode, here is confirmation information space). Turn on Bluetooth.
[0164] Payment Phase:
[0165] Payment terminal B and payment terminal C start payment mode based on the payment operation of payer B and payer C. Turn on Bluetooth, search for payment terminal A through Bluetooth, and find the current Bluetooth name of payment terminal A according to the payment terminal identifier. Extract public key information from the current Bluetooth name of payment terminal A, encrypt digital currency equal to the payment amount with the public key information of payment terminal A, and generate a random number as confirmation information. Record the existing Bluetooth name and status, and modify the Bluetooth name of this device to the following: payment terminal identifier + encrypted digital currency + random number. Here, the random number generated by payment terminal B is represented by key_b, and the random number generated by payment terminal C is represented by key_c, to indicate that the random numbers generated by the two payment terminals B and payment terminal C are different.
[0166] Collection stage:
[0167] The payment terminal A searches for nearby Bluetooth devices through Bluetooth, obtains the Bluetooth names of nearby Bluetooth devices, determines the payment terminal through the payment terminal identifier, sequentially stores the current Bluetooth names of payment terminal B and payment terminal C, and generates a Bluetooth name list. The payment terminal A extracts the encrypted digital currency from the current Bluetooth name of payment terminal B, decrypts the encrypted digital currency with the private key information, and obtains the decrypted digital currency. After the verification is successful, the payment terminal B is reminded of the successful payment through a voice prompt, and its own Bluetooth name can also be modified to the following content: payment terminal identifier + public key information + random number key_b. After that, the payment terminal A extracts the encrypted digital currency from the current Bluetooth name of payment terminal C, decrypts the encrypted digital currency with the private key information, and obtains the decrypted digital currency. After the verification is successful, the payment terminal C is reminded of the successful payment through a voice prompt, and its own Bluetooth name can also be modified to the following content: payment terminal identifier + public key information + random number key_c.
[0168] Transaction Ended:
[0169] Payment terminal B and payment terminal C search for payment terminal A again through Bluetooth, identify the random number in the current Bluetooth name of payment terminal A, and determine whether the current random number is a random number generated by itself. When the current random number matches itself successfully, the corresponding payment terminal restores its initial Bluetooth name and status, and the transaction ends. Or payer B and payer C hear the voice prompt message of successful payment sent by payment terminal A, and payer B and payer C restore their initial Bluetooth name and status, and the transaction ends. Payment terminal A also restores its initial Bluetooth name and status, and the transaction ends.
[0170] Based on the above transaction process, the transaction method provided by the embodiment of the present invention can achieve the following technical effects:
[0171] (1) Short transaction time: The transaction parties do not need to participate in the entire Bluetooth process, and do not need to go through the Bluetooth connection, data exchange, Bluetooth disconnection and other processes. The transaction can be completed by simply using the Bluetooth search function. The single transaction time is short and very convenient.
[0172] (2) Convenient multi-user transactions and short transaction time: The payment terminals involved in the transaction only need to use the Bluetooth search function to publish relevant information based on the Bluetooth name to collect payments from multiple users at the same time. There is no need to establish Bluetooth connections with multiple payment terminals, which saves multiple connection disconnections and solves the problem of multiple Bluetooth connection conflicts and the problem of being unable to connect to Bluetooth at the same time, thus meeting the needs of multiple users for simultaneous transactions.
[0173] (3) Active security protection: The public key information is published as an identity on the Bluetooth name of the payment terminal. The payment terminal can easily obtain the public key information of the payment terminal to prevent the payment terminal from making the wrong payment to other payment terminals. The private key information of the payment terminal is owned only by itself. The payment terminal can decrypt the encrypted digital currency based on the private key information and then receive the payment. Other Bluetooth devices cannot decrypt and receive the payment. Therefore, this method can also ensure the security of both parties to the transaction.
[0174] Embodiment 5
[0175] Figure 6 The following is a flow chart of the transaction method provided by the embodiment of the present invention. Figure 1 As an example, the transaction process between the payment terminal 110 and the payment terminal 120 is described. The transaction method provided by the embodiment of the present invention is applied to the payment terminal 110. The transaction method includes:
[0176] Step 610: Generate transaction data based on the user's payment operation.
[0177] Step 620, setting the Bluetooth name of the payment terminal itself so that the current Bluetooth name of the payment terminal includes the transaction data, so that the payment terminal searches for the payment terminal via Bluetooth, extracts the transaction data from the searched current Bluetooth name of the payment terminal, and completes the transaction according to the transaction data.
[0178] Embodiment 6
[0179] Figure 7 The following is a flow chart of the transaction method provided by the embodiment of the present invention. Figure 1 As an example, the transaction process between the payment terminal 110 and the payment terminal 120 is described. The transaction method provided by the embodiment of the present invention is applied to the payment terminal 120. The transaction method includes:
[0180] Step 710: Search for payment terminals via Bluetooth.
[0181] Step 720: extract transaction data from the searched current Bluetooth name of the payment terminal.
[0182] Step 730, completing the transaction according to the transaction data.
[0183] Embodiment 7
[0184] Figure 8 The schematic diagram of the architecture of the trading system provided by the embodiment of the present invention is as follows. Figure 8As shown, the transaction system 800 provided by the embodiment of the present invention includes: a payment terminal 810, which is used to generate transaction data based on the user's payment operation, and set its own Bluetooth name so that the current Bluetooth name of the payment terminal contains the transaction data; a payment terminal 820, which is used to search for the payment terminal via Bluetooth, extract the transaction data from the current Bluetooth name of the searched payment terminal, and complete the transaction according to the transaction data.
[0185] Embodiment 8
[0186] Fig. 9 This is a schematic diagram of the structure of a transaction device provided by an embodiment of the present invention. Fig. 9 As shown, the transaction device 900 provided in the embodiment of the present invention is applied to the payment terminal, and the device includes: a transaction data generation module 910, which is used to generate transaction data based on the user's payment operation; a Bluetooth name setting module 920, which is used to set the Bluetooth name of the payment terminal itself, so that the current Bluetooth name of the payment terminal contains the transaction data, so that the payment terminal searches for the payment terminal via Bluetooth, extracts the transaction data from the searched current Bluetooth name of the payment terminal, and completes the transaction according to the transaction data.
[0187] Embodiment 9
[0188] Fig.10 This is a schematic diagram of the structure of a transaction device provided by an embodiment of the present invention. Fig.10 As shown, the transaction device 1000 provided in the embodiment of the present invention is applied to a payment terminal, including: a Bluetooth search module 1010, used to search for a payment terminal via Bluetooth; a transaction data extraction module 1020, used to extract transaction data from the current Bluetooth name of the searched payment terminal; and a transaction data processing module 1030, used to complete a transaction based on the transaction data.
[0189] Embodiment 10
[0190] Fig.11 1 shows an electronic device according to an embodiment of the present invention. Fig.11 As shown, the electronic device 1100 includes: at least one processor 1110, and a memory 1120 communicatively connected to the at least one processor 1110, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor performs the above method.
[0191] Specifically, the memory 1120 and the processor 1110 are connected together via the bus 1130, and can be a general memory and a processor, which are not specifically limited here. When the processor 1110 runs the computer program stored in the memory 1120, it can execute the computer program in the embodiment of the present invention. Figures 1 to 7 Describes the various operations and functions.
[0192] The embodiment of the present invention further provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the above method is implemented. The specific implementation can be found in the method embodiment, which will not be described in detail here.
[0193] Although the embodiments of the present invention are disclosed above, they are not limited to the applications listed in the specification and the embodiments. It can be fully applied to various fields suitable for the embodiments of the present invention. For those familiar with the art, other modifications can be easily realized. Therefore, without departing from the general concept defined by the claims and equivalent scopes, the embodiments of the present invention are not limited to the specific details and the legends shown and described here.
Claims
1. A trading method, It is characterized in that Applied to a transaction system, the transaction system includes a payment terminal and a payment receiving terminal, and the transaction method includes: The payment terminal generates transaction data based on the user's payment operation; The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data; The payment terminal searches for the payment terminal via Bluetooth; The payment terminal extracts the transaction data from the searched current Bluetooth name of the payment terminal; The payment terminal completes the transaction according to the transaction data.
2. The transaction method according to claim 1, It is characterized in that The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data, including: The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data and the payment terminal identifier; The payment terminal searches for the payment terminal via Bluetooth, including: The payment terminal searches for the payment terminal via Bluetooth based on the payment terminal identifier.
3. The transaction method according to claim 1, It is characterized in that Before the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data, the method includes: The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes public key information; After the payment terminal generates transaction data based on the user's payment operation, the method includes: The payment terminal searches for the payment terminal via Bluetooth; The payment terminal extracts public key information from the searched current Bluetooth name of the payment terminal, and encrypts the transaction data based on the public key information; The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains transaction data, including: The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the encrypted transaction data; The payment terminal extracts the transaction data from the searched current Bluetooth name of the payment terminal, including: The payment terminal extracts the encrypted transaction data from the searched current Bluetooth name of the payment terminal, and decrypts the encrypted transaction data based on the private key information paired with the public key information.
4. The transaction method according to claim 3, It is characterized in that The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains public key information, including: The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes public key information and a payment terminal identifier; The payment terminal searches for the payment terminal via Bluetooth, including: The payment terminal searches for the payment terminal through Bluetooth based on the payment terminal identifier.
5. The transaction method according to claim 1, It is characterized in that The payment terminal extracts the transaction data from the searched current Bluetooth name of the payment terminal, or after the payment terminal completes the transaction according to the transaction data, the method includes: The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes confirmation information; The payment terminal searches for the payment terminal via Bluetooth; The payment terminal extracts the confirmation information from the searched current Bluetooth name of the payment terminal, and determines that the transaction is completed based on the confirmation information.
6. The transaction method according to claim 5, It is characterized in that The payment terminal generates transaction data based on the user's payment operation, including: The payment terminal generates transaction data and the confirmation information based on the user's payment operation, and the confirmation information is information that has a unique corresponding relationship with the payment terminal; The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains transaction data, including: The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data and the confirmation information; The payment terminal extracts the transaction data from the searched current Bluetooth name of the payment terminal, including: The payment terminal extracts the transaction data and the confirmation information from the searched current Bluetooth name of the payment terminal.
7. The transaction method according to claim 5, It is characterized in that The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal contains confirmation information, including: The payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes confirmation information and a payment terminal identifier; The payment terminal searches for the payment terminal via Bluetooth, including: The payment terminal searches for the payment terminal through Bluetooth based on the payment terminal identifier.
8. The transaction method according to claim 5, It is characterized in that Before the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data, the method includes: The payment terminal records its own initial Bluetooth name; The payment terminal extracts the confirmation information from the current Bluetooth name of the payment receiving terminal that has been searched, and after determining that the transaction is completed based on the confirmation information, the method includes: The payment terminal restores its current Bluetooth name to its initial Bluetooth name.
9. The transaction method according to claim 5, It is characterized in that Before the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes confirmation information, the method includes: The payment terminal records its own initial Bluetooth name; After the payment terminal sets its own Bluetooth name so that the current Bluetooth name of the payment terminal includes confirmation information, the method includes: The payment terminal restores its current Bluetooth name to its initial Bluetooth name.
10. The transaction method according to claim 1, It is characterized in that The transaction data includes digital currency.
11. The transaction method according to claim 1, It is characterized in that The transaction data includes a transaction voucher, wherein the transaction voucher includes the identity information of the payment terminal and the payment amount; The payment terminal completes the transaction according to the transaction data, including: The payment terminal provides the transaction voucher to the payment server, so that the payment server completes the payment to the payment terminal according to the identity information of the payment terminal and the payment amount contained in the transaction voucher.
12. A trading method, It is characterized in that Applied to payment terminals, including: Generate transaction data based on user payment operations; The Bluetooth name of the payment terminal itself is set so that the current Bluetooth name of the payment terminal includes the transaction data, so that the payment terminal searches for the payment terminal via Bluetooth, extracts the transaction data from the searched current Bluetooth name of the payment terminal, and completes the transaction according to the transaction data.
13. A trading method, It is characterized in that Applied to payment terminals, including: Search for payment terminals via Bluetooth; Extract transaction data from the searched payment terminal's current Bluetooth name; The transaction is completed according to the transaction data.
14. A trading system, It is characterized in that include: The payment terminal is used to generate transaction data based on the user's payment operation and set its own Bluetooth name so that the current Bluetooth name of the payment terminal includes the transaction data; The payment terminal is used to search the payment terminal via Bluetooth, extract the transaction data from the current Bluetooth name of the searched payment terminal, and complete the transaction according to the transaction data.
15. A transaction device, It is characterized in that Applied to payment terminals, including: A transaction data generation module, used to generate transaction data based on the user's payment operation; The Bluetooth name setting module is used to set the Bluetooth name of the payment terminal itself so that the current Bluetooth name of the payment terminal contains the transaction data, so that the payment terminal searches for the payment terminal via Bluetooth, extracts the transaction data from the searched current Bluetooth name of the payment terminal, and completes the transaction according to the transaction data.
16. A transaction device, It is characterized in that Applied to payment terminals, including: A Bluetooth search module, used to search for payment terminals via Bluetooth; A transaction data extraction module, used to extract transaction data from the searched current Bluetooth name of the payment terminal; The transaction data processing module is used to complete the transaction according to the transaction data.
17. An electronic device, It is characterized in that include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 13.
18. A storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
Citation Information
Patent Citations
Bluetooth-based face to face payment method and system
CN105205666A
Method and apparatus for offline payment, service processing, and payment processing
US20200082404A1
Public transport payment method and system based on bluetooth communication
WO2017210980A1
Payment method and device, electronic device, and payment system
WO2018091001A1
Offline payment method and apparatus, electronic device, and storage medium
WO2020223932A1
