Payment processing method and device, storage medium and terminal

By establishing a Bluetooth mesh network and sharing payment accounts between terminals, the problems of high cost, poor security and low reliability of payment processing in a network-free environment are solved, and low-cost, high-security and high-reliability payment is realized. deal with.

CN118714546APending Publication Date: 2024-09-27TCL COMM (NINGBO) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410942600.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In no network or weak network environment, terminal payment processing has the problems of high cost, poor security and low reliability.

Method used

By establishing a Bluetooth mesh network between multiple terminals, sharing unicast addresses and binding payment accounts, broadcasting payment transaction record messages, and merging them into blockchain structure storage, the decentralized processing of payment transactions is achieved.

Benefits of technology

Achieve low-cost, high security and high reliability payment processing in no network or weak network environment, avoiding single point of failure and data tampering risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714546A
    Figure CN118714546A
Patent Text Reader

Abstract

The invention discloses a payment processing method and device, a storage medium and a terminal, and relates to the technical field of block chains, a first terminal can establish a Bluetooth grid network with a plurality of second terminals, and the terminals in the Bluetooth grid network have corresponding unicast addresses and share the unicast addresses mutually; binding the unicast address corresponding to the first terminal with the payment account, and binding the unicast address of each second terminal with the payment account; in response to an analog payment behavior of the first terminal and the target terminal, broadcasting a first payment transaction record message in the Bluetooth grid network, and broadcasting a second payment transaction record message by the target terminal; and combining the first payment transaction record message and the second payment transaction record message into a payment transaction record table and storing the payment transaction record table according to a block chain structure, and combining the payment transaction record table obtained in each second terminal and storing the payment transaction record table according to the block chain structure. According to the invention, low-cost, high-security and high-reliability payment processing can be realized in a network-free or weak network environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a payment processing method, device, storage medium and terminal. Background Art

[0002] With the development of technology, payment methods using terminals are widely used in life, such as WeChat payment or Alipay payment, etc. Terminal payment often relies on the network, and payment can usually be successful in a good network environment.

[0003] However, in many cases, such as long-distance hiking, the terminal may have no network signal or weak network signal, resulting in failure to successfully pay. Alternatively, some terminals can use satellite communication for payment, but the satellite communication traffic fee is high.

[0004] Therefore, there is a need for a payment processing method that can achieve low cost, high security and high reliability in an environment with no network or weak network. Summary of the invention

[0005] The embodiment of the present application provides a payment processing solution that can achieve low-cost, high-security and high-reliability payment processing in an environment with no network or weak network.

[0006] The embodiments of the present application provide the following technical solutions:

[0007] According to one embodiment of the present application, a payment processing method is applied to a first terminal, and the method includes: establishing a Bluetooth mesh network with multiple second terminals, wherein the terminals in the Bluetooth mesh network respectively have corresponding unicast addresses and share the unicast addresses with each other; binding the unicast address corresponding to the first terminal to the corresponding payment account, and binding the unicast address corresponding to each second terminal to the corresponding payment account; in response to a simulated payment behavior between the first terminal and a target terminal among the multiple second terminals, broadcasting a first payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network, and the target terminal broadcasting a second payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network; merging the first payment transaction record message and the second payment transaction record message into a payment transaction record table and storing them according to a blockchain structure, and merging the payment transaction record table in each second terminal and storing them according to a blockchain structure.

[0008] In some embodiments, after the first payment transaction record message and the second payment transaction record message are merged into a payment transaction record table and stored according to the blockchain structure, and the payment transaction record table is merged in each second terminal and stored according to the blockchain structure, the method further includes: detecting whether the payment synchronization condition is met; if so, uploading the payment transaction record table to the payment server, so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table.

[0009] In some embodiments, uploading the payment transaction record table to the payment server so that the payment server updates the account transaction data in the payment accounts corresponding to the first terminal and the target terminal according to the payment transaction record table includes: sending a payment synchronization request to the target terminal so that the target terminal uploads the payment transaction record table in the target terminal to the payment server if a consent indication is returned; if the consent indication returned by the target terminal is received, uploading the payment transaction record table in the first terminal to the payment server so that the payment server updates the account transaction data in the payment accounts corresponding to the first terminal and the target terminal according to the payment transaction record table in the target terminal and the payment transaction record table in the first terminal.

[0010] In some embodiments, uploading the payment transaction record table to the payment server so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table includes: sending a payment synchronization request to each of the second terminals in the Bluetooth mesh network, so that each of the second terminals uploads the payment transaction record table in each of the second terminals to the payment server if a consent indication is returned; if the consent indication is received from each of the second terminals, uploading the payment transaction record table in the first terminal to the payment server, so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table uploaded by each terminal in the Bluetooth mesh network.

[0011] In some embodiments, before broadcasting the first payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network, the method further includes: obtaining payment details information in the first terminal in the simulated payment behavior; obtaining the unicast address of the first terminal and the unicast address of the target terminal; using the unicast address of the first terminal, the unicast address of the target terminal and the payment details information as application layer parameters of the access layer, generating a message according to the message format of the access layer, and obtaining the first payment transaction record message.

[0012] In some embodiments, the unicast address of the first terminal, the unicast address of the target terminal and the payment details information are used as application layer parameters of the access layer, and a message is generated according to the message format of the access layer to obtain the first payment transaction record message, including: determining the payment type of the first terminal in the simulated payment behavior; obtaining the type identification code corresponding to the payment type; using the type identification code as the operation code of the access layer, and generating a message using the application layer parameters and the operation code according to the message format of the access layer to obtain the first payment transaction record message.

[0013] In some embodiments, the first payment transaction record message also includes payment details information in the first terminal and a type identification code identifying the payment type; the second payment transaction record message also includes collection details information in the second terminal and a result identification code identifying the collection result under the payment type; the first payment transaction record message and the second payment transaction record message are combined into a payment transaction record table and stored according to the blockchain structure, including: determining the transaction status between the first terminal and the target terminal in the simulated payment behavior according to the type identification code and the result identification code; generating a single-channel transaction record table including the unicast address of the first terminal, the unicast address of the target terminal, the payment details information, the collection details information and the transaction status; obtaining the payment transaction record table according to the single-channel transaction record table; and storing the payment transaction record table according to the blockchain structure.

[0014] According to one embodiment of the present application, a payment processing device is applied to a first terminal, and the device includes: a building module, which is used to build a Bluetooth mesh network with multiple second terminals, wherein the terminals in the Bluetooth mesh network respectively have corresponding unicast addresses and share the unicast addresses with each other; a binding module, which is used to bind the unicast address corresponding to the first terminal to the corresponding payment account, and the unicast address corresponding to each second terminal is bound to the corresponding payment account; a broadcast module, which is used to respond to the simulated payment behavior of the first terminal and the target terminal among the multiple second terminals, broadcast a first payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network, and the target terminal broadcasts a second payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network; a recording module, which is used to merge the first payment transaction record message and the second payment transaction record message into a payment transaction record table and store them according to the blockchain structure, and the payment transaction record table is merged in each second terminal and stored according to the blockchain structure.

[0015] According to another embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor of a computer, the computer executes the method described in the embodiment of the present application.

[0016] According to another embodiment of the present application, a terminal may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.

[0017] According to another embodiment of the present application, a computer program product or a computer program includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.

[0018] In an embodiment of the present application, a first terminal may: establish a Bluetooth mesh network with multiple second terminals, wherein the terminals in the Bluetooth mesh network respectively have corresponding unicast addresses and share the unicast addresses with each other; bind the unicast address corresponding to the first terminal to the corresponding payment account, and bind the unicast address corresponding to each of the second terminals to the corresponding payment account; in response to a simulated payment behavior between the first terminal and a target terminal among the multiple second terminals, broadcast a first payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network, and the target terminal broadcasts a second payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network; merge the first payment transaction record message and the second payment transaction record message into a payment transaction record table and store them according to a blockchain structure, and merge the payment transaction record table in each of the second terminals and store them according to the blockchain structure.

[0019] In this way, a first terminal and multiple second terminals form a Bluetooth mesh network. Each terminal in the Bluetooth mesh network has a corresponding unicast address and shares the unicast address with each other. Each terminal binds its corresponding unicast address to a payment account. The first terminal and a target terminal among the multiple second terminals can simulate payment behavior. Then, the first terminal and the target terminal will respectively broadcast the first payment transaction record message and the second payment transaction record message in the Bluetooth mesh network. As a result, each terminal in the Bluetooth mesh network can obtain the first payment transaction record message and the second payment transaction record message, which are merged into a payment transaction record table and stored according to the blockchain structure. Furthermore, by forming a Bluetooth mesh network to realize blockchain-style payment transactions, low-cost, high-security and high-reliability payment processing can be achieved in an environment without a network or a weak network. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A flow chart of a payment processing method according to an embodiment of the present application is shown.

[0022] Figure 2 An architectural diagram of a payment processing system according to an embodiment of the present application is shown.

[0023] Figure 3 A conditional judgment flow chart according to an embodiment of the present application is shown.

[0024] Figure 4 A block diagram of a payment processing device according to an embodiment of the present application is shown.

[0025] Figure 5 A block diagram of a terminal according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. In the absence of conflict, the technical solutions recorded in the embodiments of the present disclosure can be implemented in any combination.

[0027] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements in the method or apparatus including the element (such as a step in the method or a unit in the apparatus, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.).

[0028] For example, the payment processing method provided by the embodiment of the present disclosure includes a series of steps, but the payment processing method provided by the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the payment processing device provided by the embodiment of the present disclosure includes a series of units, but the device provided by the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units required to obtain relevant information or perform processing based on the information.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

[0030] It is understandable that in the specific implementation of this application, the relevant data involved, when the embodiments in this application are applied to specific products or technologies, need to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0031] Figure 1 The flowchart of the payment processing method according to an embodiment of the present application is schematically shown. The execution subject of the payment processing method can be any first terminal with Bluetooth function, such as a mobile phone, smart watch, tablet, computer, etc.

[0032] like Figure 1 As shown, the payment processing method may include steps S110 to S140.

[0033] Step S110, establishing a Bluetooth mesh network with multiple second terminals, wherein the terminals in the Bluetooth mesh network respectively have corresponding unicast addresses and share the unicast addresses with each other; Step S120, binding the unicast address corresponding to the first terminal to the corresponding payment account, and binding the unicast address corresponding to each second terminal to the corresponding payment account; Step S130, in response to the simulated payment behavior of the first terminal and the target terminal among the multiple second terminals, broadcasting a first payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network, and the target terminal broadcasting a second payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network; Step S140, merging the first payment transaction record message and the second payment transaction record message into a payment transaction record table and storing them according to the blockchain structure, and the payment transaction record table is merged in each second terminal and stored according to the blockchain structure.

[0034] In this way, a first terminal and multiple second terminals form a Bluetooth mesh network, each terminal in the Bluetooth mesh network has a corresponding unicast address and shares the unicast address with each other, each terminal binds its corresponding unicast address to a payment account, and the first terminal and a target terminal among the multiple second terminals can simulate payment behavior, and then the first terminal and the target terminal will broadcast the first payment transaction record message and the second payment transaction record message in the Bluetooth mesh network respectively, so that each terminal in the Bluetooth mesh network can obtain the first payment transaction record message and the second payment transaction record message, merge them into a payment transaction record table and store them according to the blockchain structure, and then, by forming a Bluetooth mesh network to realize blockchain-style secure and reliable payment transactions, low-cost, high-security and high-reliability payment processing can be achieved in a networkless or weak network environment.

[0035] Described below Figure 1 When performing payment processing under the embodiment, further optional specific embodiments are provided for each step performed.

[0036] Step S110 , establishing a Bluetooth mesh network with multiple second terminals, wherein the terminals in the Bluetooth mesh network respectively have corresponding unicast addresses and share the unicast addresses with each other.

[0037] The first terminal and the plurality of second terminals can form a Bluetooth mesh network (Bluetooth Mesh Network) through the Bluetooth function, and the first terminal and each second terminal are respectively a node in the Bluetooth mesh network. Figure 2 As shown, the first terminal may be Figure 2 In the smart phone A, the multiple second terminals can be respectively as follows Figure 2 Among them, smartphones B, C, D and E, these terminals form a Bluetooth mesh network 200.

[0038] After the Bluetooth mesh network is successfully established, each node (i.e., terminal) in the Bluetooth mesh network has a unique corresponding unicast address to distinguish different nodes. Nodes (i.e., terminals) in the Bluetooth mesh network can share unicast addresses with each other, that is, each node (i.e., terminal) in the Bluetooth mesh network will record the unicast addresses of other nodes (i.e., terminals). For example, the first terminal can record the unicast addresses of multiple second terminals.

[0039] The process of the first terminal and the multiple second terminals forming a Bluetooth mesh network through the Bluetooth function may specifically be: multiple configured terminals send broadcast messages to the configuration terminal through Bluetooth; the configuration terminal establishes a Bluetooth mesh network, and invites multiple configured terminals to join the Bluetooth mesh network in response to the broadcast message, wherein the configuration terminal is one of the first terminal and the multiple second terminals, and the multiple configured terminals are other terminals among the first terminal and the multiple second terminals except the configuration terminal. That is, the first terminal and one of the multiple second terminals may serve as the configuration terminal, and the configuration terminal may establish a Bluetooth mesh network and invite multiple configured terminals to join the Bluetooth mesh network.

[0040] The Bluetooth mesh network is a low-power local area network. It is also a decentralized network of multiple nodes to multiple nodes. In a Bluetooth mesh network, a node can multicast messages to multiple nodes, a node can broadcast messages to all nodes, and multiple nodes can send messages to multiple nodes. Messages are transmitted between any two nodes in a flooding manner, that is, two nodes transmit messages through multiple different paths at the same time to ensure that the messages can be conveyed. Therefore, the failure of any node in the Bluetooth mesh network will not affect the normal operation of the entire network.

[0041] The blockchain network is also a decentralized network. It is not a traditional relationship where one master device corresponds to multiple slave devices. The failure of any device in the blockchain network will not affect the normal operation of the entire blockchain. Based on the characteristics of the above-mentioned Bluetooth mesh network, the first terminal and multiple second terminals form a Bluetooth mesh network to realize the technical characteristics of the decentralized network of the blockchain network.

[0042] Step S120: Bind the unicast address corresponding to the first terminal to the corresponding payment account, and bind the unicast address corresponding to each of the second terminals to the corresponding payment account.

[0043] The first terminal has its corresponding unicast address. At the same time, the first terminal has a corresponding payment account (for example, a WeChat payment account or an Alipay payment account, etc.). The first terminal can bind the unicast address corresponding to the first terminal to the corresponding payment account.

[0044] Similarly, taking a second terminal A as an example, the second terminal A can bind the unicast address corresponding to the second terminal A to the payment account corresponding to the second terminal A, and other second terminals also bind their corresponding unicast addresses to the corresponding payment accounts.

[0045] Step S130, in response to the simulated payment behavior of the first terminal and the target terminal among the multiple second terminals, broadcast a first payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network, and the target terminal broadcasts a second payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network.

[0046] The first terminal can perform simulated payment behavior with a target terminal among multiple second terminals. The target terminal can be one or at least two terminals among the multiple second terminals. The simulated payment behavior is a simulated real payment behavior (for example, scanning code payment, group red envelope sending and other payment behaviors). The simulated payment behavior is not actually performed in the payment accounts of the first terminal and the target terminal. The simulated payment behavior can be completed in an environment without network or with a weak network.

[0047] After the first terminal performs a simulated payment behavior with the target terminal (for example, the first terminal scans the QR code in the target terminal to perform a simulated payment to it), the first terminal broadcasts a first payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network. Then, multiple other second terminals in the Bluetooth mesh network can receive the first payment transaction record message. The first payment transaction record message can also include specific payment details of the simulated payment behavior in the first terminal (for example, payment amount and payment time, etc.).

[0048] At the same time, after the first terminal performs a simulated payment behavior with the target terminal (for example, the first terminal scans the QR code in the target terminal to perform a simulated payment to it), regardless of whether there are one or more target terminals, each target terminal broadcasts a second payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network. Then, other terminals in the Bluetooth mesh network except the target terminal can receive the second payment transaction record message. The second payment transaction record message can also include specific payment details of the simulated payment behavior in the target terminal (for example, payment amount and payment time, etc.).

[0049] Furthermore, after the terminals in the Bluetooth mesh network perform simulated payment behavior, each terminal performing the simulated payment behavior will share the payment transaction related data in the simulated payment behavior in the Bluetooth mesh network, so that each terminal in the Bluetooth mesh network will record the payment transaction related data of each simulated payment behavior.

[0050] In one embodiment, before broadcasting the first payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network, the method further includes:

[0051] Obtain payment details in the first terminal in the simulated payment behavior; obtain the unicast address of the first terminal and the unicast address of the target terminal; use the unicast address of the first terminal, the unicast address of the target terminal and the payment details as application layer parameters of the access layer, generate a message according to the message format of the access layer, and obtain the first payment transaction record message.

[0052] The first terminal is used as the payer of the simulated payment behavior, and the payment details may include the payment time and payment amount. The unicast address of the first terminal, the unicast address of the target terminal and the payment details are used as the application layer parameters of the access layer, and the message is generated according to the message format of the access layer to obtain the first payment transaction record message.

[0053] The architecture in the Bluetooth mesh network consists of an 8-layer model, which is the BLE (Bluetooth LowEnergy) core protocol layer, bearer layer, network layer, lower transport layer, upper transport layer, access layer, basic model layer and model layer from bottom to top. The message described in the embodiment of the present application is located in the access layer of the architecture. Furthermore, the first payment transaction record message generated according to the message format of the access layer can be broadcasted in the access layer of the Bluetooth mesh network.

[0054] The message format of the access layer can be specifically shown in the following table. The message format of the access layer includes access layer content, operation code and application layer parameters. Among them, the content value of the access layer content can be filled in according to the actual situation of the access layer. This application does not make specific restrictions on this.

[0055] Access layer content Operation Code Application layer parameters Content Value

[0056] For example, in one example, the first payment transaction record message generated in the first terminal according to the message format of the access layer is shown in the following table, wherein the application layer parameters include the unicast address of the first terminal, the unicast address of the target terminal and the payment details information, and the payment details information includes the payment amount and payment time.

[0057]

[0058] Furthermore, in one embodiment, the unicast address of the first terminal, the unicast address of the target terminal and the payment details information are used as application layer parameters of the access layer, and a message is generated according to the message format of the access layer to obtain the first payment transaction record message, including: determining the payment type of the first terminal in the simulated payment behavior; obtaining the type identification code corresponding to the payment type; using the type identification code as the operation code of the access layer, and generating a message using the application layer parameters and the operation code according to the message format of the access layer to obtain the first payment transaction record message.

[0059] The payment type may include one-to-one payment, one-to-many payment, and many-to-one payment, etc. In this embodiment, the type identification code corresponding to the payment type is obtained as the operation code of the access layer, and the application layer parameters and the operation code are used to generate a message according to the message format of the access layer to obtain the first payment transaction record message.

[0060] For example, in one example, the first payment transaction record message generated in the first terminal according to the message format of the access layer is shown in the following table, where the operation code is the type identification code 0x11, and 0x11 can identify the payment type as "payment (one-to-one payment scenario)".

[0061]

[0062] In one embodiment, the target terminal may generate the second payment transaction record message by: obtaining the payment details information in the second terminal in the simulated payment behavior; obtaining the unicast address of the first terminal and the unicast address of the target terminal; using the unicast address of the first terminal, the unicast address of the target terminal and the payment details information as application layer parameters of the access layer, generating a message according to the message format of the access layer, and obtaining the second payment transaction record message.

[0063] The second terminal is used as the payee of the simulated payment behavior, and the payment details may include payment time, payment amount and payment time. The unicast address of the first terminal, the unicast address of the target terminal and the payment details are used as application layer parameters of the access layer, and a message is generated according to the message format of the access layer to obtain a second payment transaction record message.

[0064] For example, in one example, the second payment transaction record message generated in the second terminal according to the message format of the access layer is shown in the following table, wherein the application layer parameters include the unicast address of the first terminal, the unicast address of the target terminal and the payment details information, and the payment details information includes the payment amount, payment time and collection time.

[0065]

[0066] Furthermore, in one embodiment, the unicast address of the first terminal, the unicast address of the target terminal and the payment details information are used as application layer parameters of the access layer, and a message is generated according to the message format of the access layer to obtain the second payment transaction record message, including: determining the payment result of the second terminal under the payment type of the simulated payment behavior; obtaining the result identification code corresponding to the payment result under the payment type; using the result identification code as the operation code of the access layer, and generating a message using the application layer parameters and the operation code according to the message format of the access layer to obtain the second payment transaction record message.

[0067] The payment type may include one-to-one payment, one-to-many payment, and many-to-one payment, etc. The collection result under the payment type may include collection failure or collection success. In this embodiment, the result identification code corresponding to the collection result under the payment type is obtained as the operation code of the access layer, and the application layer parameters and the operation code are used to generate a message according to the message format of the access layer to obtain the second payment transaction record message.

[0068] For example, in one example, the second payment transaction record message generated in the second terminal according to the message format of the access layer is shown in the following table, where the operation code is the result identification code 0x12, and 0x12 can identify the collection result under the payment type as "successful collection (one-to-one payment situation)".

[0069]

[0070] Step S140: merge the first payment transaction record message and the second payment transaction record message into a payment transaction record table and store them according to the blockchain structure, and merge the payment transaction record table in each of the second terminals and store them according to the blockchain structure.

[0071] The first terminal may combine the first payment transaction record message and the second payment transaction record message into a payment transaction record table, and store the payment transaction record table in the first terminal according to the blockchain structure. Similarly, each second terminal will also receive the first payment transaction record message and the second payment transaction record, and each second terminal will also combine the first payment transaction record message and the second payment transaction record message into a payment transaction record table, and store the payment transaction record table in the second terminal according to the blockchain structure.

[0072] Therefore, each terminal in the Bluetooth mesh network will record the complete transaction data of each simulated payment behavior. No terminal stores complete data alone, thus avoiding the possibility of a single terminal being bribed or controlled to change the data, and realizing the characteristics of the blockchain network that data cannot be tampered with or forged. Moreover, based on the characteristics of the Bluetooth mesh network, the payment transaction-related data of any terminal can be traced back, and the transaction records are open and transparent, which can achieve the same technical characteristics of data traceability as the blockchain network. Furthermore, by establishing a Bluetooth mesh network to realize blockchain-style payment transactions, low-cost, high-security and high-reliability payment processing can be achieved in a networkless or weak network environment.

[0073] In one embodiment, the first payment transaction record message also includes payment details information in the first terminal and a type identification code identifying the payment type; the second payment transaction record message also includes collection details information in the second terminal and a result identification code identifying the collection result under the payment type; the first payment transaction record message and the second payment transaction record message are combined into a payment transaction record table and stored according to the blockchain structure, including: determining the transaction status between the first terminal and the target terminal in the simulated payment behavior according to the type identification code and the result identification code; generating a single-channel transaction record table including the unicast address of the first terminal, the unicast address of the target terminal, the payment details information, the collection details information and the transaction status; obtaining the payment transaction record table according to the single-channel transaction record table; and storing the payment transaction record table according to the blockchain structure.

[0074] For example, the type identification code is 0x11, and the result identification code is 0x12. 0x11 can identify the payment type as "payment (one-to-one payment scenario)", and 0x12 can identify the payment result under the payment type as "successful payment (one-to-one payment scenario)". Then, according to the type identification code and the result identification code, it can be determined that the transaction status between the first terminal and the target terminal in the simulated payment behavior is "successful". Further, the generated single-channel transaction record table is shown in the following table.

[0075]

[0076] It is understandable that each target terminal can generate a single-way transaction record table as shown in the above table. If there is only one target terminal (for example, in a one-to-one payment situation), the generated single-way transaction record table is the obtained payment transaction record table.

[0077] If there are multiple target terminals (for example, in a one-to-many payment or many-to-one payment scenario), multiple single-channel transaction record tables are generated, and the payment transaction record table can be obtained by merging the multiple single-channel transaction record tables.

[0078] For example, in one example, the payment transaction record table obtained by merging three single-channel transaction record tables is shown in the following table.

[0079]

[0080] Each terminal will eventually store the payment transaction record table according to the blockchain structure, and the payment transaction record tables generated by different transaction behaviors will be stored in the order of the blockchain structure. For example, in one example, the payment transaction record tables generated by three transaction behaviors are stored in the order of the blockchain structure as shown in the following table, where transaction serial number 1 is the payment transaction record table generated by the first transaction behavior, transaction serial number 2 is the payment transaction record table generated by the second transaction behavior, and transaction serial numbers 3, 4 and 5 are the payment transaction record tables generated by the third transaction behavior.

[0081]

[0082] In one embodiment, see Figure 3 After the first payment transaction record message and the second payment transaction record message are merged into a payment transaction record table and stored according to the blockchain structure, and the payment transaction record table is merged in each second terminal and stored according to the blockchain structure, the method further includes: step S310, detecting whether the payment synchronization condition is met; step S320, if so, uploading the payment transaction record table to the payment server, so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table.

[0083] The payment synchronization condition can be set according to the actual situation. For example, in one example, the payment synchronization condition is that there is a network signal or the network signal strength is higher than a predetermined threshold. In another example, the payment synchronization condition is that the established Bluetooth mesh network requests to be disbanded.

[0084] When the first terminal detects that the payment synchronization condition is currently met, the first terminal uploads the payment transaction record table to the payment server, which is a server used to process payment transactions in reality, such as a WeChat payment server or an Alipay server, etc. It can be understood that the first terminal and each second terminal can negotiate with the payment server in advance to perform payment processing in the manner of the embodiments of the present application.

[0085] The payment server can update the account transaction data in the payment account corresponding to each transaction party (including the first terminal and the target terminal) according to the payment transaction record table, for example, update the transaction record, transaction details and modify the remaining amount in the account in the payment account.

[0086] Furthermore, in one embodiment, uploading the payment transaction record table to the payment server so that the payment server updates the account transaction data in the payment accounts corresponding to the first terminal and the target terminal according to the payment transaction record table may include: sending a payment synchronization request to the target terminal so that the target terminal uploads the payment transaction record table in the target terminal to the payment server if a consent indication is returned; if the consent indication returned by the target terminal is received, uploading the payment transaction record table in the first terminal to the payment server so that the payment server updates the account transaction data in the payment accounts corresponding to the first terminal and the target terminal according to the payment transaction record table in the target terminal and the payment transaction record table in the first terminal.

[0087] In this embodiment, the first terminal sends a payment synchronization request to the target terminal, and then, the target terminal can upload the payment transaction record table in the target terminal to the payment server when returning the consent indication, and then upload the payment transaction record table in the first terminal to the payment server. Then, the payment server can obtain the payment transaction record table recorded in the transaction parties, and only when the contents of the payment transaction record table recorded by both parties are consistent, will the account transaction data in the payment account corresponding to the first terminal and the target terminal be updated, further improving the reliability of payment processing.

[0088] Further, in one embodiment, uploading the payment transaction record table to the payment server so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table may include: sending a payment synchronization request to each of the second terminals in the Bluetooth mesh network, so that each of the second terminals uploads the payment transaction record table in each of the second terminals to the payment server if a consent indication is returned; if the consent indication is received from each of the second terminals, uploading the payment transaction record table in the first terminal to the payment server, so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table uploaded by each terminal in the Bluetooth mesh network.

[0089] In this embodiment, the first terminal sends a payment synchronization request to each second terminal in the Bluetooth mesh network, and then each second terminal can upload the payment transaction record table in each second terminal to the payment server when returning an approval indication, and then upload the payment transaction record table in the first terminal to the payment server. Then, the payment server can obtain the payment transaction record table recorded by all terminals in the Bluetooth mesh network, and only when the contents in the payment transaction record table recorded by all terminals in the Bluetooth mesh network are consistent, the account transaction data in the payment account corresponding to the first terminal and the target terminal is updated, further improving the reliability of payment processing.

[0090] In order to facilitate better implementation of the payment processing method provided in the embodiment of the present application, the embodiment of the present application also provides a payment processing device based on the above payment processing method. The meanings of the terms are the same as those in the above payment processing method, and the specific implementation details can refer to the description in the method embodiment. Figure 4 A block diagram of a payment processing device according to an embodiment of the present application is shown.

[0091] like Figure 4 As shown, the payment processing device 400 is applied to the first terminal, and the payment processing device 400 may include: a formation module 410 can be used to form a Bluetooth mesh network with multiple second terminals, wherein the terminals in the Bluetooth mesh network respectively have corresponding unicast addresses and share the unicast addresses with each other; a binding module 420 can be used to bind the unicast address corresponding to the first terminal to the corresponding payment account, and the unicast address corresponding to each second terminal is bound to the corresponding payment account; a broadcast module 430 can be used to respond to the simulated payment behavior of the first terminal and the target terminal among the multiple second terminals, broadcast a first payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network, and the target terminal broadcasts a second payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network; a recording module 440 can be used to merge the first payment transaction record message and the second payment transaction record message into a payment transaction record table and store them according to a blockchain structure, and the payment transaction record table is merged in each second terminal and stored according to a blockchain structure.

[0092] In some embodiments, after the first payment transaction record message and the second payment transaction record message are merged into a payment transaction record table and stored according to the blockchain structure, and the payment transaction record table is merged in each second terminal and stored according to the blockchain structure, the device also includes a transaction online module, which is used to: detect whether the payment synchronization conditions are met; if so, upload the payment transaction record table to the payment server, so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table.

[0093] In some embodiments, the online module is used to: send a payment synchronization request to the target terminal, so that the target terminal uploads the payment transaction record table in the target terminal to the payment server if the target terminal returns a consent indication; if the consent indication returned by the target terminal is received, upload the payment transaction record table in the first terminal to the payment server, so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table in the target terminal and the payment transaction record table in the first terminal.

[0094] In some embodiments, the online module is used to: send a payment synchronization request to each of the second terminals in the Bluetooth mesh network, so that each of the second terminals uploads the payment transaction record table in each of the second terminals to the payment server if an agreement indication is returned; if the agreement indication is received from each of the second terminals, upload the payment transaction record table in the first terminal to the payment server, so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table uploaded by each terminal in the Bluetooth mesh network.

[0095] In some embodiments, before broadcasting the first payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network, the device also includes a message generation module, which is used to: obtain payment details information in the first terminal in the simulated payment behavior; obtain the unicast address of the first terminal and the unicast address of the target terminal; use the unicast address of the first terminal, the unicast address of the target terminal and the payment details information as application layer parameters of the access layer, generate a message according to the message format of the access layer, and obtain the first payment transaction record message.

[0096] In some embodiments, the message generation module is used to: determine the payment type of the first terminal in the simulated payment behavior; obtain the type identification code corresponding to the payment type; use the type identification code as the operation code of the access layer, and generate a message according to the message format of the access layer using the application layer parameters and the operation code to obtain the first payment transaction record message.

[0097] In some embodiments, the first payment transaction record message also includes payment details information in the first terminal and a type identification code identifying the payment type; the second payment transaction record message also includes collection details information in the second terminal and a result identification code identifying the collection result under the payment type; the recording module is used to: determine the transaction status between the first terminal and the target terminal in the simulated payment behavior according to the type identification code and the result identification code; generate a single-channel transaction record table including the unicast address of the first terminal, the unicast address of the target terminal, the payment details information, the collection details information and the transaction status; obtain the payment transaction record table according to the single-channel transaction record table; and store the payment transaction record table according to the blockchain structure.

[0098] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0099] In addition, the present application embodiment also provides a terminal, such as Figure 5 As shown, Figure 5 A block diagram of a terminal according to an embodiment of the present application is shown, specifically:

[0100] The terminal may include one or more processing core processors 501, one or more computer-readable storage media memories 502, a power supply 503, an input unit 504 and other components. Those skilled in the art will appreciate that Figure 5 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0101] The processor 501 is the control center of the terminal. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, it executes various functions of the computer device and processes data, thereby monitoring the terminal as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.

[0102] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0103] The terminal also includes a power supply 503 for supplying power to each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 503 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0104] The terminal may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0105] Although not shown, the terminal may also include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 501 in the terminal will load the executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 will run the computer program stored in the memory 502, so as to realize various functions in the aforementioned embodiments of the present application, such as the processor 501 may perform the following steps:

[0106] A Bluetooth mesh network is established with multiple second terminals, wherein the terminals in the Bluetooth mesh network respectively have corresponding unicast addresses and share the unicast addresses with each other; the unicast address corresponding to the first terminal is bound to the corresponding payment account, and the unicast address corresponding to each of the second terminals is bound to the corresponding payment account; in response to the simulated payment behavior of the first terminal and the target terminal among the multiple second terminals, a first payment transaction record message including the unicast addresses of the first terminal and the target terminal is broadcast in the Bluetooth mesh network, and the target terminal broadcasts a second payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network; the first payment transaction record message and the second payment transaction record message are merged into a payment transaction record table and stored according to a blockchain structure, and the payment transaction record table is merged in each of the second terminals and stored according to the blockchain structure.

[0107] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0108] To this end, an embodiment of the present application further provides a storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method provided in the embodiment of the present application.

[0109] The storage medium may be a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0110] Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0111] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0112] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.

Claims

1. A payment processing method, characterized in that: Applied to a first terminal, the method includes: Establishing a Bluetooth mesh network with multiple second terminals, wherein the terminals in the Bluetooth mesh network respectively have corresponding unicast addresses and share the unicast addresses with each other; Binding the unicast address corresponding to the first terminal to the corresponding payment account, and binding the unicast address corresponding to each of the second terminals to the corresponding payment account; In response to a simulated payment behavior between the first terminal and a target terminal among the plurality of second terminals, a first payment transaction record message including the unicast addresses of the first terminal and the target terminal is broadcasted in the Bluetooth mesh network, and the target terminal broadcasts a second payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network; The first payment transaction record message and the second payment transaction record message are combined into a payment transaction record table and stored according to the blockchain structure, and the payment transaction record table is combined in each of the second terminals and stored according to the blockchain structure.

2. The method according to claim 1, characterized in that After the first payment transaction record message and the second payment transaction record message are combined into a payment transaction record table and stored according to the blockchain structure, and the payment transaction record table is combined in each second terminal and stored according to the blockchain structure, the method further includes: Check whether payment synchronization conditions are met; If yes, the payment transaction record table is uploaded to the payment server, so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table.

3. The method according to claim 2, characterized in that The uploading of the payment transaction record table to the payment server so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table, comprises: Sending a payment synchronization request to the target terminal, so that the target terminal uploads the payment transaction record table in the target terminal to the payment server when returning an approval indication; If the consent indication returned by the target terminal is received, the payment transaction record table in the first terminal is uploaded to the payment server, so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table in the target terminal and the payment transaction record table in the first terminal.

4. The method according to claim 2, characterized in that: The uploading of the payment transaction record table to the payment server so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table, comprises: Sending a payment synchronization request to each of the second terminals in the Bluetooth mesh network, so that each of the second terminals uploads the payment transaction record table in each of the second terminals to the payment server if the second terminals return an approval indication; If the consent indication returned by each second terminal is received, the payment transaction record table in the first terminal is uploaded to the payment server, so that the payment server updates the account transaction data in the payment account corresponding to the first terminal and the target terminal according to the payment transaction record table uploaded by each terminal in the Bluetooth mesh network.

5. The method according to claim 1, characterized in that Before broadcasting the first payment transaction record message including the unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network, the method further includes: Acquire payment details information in the first terminal in the simulated payment behavior; Acquire the unicast address of the first terminal and the unicast address of the target terminal; The unicast address of the first terminal, the unicast address of the target terminal and the payment details are used as application layer parameters of the access layer, and a message is generated according to a message format of the access layer to obtain the first payment transaction record message.

6. The method according to claim 5, characterized in that The step of using the unicast address of the first terminal, the unicast address of the target terminal, and the payment details information as application layer parameters of the access layer, generating a message according to the message format of the access layer, and obtaining the first payment transaction record message includes: Determining a payment type of the simulated payment behavior by the first terminal; Obtaining a type identification code corresponding to the payment type; The type identification code is used as the operation code of the access layer, and the application layer parameters and the operation code are used to generate a message according to the message format of the access layer to obtain the first payment transaction record message.

7. The method according to claim 1, characterized in that The first payment transaction record message also includes payment details in the first terminal and a type identification code identifying a payment type; the second payment transaction record message also includes payment collection details in the second terminal and a result identification code identifying a payment collection result under the payment type; The step of merging the first payment transaction record message and the second payment transaction record message into a payment transaction record table and storing the table according to a blockchain structure includes: determining, according to the type identification code and the result identification code, a transaction status between the first terminal and the target terminal in the simulated payment behavior; Generate a one-way transaction record table including the unicast address of the first terminal, the unicast address of the target terminal, the payment details, the receipt details and the transaction status; According to the single-channel transaction record table, the payment transaction record table is obtained; The payment transaction record table is stored according to the blockchain structure.

8. A payment processing device, characterized in that: Applied to a first terminal, the device includes: A building module, used to build a Bluetooth mesh network with multiple second terminals, wherein the terminals in the Bluetooth mesh network respectively have corresponding unicast addresses and share the unicast addresses with each other; A binding module, used to bind the unicast address corresponding to the first terminal to the corresponding payment account, and to bind the unicast address corresponding to each of the second terminals to the corresponding payment account; a broadcast module, configured to, in response to a simulated payment behavior between the first terminal and a target terminal among the plurality of second terminals, broadcast a first payment transaction record message including unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network, and the target terminal broadcasts a second payment transaction record message including unicast addresses of the first terminal and the target terminal in the Bluetooth mesh network; A recording module is used to merge the first payment transaction record message and the second payment transaction record message into a payment transaction record table and store them according to the blockchain structure, and each of the second terminals merges the payment transaction record table and stores it according to the blockchain structure.

9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 7.

10. A terminal, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 7.