Two-dimensional code off-line payment method for cross-city application
Through the cross-city QR code payment method that synchronizes data in the network state and performs QR code verification in the offline state, the transaction time-consuming problem of existing QR code payment when the network is unstable is solved, and the transaction time-consuming problem of existing QR code payment is solved, achieving rapid and Secure payment, suitable for fast-moving consumption scenarios and supports cross-city applications.
Patent Information
- Application Number
- CN202410688183.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-11-29
AI Technical Summary
The existing QR code payment takes a long time to transaction during network instability or peak periods, affecting the circulation efficiency and passenger experience of public transportation. In addition, there is payment convenience, network dependence, system compatibility and account information security across cities. Synchronization problem.
Provide a method of offline payment for QR codes for cross-city applications. Through the mobile terminal and the acceptance terminal, synchronize time and verification data in the network state, and perform traffic QR code scanning verification in the offline state. After the verification is successful, it is in the network state. Send transaction data to ensure the accuracy and security of payment results.
It significantly shortens transaction time, improves payment efficiency and convenience, reduces waiting time, enhances system stability and payment security, supports cross-city applications, and reduces operating costs.
Smart Images

Figure CN119048086A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of transportation payment technology, which belongs to the cross-field of the integration of information technology and transportation services, and in particular to a two-dimensional code offline payment method for cross-city applications. Background Art
[0002] With the rapid development and popularization of smart mobile terminals and QR code payment technology, the payment methods in the public transportation sector are undergoing significant changes. The current payment methods in the bus and subway industries no longer only use traditional card swiping or coin-operated payment transactions. In order to meet the needs of modern urban residents for payment speed and convenience, transportation QR code payment transactions have also been added. As an emerging payment method, QR code payment has been widely introduced into the public transportation system, providing passengers with more flexible and fast payment options.
[0003] Currently, existing QR code payments mostly rely on online transaction models, which means that during the transaction process, both the user's mobile application (APP) and the merchant's payment terminal must be connected to the Internet to complete authentication and deduction operations through real-time interaction with the remote server. The main problem with this online transaction model is that the transaction takes a long time, especially when the network is unstable or the network is congested during peak hours. It may increase the time passengers have to wait for payment confirmation at the gate or on the bus, affecting the circulation efficiency of public transportation and passenger experience. Therefore, this online transaction model is unacceptable for scenes such as buses and subways that require quick entry and exit, and is not suitable for fast consumption scenes such as buses and subways.
[0004] In addition, when passengers move between different cities, they will face problems with payment convenience and network dependence. Moreover, since it involves cross-city applications, it is also necessary to solve problems such as the compatibility of payment systems between different cities, the uniformity of clearing and settlement processes, and the secure synchronization of user account information.
[0005] In view of the above situation, it is particularly important to develop a QR code offline payment method that can adapt to fast consumption scenarios and is not restricted by the network environment and can be used across cities. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a QR code offline payment method for cross-city applications, which can realize transportation QR code offline payment transactions with a high transaction completion rate and meet the convenience needs of users in transportation travel.
[0007] In order to solve the above technical problems, the present invention provides a QR code offline payment method for cross-city applications, comprising: the city traffic APP in the mobile terminal requests the corresponding city code issuing agency to issue traffic QR code generation data and server clock through the city code issuing platform to which it belongs in an online state, and generates a traffic QR code according to the traffic QR code; wherein the traffic QR code generation data includes user information and transaction keys; the acceptance terminal issues terminal consumption verification data and server clock to the local city acquiring agency through the local city acquiring platform in an online state, wherein the terminal consumption verification data includes city whitelist information and transaction verification key list; the mobile terminal and the acceptance terminal both complete time synchronization through the server clock; the mobile terminal performs traffic QR code scanning verification with the acceptance terminal in an offline state; when the verification is successful, the acceptance terminal stores the relevant transaction data and sends the transaction data to the local city acquiring agency through the local city acquiring platform in an online state, the local city acquiring agency generates a transaction order and submits it to the city code issuing agency, and the city code issuing agency sends payment result information to the mobile terminal after completing the payment.
[0008] As an improvement of the above-mentioned scheme, the traffic QR code scanning verification includes synchronization time verification, whitelist verification and key verification; when the synchronization time verification, whitelist verification and key verification are all successfully verified, the acceptance terminal stores the relevant transaction data and sends the transaction data to the local city acquiring institution through the local city acquiring platform in an online state. The local city acquiring institution generates a transaction order and submits it to the code issuing institution in the affiliated city. After the code issuing institution in the affiliated city completes the payment, it sends the payment result information to the mobile terminal.
[0009] As an improvement of the above scheme, the local city code issuing agency and the affiliated city code issuing agency respectively establish a communication connection with the provincial transaction payment management platform and complete the server clock synchronization; the local city code issuing agency and the affiliated city code issuing agency respectively perform transaction data settlement with the provincial transaction payment management platform at a first preset interval; the local city acquiring agency establishes a communication connection with the affiliated city code issuing agency and completes the server clock synchronization, and the local city acquiring agency is used to receive the city whitelist information and transaction verification key list managed by the provincial transaction payment management platform sent by the local city code issuing agency and the affiliated city code issuing agency, and send the transaction order to the affiliated city code issuing agency.
[0010] As an improvement to the above solution, the code issuing agency in the city to which it belongs updates the key at a second preset interval and simultaneously updates the key data of the local city acquiring agency.
[0011] As an improvement of the above-mentioned scheme, the traffic QR code generation data also includes a code issuing agency code, and the steps for the provincial transaction payment management platform to perform transaction data clearing include: the provincial transaction payment management platform receives transaction data uploaded by code issuing agencies in all cities within the province; determines whether the code issuing agency code in each transaction data is a preset city agency code within the province, and if it is determined to be yes, it indicates that the time synchronization of the mobile terminal has failed, and transaction data clearing and settlement is performed; if it is determined to be no, the transaction data is reported to the inter-provincial transaction payment management platform for inter-provincial clearing.
[0012] As an improvement of the above scheme, the step of the mobile terminal completing time synchronization through the server clock includes: S1, the mobile terminal calculates the difference between the mobile terminal clock and the acquired server clock to obtain a first time error absolute value; S2, determines whether the first time error absolute value is greater than or equal to a first preset error value. When the judgment is yes, it indicates that the time synchronization of the mobile terminal has failed, and the mobile terminal clock is updated to the server clock. The mobile terminal, in an online state, re-requests the server clock and traffic QR code generation data from the city code issuing agency to which it belongs through the city code issuing platform to which it belongs, and returns to step S1. When the judgment is no, it indicates that the mobile terminal has completed time synchronization.
[0013] As an improvement of the above scheme, the step of the acceptance terminal completing time synchronization through the server clock includes: S10, the acceptance terminal calculates the difference between the terminal clock and the acquired server clock to obtain a second time error absolute value; S20, determines whether the second time error absolute value is less than a second preset error value. When it is judged to be yes, it indicates that the acceptance terminal has completed the time synchronization. When it is judged to be no, it indicates that the time synchronization of the acceptance terminal has failed, and the terminal clock is updated to the server clock, and step S30 is executed; S30, after waiting for the third preset interval time, the acceptance terminal re-requests the server clock from the local city acquiring institution through the local city acquiring platform in the networked state, and returns to step S10.
[0014] As an improvement of the above-mentioned scheme, the step of synchronization time verification includes: the receiving terminal calculates the difference between the mobile terminal clock sent by the mobile terminal and the terminal clock to obtain a synchronization time error value; determines whether the synchronization time error value is less than a preset synchronization error value, and if it is determined to be yes, it indicates that the mobile terminal time synchronization has failed, indicating that the synchronization time verification is successful, and if it is determined to be no, it indicates that the synchronization time verification has failed.
[0015] As an improvement of the above scheme, the whitelist verification step includes: the acceptance terminal determines whether the received user information belongs to the whitelist information of the city to which it belongs. If the judgment is yes, it means that the time synchronization of the mobile terminal has failed, and the whitelist verification is successful. If the judgment is no, it means that the whitelist verification has failed.
[0016] As an improvement of the above scheme, the key verification step includes: the acceptance terminal determines whether the received transaction key is successfully paired with any transaction verification key in the transaction verification key list; when the judgment is yes, it indicates that the time synchronization of the mobile terminal has failed, and the key verification is successful; when the judgment is no, it indicates that the key verification has failed; wherein, the transaction verification key includes the public key certificate of the city's code issuing agency, the payment account user's public key and the payment account user's private key signature, and the transaction key includes the private key of the city's code issuing agency, the payment account user's private key and the payment account user's public key verification signature.
[0017] The implementation of the present invention has the following beneficial effects:
[0018] 1. Improve payment efficiency and convenience: By allowing payment verification to be completed in an offline environment, the transaction time is significantly shortened. Even in scenarios with poor signals or network interruptions, passengers can quickly pass through the gate or complete the payment for the ride, greatly improving the smoothness and convenience of public transportation.
[0019] 2. Enhance user experience: Reducing the time waiting for payment confirmation makes passengers' travel smoother, avoids congestion and delays caused by payment problems, and improves user satisfaction. It is an important convenience measure, especially for office workers and passengers who are in a hurry.
[0020] 3. Improve system stability and reliability: Offline payment reduces dependence on real-time network connection and enhances the overall stability of the payment system. Even when traveling between cities with unstable networks, payment services remain reliable, ensuring service continuity.
[0021] 4. Promote cross-city transportation integration: This method supports cross-city applications, helps to build a unified public transportation payment system, eliminates geographical restrictions, facilitates passengers to seamlessly switch between transportation in different cities, and promotes regional economic integration and personnel mobility.
[0022] 5. Enhanced payment security: Through pre-downloaded verification data and encryption technology, the security of offline payment is guaranteed, data tampering and transaction fraud are prevented, and the user's property safety and personal privacy are protected.
[0023] 6. Reduce operating costs: Reducing reliance on real-time data transmission can reduce network maintenance costs and data transmission fees to a certain extent, while improving transaction processing efficiency, which is beneficial to cost control for public transportation operators. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a structural schematic diagram of the QR code offline payment system of the present invention;
[0025] Figure 2 It is a flow chart of the QR code offline payment method of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. It is hereby stated that the directional terms such as up, down, left, right, front, back, inside, outside, etc. that appear or will appear in the text of the present invention are only based on the accompanying drawings of the present invention, and are not specific limitations of the present invention.
[0027] like Figure 1 As shown, Figure 1 The schematic diagram of the structure of the traffic QR code offline payment system of the present invention is shown, which includes an inter-provincial transaction payment management platform 1, a provincial transaction payment management platform 2, a city code issuing agency 3, a city code issuing platform 4, a city acquiring agency 5, a city acquiring platform 6, an acceptance terminal 7 and a mobile terminal 8. Among them, after the city code issuing agency 3 and the local city acquiring agency 5 are initialized for use, the city code issuing agency 3 establishes a communication connection with the provincial transaction payment management platform 2 and the local city acquiring agency 5 respectively to realize data interaction and synchronize the server clock of the provincial transaction payment management platform 2 with the city code issuing agency 3 and the local city acquiring agency 5; and the city code issuing platform 4 and the local city acquiring platform 6 synchronize the server clock to unify the processing time. Secondly, the provincial transaction payment management platform 2 is respectively connected to all the city code issuing agencies 3 in the province for receiving the transaction data uploaded by the city code issuing agencies 3 in each city, so as to unify the transaction data settlement. For transaction data outside the province, the provincial transaction payment management platform 2 will report to the inter-provincial transaction payment management platform 1 for settlement processing.
[0028] Preferably, the local city acquiring institution 5 is used to receive the city whitelist information and transaction verification key list managed by the provincial transaction payment management platform 2 sent by the local city code issuing institution 3 and the affiliated city code issuing institution 3, and send the transaction order to the affiliated city code issuing institution. Specifically, the affiliated city code issuing institution 3 will send the city whitelist information and transaction verification key list to the local city acquiring institution 5 in advance for subsequent transaction verification. Among them, each city has its own special city whitelist information, and the transaction verification key list and transaction key are updated and used synchronously by cities across the country.
[0029] Preferably, the city traffic APP in the user's mobile terminal 8 has its own exclusive city code issuing platform 4 and city code issuing agency 3. For example, when the user's mobile terminal 8 uses the Foshan Traffic APP to request the generation of a traffic QR code in other cities, the Foshan Traffic APP will send the request information to the Foshan Code Issuing Agency via the Foshan Code Issuing Platform, and generate a traffic QR code based on the traffic QR code generation data issued, and then scan the code with the acceptance terminal 7 in the travel city for verification. Correspondingly, when the user's mobile terminal 8 uses the local city traffic APP, it communicates data with the local city code issuing platform 4 and the local city code issuing agency 3 and generates a traffic QR code, and then scans the code with the acceptance terminal 7 in the local city for verification. Among them, the acceptance terminal 7 is connected to the local city acquiring agency 5 through the local city acquiring platform 6.
[0030] like Figure 2 As shown, a specific embodiment of the present invention provides a QR code offline payment method for cross-city applications, including:
[0031] S101, the city traffic APP in the mobile terminal, in an online state, requests the corresponding city code issuing agency to issue traffic QR code generation data and server clock through the city code issuing platform to which it belongs, and generates a traffic QR code according to the traffic QR code; wherein the traffic QR code generation data includes user information and transaction key;
[0032] It should be noted that before the traffic QR code is used offline, the user can send a request instruction to the corresponding city code issuing platform through the relevant city traffic APP in the mobile terminal in the online state. The city code issuing platform will request the corresponding city code issuing agency to issue the data required for traffic QR code generation according to the request instruction. At this time, the city code issuing agency will send the corresponding user information and transaction key to the mobile terminal to generate the traffic QR code.
[0033] S102. The acceptance terminal sends the terminal consumption verification data and the server clock to the local city acquiring institution through the local city acquiring platform in a networked state, wherein the terminal consumption verification data includes the city whitelist information and the transaction verification key list;
[0034] It should be noted that the acceptance terminal, when connected to the Internet, requests the local city code issuing agency to issue the terminal consumption verification data through the local city acquiring platform in advance. The terminal consumption verification data is stored in advance for subsequent offline use.
[0035] S103, the mobile terminal and the acceptance terminal both complete time synchronization through the server clock;
[0036] Specifically, the steps of completing time synchronization of the mobile terminal through the server clock include:
[0037] Step 1: The mobile terminal calculates the difference between the mobile terminal clock and the acquired server clock to obtain a first time error absolute value;
[0038] Step 2: determine whether the absolute value of the first time error is greater than or equal to a first preset error value. If it is determined to be yes, it indicates that the time synchronization of the mobile terminal has failed, and the clock of the mobile terminal is updated to the server clock. The mobile terminal, in an online state, requests the corresponding city code issuing agency to obtain the server clock and traffic QR code generation data again through its city code issuing platform, and returns to step 1. If it is determined to be no, it indicates that the mobile terminal has completed time synchronization.
[0039] It should be noted that when the absolute value of the first time error is greater than or equal to the first preset error value, that is, the error between the mobile terminal clock and the server clock is large and does not meet the preset time synchronization requirements, it means that the mobile terminal time synchronization fails, and the mobile terminal clock is updated to the current server clock. At this time, the mobile terminal can re-request to obtain a new server clock and traffic QR code generation data, and perform the above time synchronization processing through the new server clock. When the absolute value of the mobile phone time error is less than the first preset error value, it means that the mobile terminal has completed time synchronization and generated a corresponding traffic QR code for subsequent transaction processing.
[0040] Preferably, the first preset error value is preferably 20 seconds, but is not limited thereto and can be adjusted according to actual needs.
[0041] The step of completing time synchronization of the acceptance terminal through the server clock includes:
[0042] Step 1: The receiving terminal calculates the difference between the terminal clock and the acquired server clock to obtain a second time error absolute value;
[0043] Step 2: determine whether the absolute value of the second time error is less than a second preset error value. If it is determined to be yes, it indicates that the acceptance terminal has completed time synchronization. If it is determined to be no, it indicates that the acceptance terminal has failed to synchronize time. The terminal clock is updated to the server clock, and step 3 is executed.
[0044] Preferably, the second preset error value is preferably 20 seconds, but is not limited thereto and can be adjusted according to actual needs.
[0045] Step 3: After waiting for the third preset interval time, the acceptance terminal re-requests the server clock from the local city acquiring institution through the local city acquiring platform in the networked state, and returns to step S10.
[0046] Preferably, the third preset interval time is preferably 10 seconds, but is not limited thereto and can be adjusted according to actual needs.
[0047] It should be noted that when the absolute value of the terminal time error is less than the second preset error value, it means that the error between the terminal clock and the server clock is small, which meets the preset time synchronization requirements, and the acceptance terminal completes time synchronization, and synchronization time verification can be performed later. The server clock is cyclically acquired at preset intervals to keep the acceptance terminal in a time synchronization state at all times, so as to facilitate the subsequent synchronization time verification work.
[0048] S104, the mobile terminal performs traffic QR code scanning verification with the acceptance terminal in an offline state;
[0049] Specifically, the traffic QR code scanning verification includes synchronization time verification, whitelist verification and key verification;
[0050] The step of verifying the synchronization time includes:
[0051] Step 1: The receiving terminal calculates the difference between the mobile terminal clock sent by the mobile terminal and the terminal clock to obtain a synchronization time error value;
[0052] Step 2: determine whether the synchronization time error value is less than a preset synchronization error value. If it is determined to be yes, it indicates that the synchronization time verification is successful. If it is determined to be no, it indicates that the synchronization time verification has failed.
[0053] It should be noted that when the synchronization time error value is less than the preset synchronization error value, it means that the time between the acceptance terminal and the mobile terminal is synchronized, and subsequent transaction verification can be carried out. When the synchronization time error value is greater than the preset synchronization error value, it means that the synchronization time verification has failed and subsequent transaction verification cannot be carried out to improve the accuracy of transaction data processing; at this time, the user needs to re-acquire the server clock through the mobile terminal to complete the time synchronization, generate the corresponding traffic QR code, and then scan and verify it.
[0054] Preferably, the preset synchronization error value is preferably 20 seconds, but is not limited thereto and can be adjusted according to actual needs.
[0055] By setting a preset synchronization error value, the generated traffic QR code can be prevented from being maliciously misused by a third party, resulting in economic losses. If the synchronization time of the generated traffic QR code is fixed, even if it is screenshoted or photographed by a third party, it cannot be used again due to the large synchronization time error, thereby improving transaction security.
[0056] The steps of whitelist verification include:
[0057] The acceptance terminal determines whether the received user information belongs to the whitelist information of the city to which it belongs. If it is determined to be yes, it indicates that the whitelist verification is successful. If it is determined to be no, it indicates that the whitelist verification has failed.
[0058] It should be noted that user information includes payment account number, user account number and user account type, etc. By matching user information with city whitelist information, if the user information belongs to the city whitelist information, it means that the user can process transactions in the city, otherwise the transaction cannot be processed, so as to improve the accuracy of transaction users.
[0059] The key verification step includes:
[0060] The acceptance terminal determines whether the received transaction key is successfully paired with any transaction verification key in the transaction verification key list. If the judgment is yes, it indicates that the key verification is successful; if the judgment is no, it indicates that the key verification fails;
[0061] Among them, the transaction verification key includes the public key certificate of the city's code issuing agency, the payment account user's public key and the payment account user's private key signature, and the transaction key includes the code issuing agency's private key, the payment account user's private key and the payment account user's public key verification signature.
[0062] It should be noted that transaction security is improved through key verification of multiple transaction key data pairs (public key certificate of the issuing agency and the private key of the issuing agency, public key of the payment account user and the private key of the payment account user, and private key signature of the payment account user and public key verification signature of the payment account user, etc.).
[0063] S105. When the verification is successful, the acceptance terminal stores the relevant transaction data and sends the transaction data to the local city acquiring institution through the local city acquiring platform in an online state. The local city acquiring institution generates a transaction order and submits it to the city's code issuing institution. After completing the payment, the local city's code issuing institution sends the payment result information to the mobile terminal.
[0064] It should be noted that when the synchronization time verification, whitelist verification and key verification are all verified successfully in sequence, the acceptance terminal stores the relevant transaction data and sends the transaction data to the local city acquiring institution through the local city acquiring platform in an online state. The local city acquiring institution generates a transaction order and submits it to the city code issuing institution. After the city code issuing institution completes the payment, it sends the payment result information to the mobile terminal. When any of the above verifications fails, it means that the transaction has failed and no transaction data is generated to avoid subsequent upload of failed transaction data and increase the complexity of data processing.
[0065] Preferably, the traffic QR code generation data also includes a code issuing agency code. When the acceptance terminal successfully scans the traffic QR code, the data in the traffic QR code will be converted into a part of the transaction data and uploaded to the provincial transaction payment management platform along with the transaction data through the local city acquiring platform, the local city acquiring agency and the affiliated city code issuing agency. In actual operation, each city code issuing agency clears transaction data with the provincial transaction payment management platform at a first preset interval. The whitelist list and the transaction data are aggregated to the provincial transaction payment management platform through the code issuing agency of each city, and the transaction data uploaded by each city in the province are cleared and settled at a unified time.
[0066] Preferably, the first preset interval time is one month, but is not limited thereto and can be adjusted according to actual needs.
[0067] Preferably, the traffic QR code generation data of the present invention also includes the payment account system authorization expiration time and the QR code validity period, which can prevent the generated traffic QR code from being maliciously misused by a third party and causing economic losses, thereby improving transaction security.
[0068] It should be noted that, in this embodiment, the traffic QR code generation data is composed of a total of 17 fields of data, including: QR code version, QR code data length, city code issuing agency public key certificate, payment account number, user account number, city code issuing agency code, code issuing platform code, user account type, single consumption amount limit, payment account user public key, payment account system authorization expiration time, QR code validity time, city code issuing agency custom domain length, city code issuing agency self-defined domain, city code issuing agency authorization signature, QR code generation time and payment account user private key signature. Among them, the city code issuing agency custom domain length and the city code issuing agency self-defined domain can be set or adjusted according to actual needs. For example, the city code issuing agency self-defined domain includes a transportation industry type identifier (such as 01: bus, 02: urban rail, 03: ferry, 04: taxi, 05: intercity rail 06: road passenger transport).
[0069] Preferably, the steps of the provincial transaction payment management platform performing transaction data clearing include:
[0070] Step 1: The provincial transaction payment management platform receives transaction data uploaded by all city code issuing agencies in the province;
[0071] Step 2: Determine whether the issuing agency code in each transaction data is the preset city agency code within the province. If it is, the transaction data is cleared and settled. If it is not, the transaction data is reported to the inter-provincial transaction payment management platform for inter-provincial clearing.
[0072] It should be noted that the issuing agency code in each transaction data can be used to determine whether the transaction data is from an account within the province. If it is from an account within the province, it will be directly cleared and settled; if it is from an account outside the province, the provincial transaction payment management platform will upload the transaction data outside the province to the inter-provincial transaction payment management platform, and the inter-provincial transaction payment management platform will settle the transaction data with the corresponding city issuing agency based on the issuing agency code.
[0073] Preferably, the city code issuing agency will send the latest city whitelist information to the local city acquiring agency and the provincial transaction payment management platform after the user data is updated, so as to synchronously update the user data and improve the data accuracy. Secondly, in order to improve the security of data transactions, the city code issuing agency will update the key every second preset interval and synchronously update the key data of the local city acquiring agency; at the same time, the relevant key data will be synchronously updated in other city acquiring agencies to improve the diversity of data encryption and the security of data transactions. In addition, the key data of the city code issuing agency can also be updated according to the actual update needs.
[0074] Preferably, the second preset interval time is preferably 1 minute, 5 minutes, 15 minutes, 30 minutes, half a day or 1 day, but is not limited thereto and can be adjusted according to actual needs.
[0075] To sum up, the present invention can realize local and cross-city fast payment transaction processing through traffic QR codes in an offline state, with a high transaction completion rate and short waiting time, thus meeting the user's demand for convenient transportation; and the transaction security and accuracy can be improved by setting up multiple data verification methods.
[0076] This invention effectively solves the limitations of traditional online QR code payment in a networkless environment, especially in the fast-paced urban public transportation field. It greatly improves the payment experience of passengers by realizing an efficient offline payment process. It not only shortens the transaction time and reduces waiting time, but also ensures the security and accuracy of transactions through the comprehensive use of encryption technology and offline verification strategies. These are all major improvements to existing transportation payment technologies.
[0077] The above disclosure is only the preferred embodiment of the present invention, and of course it cannot be used to limit the scope of the rights of the present invention. Various technical adjustments and optimization schemes may exist without departing from the core idea and technical innovation of the present invention. This means that as long as these changes maintain the basic principles and effects of the invention, even if the specific implementation details are different, they should be regarded as falling within the scope of protection of the present invention.
Claims
1. A QR code offline payment method for cross-city applications, characterized in that: include: The city traffic APP in the mobile terminal, in an online state, requests the corresponding city code issuing agency to issue traffic QR code generation data and server clock through its city code issuing platform, and generates a traffic QR code based on the traffic QR code; wherein the traffic QR code generation data includes user information and transaction key; When connected to the Internet, the acceptance terminal sends the terminal consumption verification data and server clock to the local city acquiring institution through the local city acquiring platform. The terminal consumption verification data includes the city whitelist information and the transaction verification key list. The mobile terminal and the acceptance terminal both complete time synchronization through the server clock; The mobile terminal performs traffic QR code scanning verification with the acceptance terminal in an offline state; When the verification is successful, the acceptance terminal stores the relevant transaction data and sends the transaction data to the local city acquiring institution through the local city acquiring platform when connected to the Internet. The local city acquiring institution generates a transaction order and submits it to the city's code issuing institution. After completing the payment, the city's code issuing institution sends the payment result information to the mobile terminal.
2. The QR code offline payment method for cross-city applications according to claim 1, characterized in that: The traffic QR code scanning verification includes synchronization time verification, whitelist verification and key verification; When the synchronization time verification, whitelist verification and key verification are all successfully verified, the acceptance terminal stores the relevant transaction data and sends the transaction data to the local city acquiring institution through the local city acquiring platform in an online state. The local city acquiring institution generates a transaction order and submits it to the city's code issuing institution. After completing the payment, the city's code issuing institution sends the payment result information to the mobile terminal.
3. The QR code offline payment method for cross-city applications according to claim 1, characterized in that: The local city code issuing agency and the affiliated city code issuing agency respectively establish communication connections with the provincial transaction payment management platform and complete server clock synchronization; The local city code issuing agency and the affiliated city code issuing agency respectively perform transaction data settlement with the provincial transaction payment management platform at a first preset interval; The local city acquiring institution establishes a communication connection with the code issuing institution in the affiliated city and completes server clock synchronization. The local city acquiring institution is used to receive the city whitelist information and transaction verification key list managed by the provincial transaction payment management platform sent by the local city code issuing institution and the code issuing institution in the affiliated city, and send the transaction order to the code issuing institution in the affiliated city.
4. The QR code offline payment method for cross-city applications according to claim 3, characterized in that: The code issuing institution in the city to which it belongs updates the key at every second preset interval and synchronously updates the key data of the local city acquiring institution.
5. The QR code offline payment method for cross-city applications according to claim 3, characterized in that: The traffic QR code generation data also includes a code issuing agency code, and the steps of the provincial transaction payment management platform performing transaction data clearing include: The provincial transaction payment management platform receives transaction data uploaded by all city code issuing agencies in the province; Determine whether the issuing agency code in each transaction data is the preset city agency code within the province. If it is judged to be yes, it means that the time synchronization of the mobile terminal has failed, and the transaction data clearing and settlement will be carried out. If it is judged to be no, the transaction data of the single transaction will be reported to the inter-provincial transaction payment management platform for inter-provincial clearing.
6. The QR code offline payment method for cross-city applications according to claim 1 or 2, characterized in that: The step of completing time synchronization of the mobile terminal through the server clock includes: S1. The mobile terminal calculates the difference between the mobile terminal clock and the acquired server clock to obtain a first time error absolute value; S2. Determine whether the absolute value of the first time error is greater than or equal to a first preset error value. If it is determined to be yes, it indicates that the time synchronization of the mobile terminal has failed, and the clock of the mobile terminal is updated to the server clock. When the mobile terminal is connected to the network, it requests the city code issuing agency to obtain the server clock and traffic QR code generation data again through the city code issuing platform, and returns to step S1. If it is determined to be no, it indicates that the mobile terminal has completed the time synchronization.
7. The QR code offline payment method for cross-city applications according to claim 1 or 2, characterized in that: The step of completing time synchronization of the acceptance terminal through the server clock includes: S10, the acceptance terminal calculates the difference between the terminal clock and the acquired server clock to obtain a second time error absolute value; S20, determining whether the absolute value of the second time error is less than a second preset error value, if it is determined to be yes, it indicates that the acceptance terminal has completed time synchronization, if it is determined to be no, it indicates that the acceptance terminal has failed to synchronize time, the terminal clock is updated to the server clock, and step S30 is executed; S30. After waiting for a third preset interval, the acceptance terminal re-requests the server clock from the local city acquiring institution through the local city acquiring platform in a networked state, and returns to step S10.
8. The QR code offline payment method for cross-city applications according to claim 2, characterized in that: The steps of synchronization time verification include: The receiving terminal calculates the difference between the mobile terminal clock sent by the mobile terminal and the terminal clock to obtain a synchronization time error value; It is determined whether the synchronization time error value is less than a preset synchronization error value. If it is determined to be yes, it indicates that the mobile terminal time synchronization has failed, indicating that the synchronization time verification has succeeded. If it is determined to be no, it indicates that the synchronization time verification has failed.
9. The QR code offline payment method for cross-city applications according to claim 2, characterized in that: The steps of whitelist verification include: The acceptance terminal determines whether the received user information belongs to the whitelist information of the city. If it is determined to be yes, it means that the time synchronization of the mobile terminal has failed, which means that the whitelist verification is successful. If it is determined to be no, it means that the whitelist verification has failed.
10. The QR code offline payment method for cross-city applications according to claim 2, characterized in that: The key verification step includes: The acceptance terminal determines whether the received transaction key is successfully paired with any transaction verification key in the transaction verification key list. If the judgment is yes, it means that the time synchronization of the mobile terminal has failed, which means that the key verification is successful. If the judgment is no, it means that the key verification has failed. Among them, the transaction verification key includes the public key certificate of the city's code issuing agency, the payment account user's public key and the payment account user's private key signature, and the transaction key includes the private key of the city's code issuing agency, the payment account user's private key and the payment account user's public key verification signature.
Citation Information
Patent Citations
Novel offline payment method
CN105205664A
Off-line two-dimensional code payment method and system
CN106875179A
Two-dimensional code-based offline payment method
CN107194694A
Offline two-dimensional code payment method and device
CN108460593A
An offline payment method and a payment system of a bus two-dimensional code
CN109087085A
Cited By
Urban traffic offline two-dimensional code generation and verification method and system
CN120746563A
