System and method for transportation billing based on blockchain
Patent Information
- Application Number
- TW113147688
- Authority / Receiving Office
- TW · TW
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2026-10-21
- Estimated Expiration
- 2044-12-08
AI Technical Summary
Current transportation fare payment systems lack transparency and fairness, leading to information unfairness and susceptibility to manipulation, and passengers cannot access real-time marketing offers or points redemption programs.
A blockchain-based transportation fare calculation system utilizing three smart contracts deployed on a blockchain to automate fare calculation, discount determination, and split ratio distribution among operators, ensuring transparency and security through automated execution and record-keeping.
Enhances transaction reliability and security by preventing record tampering, improves real-time fare calculation, and allows for flexible expansion and scalability by integrating new operators and providers.
Smart Images

Figure TWG2TB001916995_001 
Figure TWG2TB001916995_002 
Figure TWG2TB001916995_003
Abstract
Description
Technical Field
[0001] This case concerns blockchain technology, specifically a blockchain-based transportation fare calculation system and method. Prior Technology
[0002] With the development of the digital economy, various mobile payments, electronic payments, electronic tickets, third-party payments, etc., have gradually replaced cash and become the main payment tools for transportation.
[0003] However, when passengers pay for transportation fares through electronic payment tools, there may be issues of information unfairness and lack of transparency, which can easily lead to transaction disputes between electronic payment providers, transportation providers, and passengers. Furthermore, the current technology lacks a common standard, making it susceptible to manipulation of fares (i.e., information unfairness) and passengers unable to access real-time information about marketing offers or points redemption programs provided by electronic payment providers (i.e., information opacity).
[0004] Therefore, providing a fair and transparent pricing mechanism for transportation is an issue that needs to be addressed. Summary of the Invention
[0005] To address the aforementioned and other issues, this case proposes a blockchain-based transportation fare calculation system and method.
[0006] The transportation fare calculation system disclosed in this case includes: a first smart contract deployed on a blockchain; a transportation platform for receiving a ride record transmitted after the transportation ticket machine reads the ride code, thereby triggering the first smart contract to calculate the fare based on the ride record; a second smart contract deployed on the blockchain; an electronic payment platform for executing a payment request transmitted after the transportation ticket machine reads the ride code and generating a transaction record corresponding to the payment request, thereby triggering the second smart contract to calculate a discount fee based on the transaction record; a third smart contract deployed on the blockchain; and a transaction platform for receiving the fare from the first smart contract and the discount fee from the second smart contract, thereby triggering the third smart contract to aggregate the fare and the discount fee into a transportation fare calculation result.
[0007] The method for calculating fares for transportation as disclosed in this case includes: having an electronic payment platform execute a payment request transmitted from a transportation ticket machine after reading a boarding code, thereby generating a transaction record corresponding to the payment request; having the transportation platform receive a ride record transmitted from the transportation ticket machine after reading the boarding code; having the transportation platform trigger a first smart contract to calculate the fare based on the ride record; having the electronic payment platform trigger a second smart contract to calculate a discount fee based on the transaction record; having a transaction platform receive the fare from the first smart contract and the discount fee from the second smart contract; and having the transaction platform trigger a third smart contract to aggregate the fare and the discount fee into a transportation fare calculation result.
[0008] In one embodiment, the ride record and the fare calculated by the first smart contract are written into the blockchain.
[0009] In one embodiment, the transaction record and the offset fee calculated by the second smart contract are written into the blockchain.
[0010] In one embodiment, the transaction platform triggers the third smart contract to calculate the split ratio between each transportation operator and electronic payment operator.
[0011] In one embodiment, the splitting ratio calculated by the third smart contract is written into the blockchain.
[0012] In one embodiment, the first smart contract contains the operating rules of each transportation operator, the second smart contract contains the items and amounts of each discount and transfer discount, and the third smart contract contains the split ratio between each transportation operator and each electronic payment operator.
[0013] Therefore, this proposal presents a blockchain-based transportation fare calculation system and method. It utilizes blockchain technology to prevent the tampering of transaction records and other information, thereby enhancing transaction reliability and security. Furthermore, through the automatic triggering of the first, second, and third smart contracts, this proposal improves the real-time nature of the fare calculation process. Moreover, this proposal allows for flexible expansion to include transportation operators and electronic payment providers, thereby increasing the scalability of the transaction platform. Simple Explanation of the Diagram
[0014] Figure 1 is a schematic diagram of the architecture of an embodiment of the blockchain-based transportation fare calculation system in this case.
[0015] Figure 2 is a flowchart illustrating an embodiment of the blockchain-based transportation fare calculation method in this case. Implementation
[0016] The following specific embodiments illustrate the implementation of this invention. Those skilled in the art can easily understand the other advantages and effects of this invention from the content disclosed herein. The structures, ratios, sizes, etc., illustrated in the accompanying drawings are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed herein, and are not intended to limit the implementation conditions of this invention. Therefore, any modifications, changes, or adjustments, without affecting the effects and objectives achieved by this invention, should still fall within the scope of the technical content disclosed herein.
[0017] The terms “comprising,” “including,” “having,” “containing,” or any other variation thereof, as used herein, are intended to cover non-exclusive inclusion. Unless otherwise stated, singular terms such as “a,” “one,” and “the” also apply to plural terms, while terms such as “or,” “and / or,” etc., are used interchangeably.
[0018] Figure 1 is a schematic diagram of the architecture of an embodiment of the blockchain-based transportation fare system in this case. As shown in Figure 1, system 2 includes a first smart contract 21, a transportation platform 22, a second smart contract 23, an electronic payment platform 24, a third smart contract 25, and a transaction platform 26.
[0019] The first smart contract 21 is deployed on the blockchain, connecting the transportation platform 22 and the transaction platform 26. In one embodiment, the first smart contract 21 contains the operating rules of each transportation operator. These operating rules include, but are not limited to, entry / exit status checks, balance checks, fare calculation, deduction procedures, etc., to determine whether to refuse a user's passage. For example, a transaction is not allowed when the account balance is less than or equal to zero yuan. After judgment by the first smart contract 21, the user's passage can be refused, but this does not apply to transactions with a fare of zero yuan. In addition, for routes priced by mileage, the basic mileage fare is deducted first upon boarding, and the remaining fare is deducted upon alighting based on the difference between the original and final fares. In another embodiment, the first smart contract 21 also includes service rules.
[0020] The transportation platform 22 receives the travel record transmitted after the transportation ticket machine 27 reads the travel code, triggering the first smart contract 21. The first smart contract 21 calculates and records the travel fare based on the travel record. In one embodiment, the travel record and the travel fare calculated by the first smart contract 21 are written into the blockchain. Furthermore, the rule parameters in the first smart contract 21 include transfer code, transfer time, discount information, transportation operator code, transportation operator name, ticket type code, ticket type name, ticket category name, and ticket category code.
[0021] The second smart contract 23 is deployed on the blockchain, connecting the electronic payment platform 24 and the transaction platform 26. In one embodiment, the second smart contract 23 includes various discount categories and amounts, as well as transfer discounts. For example, after the normal fare deduction for getting on and off the previous discounted route is completed, the transfer discount amount is calculated based on the passenger's identity for the second ride.
[0022] The electronic payment platform 24 executes the payment request transmitted after the transportation ticket machine 27 reads the boarding code, generating a transaction record corresponding to the payment request to trigger the second smart contract 23. The second smart contract 23 calculates and records the discount fee based on the transaction record. In one embodiment, the transaction record and the discount fee calculated by the second smart contract 23 are written into the blockchain. In addition, the second smart contract 23 also records the ticket type and discount information.
[0023] The third smart contract 25 is deployed on the blockchain, connecting the electronic payment platform 24 and the transaction platform 26. In one embodiment, the third smart contract 25 includes the split ratio for each transportation operator and the electronic payment operator. In another embodiment, the third smart contract 25 may also contain the final deduction amount after deducting various discounts from the original fare.
[0024] The transaction platform 26 receives the fare from the first smart contract 21 and the discount fee from the second smart contract 23, triggering the third smart contract 25. The third smart contract 25 aggregates the fare and discount fee to calculate the transportation fare. In other words, the first smart contract concerns the fare, i.e., it handles the pricing rules related to the route, vehicle, and section of the journey; the second smart contract concerns the discount fee, i.e., it handles information related to passenger identity, ticket type, ticket purchase category, and discount information; and the third smart contract concerns the automatic allocation of the passenger's actual deduction amount to the blockchain ledgers of the relevant transportation operators and payment operators according to the split ratio.
[0025] In one embodiment, the ride code can be a standard format for recording two-dimensional barcode data of transportation data, including standard format, common data, ticket data, ride payment data, operator-customized data, etc. When a mobile terminal 28 with electronic payment service 29 requests a ride code from electronic payment platform 24, electronic payment platform 24 can reply with a ride code after verifying mobile terminal 28, so that mobile terminal 28 can present the ride code for transportation ticket verification machine 27 to read. After reading the ride code, transportation ticket verification machine 27 first makes a payment request to electronic payment platform 24 and then outputs the ride record to transportation platform 22. In another embodiment, mobile terminal 28 is a portable device that supports network interfaces such as Wi-Fi and mobile network communication, and electronic payment service 29 is a service or program provided by various electronic payment service providers. Therefore, transaction platform 26 can generate corresponding ride codes according to different types of electronic payment service providers.
[0026] It should be noted that the smart contract described in this case can be considered as a type of program code deployed on the blockchain. When certain conditions are met, the smart contract is automatically triggered. Once triggered, the smart contract automatically executes its internal logic and instructions, including recording data or any other programmable operations (such as calculating fare or discount). Next, other nodes in the blockchain network verify the execution result of the smart contract. Once verification is successful, the result is recorded in a new block and added to the blockchain. Specifically, the first smart contract 21: the transportation platform 22 sends the user's boarding and alighting records to the first smart contract 21 to calculate the fare, and writes the fare records and fare into the blockchain; the second smart contract 23: the electronic payment platform 24 sends the user's identity, ticket type, ticket purchase type and discount information to the second smart contract 23 to calculate the fare discount and record it in the blockchain; the third smart contract 25: the transaction platform 26 queries the fare through the first smart contract 21 and the discount through the second smart contract 23, and then the transaction platform 26 completes the deduction from the electronic payment platform 24, triggering the third smart contract 25 to calculate the split ratio between each transportation operator and the electronic payment operator and record it in the blockchain ledger.
[0027] It should be noted that System 2 can be a host or a server, and each unit within it can be software, hardware, or firmware. If it is hardware, it can be a processing unit, processor, or computer host with data processing and computing capabilities. If it is software or firmware, it can include instructions executable by a processing unit, processor, computer, or computer host, and can be installed on the same hardware device or distributed across multiple different hardware devices. The blockchain described in this case is, for example, a private blockchain, which can be constructed through self-built software and hardware, and the three smart contracts are placed on the self-built private blockchain.
[0028] Figure 2 is a flowchart illustrating an embodiment of the blockchain-based transportation fare calculation method of this case. As shown in Figure 2, the method of this case includes steps S201 to S206.
[0029] In step S201, the electronic payment platform executes the payment request transmitted after the transportation vehicle ticket machine reads the boarding code, thereby generating a corresponding transaction record for the payment request. In one embodiment, this transaction record is written to the blockchain and its write address is recorded.
[0030] In step S202, the transportation platform receives the travel record transmitted after the transportation ticket machine reads the boarding code. In one embodiment, the travel record is written to a blockchain and its write address is recorded.
[0031] In step S203, the transportation platform triggers the first smart contract to calculate the fare based on the ride records. In one embodiment, the first smart contract includes the operating rules and / or service rules of each transportation operator.
[0032] In step S204, the electronic payment platform triggers the second smart contract to calculate the discount fees based on the transaction records. In one embodiment, the second smart contract includes the names and amounts of various discounts, as well as transfer discounts.
[0033] In one embodiment, a mobile terminal with electronic payment service sends a ride code request to an electronic payment platform. After the electronic payment platform replies with a ride code, the mobile terminal presents the ride code to the transportation ticket verification machine for the machine to read. Then, the transportation ticket verification machine first sends a payment request to the electronic payment platform and then outputs the ride record to the transportation platform.
[0034] In step S205, the trading platform receives the fare from the first smart contract and the discount fee from the second smart contract.
[0035] In step S206, the transaction platform triggers a third smart contract to aggregate the transportation fare and discount calculation results. In one embodiment, the third smart contract includes the breakdown ratios for each transportation operator and each electronic payment operator.
[0036] After step S206, the transaction platform triggers the third smart contract, which automatically distributes the transportation fare results to each transportation operator and electronic payment operator according to the split ratio among the transportation operators and electronic payment operators included in the third smart contract.
[0037] The following is a specific embodiment illustrated in conjunction with Figure 1.
[0038] First, the passenger uses the electronic payment service 29 of the mobile terminal 28 to request a ride code from the electronic payment platform 24. When boarding, the passenger presents the ride code for the transportation ticket verification machine 27 to read, and then sends it to the electronic payment platform 24 for transaction verification. The passenger also uploads the ride (boarding) record to the transportation platform 22. Then, when alighting, the passenger presents the ride code again for the transportation ticket verification machine 27 to read, and then sends it to the electronic payment platform 24 for transaction verification. The passenger also uploads the ride (alighting) record to the transportation platform 22.
[0039] Furthermore, in addition to boarding and alighting station information, the logical judgment rules of the first smart contract 21 (such as the transportation operator's operating rules and / or service rules) can be written into the blockchain by the transaction platform 26 and its write address can be recorded. Also, in addition to boarding and alighting transaction information, the logical judgment rules of the second smart contract 23 (such as the name and amount of discounts) can be written into the blockchain by the transaction platform 26 and its write address can be recorded.
[0040] After a passenger completes their transportation journey, the first smart contract 21 and the second smart contract 23 for the same passenger are triggered. That is, the first smart contract is automatically executed to generate the fare amount (i.e., the ride cost), and the second smart contract is executed to generate the passenger's payment discount (i.e., the discount fee). The transaction platform 26 then aggregates the transportation fare calculation results and deducts the payment from the electronic payment platform 24. Subsequently, the third smart contract 25 is triggered to distribute the final amount to the accounts of the relevant transportation operators and electronic payment operators according to their respective splitting ratios.
[0041] In summary, the blockchain-based transportation fare calculation system and method in this case utilizes blockchain and smart contract technologies. Information such as transfer codes, transfer times, discount information, transportation operator codes, transportation operator names, ticket codes, ticket names, ticket category names, and ticket category codes are recorded in smart contracts. By triggering a third smart contract and interacting with the first and second smart contracts, the system automatically calculates the fare and discount, and further calculates the allocation between the transportation operator and the electronic payment operator. This achieves fair, transparent, and real-time information dissemination, and allows for flexible expansion of transportation operators, electronic payment operators, and corresponding smart contracts, thus achieving scalability of the transaction platform.
[0042] The above embodiments are merely illustrative of the effects of this application and are not intended to limit the scope of this application. Anyone skilled in the art can modify and alter the above embodiments without departing from the spirit and scope of this application. Therefore, the scope of protection of this application should be as set forth in the following patent application claims.
[0043] 2: System 21: The First Smart Contract 22: Transportation Platform 23: Second Smart Contract 24: Electronic payment platform 25: Third Smart Contract 26: Trading Platform 27: Transportation ticket verification machine 28: Mobile Terminal 29: Electronic payment services S201~S206: Steps
Claims
1. A system for fare calculation on transportation vehicles, comprising: The first smart contract is deployed on a private blockchain; The transportation platform receives the travel record transmitted after the transportation ticket machine reads the boarding code, thereby triggering the first smart contract to execute the first smart contract, which calculates the fare based on the travel record; the second smart contract is deployed on the private blockchain; the electronic payment platform executes the payment request transmitted after the transportation ticket machine reads the boarding code, generating a transaction record corresponding to the payment request, thereby triggering the second smart contract to execute the second smart contract, which calculates the discount fee based on the transaction record; the third smart contract is deployed on the private blockchain; The transaction platform receives the fare from the first smart contract and the discount fee from the second smart contract, thereby triggering the execution of the third smart contract. The third smart contract then aggregates the fare and discount fee into a transportation fare calculation result. The transaction platform triggers the third smart contract to calculate the split ratio between each transportation operator and each electronic payment operator, and automatically allocates the actual amount deducted from the passenger to the blockchain ledgers of each transportation operator and each electronic payment operator according to the split ratio.
2. The system as described in claim 1, wherein, The ride record and the fare calculated by the first smart contract are written into the blockchain.
3. The system as described in claim 1, wherein, The transaction record and the offset fee calculated by the second smart contract are written into the blockchain.
4. The system as described in claim 1, wherein, The split ratio calculated by the third smart contract is written into the blockchain.
5. The system as described in claim 1, wherein, The first smart contract contains the operating rules of each transportation operator, and the second smart contract contains the items and amounts of each discount, as well as transfer discounts.
6. A method for calculating fares for transportation vehicles, comprising: The electronic payment platform executes the payment request transmitted after the transportation ticket machine reads the boarding code, generating a transaction record corresponding to the payment request; the transportation platform receives the travel record transmitted after the transportation ticket machine reads the boarding code; the transportation platform triggers a first smart contract deployed on a private blockchain to execute the first smart contract, which calculates the travel fare based on the travel record; the electronic payment platform triggers a second smart contract deployed on the private blockchain to execute the second smart contract, which calculates the discount fee based on the transaction record. The transaction platform receives the fare from the first smart contract and the discount fee from the second smart contract; The transaction platform triggers a third smart contract deployed on the private blockchain to execute the third smart contract, which aggregates the transportation fare and the discount fee into a transportation billing result. The transaction platform triggers the third smart contract to calculate the split ratio between each transportation operator and the electronic payment operator, and automatically allocates the actual amount deducted from the passenger to the blockchain ledgers of each transportation operator and each electronic payment operator according to the split ratio.
7. The method as described in claim 6, wherein, The ride record and the fare calculated by the first smart contract are written into the blockchain.
8. The method as described in claim 6, wherein, The transaction record and the offset fee calculated by the second smart contract are written into the blockchain.
9. The method as described in claim 6, wherein, The split ratio calculated by the third smart contract is written into the blockchain.
10. The method as described in claim 6, wherein, The first smart contract contains the operating rules of each transportation operator, and the second smart contract contains the items and amounts of each discount, as well as transfer discounts.
Citation Information
Patent Citations
Data processing method and device based on block chain
CN110766458A
Bus multi-payment platform settlement method and system based on blockchain
CN112785291A
An electronic ticket system using block chain and method thereof
TW201741955A
Methods and devices for protecting sensitive data of transaction activity based on smart contract in blockchain
TW202034249A
Smart city commodity exchange with smart contracts
US20190102850A1
