CN105631649A - Method for recharging ETC e-wallet stored-value card and prepositive server therefor - Google Patents
Method for recharging ETC e-wallet stored-value card and prepositive server therefor Download PDFInfo
- Publication number
- CN105631649A CN105631649A CN201510997950.0A CN201510997950A CN105631649A CN 105631649 A CN105631649 A CN 105631649A CN 201510997950 A CN201510997950 A CN 201510997950A CN 105631649 A CN105631649 A CN 105631649A
- Authority
- CN
- China
- Prior art keywords
- request
- accounts
- server
- management server
- capital management
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/10—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
- G06Q20/105—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems involving programming of a portable memory device, e.g. IC cards, "electronic purses"
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/34—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
- G06Q20/349—Rechargeable cards
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Finance (AREA)
- Computer Networks & Wireless Communication (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention relates to a method for recharging an Electronic Toll Collection (ETC) e-wallet stored-value card and a prepositive server therefor. In a recharging process, when a user terminal sends a credit for load request to the prepositive server, if the prepositive server does not yet receive information indicating successful transfer returned by a funds management server based on a deduction request, the prepositive server actively sends an order inquiry request to the funds management server so as to check whether the transfer is successful with the funds management server. If a check result of the funds management server shows that the transfer is successful, the prepositive server returns a credit for load command to the user terminal. Thus the problem that the credit for load cannot be performed on the e-wallet stored-value card when the prepositive server does not receive the information indicating the successful transfer returned by the funds management server based on the deduction request due to a network fault is solved.
Description
Technical field
The application relates to ETC (ElectronicTollCollection, electronic charging system without parking) technical field, is specifically related to recharge method and the front server thereof of a kind of ETC stored value card stored value card.
Background technology
When current ETC user supplements with money to stored value card IC-card, it usually needs supplement with money to the outlet specified or bank. The problem that recharge point is few owing to existing, queuing people is many so that the experience property that user supplements with money to stored value card IC-card is poor. In order to solve the problem, various online charging system occurs. Stored value card IC-card is supplemented with money online, mainly refers to by the equipment such as card reader or mobile terminal to be that stored value card IC-card is supplemented with money.
Stored value card IC-card supplement with money online process mainly comprise below step: user by user terminal input supplement the amount of money with money, charging request is submitted to front server by user terminal; Front server generates transfer request according to this charging request again, and transfer request is sent to capital management server; After capital management server is transferred accounts, return expression to front server and transfer accounts successful information; Front server gets the expression that capital management server returns and transfers accounts after successful information, sends write instruction to user terminal; User terminal, according to this write instruction, upgrades the remaining sum in IC-card, or the remaining sum (namely step deposited by circle) controlled in other read/write card devices renewal IC-card.
But, in the process of supplementing with money, often occur due to factors such as network communication instability, after causing capital management server to be transferred accounts, front server does not but receive the expression that capital management server returns and transfers accounts successful information, and therefore, front server cannot send write instruction to user terminal, cause the remaining sum in IC-card to upgrade, cause IC-card cannot enclose the situation (in fact user is withholdd) deposited.
Summary of the invention
The application provides recharge method and the front server thereof of a kind of ETC stored value card stored value card, solves ETC stored value card stored value card in the process of supplementing with money, because network fault causes stored value card cannot enclose the problem deposited.
First aspect according to the application, this application provides the recharge method of a kind of ETC stored value card stored value card, comprising:
Request deposited by the circle that front server obtains user terminal transmission;
According to the request of depositing of described circle, front server judges whether current order transfers accounts successfully, if, then return circle to user terminal and deposit instruction, if not, then send order inquiry request to capital management server, described order inquiry request is used for capital management server and inquires about whether current order transfers accounts successfully, and Query Result is returned to front server;
The Query Result that front server returns according to capital management server, returns corresponding operational order to user terminal.
Second aspect according to the application, this application provides a kind of front server supplemented with money for ETC stored value card stored value card, comprising:
Acquisition request module deposited by circle, and request deposited by the circle sent for obtaining user terminal;
Judge module, for judging whether current order transfers accounts successfully according to the request of depositing of described circle, if, then return circle to user terminal and deposit instruction, if not, then sending order inquiry request to capital management server, described order inquiry request is used for capital management server and inquires about whether current order transfers accounts successfully, and Query Result is returned to front server;
Processing module deposited by circle, for the Query Result returned according to capital management server, returns corresponding operational order to user terminal.
The recharge method of the ETC stored value card stored value card that the application provides and front server thereof, in the process of supplementing with money, when user terminal deposits request to front server transmission circle, if front server not yet receive capital management server based on the expression that returns of request of withholing transfer accounts successful information time, front server initiatively sends order inquiry request to capital management server, with to whether the verification of capital management server transfers accounts successfully, transfer accounts successfully if capital management server checked result represents, then front server returns circle to user terminal and deposits instruction. Thus solve front server because of network fault, it does not have receive capital management server based on the expression that returns of request of withholing transfer accounts successful information time, stored value card stored value card cannot carry out enclosing the problem deposited.
Accompanying drawing explanation
Fig. 1 is the module diagram of the front server supplemented with money for ETC stored value card stored value card in a kind of embodiment of the application;
Fig. 2 is the schematic flow sheet of the recharge method of ETC stored value card stored value card in a kind of embodiment of the application.
Embodiment
Under normal circumstances, pay precious server after completing to transfer accounts, front server can be notified in an asynchronous manner. But, in abnormal cases, such as front server and pay unstable networks between precious server, causes front server not receive and pays the expression that precious server returns and transfer accounts successful information, when front server does not upgrade the remaining sum of e-wallet account. And user have issued circle and deposits request, now, front server just can be judged as not meeting circle and deposit condition, thus causes IC-card cannot enclose the problem deposited and occur. But in this case, paying precious server and in fact complete to transfer accounts, operation deposited by the circle that user should be allowed normally to carry out IC-card. Even if front server allows IC-card is carried out circle to deposit operation, but do not upgrade the remaining sum of e-wallet account due to front server, IC-card circle also can be caused to deposit after, the remaining sum of IC-card not supplement with money after actual remaining sum.
For solving the problems of the technologies described above, the invention design of the application is: after instruction deposited by the circle receiving mobile terminal at front server, front server self first judges whether current order transfers accounts successfully, if (such as determining to receive and pay the expression that precious server returns and transfer accounts successful information, then illustrate and transfer accounts successfully), then normally returning circle to mobile terminal deposits instruction; If not, (such as determine not receive and pay the expression that precious server returns and transfer accounts successful information, then " transferring accounts unsuccessfully " is described), then send order inquiry request to the precious server of payment, further to confirm whether current order transfers accounts successfully. Thus solve the problem causing user cannot carry out IC-card circle and deposit because network fault etc. is abnormal.
It should be noted that, front server is when judging whether current order transfers accounts successful, it is only judge according to the data obtained, such as, determine not receive and pay the expression that precious server returns and transfer accounts successful information, then it is judged as " transferring accounts unsuccessfully ", but, if pay the expression that precious server returns transfer accounts successful information because unstable networks cause front server not receive, so, in fact, current order has been transferred accounts successfully, only in this case, front server still can only be judged as " transferring accounts unsuccessfully ".
By reference to the accompanying drawings the application is described in further detail below by embodiment.
Embodiment one
Please refer to Fig. 1, present embodiments provide a kind of front server supplemented with money for ETC stored value card stored value card.
Front server comprises circle and deposits acquisition request modules A 05, judges that processing module A07 deposited by modules A 06 and circle.
Circle is deposited acquisition request modules A 05 and is deposited request for obtaining the circle of user terminal transmission.
Judge according to the circle request of depositing, modules A 06 is for judging whether current order transfers accounts successfully, if, then return circle to user terminal and deposit instruction, if not, then send order inquiry request to capital management server, order inquiry request is used for capital management server and inquires about whether current order transfers accounts successfully, and Query Result is returned to front server.
The Query Result of processing module A07 for returning deposited according to capital management server by circle, returns corresponding operational order to user terminal.
Further, front server also comprises balance updates modules A 03, for get the expression that capital management server returns transfer accounts successful Query Result time, upgrade the account balance of the stored value card to be supplemented with money.
Concrete, front server also comprises charging request acquisition module A01, withhold request generation module A02, balance updates modules A 03 and service condition processing module A04.
The charging request that charging request acquisition module A01 sends for obtaining user terminal. Concrete, user is correlated with in user terminal input and supplements information with money, such as supplementing the amount of money, the accounts information of stored value card, the fund account information (such as the precious account of the payment withholdd or bank card account number) etc. for withholing with money, the information that user terminal input according to user constructs charging request data. Charging request is sent to front server by user terminal, and this front server can be safeguarded by the operator of ETC stored value card stored value card.
Withhold request generation module A02 for generating, according to charging request, the request of withholing, and the request of withholing is sent to capital management server (paying precious server, bank server etc.). The request of withholing at least comprise fund account information for withholing, for collect money fund account information (the such as precious account of payment for collecting money or bank card account number), supplement the amount of money and order mark with money. Capital management server is transferred accounts according to the request of withholing, i.e. deduction and the fund supplementing amount of money single-candidate with money from the fund account for withholing, and proceeds to the fund account for collecting money.
Service condition processing module A03 currently supplements the service condition of flow process with money for recording.
When judging modules A 06 for judging whether current order transfers accounts successful, judge whether current order transfers accounts successfully according to this service condition.
Concrete, service condition at least comprises two states representing and transferring accounts and neutralize and transferred accounts; Service condition processing module A06 also for get capital management server based on the expression that returns of request of withholing transfer accounts successful information time, service condition is revised as from transfer accounts and has transferred accounts; Or, service condition processing module A06 also for get capital management server based on the current order of expression that order inquiry request returns transfer accounts successful Query Result time, service condition is revised as from transfer accounts and has transferred accounts.
Balance updates modules A 03 is also for transferring accounts after successful Query Result getting the current order of expression that capital management server returns based on described order inquiry request, receive capital management server based on the described expression that returns of request of withholing transfer accounts successful information time, this information is not processed.
In actual application, front server can have two kinds of mode of operation below:
(1) situation one
Capital management server is being transferred accounts after successfully, returns expression to front server and transfers accounts successful information. Balance updates modules A 03 for receive the expression that capital management server returns transfer accounts successful information time, upgrade the remaining sum of e-wallet account.
It should be noted that, after the balance updates modules A 03 of front server has upgraded the remaining sum of e-wallet account, the balance amount information in stored value card (such as IC-card) is not updated, therefore, needing to write in stored value card further the remaining sum after upgrading, namely step deposited by circle.
To pay precious server, concrete, if the balance updates modules A 03 of front server receives and pays the expression that precious server returns and transfer accounts successful information, in the way of cumulative, upgrade the account balance in IC-card virtual account according to the value of<total_fee>(the transaction total charge) paid in precious server returns response data. Finally this is upgraded in the operation logging data table log_alipay (upgrading virtual account daily record table) of virtual account remaining sum.
User sends circle by user terminal to front server and deposits request. The circle of front server deposit acquisition request modules A 05 for obtaining this circle deposit request, judge according to the circle request of depositing, modules A 06 is for judging whether current order transfers accounts successfully (namely judging whether that condition deposited by satisfied circle), namely judge whether to get the expression that capital management server returns and transfer accounts successful information.
In the present embodiment, front server also comprises the service condition processing module A04 of the service condition currently supplementing flow process with money for recording. Service condition at least comprises two states representing and transferring accounts and neutralize and transferred accounts; Service condition processing module A04 be used for get the expression that capital management server returns transfer accounts successful information time, service condition is revised as from transfer accounts and has transferred accounts. Judge according to this service condition, modules A 06 is for judging whether current order transfers accounts successfully.
Transfer accounts successful information owing to front server has got the expression that capital management server returns, so, the circle of front server is deposited processing module A07 and can be returned directly to user terminal and deposit instruction for stored value card stored value card encloses the circle deposited.
User terminal gets after circle deposits instruction, sends to write cards device and activates instruction, to activate write cards device, and sends circle to write cards device and deposit instruction. Write cards device is deposited instruction according to circle and e-wallet account remaining sum is write stored value card, completes to supplement with money.
(2) situation two
The difference of itself and situation 1 is, capital management server does not send expression to front server and transfers accounts successful information; Or, transfer accounts successful information although capital management server have sent expression to front server, but front server is transferred accounts successful information because the factors such as unstable networks do not receive the expression that capital management server returns.
Now, user sends circle by user terminal to front server and deposits request. The circle of front server deposit acquisition request modules A 05 for obtaining this circle deposit request, judge according to the circle request of depositing, modules A 06 is for judging whether current order transfers accounts successfully (namely judging whether that condition deposited by satisfied circle), namely judge whether to get the expression that capital management server returns and transfer accounts successful information.
In the present embodiment, front server also comprises the service condition processing module A04 of the service condition currently supplementing flow process with money for recording. Service condition at least comprises two states representing and transferring accounts and neutralize and transferred accounts; Service condition processing module A04 be used for get the current order of expression that capital management server returns transfer accounts successful Query Result time, service condition is revised as from transfer accounts and has transferred accounts.
Judge according to this service condition, modules A 06 is for judging whether current order transfers accounts successfully. Concrete, judge that modules A 06 obtains supplementing with money the service condition of flow process for business_status (current business state) field of virtual account table in Query Database, if business_status=21, represent that service condition is for having transferred accounts, then user just can enclose and deposit. If but business_status=20, expression service condition is still in transferring accounts, and user cannot be undertaken enclosing depositing by user terminal. Service condition in transferring accounts represents that user has been undertaken supplementing operation with money by user terminal, but front server not yet receives the successfully notice of transferring accounts that capital management server sends, and causes user cannot write in the virtual account of stored value card at the amount of money that capital management server produces. Now, front server initiatively calls single transaction inquiry interface (single_trade_query) of capital management server according to trade company's order number (unique mark recharging payment), to check whether current transaction has transferred accounts successfully.
Due in this case, front server does not receive the expression that capital management server sends and transfers accounts successful information, and the judgement modules A 06 of front server determines not success of transferring accounts.
Now, the circle of front server deposits processing module A07 for sending order inquiry request to capital management server. Order inquiry request at least comprises the order mark of current order.
Concrete, the circle of front server deposited processing module A07 before sending order inquiry request, first structure request parameter. to pay precious server, according to the request parameter list and the request format that pay precious single_trade_query interface definition, remove outside sign (signature result) and sign_type (signature type) two parameters, all the other parameter s ervice (service, here it is single_trade_query), partner (pays the precious unique subscriber number of payment of precious contractor, obtain from payment Bao Chu), _ input_charset (parameter coding character set), trade_no (pays precious transaction number), out_trade_no (the unique order number of merchant website) all needs to participate in signature. parameter to be signed is sorted from a to z, if running into identical initial, then sees the 2nd letter, analogize with this. after having sorted, then the key=value of all parameters (need to filter out null value) is got up to be character string to be signed with " & " Connection operator, as follows:
_ intput_charset=utf-8&out_trade_no=2015102700000001&partn er=2088101000922533&service=single_trade_query
After obtaining above-mentioned character string to be signed, it is necessary to by the private key direct splicing of trade company after character string to be signed, form new character string, utilize the signature function of MD5 the character string that this is new to be signed, the signature result character string of 32 obtained is exactly sign.
Front server can be communicated by the precious server of HTTP (HTTP) and payment. Post or the get method of front server http protocol sends the relevant data of the above order inquiry request to paying precious gateway.
With this order, the inquiry of capital management server identifies whether corresponding order transfers accounts successfully, and return Query Result to front server. Wherein, Query Result at least comprises transfer accounts success and failure two kinds of transferring accounts.
If the circle of front server is deposited after processing module A07 gets Query Result, determine and transfer accounts successfully, then return to user terminal and deposit instruction for stored value card stored value card being enclosed the circle deposited.
Concrete, the relevant data of Query Result are processed by front server. The Query Result that the precious server of payment returns can be XML format. When front server resolves Query Result, check that the value of<is_success>wherein (whether request is successful) is T or F. If T then represents that current recharging payment is transferred accounts successfully, if F then represents current request failure.
User terminal gets after circle deposits instruction, sends to write cards device and activates instruction, to activate write cards device, and sends circle to write cards device and deposit instruction. Write cards device is deposited instruction according to circle and e-wallet account remaining sum is write stored value card, completes to supplement with money.
Certainly, what need to illustrate further is, in the latter case, if front server get the current order of expression that capital management server returns transfer accounts successful Query Result time, the account balance of the stored value card that renewal to be supplemented with money, and return for stored value card stored value card being enclosed after the circle deposited deposits instruction to user terminal, receive the expression that capital management server returns and transfer accounts successful information, then this information is not processed. Namely after front server active inquiry account operates to account, if front server receives the successful asynchronous notifications of payment that capital management server sends, front server is resolved content of announcement<out_trade_no>(trade company's order number) and is obtained this unique order number of merchant website supplemented with money, and this order number can uniquely identify a transaction. Inquire about in table log_alipay according to this order number, with check front server whether Automatic inquirying account to account. If the record that this out_trade_no (the unique order number of trade company) is corresponding exists, then abandon this notice that capital management server sends.
In addition, if user by user terminal to front server send once circle deposit request after, or successfully cannot receive circle because not transferring accounts and deposit instruction, then user again can send once circle by user terminal to front server over time and deposit request, until completing circle to deposit step.
Embodiment two
Please refer to Fig. 2, present embodiments provide the recharge method of a kind of ETC stored value card stored value card, it comprises step below:
Step 2.1: user is correlated with in user terminal input and supplements information with money, such as supplementing the amount of money, the accounts information of stored value card, the fund account information (such as the precious account of the payment withholdd or bank card account number) etc. for withholing with money, the information that user terminal input according to user constructs charging request data.
Step 2.2: charging request is sent to front server by user terminal, this front server can be safeguarded by the operator of ETC stored value card stored value card.
Step 2.3: front server obtains the charging request that user terminal sends, front server constructs, according to charging request, requested data of withholing.
Step 2.4: the request of withholing is sent to capital management server (pay precious server, bank server etc.) by front server, the request of withholing at least comprise the fund account information for withholing, for collect money fund account information (the such as precious account of payment for collecting money or bank card account number), supplement the amount of money and order mark with money.
Step 2.5: capital management server is transferred accounts according to the request of withholing, i.e. deduction and the fund supplementing amount of money single-candidate with money from the fund account for withholing, and proceed to the fund account for collecting money.
Two kinds of situations below existing after step 2.5:
(1) situation one (see step shown in Fig. 2 dotted line)
Step 2.6: capital management server is being transferred accounts after successfully, returns expression to front server and transfers accounts successful information.
Step 2.7: front server receive the expression that capital management server returns transfer accounts successful information time, upgrade the remaining sum of e-wallet account.
It should be noted that, after front server has upgraded the remaining sum of e-wallet account, the balance amount information in stored value card (such as IC-card) is not updated, consequently, it is desirable to write the remaining sum after upgrading further in stored value card, namely step deposited by circle.
To pay precious server, concrete, if front server receives and pays the expression that precious server returns and transfer accounts successful information, in the way of cumulative, upgrade the account balance in IC-card virtual account according to the value of<total_fee>(the transaction total charge) paid in precious server returns response data. Finally this is upgraded in the operation logging data table log_alipay (upgrading virtual account daily record table) of virtual account remaining sum.
Step 2.8: user sends circle by user terminal to front server and deposits request.
Step 2.9: front server obtains this circle and deposits request, judge whether current order transfers accounts successfully (namely judging whether that condition deposited by satisfied circle) according to the circle request of depositing, namely judge whether to get the expression that capital management server returns and transfer accounts successful information.
In the present embodiment, front server also records the service condition currently supplementing flow process with money. Service condition at least comprises two states representing and transferring accounts and neutralize and transferred accounts; Front server get the expression that capital management server returns transfer accounts successful information time, service condition is revised as from transfer accounts and has transferred accounts. According to this service condition, front server judges whether current order transfers accounts successfully.
Step 2.10: due in step 2.6 and step 2.7, front server has got the expression that capital management server returns and has transferred accounts successful information, so, in step 2.10, front server can return directly to user terminal and deposit instruction for stored value card stored value card encloses the circle deposited.
Step 2.15: user terminal sends to write cards device and activates instruction, to activate write cards device, and sends circle to write cards device and deposits instruction.
Step 2.16: write cards device is deposited instruction according to circle and e-wallet account remaining sum is write stored value card, completes to supplement with money.
(2) situation 2: the difference of itself and situation 1 is, in step 2.6, capital management server does not send expression to front server and transfers accounts successful information; Or, in step 2.6, transfer accounts successful information although capital management server have sent expression to front server, but front server is transferred accounts successful information because the factors such as unstable networks do not receive the expression that capital management server returns. Namely step 2.6 does not complete, and now, the steps flow chart after step 2.5 is as follows.
Step 2.8: user sends circle by user terminal to front server and deposits request.
Step 2.9: front server obtains this circle and deposits request, judge whether current order transfers accounts successfully (namely judging whether that condition deposited by satisfied circle) according to the circle request of depositing, namely judge whether to get the expression that capital management server returns and transfer accounts successful information.
In the present embodiment, front server also records the service condition currently supplementing flow process with money. Service condition at least comprises two states representing and transferring accounts and neutralize and transferred accounts; Front server get the current order of expression that capital management server returns transfer accounts successful Query Result time, service condition is revised as from transfer accounts and has transferred accounts.
According to this service condition, front server judges whether current order transfers accounts successfully. Concrete, in front server Query Database, business_status (current business state) field of virtual account table obtains supplementing with money the service condition of flow process, if business_status=21, represent that service condition is for having transferred accounts, then user just can enclose and deposit. If but business_status=20, expression service condition is still in transferring accounts, and user cannot be undertaken enclosing depositing by user terminal. Service condition in transferring accounts represents that user has been undertaken supplementing operation with money by user terminal, but front server not yet receives the successfully notice of transferring accounts that capital management server sends, and causes user cannot write in the virtual account of stored value card at the amount of money that capital management server produces. Now, front server initiatively calls single transaction inquiry interface (single_trade_query) of capital management server according to trade company's order number (unique mark recharging payment), to check whether current transaction has transferred accounts successfully.
Step 2.11: owing to step 2.6 does not complete, therefore, in step 2.9, front server determines not success of transferring accounts. Therefore in step 2.11, front server sends order inquiry request to capital management server. Order inquiry request at least comprises the order mark of current order.
Concrete, front server is before sending order inquiry request, and first structure asks parameter. to pay precious server, according to the request parameter list and the request format that pay precious single_trade_query interface definition, remove outside sign (signature result) and sign_type (signature type) two parameters, all the other parameter s ervice (service, here it is single_trade_query), partner (pays the precious unique subscriber number of payment of precious contractor, obtain from payment Bao Chu), _ input_charset (parameter coding character set), trade_no (pays precious transaction number), out_trade_no (the unique order number of merchant website) all needs to participate in signature. parameter to be signed is sorted from a to z, if running into identical initial, then sees the 2nd letter, analogize with this. after having sorted, then the key=value of all parameters (need to filter out null value) is got up to be character string to be signed with " & " Connection operator, as follows:
_ intput_charset=utf-8&out_trade_no=2015102700000001&partn er=2088101000922533&service=single_trade_query
After obtaining above-mentioned character string to be signed, it is necessary to by the private key direct splicing of trade company after character string to be signed, form new character string, utilize the signature function of MD5 the character string that this is new to be signed, the signature result character string of 32 obtained is exactly sign.
Front server can be communicated by the precious server of HTTP (HTTP) and payment. Post or the get method of front server http protocol sends the relevant data of the above order inquiry request to paying precious gateway.
Step 2.12: with this order, the inquiry of capital management server identifies whether corresponding order transfers accounts successfully.
Step 2.13: capital management server returns Query Result to front server. Wherein, Query Result at least comprises transfer accounts success and failure two kinds of transferring accounts.
Step 2.14: if after front server gets Query Result, determining and transfer accounts successfully, then, in step 2.14, return to user terminal and deposit instruction for stored value card stored value card being enclosed the circle deposited.
Concrete, the relevant data of Query Result are processed by front server. The Query Result that the precious server of payment returns can be XML format. When front server resolves Query Result, check that the value of<is_success>wherein (whether request is successful) is T or F. If T then represents that current recharging payment is transferred accounts successfully, if F then represents current request failure.
Step 2.15: user terminal sends to write cards device and activates instruction, to activate write cards device, and sends circle to write cards device and deposits instruction.
Step 2.16: write cards device is deposited instruction according to circle and e-wallet account remaining sum is write stored value card, completes to supplement with money.
Certainly, what need to illustrate further is, in case 2, if front server get the current order of expression that capital management server returns transfer accounts successful Query Result time, the account balance of the stored value card that renewal to be supplemented with money, and return for stored value card stored value card being enclosed after the circle deposited deposits instruction to user terminal, receive the expression that capital management server returns and transfer accounts successful information, then this information is not processed. Namely after front server active inquiry account operates to account, if front server receives the successful asynchronous notifications of payment that capital management server sends, front server is resolved content of announcement<out_trade_no>(trade company's order number) and is obtained this unique order number of merchant website supplemented with money, and this order number can uniquely identify a transaction. Inquire about in table log_alipay according to this order number, with check front server whether Automatic inquirying account to account. If the record that this out_trade_no (the unique order number of trade company) is corresponding exists, then abandon this notice that capital management server sends.
In addition, if user by user terminal to front server send once circle deposit request after, or successfully cannot receive circle because not transferring accounts and deposit instruction, then user again can send once circle by user terminal to front server over time and deposit request, until completing circle to deposit step.
In the embodiment of the present application, as shown in Figure 2, user terminal is two different equipment from write cards device. For supplementing with money of ETC stored value card IC-card. User terminal can be mobile terminal, such as mobile phone, it is also possible to is the network equipments such as computer. And write cards device is OBU or is specifically designed to the read write line supplemented with money by IC-card. Mobile terminal is connected by bluetooth etc. with OBU or read write line. In other embodiment, user terminal itself is provided with write cards device, such as the charging terminal of some fixing sites, and now, user terminal and write cards device are same equipment.
The recharge method of the ETC stored value card stored value card that the embodiment of the present application provides and front server thereof, in the process of supplementing with money, when user terminal deposits request to front server transmission circle, if front server not yet receive capital management server based on the expression that returns of request of withholing transfer accounts successful information time, front server initiatively sends order inquiry request to capital management server, with to whether the verification of capital management server transfers accounts successfully, transfer accounts successfully if capital management server checked result represents, then front server returns circle to user terminal and deposits instruction. thus solve front server because of network fault, it does not have receive capital management server based on the expression that returns of request of withholing transfer accounts successful information time, stored value card stored value card cannot carry out enclosing the problem deposited.
It will be appreciated by those skilled in the art that, in above-mentioned enforcement mode, all or part of step of various method can control related hardware by program and completes, this program can be stored in a computer-readable recording medium, and storage media can comprise: read-only storage, random access memory, disk or CD etc.
Above content is further description the application done in conjunction with concrete enforcement mode, can not assert that the concrete enforcement of the application is confined to these explanations. For the application person of an ordinary skill in the technical field, under the prerequisite not departing from the present application design, it is also possible to make some simple deduction or replace.
Claims (10)
1. the recharge method of an ETC stored value card stored value card, it is characterised in that, comprising:
Request deposited by the circle that front server obtains user terminal transmission;
According to the request of depositing of described circle, front server judges whether current order transfers accounts successfully, if, then return circle to user terminal and deposit instruction, if not, then send order inquiry request to capital management server, described order inquiry request is used for capital management server and inquires about whether current order transfers accounts successfully, and Query Result is returned to front server;
The Query Result that front server returns according to capital management server, returns corresponding operational order to user terminal.
2. the method for claim 1, it is characterised in that, front server gets the expression that capital management server returns and transfers accounts after successful Query Result, also comprises: front server upgrades the account balance of the stored value card to be supplemented with money.
3. method as claimed in claim 2, it is characterised in that, the circle that described front server acquisition user terminal sends also comprises before depositing request:
Front server obtains the charging request that user terminal sends;
Front server generates, according to described charging request, the request of withholing, and the described request of withholing is sent to capital management server;
And also comprise: the step of the service condition of flow process currently supplemented with money in front server record;
Front server judges that current order successful step of whether transferring accounts comprises: according to described service condition, front server judges whether current order transfers accounts successfully.
4. method as claimed in claim 3, it is characterised in that, described service condition at least comprises two states representing and transferring accounts and neutralize and transferred accounts; Front server get capital management server based on the described expression that returns of request of withholing transfer accounts successful information time, service condition is revised as from transfer accounts and has transferred accounts; Or, front server get capital management server based on the current order of expression that described order inquiry request returns transfer accounts successful Query Result time, service condition is revised as from transfer accounts and has transferred accounts.
5. method as claimed in claim 2, it is characterized in that, if front server is transferred accounts after successful Query Result getting the current order of expression that capital management server returns based on described order inquiry request, receive capital management server to transfer accounts successful information based on the described expression that returns of request of withholing, then this information is not processed.
6. the front server supplemented with money for ETC stored value card stored value card, it is characterised in that, comprising:
Acquisition request module deposited by circle, and request deposited by the circle sent for obtaining user terminal;
Judge module, for judging whether current order transfers accounts successfully according to the request of depositing of described circle, if, then return circle to user terminal and deposit instruction, if not, then sending order inquiry request to capital management server, described order inquiry request is used for capital management server and inquires about whether current order transfers accounts successfully, and Query Result is returned to front server;
Processing module deposited by circle, for the Query Result returned according to capital management server, returns corresponding operational order to user terminal.
7. front server as claimed in claim 6, it is characterised in that, also comprise balance updates module, for get the expression that capital management server returns transfer accounts successful Query Result time, upgrade the account balance of the stored value card to be supplemented with money.
8. front server as claimed in claim 7, it is characterised in that, also comprise:
Charging request acquisition module, for obtaining the charging request that user terminal sends;
Withhold request generation module, for generating, according to described charging request, the request of withholing, and the described request of withholing is sent to capital management server;
And also comprise service condition processing module, for recording the service condition currently supplementing flow process with money;
Described when judging module for judging whether current order transfers accounts successful: to judge according to described service condition, module is for judging whether current order transfers accounts successfully.
9. front server as claimed in claim 8, it is characterised in that, described service condition at least comprises two states representing and transferring accounts and neutralize and transferred accounts; Service condition processing module also for get capital management server based on the described expression that returns of request of withholing transfer accounts successful information time, service condition is revised as from transfer accounts and has transferred accounts; Or, service condition processing module also for get capital management server based on the current order of expression that described order inquiry request returns transfer accounts successful Query Result time, service condition is revised as from transfer accounts and has transferred accounts.
10. front server as claimed in claim 7, it is characterized in that, balance updates module is also for transferring accounts after successful Query Result getting the current order of expression that capital management server returns based on described order inquiry request, receive capital management server based on the described expression that returns of request of withholing transfer accounts successful information time, this information is not processed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510997950.0A CN105631649A (en) | 2015-12-25 | 2015-12-25 | Method for recharging ETC e-wallet stored-value card and prepositive server therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510997950.0A CN105631649A (en) | 2015-12-25 | 2015-12-25 | Method for recharging ETC e-wallet stored-value card and prepositive server therefor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105631649A true CN105631649A (en) | 2016-06-01 |
Family
ID=56046548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510997950.0A Pending CN105631649A (en) | 2015-12-25 | 2015-12-25 | Method for recharging ETC e-wallet stored-value card and prepositive server therefor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105631649A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106548575A (en) * | 2016-11-07 | 2017-03-29 | 贵阳货车帮科技有限公司 | A kind of ETC cards recharge method |
CN107730627A (en) * | 2017-08-16 | 2018-02-23 | 西安艾润物联网技术服务有限责任公司 | Shutdown system obtains the method, apparatus and storage medium for paying parking charge information |
CN107944862A (en) * | 2017-11-30 | 2018-04-20 | 银联商务股份有限公司 | Order method for processing business, device and server based on transaction front platform |
CN108074094A (en) * | 2017-12-13 | 2018-05-25 | 北京小米移动软件有限公司 | Resource compensation process and device |
CN108280643A (en) * | 2018-01-17 | 2018-07-13 | 深圳喆行科技有限公司 | A kind of recharge method and system of stored value card |
CN108470298A (en) * | 2017-02-23 | 2018-08-31 | 腾讯科技(深圳)有限公司 | The methods, devices and systems of resource numerical value transfer |
CN111626728A (en) * | 2020-05-25 | 2020-09-04 | 上海中通吉网络技术有限公司 | Business clerk single number deduction method, device, equipment and storage medium |
CN112200560A (en) * | 2020-09-30 | 2021-01-08 | 广东岭南通股份有限公司 | Virtual public transport one-card recharging method capable of being completed through single exchange |
CN112200559A (en) * | 2020-09-30 | 2021-01-08 | 广东岭南通股份有限公司 | Automatic processing method and system for empty issue card rechargeable customer service |
CN112381538A (en) * | 2020-11-12 | 2021-02-19 | 深圳市欢太科技有限公司 | Data processing method, terminal equipment and storage medium |
CN112749959A (en) * | 2019-10-29 | 2021-05-04 | 腾讯科技(深圳)有限公司 | Resource transfer method, system, device, equipment and storage medium |
RU2750594C1 (en) * | 2019-11-08 | 2021-06-29 | Тойота Дзидося Кабусики Кайся | Wallet system and nonvolatile information storage medium |
CN114862446A (en) * | 2022-04-07 | 2022-08-05 | 江苏银承网络科技股份有限公司 | Virtual asset processing method, device and equipment |
CN116228225A (en) * | 2023-05-09 | 2023-06-06 | 万联易达物流科技有限公司 | Matching method and system for automatic matching wallet by online recharging |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159054A (en) * | 2007-11-14 | 2008-04-09 | 范传东 | Method for realizing currency money payment through mobile communication appliance channel |
CN101894337A (en) * | 2010-06-22 | 2010-11-24 | 北京握奇数据系统有限公司 | Method, system and related device for processing network transaction of intelligent value card |
CN102426720A (en) * | 2011-11-22 | 2012-04-25 | 浙江省公众信息产业有限公司 | Electronic purse air transfer cell phone intelligent card, cell phone terminal, system and method |
CN103310557A (en) * | 2012-03-15 | 2013-09-18 | 中国移动通信集团公司 | Over-the-air electronic cash loading method, system and device for NFC (near field communication) mobile phone |
-
2015
- 2015-12-25 CN CN201510997950.0A patent/CN105631649A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159054A (en) * | 2007-11-14 | 2008-04-09 | 范传东 | Method for realizing currency money payment through mobile communication appliance channel |
CN101894337A (en) * | 2010-06-22 | 2010-11-24 | 北京握奇数据系统有限公司 | Method, system and related device for processing network transaction of intelligent value card |
CN102426720A (en) * | 2011-11-22 | 2012-04-25 | 浙江省公众信息产业有限公司 | Electronic purse air transfer cell phone intelligent card, cell phone terminal, system and method |
CN103310557A (en) * | 2012-03-15 | 2013-09-18 | 中国移动通信集团公司 | Over-the-air electronic cash loading method, system and device for NFC (near field communication) mobile phone |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106548575A (en) * | 2016-11-07 | 2017-03-29 | 贵阳货车帮科技有限公司 | A kind of ETC cards recharge method |
CN108470298A (en) * | 2017-02-23 | 2018-08-31 | 腾讯科技(深圳)有限公司 | The methods, devices and systems of resource numerical value transfer |
CN108470298B (en) * | 2017-02-23 | 2021-10-26 | 腾讯科技(深圳)有限公司 | Method, device and system for transferring resource numerical value |
CN107730627A (en) * | 2017-08-16 | 2018-02-23 | 西安艾润物联网技术服务有限责任公司 | Shutdown system obtains the method, apparatus and storage medium for paying parking charge information |
CN107944862A (en) * | 2017-11-30 | 2018-04-20 | 银联商务股份有限公司 | Order method for processing business, device and server based on transaction front platform |
CN108074094A (en) * | 2017-12-13 | 2018-05-25 | 北京小米移动软件有限公司 | Resource compensation process and device |
CN108074094B (en) * | 2017-12-13 | 2022-04-15 | 北京小米移动软件有限公司 | Resource supplementing method and device |
CN108280643A (en) * | 2018-01-17 | 2018-07-13 | 深圳喆行科技有限公司 | A kind of recharge method and system of stored value card |
CN112749959A (en) * | 2019-10-29 | 2021-05-04 | 腾讯科技(深圳)有限公司 | Resource transfer method, system, device, equipment and storage medium |
CN112749959B (en) * | 2019-10-29 | 2023-09-19 | 腾讯科技(深圳)有限公司 | Resource transfer method, system, device, equipment and storage medium |
RU2750594C1 (en) * | 2019-11-08 | 2021-06-29 | Тойота Дзидося Кабусики Кайся | Wallet system and nonvolatile information storage medium |
US11403617B2 (en) | 2019-11-08 | 2022-08-02 | Toyota Jidosha Kabushiki Kaisha | Wallet system and non-transitory storage medium |
CN111626728A (en) * | 2020-05-25 | 2020-09-04 | 上海中通吉网络技术有限公司 | Business clerk single number deduction method, device, equipment and storage medium |
CN112200559A (en) * | 2020-09-30 | 2021-01-08 | 广东岭南通股份有限公司 | Automatic processing method and system for empty issue card rechargeable customer service |
CN112200560A (en) * | 2020-09-30 | 2021-01-08 | 广东岭南通股份有限公司 | Virtual public transport one-card recharging method capable of being completed through single exchange |
CN112200560B (en) * | 2020-09-30 | 2024-06-25 | 广东岭南通股份有限公司 | Virtual public transport one-card recharging method capable of being completed through single exchange |
CN112381538A (en) * | 2020-11-12 | 2021-02-19 | 深圳市欢太科技有限公司 | Data processing method, terminal equipment and storage medium |
CN114862446A (en) * | 2022-04-07 | 2022-08-05 | 江苏银承网络科技股份有限公司 | Virtual asset processing method, device and equipment |
CN116228225A (en) * | 2023-05-09 | 2023-06-06 | 万联易达物流科技有限公司 | Matching method and system for automatic matching wallet by online recharging |
CN116228225B (en) * | 2023-05-09 | 2023-07-14 | 万联易达物流科技有限公司 | Matching method and system for automatic matching wallet by online recharging |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105631649A (en) | Method for recharging ETC e-wallet stored-value card and prepositive server therefor | |
CN104616141A (en) | Information processing method and payment platform | |
CN101843084A (en) | Be used to avoid the lease model of permanent card locking | |
WO2013009444A1 (en) | Business to business mobile vault | |
CN103907142A (en) | System and method for updating configuration data for sub-systems of an automated banking machine | |
CN101843085A (en) | Prepaid services accounts with quota of multi-user's client and individuation | |
CN110689394B (en) | Method and device for processing service supplementary notes | |
CN106034148A (en) | Fast information interaction method, local server, remote server and system | |
CN113379523A (en) | Bill generation method, device, medium and electronic equipment | |
KR100918024B1 (en) | System for creating an escrow of smartcard with electronic money and method thereof | |
CN111429125B (en) | Account management method and device, storage medium and electronic equipment | |
CN101827347A (en) | Communication method, communication system and access method to service provider base | |
KR102107454B1 (en) | System for multiplication of financial payment networks, method for financial services using the same and computer program for the same | |
KR101926980B1 (en) | Method and system for providing financial service | |
CN111415263A (en) | Data matching method and device | |
CN101174348A (en) | Managing EMV applications at an IFX ATM | |
CN104217331A (en) | Client front-end system and mobile payment system | |
KR102329686B1 (en) | A method and apparatus for automatic payment service | |
KR20130006575A (en) | Method for providing selective financial transaction | |
CN115482097A (en) | Information processing method and device | |
CN114004610A (en) | Business processing method and device, electronic equipment and storage medium | |
CN117808579A (en) | Resource issuing method, device, equipment and storage medium | |
CN115496581A (en) | Account amount transferring method and device | |
CN116128622A (en) | Virtual resource processing method and device, storage medium and electronic device | |
CN117726454A (en) | Asset service method, device, equipment, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20160601 |