CN110175838A - Offline barcode scanning method of payment and offline barcode scanning payment mechanism - Google Patents

Offline barcode scanning method of payment and offline barcode scanning payment mechanism Download PDF

Info

Publication number
CN110175838A
CN110175838A CN201910442108.9A CN201910442108A CN110175838A CN 110175838 A CN110175838 A CN 110175838A CN 201910442108 A CN201910442108 A CN 201910442108A CN 110175838 A CN110175838 A CN 110175838A
Authority
CN
China
Prior art keywords
payment
code
information
offline
payment code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910442108.9A
Other languages
Chinese (zh)
Inventor
肖波
梁卓山
张茂森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHUHAI FLYRISE SOFTWARE CO Ltd
Original Assignee
ZHUHAI FLYRISE SOFTWARE CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHUHAI FLYRISE SOFTWARE CO Ltd filed Critical ZHUHAI FLYRISE SOFTWARE CO Ltd
Priority to CN201910442108.9A priority Critical patent/CN110175838A/en
Publication of CN110175838A publication Critical patent/CN110175838A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3276Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/403Solvency checks

Abstract

The application provides offline barcode scanning method of payment, comprising the following steps: obtains consumption data;Scanning payment code;The legitimacy of verification payment code when offline;The spare balance information of payment account prestoring and corresponding with payment code information is read according to payment code information when code of paying the bill is legal;The code information that will pay the bill when spare balance information is greater than consumption data and consumption data carry out locally-stored.The application under off-line state by verifying payment code and reading spare balance information, trade company is set also to can confirm that the account balance of consumer under offline, payment code and consumption data can be first stored under offline using the offline barcode scanning payment mechanism of this method in account balance abundance, off-line trading is cleared so as to subsequent, therefore the application can also smoothly complete payment movement under off-line state, meet user's use demands.The application also provides offline barcode scanning payment mechanism, including obtains module, scan module, correction verification module, balance information read module and memory module.

Description

Offline barcode scanning method of payment and offline barcode scanning payment mechanism
[technical field]
This application involves field of computer technology, more particularly to offline barcode scanning method of payment and offline barcode scanning payment mechanism.
[background technique]
With the continuous development of mobile payment, mobile payment is increasingly accepted, since mobile payment needs to set by basis Applying network and 4G network is carrier, and in the case where infrastructure network and 4G unstable networks, will lead to payment movement can not It smoothly completes, influences the operation of entire mobile payment platform.In order to solve this problem, offline electronic payment becomes extremely urgent, and In existing offline electronic payment mode, for showing that the payment equipment of payment code can generate payment code under off-line state, but It is that payment code information can only be uploaded to service at once after code is paid the bill in scanning by the barcode scanning payment mechanism collected money for barcode scanning in real time End, which carries out exchange settlement, just can ensure that payment movement can smoothly complete, therefore in existing offline electronic payment mode, be used for barcode scanning The barcode scanning payment mechanism of gathering has to real-time online, if barcode scanning payment mechanism is in off-line state, existing offline electronic payment side Formula cannot smoothly complete payment movement, therefore existing offline electronic payment mode has limitation, cannot sufficiently meet user's Use demand.
[summary of the invention]
To solve the above-mentioned problems, this application provides offline barcode scanning method of payment and offline barcode scanning payment mechanisms.
The application is implemented by the following technical solutions:
Offline barcode scanning method of payment, comprising the following steps:
Obtain consumption data;
Scanning payment code;
Pass through the legitimacy for code of paying the bill described in reversed arithmetic check when offline;
It is being prestored when the payment code is legal according to the payment code information reading and corresponding with the payment code information The spare balance information of payment account;
The spare balance information be greater than the consumption data when by the payment code information and with the payment code information phase Corresponding consumption data carries out locally-stored.
Offline barcode scanning method of payment as described above, it is described to be incited somebody to action when the spare balance information is greater than the consumption data After the payment code information and consumption data corresponding with the payment code information carry out locally-stored step, further include Following steps:
The payment code information and consumption data corresponding with the payment code information are mentioned automatically when network communication is normal It is sent to server-side and carries out the verifying of payment code and consumption data clearance, and receive transmitted after server-side verifies payment code Newest spare balance information transmitted by verification information and server-side.
Offline barcode scanning method of payment as described above, the payment code are to be adopted by safety code, user's unique identification and prime number Rear 18 dynamics payment code effective within a preset period of time generated is encrypted with SHA1.
Offline barcode scanning method of payment as described above, it is described to be read when the payment code is legal according to the payment code information In the step of taking the spare balance information of payment account prestoring and corresponding with the payment code information, in the payment code Payment prestoring and corresponding with user's unique identification information is read according to user's unique identification information when legal The spare balance information of account.
Barcode scanning method of payment as described above offline, the safety code be by use MD5 carry out encrypted payment cipher, Encrypted payment account title is carried out using BASE32 and 32 safety codes that timestamp generates jointly, the user is unique It is identified as global unique UID code.
Disclosed herein as well is offline barcode scanning payment mechanisms, comprising:
Module is obtained, is used to obtain consumption data;
Scan module is used to scan payment code;
Correction verification module is used for when offline through the legitimacy for code of paying the bill described in reversed arithmetic check;
Balance information read module, be used for it is described payment code it is legal when according to it is described payment code information read prestore and with The spare balance information of the corresponding payment account of code information of paying the bill;
Memory module, be used for the spare balance information be greater than the consumption data when by the payment code information and with institute It is locally-stored to state the corresponding consumption data progress of payment code information.
Offline barcode scanning payment mechanism as described above, the offline barcode scanning payment mechanism further include:
Information communication module is used for the payment code information and opposite with the payment code information when network communication is normal The consumption data answered is submitted to server-side automatically and carries out the verifying of payment code and consumption data clearance, and receives server-side to payment code Newest spare balance information transmitted by transmitted verification information and server-side after being verified.
Offline barcode scanning payment mechanism as described above, the payment code are to be adopted by safety code, user's unique identification and prime number Rear 18 dynamics payment code effective within a preset period of time generated is encrypted with SHA1.
Barcode scanning payment mechanism as described above offline, the balance information read module when the payment code is legal according to User's unique identification information reads the spare of payment account prestoring and corresponding with user's unique identification information Balance information.
Barcode scanning payment mechanism as described above offline, the safety code be by use MD5 carry out encrypted payment cipher, Encrypted payment account title is carried out using BASE32 and 32 safety codes that timestamp generates jointly, the user is unique It is identified as global unique UID code.
Compared with prior art, the application has the following advantages:
In the application, after code is paid the bill in scanning, by verifying payment code legitimacy under off-line state, and pass through payment code information The spare balance information for reading the payment account corresponding with payment code information prestored, so that trade company also can confirm that under offline Spending amount needed for the whether enough payment transactions of the account balance of consumer, if account balance is sufficient, using this method Barcode scanning payment mechanism first can go locally-stored trade with record of payment code and consumption data progress under off-line state offline To carry out unified clearance to off-line trading so as to subsequent, therefore this offline barcode scanning payment mechanism code information that need not will pay the bill is real-time Payment movement can be completed by being uploaded to server-side also, i.e., this offline barcode scanning payment mechanism is also able to cooperate under off-line state smoothly completes Payment movement, makes the use of offline electronic payment be no longer limited by the network problem of barcode scanning payment mechanism, effectively meets making for user Use demand.
[Detailed description of the invention]
In order to more clearly explain the technical solutions in the embodiments of the present application, needed in being described below to embodiment Attached drawing is briefly described.
Fig. 1 is the flow chart of the first embodiment of offline barcode scanning method of payment;
Fig. 2 is the flow chart of the second embodiment of offline barcode scanning method of payment;
Fig. 3 is the structural schematic diagram of the first embodiment of offline barcode scanning payment mechanism;
Fig. 4 is the structural schematic diagram of the second embodiment of offline barcode scanning payment mechanism.
[specific embodiment]
As shown in Fig. 1 the idiographic flow schematic diagram of the first embodiment of offline barcode scanning method of payment, offline barcode scanning payer Method the following steps are included:
S101 obtains consumption data.
In this step, corresponding consumption data is obtained according to the transaction data that businessman specifically inputs.
S102, scanning payment code.
In this step, the payment code is can be on the electronic equipment of convenient carrying by safety code, user in mobile terminal etc. Unique identification and prime number pass through encryption and generate effective 18 dynamics payment code within a preset period of time, it is preferred that described After dynamic payment code self-generating in one minute effectively.The safety code, user's unique identification and prime number are added using SHA1 Close, user's unique identification is the unique UID(user identifier in the whole world) code, specifically, the safety code is by by encrypting Payment cipher, 32 safety codes generating of the payment account title by encryption and timestamp, the payment cipher uses MD5 is encrypted, and the payment account title is encrypted using BASE32.Wherein, MD5(Message Digest Algorithm 5) be The widely used a kind of hash function of computer safety field, to provide the integrity protection of message.BASE32 is using 32 The scheme that a printable character (alphabetical A-Z and number 2-7) encodes any byte data.SHA1 is secure Hash calculation Method is primarily adapted for use in the digital signature defined inside digital signature standard (Digital Signature Standard DSS) Algorithm.The prime number generally access is worth biggish Big prime.
S103 passes through the legitimacy for code of paying the bill described in reversed arithmetic check when offline.
In this step, by carrying out reversed operation to payment code when offline, obtain the safety code for being included in payment code, User's unique identification and prime number information, and obtain payment cipher included in safety code, payment account title and time Information is stabbed, is verified and is judged with the legitimacy to payment code.
S104, it is described payment code it is legal when according to it is described payment code information read prestore and with the payment code information The spare balance information of corresponding payment account.
In this step, specifically, by after reversed operation according to user's unique identification read prestore and with user it is unique Identify the spare balance information of corresponding payment account.
S105, the spare balance information be greater than the consumption data when by the payment code information and with the payment The corresponding consumption data of code information carries out locally-stored.
In this step, the transaction value data needed for the enough payment transactions of balance information of confirmation payment account then will Code information of paying the bill and consumption data carry out locally-stored.
The present embodiment is paid the bill in scanning after code, by verifying payment code legitimacy under off-line state, and passes through payment code Information reads the spare balance information of the payment account corresponding with payment code information prestored, so that trade company also can under offline Spending amount needed for confirming the whether enough payment transactions of account balance of consumer, if account balance is sufficient, using we The offline barcode scanning payment mechanism of method first can carry out payment code and consumption data under off-line state locally-stored to record friendship It is easy to be, unified clearance carried out to off-line trading so as to subsequent, therefore the present embodiment code information that need not will pay the bill is uploaded in real time Server-side can also complete payment movement, i.e., the present embodiment is also able to cooperate under off-line state smoothly completes payment movement, make offline The use of payment is no longer limited by the network problem of barcode scanning payment mechanism, effectively meets the use demand of user.
As shown in Fig. 2 the idiographic flow schematic diagram of the second embodiment of offline barcode scanning method of payment, offline barcode scanning branch Pay method the following steps are included:
S201 obtains consumption data.
In this step, corresponding consumption data is obtained according to the transaction data that businessman specifically inputs.
S202, scanning payment code.
In this step, the payment code is can be on the electronic equipment of convenient carrying by safety code, user in mobile terminal etc. Unique identification and prime number pass through encryption and generate effective 18 dynamics payment code within a preset period of time, it is preferred that described After dynamic payment code self-generating in one minute effectively.The safety code, user's unique identification and prime number are added using SHA1 Close, user's unique identification is the unique UID(user identifier in the whole world) code, specifically, the safety code is by by encrypting Payment cipher, 32 safety codes generating of the payment account title by encryption and timestamp, the payment cipher uses MD5 is encrypted, and the payment account title is encrypted using BASE32.Wherein, MD5(Message Digest Algorithm 5) be The widely used a kind of hash function of computer safety field, to provide the integrity protection of message.BASE32 is using 32 The scheme that a printable character (alphabetical A-Z and number 2-7) encodes any byte data.SHA1 is secure Hash calculation Method is primarily adapted for use in the digital signature defined inside digital signature standard (Digital Signature Standard DSS) Algorithm.The prime number generally access is worth biggish Big prime.
S203 passes through the legitimacy for code of paying the bill described in reversed arithmetic check when offline.
In this step, by carrying out reversed operation to payment code when offline, obtain the safety code for being included in payment code, User's unique identification and prime number information, and obtain payment cipher included in safety code, payment account title and time Information is stabbed, is verified and is judged with the legitimacy to payment code.
S204, it is described payment code it is legal when according to it is described payment code information read prestore and with the payment code information The spare balance information of corresponding payment account.
In this step, specifically, by after reversed operation according to user's unique identification read prestore and with user it is unique The spare balance information of corresponding payment account is identified, the spare balance information is then when network communication is normal, in time Received from the newest spare balance information sent at server-side, with the spare balance information prestored that timely updates, thus Ensure the accuracy traded under off-line state.
S205, the spare balance information be greater than the consumption data when by the payment code information and with the payment The corresponding consumption data of code information carries out locally-stored.
In this step, the transaction value data needed for the enough payment transactions of balance information of confirmation payment account then will Code information of paying the bill and consumption data carry out locally-stored.
S206, when network communication is normal by the payment code information and consumption number corresponding with the payment code information According to automatically be submitted to server-side carry out payment code verifying and consumption data clearance, and receive server-side to payment code verify after Newest spare balance information transmitted by transmitted verification information and server-side.
In this step, if server-side is proved to be successful payment code, server-side clears consumption data, to complete The amount of money clearance entirely traded, if server-side to payment code authentication failed, stops clearing the amount of money of transaction.
Meanwhile when network communication is normal, in time receive and store from server-side send it is newest it is spare more than Volume information, with the spare balance information prestored that timely updates, so that it is guaranteed that the accuracy traded under off-line state.
The present embodiment is paid the bill in scanning after code, by verifying payment code legitimacy under off-line state, and passes through payment code Information reads the spare balance information of the payment account corresponding with payment code information prestored, so that trade company also can under offline Spending amount needed for confirming the whether enough payment transactions of account balance of consumer, if account balance is sufficient, using we The offline barcode scanning payment mechanism of method first can carry out payment code and consumption data under off-line state locally-stored to record friendship It is easy to be, unified clearance is carried out after which payment code and consumption data are uploaded at server-side again after line connects server-side, therefore The present embodiment code information that need not will pay the bill is uploaded to server-side also in real time and can complete payment movement, i.e., the present embodiment is in off-line state Under be also able to cooperate smoothly complete payment movement, so that the use of offline electronic payment is no longer limited by the network problem of barcode scanning payment mechanism, Effectively meet the use demand of user.
As shown in Fig. 3 the structural schematic diagram of the first embodiment of offline barcode scanning payment mechanism, the offline barcode scanning branch Device is paid, including obtains module 11, scan module 12, correction verification module 13, balance information read module 14 and memory module 15.
Module 11 is obtained for obtaining consumption data.Businessman, which inputs consumption data according to specific trading situation, to be made to obtain mould Block 11 gets corresponding consumption data
Scan module 12 is for scanning payment code.The payment code be mobile terminal etc. can on the electronic equipment of convenient carrying by Safety code, user's unique identification and prime number generate effective 18 dynamics payment code within a preset period of time by encryption, Preferably, effective in one minute after the dynamic payment code self-generating.The safety code, user's unique identification and prime number use SHA1 is encrypted, and user's unique identification is the unique UID(user identifier in the whole world) code, specifically, the safety code is By 32 safety codes generated by the payment cipher of encryption, the payment account title by encryption and timestamp, the branch It pays password to be encrypted using MD5, the payment account title is encrypted using BASE32.Wherein, MD5(eap-message digest is calculated Method the 5th edition) it is a kind of widely used hash function of computer safety field, to provide the integrity protection of message. BASE32 is the scheme encoded using 32 printable characters (alphabetical A-Z and number 2-7) to any byte data.SHA1 For Secure Hash Algorithm, it is fixed inside digital signature standard (Digital Signature Standard DSS) to be primarily adapted for use in The Digital Signature Algorithm of justice.The prime number generally access is worth biggish Big prime.
Correction verification module 13 when offline for passing through the legitimacy for code of paying the bill described in reversed arithmetic check.The correction verification module 13 when offline by carrying out reversed operation to payment code, obtain the safety code for being included in payment code, user's unique identification and Prime number information, and obtain payment cipher included in safety code, payment account title and timestamp information, to payment The legitimacy of code is verified and is judged.
What balance information read module 14 was used to be prestored when the payment code is legal according to the payment code information reading And the spare balance information of payment account corresponding with the payment code information.Specifically, 13 pairs of correction verification module payments Code check it is legal and carry out after reversed operation the balance information read module 14 according to user's unique identification read it is prestoring and The spare balance information of payment account corresponding with user's unique identification.
Memory module 15 be used for the spare balance information be greater than the consumption data when by the payment code information with Consumption data corresponding with the payment code information carries out locally-stored.
The present embodiment is existed after obtaining module and obtaining consumption data and scan module scanning payment code by correction verification module Under off-line state verification payment code legitimacy, and by balance information read module according to payment code information read prestore with pay The spare balance information of the corresponding payment account of money code information, so that trade company also can confirm that under offline more than the account of consumer Spending amount needed for the whether enough payment transactions of volume, if account balance is sufficient, memory module can be under off-line state first Payment code and consumption data progress is locally-stored to record trading activity, unified clearance is carried out to off-line trading so as to subsequent, Therefore the present embodiment code information that will need not pay the bill is uploaded to server-side also in real time and can complete payment and acts, i.e., the present embodiment is offline It is also able to cooperate under state and smoothly completes payment movement, the network for making the use of offline electronic payment be no longer limited by barcode scanning payment mechanism is asked Topic, effectively meets the use demand of user.
As shown in Fig. 4 the structural schematic diagram of the second embodiment of offline barcode scanning payment mechanism, the offline barcode scanning branch Device is paid, including obtains module 21, scan module 22, correction verification module 23, balance information read module 24, memory module 25 and letter Cease communication module 26.
Module 21 is obtained for obtaining consumption data.Businessman, which inputs consumption data according to specific trading situation, to be made to obtain mould Block 21 gets corresponding consumption data
Scan module 22 is for scanning payment code.The payment code be mobile terminal etc. can on the electronic equipment of convenient carrying by Safety code, user's unique identification and prime number generate effective 18 dynamics payment code within a preset period of time by encryption, Preferably, effective in one minute after the dynamic payment code self-generating.The safety code, user's unique identification and prime number use SHA1 is encrypted, and user's unique identification is the unique UID(user identifier in the whole world) code, specifically, the safety code is By 32 safety codes generated by the payment cipher of encryption, the payment account title by encryption and timestamp, the branch It pays password to be encrypted using MD5, the payment account title is encrypted using BASE32.Wherein, MD5(eap-message digest is calculated Method the 5th edition) it is a kind of widely used hash function of computer safety field, to provide the integrity protection of message. BASE32 is the scheme encoded using 32 printable characters (alphabetical A-Z and number 2-7) to any byte data.SHA1 For Secure Hash Algorithm, it is fixed inside digital signature standard (Digital Signature Standard DSS) to be primarily adapted for use in The Digital Signature Algorithm of justice.The prime number generally access is worth biggish Big prime.
Correction verification module 23 when offline for passing through the legitimacy for code of paying the bill described in reversed arithmetic check.The correction verification module 23 when offline by carrying out reversed operation to payment code, obtain the safety code for being included in payment code, user's unique identification and Prime number information, and obtain payment cipher included in safety code, payment account title and timestamp information, to payment The legitimacy of code is verified and is judged.
What balance information read module 24 was used to be prestored when the payment code is legal according to the payment code information reading And the spare balance information of payment account corresponding with the payment code information.Specifically, 23 pairs of correction verification module payments Code check it is legal and carry out after reversed operation the balance information read module 24 according to user's unique identification read it is prestoring and The spare balance information of payment account corresponding with user's unique identification.
Memory module 25 be used for the spare balance information be greater than the consumption data when by the payment code information with Consumption data corresponding with the payment code information carries out locally-stored.
Information communication module 26 be used for when network communication is normal by the payment code information and with the payment code information Corresponding consumption data is submitted to server-side automatically and carries out the verifying of payment code and consumption data clearance, and receives server-side and tackle Newest spare balance information transmitted by money code verification information and server-side transmitted after being verified, the storage mould Block 25 is also used for storage verification information and spare balance information.If server-side is proved to be successful payment code, server-side is to consumption Data are cleared, so that the amount of money entirely traded clearance is completed, if server-side stops to transaction payment code authentication failed The amount of money clearance.Meanwhile when network communication is normal, in time receive and store from server-side send it is newest spare Balance information, with the spare balance information prestored that timely updates, so that it is guaranteed that the accuracy traded under off-line state.
The present embodiment is existed after obtaining module and obtaining consumption data and scan module scanning payment code by correction verification module Under off-line state verification payment code legitimacy, and by balance information read module according to payment code information read prestore with pay The spare balance information of the corresponding payment account of money code information, so that trade company also can confirm that under offline more than the account of consumer Spending amount needed for the whether enough payment transactions of volume, if account balance is sufficient, memory module can be under off-line state first Will payment code and consumption data carry out it is locally-stored to record trading activity, after after line connects server-side, by information communication mould To pay the bill code and consumption data of block is uploaded to server-side and carries out unified clearance to off-line trading by server-side, thus the present embodiment without Payment code information must be uploaded to server-side also in real time can complete payment movement, i.e., the present embodiment is also able to cooperate under off-line state Payment movement is smoothly completed, so that the use of offline electronic payment is no longer limited by the network problem of barcode scanning payment mechanism, effectively meets The use demand of user.
It is a kind of embodiment provided in conjunction with particular content as described above, does not assert the specific implementation office of the application It is limited to these explanations.It is all approximate with the present processes, structure etc., identical, if or for being made under the application concept thereof Dry technology deduction or replace, all should be considered as the protection scope of the application.

Claims (10)

1. offline barcode scanning method of payment, which comprises the following steps:
Obtain consumption data;
Scanning payment code;
Pass through the legitimacy for code of paying the bill described in reversed arithmetic check when offline;
It is being prestored when the payment code is legal according to the payment code information reading and corresponding with the payment code information The spare balance information of payment account;
The spare balance information be greater than the consumption data when by the payment code information and with the payment code information phase Corresponding consumption data carries out locally-stored.
2. offline barcode scanning method of payment according to claim 1, which is characterized in that described big in the spare balance information The payment code information and consumption data corresponding with the payment code information are subjected to local storage when the consumption data It is further comprising the steps of after the step of depositing:
The payment code information and consumption data corresponding with the payment code information are mentioned automatically when network communication is normal It is sent to server-side and carries out the verifying of payment code and consumption data clearance, and receive transmitted after server-side verifies payment code Newest spare balance information transmitted by verification information and server-side.
3. offline barcode scanning method of payment according to claim 1, which is characterized in that the payment code is by safety code, uses Family unique identification and prime number are encrypted rear 18 dynamics effective within a preset period of time generated using SHA1 and pay Money code.
4. offline barcode scanning method of payment according to claim 3, which is characterized in that the root when the payment code is legal The spare balance information of payment account prestoring and corresponding with the payment code information is read according to the payment code information In step, reads prestoring according to user's unique identification information when the payment code is legal and uniquely marked with the user Know the spare balance information of the corresponding payment account of information.
5. offline barcode scanning method of payment according to claim 3, which is characterized in that the safety code be by use MD5 into The encrypted payment cipher of row, carry out encrypted payment account title using BASE32 and timestamp generates jointly 32 Safety code, user's unique identification are the unique UID code in the whole world.
6. offline barcode scanning payment mechanism characterized by comprising
Module is obtained, is used to obtain consumption data;
Scan module is used to scan payment code;
Correction verification module is used for when offline through the legitimacy for code of paying the bill described in reversed arithmetic check;
Balance information read module, be used for it is described payment code it is legal when according to it is described payment code information read prestore and with The spare balance information of the corresponding payment account of code information of paying the bill;
Memory module, be used for the spare balance information be greater than the consumption data when by the payment code information and with institute It is locally-stored to state the corresponding consumption data progress of payment code information.
7. offline barcode scanning payment mechanism according to claim 6, which is characterized in that the offline barcode scanning payment mechanism also wraps It includes:
Information communication module is used for the payment code information and opposite with the payment code information when network communication is normal The consumption data answered is submitted to server-side automatically and carries out the verifying of payment code and consumption data clearance, and receives server-side to payment code Newest spare balance information transmitted by transmitted verification information and server-side after being verified.
8. offline barcode scanning payment mechanism according to claim 6, which is characterized in that the payment code is by safety code, uses Family unique identification and prime number are encrypted rear 18 dynamics effective within a preset period of time generated using SHA1 and pay Money code.
9. offline barcode scanning payment mechanism according to claim 8, which is characterized in that the balance information read module is in institute State payment code it is legal when according to user's unique identification information read prestore and it is opposite with user's unique identification information The spare balance information for the payment account answered.
10. offline barcode scanning payment mechanism according to claim 8, which is characterized in that the safety code be by use MD5 into The encrypted payment cipher of row, carry out encrypted payment account title using BASE32 and timestamp generates jointly 32 Safety code, user's unique identification are the unique UID code in the whole world.
CN201910442108.9A 2019-05-24 2019-05-24 Offline barcode scanning method of payment and offline barcode scanning payment mechanism Pending CN110175838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910442108.9A CN110175838A (en) 2019-05-24 2019-05-24 Offline barcode scanning method of payment and offline barcode scanning payment mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910442108.9A CN110175838A (en) 2019-05-24 2019-05-24 Offline barcode scanning method of payment and offline barcode scanning payment mechanism

Publications (1)

Publication Number Publication Date
CN110175838A true CN110175838A (en) 2019-08-27

Family

ID=67695709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910442108.9A Pending CN110175838A (en) 2019-05-24 2019-05-24 Offline barcode scanning method of payment and offline barcode scanning payment mechanism

Country Status (1)

Country Link
CN (1) CN110175838A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112150155A (en) * 2020-10-19 2020-12-29 福建天晴在线互动科技有限公司 Method and system for verifying account balance to prevent tampering
CN112837052A (en) * 2020-11-05 2021-05-25 银联国际有限公司 Data processing method based on two-dimensional code main scanning mode and mobile terminal
CN113065857A (en) * 2021-04-25 2021-07-02 青岛海链数字科技有限公司 Data processing method, device, equipment, medium and product in payment process
CN113781036A (en) * 2021-09-03 2021-12-10 浙江创建科技有限公司 Credible public transport identity authentication and online payment system under unstable network environment
CN113807959A (en) * 2021-01-28 2021-12-17 刘高峰 Method and terminal for preventing digital assets from being repeatedly transferred in close range
CN113807840A (en) * 2021-09-03 2021-12-17 刘高峰 Method, server and system for supporting local payment by multiple payment terminals of same user
CN117196613A (en) * 2023-09-21 2023-12-08 北京小懂科技有限公司 Offline charging method, offline charging device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077456A (en) * 2012-12-11 2013-05-01 万常诚 Mobile payment method in off-line mode
CN106339868A (en) * 2016-08-26 2017-01-18 湖南金码智能设备制造有限公司 Off-line and on-line fused e-payment method and system
CN106355106A (en) * 2016-08-30 2017-01-25 深圳市引导美电子商务有限公司 Account information storing method and system
CN106875179A (en) * 2017-02-03 2017-06-20 杭州小步科技有限公司 A kind of offline Quick Response Code method of payment and its system
CN106910069A (en) * 2017-02-07 2017-06-30 桂林理工大学 Offline electronic payment method with visible ray Yu bar code two-way authentication
CN107516212A (en) * 2017-08-17 2017-12-26 湖南金码智能设备制造有限公司 Online, member card method of payment, the on-line payment method and system combined offline
CN109146470A (en) * 2018-08-24 2019-01-04 北京小米移动软件有限公司 Generate the method and device of payment code
US20190130386A1 (en) * 2017-10-27 2019-05-02 International Business Machines Corporation Processing mobile payments when disconnected from payment servers

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077456A (en) * 2012-12-11 2013-05-01 万常诚 Mobile payment method in off-line mode
CN106339868A (en) * 2016-08-26 2017-01-18 湖南金码智能设备制造有限公司 Off-line and on-line fused e-payment method and system
CN106355106A (en) * 2016-08-30 2017-01-25 深圳市引导美电子商务有限公司 Account information storing method and system
CN106875179A (en) * 2017-02-03 2017-06-20 杭州小步科技有限公司 A kind of offline Quick Response Code method of payment and its system
CN106910069A (en) * 2017-02-07 2017-06-30 桂林理工大学 Offline electronic payment method with visible ray Yu bar code two-way authentication
CN107516212A (en) * 2017-08-17 2017-12-26 湖南金码智能设备制造有限公司 Online, member card method of payment, the on-line payment method and system combined offline
US20190130386A1 (en) * 2017-10-27 2019-05-02 International Business Machines Corporation Processing mobile payments when disconnected from payment servers
CN109146470A (en) * 2018-08-24 2019-01-04 北京小米移动软件有限公司 Generate the method and device of payment code

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112150155A (en) * 2020-10-19 2020-12-29 福建天晴在线互动科技有限公司 Method and system for verifying account balance to prevent tampering
CN112837052A (en) * 2020-11-05 2021-05-25 银联国际有限公司 Data processing method based on two-dimensional code main scanning mode and mobile terminal
CN113807959A (en) * 2021-01-28 2021-12-17 刘高峰 Method and terminal for preventing digital assets from being repeatedly transferred in close range
CN113065857A (en) * 2021-04-25 2021-07-02 青岛海链数字科技有限公司 Data processing method, device, equipment, medium and product in payment process
CN113781036A (en) * 2021-09-03 2021-12-10 浙江创建科技有限公司 Credible public transport identity authentication and online payment system under unstable network environment
CN113807840A (en) * 2021-09-03 2021-12-17 刘高峰 Method, server and system for supporting local payment by multiple payment terminals of same user
CN117196613A (en) * 2023-09-21 2023-12-08 北京小懂科技有限公司 Offline charging method, offline charging device, computer equipment and storage medium
CN117196613B (en) * 2023-09-21 2024-03-15 北京小懂科技有限公司 Offline charging method, offline charging device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110175838A (en) Offline barcode scanning method of payment and offline barcode scanning payment mechanism
CN110163598A (en) Mobile offline electronic payment method and mobile offline electronic payment system
US20200250752A1 (en) Systems, methods, and program products for issuing, managing, valuing and trading digital asset tokens backed by a value bank comprising the residual value of a portfolio of ground leases
JP4632662B2 (en) Electronic commerce method using electronic coupons
CN105874495A (en) Systems and methods for communicating risk using token assurance data
CN117252590A (en) Method and apparatus for digital asset account management
CN103426084A (en) Electronic payment system and remote-based or near-field-based payment method
CN101576983A (en) Electronic payment method and system based on mobile terminal
US11887081B2 (en) Assignment of conditional access rights to assignable tokens based on an interaction
CN109658099B (en) Account book accounting method based on block chain
CN104348610A (en) Method and system for securely transmitting transaction sensitive data based on cloud POS
CN104348792A (en) Data processing method, device and system
KR20060096821A (en) System and method for processing payment and recording medium
CN104301293A (en) Data processing method, device and system
CN106779698A (en) A kind of distribution for paying mark and its safe payment method, system and device
CN101964093A (en) Payment method, payment platform and payment system for bill numbers
CN115526617A (en) Block chain-based digital RMB payment method, system, medium and equipment
CN101976403A (en) Phone number payment platform, payment trading system and method thereof
CN111553678B (en) Two-dimensional code payment method and system based on mobile phone business card
KR101834755B1 (en) System and terminal for card payment, and method for processing card payment thereof
CN110910217A (en) Electronic ticket settlement method based on block chain
CN201993844U (en) Mobile phone number payment platform and payment trade system
CN109741050A (en) Extend method of financial IC card service life and associated method and device
US20040139015A1 (en) Method for preparing a payment transaction in a communication network
CN108985933A (en) A kind of bookkeeping methods and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190827