Summary of the invention
Technical matters to be solved by this invention provides a kind of discount charging method, discount information management method and device (comprising discount information management server, POS terminal and discount charge system), to solve existing discount billing operation complicated problems.
In order to solve the problems of the technologies described above, the invention provides a kind of discount information management method, this method is applied to server end, comprising:
Server end configuration consumption discount parameter information;
Described server end obtains the consumption discount parameter information related with the POS terminal;
Described server end issues the consumption discount parameter information of described association to described POS terminal.
Preferably, the consumption discount parameter information of described server end configuration is applicable to all POS terminals, and the consumption discount parameter information of described association is that all relevant with described POS terminal maybe need the consumption discount parameter information that upgrades.
Preferably, described server end disposes the binding relationship between POS terminal identification information and the described consumption discount parameter information simultaneously; Described server end regularly obtains and issues to described POS terminal the consumption discount parameter information of described association according to described POS terminal identification information.
Preferably, described server end disposes the incidence relation between first match information and the described consumption discount parameter information simultaneously; Before obtaining the consumption discount parameter information of described POS terminal association, this method also comprises:
Receive the synchronization request that described POS terminal sends, comprise described first match information in the described synchronization request;
Described server end obtains the consumption discount parameter information related with the POS terminal according to described first match information; Obtain before or after the consumption discount parameter information of described association, this method also comprises: described server end judges whether described POS terminal needs synchronously, and return the syn ack message to described POS terminal, if need synchronously, wherein carry related consumption discount parameter information, need not synchronous descriptive information otherwise carry.
Preferably, described first match information comprise following one or more: be used for sign POS terminal information; Card type information, the article of consumption information of the default transaction of POS terminal.
For solving the problems of the technologies described above, the present invention also provides a kind of discount information management server, and this discount information management server comprises:
Configuration memory cell is used for configuration consumption discount parameter information;
The information matches unit is used for obtaining the consumption discount parameter information related with the POS terminal;
Information synchronizing unit is for the consumption discount parameter information that issues described association based on predetermined policy to described POS terminal.
Preferably, the consumption discount parameter information of described server end configuration is applicable to all POS terminals, and the consumption discount parameter information of described association is that all relevant with described POS terminal maybe need the consumption discount parameter information that upgrades.
Preferably, described configuration storage module also is used for the binding relationship between configuration POS terminal identification information and the described consumption discount parameter information; Described information matches unit regularly mates the consumption discount parameter information of described association according to described POS terminal identification information, and described information synchronizing unit regularly issues the consumption discount parameter information of described association to described POS terminal.
Preferably, described configuration memory cell is also for the incidence relation that disposes and store between first match information and the described consumption discount parameter information;
Described information synchronizing unit comprises synchronization request receiver module, synchronous judge module, the sync response sending module, and described synchronization request receiver module is used for receiving the synchronization request that described POS terminal sends, and comprises described first match information in the described synchronization request; Described synchronous judge module, whether needs are synchronous to be used for judging described POS terminal according to synchronization request; Described sync response sending module for the syn ack message that returns to described POS terminal, if judge and need carry the consumption discount parameter information of association in the described syn ack message synchronously, need not synchronous descriptive information otherwise carry;
Described information matches unit obtains the consumption discount parameter information related with the POS terminal according to described first match information.
Preferably, described first match information comprise following one or more: the identification information of POS terminal; Card type information, the article of consumption information of the default transaction of POS terminal.
For solving the problems of the technologies described above, the present invention also provides another kind of discount charging method, and this method is applied to the POS terminal, comprising:
Described POS terminal is obtained the consumption discount parameter information related with this POS terminal from server end;
Described POS terminal is calculated the final consumption volume according to the consumption discount parameter information that obtains.
Preferably, described POS terminal comprises from the step that server end obtains the consumption discount parameter information related with this POS terminal:
Described POS terminal sends synchronization request to described server, wherein carries first match information;
Described server end obtains the consumption discount parameter information related with the POS terminal according to described first match information;
Described server end judges whether described POS terminal needs synchronously, and returns the syn ack message to described POS terminal, if need wherein to carry related consumption discount parameter information synchronously, need not synchronous descriptive information otherwise carry.
Preferably, described first match information comprise following one or more: the identification information of POS terminal; Card type information, the article of consumption information of the default transaction of POS terminal.
Preferably, the consumption discount parameter information of this POS terminal association is applicable to all the POS terminals under the described server.
For solving the problems of the technologies described above, the present invention also provides a kind of POS terminal, and described POS terminal comprises:
Information synchronizing unit is used for obtaining the consumption discount parameter information related with this POS terminal from server end;
Charging Detail Record unit is used for consuming the final consumption volume that calculates according to the consumption discount parameter information that obtains.
Preferably, described information synchronizing unit comprises:
The synchronization request sending module is used for sending synchronization request to server end, comprising first match information;
The sync response receiver module is used for receiving the sync response that described server end sends, and wherein if described server end is judged to be needed then to carry related consumption discount parameter information in the sync response synchronously, need not synchronous descriptive information otherwise carry.
Preferably, described first match information comprise following one or more: the card type information, the article of consumption information that are used for sign POS terminal information, the default transaction of POS terminal.
Preferably, described consumption discount parameter information comprises some discount information, and every discount information comprises second match information and discount rate; Described Charging Detail Record unit is according to the corresponding discount rate of second match information coupling of operator's input, and calculating final consumption volume; Described second match information comprises following at least a: BIN card information, article of consumption, consumer's identification information.
For solving the problems of the technologies described above, the present invention also provides a kind of discount charge system, and this system comprises aforesaid discount information management server and at least one aforesaid POS terminal.
Compared with prior art, the application's discount charging method, discount information management method, discount information management server, POS terminal and discount charge system, utilize pre-configured consumption discount parameter information, realized the discount management flexibly effectively, can satisfy the demand of various discounting consumption in real time, flexibly, and the discount billing operation is simple, can cause billing error because of operating personnel's error in the process of exchange, and existing transaction system is changed less, has good practicability.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in instructions, claims and accompanying drawing.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with the drawings and specific embodiments technical scheme of the present invention is described in further detail, can be implemented so that those skilled in the art can better understand the present invention also, but illustrated embodiment is not as a limitation of the invention.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Discount charging method embodiment of the present invention, as described in Figure 1, this method comprises:
Step 101: server end configuration consumption discount parameter information;
Herein, the consumption discount parameter information of server end configuration goes for all the POS terminals under this server end, also different consumption discount parameter informations can be set based on different POS terminals, namely, server end is in configuration consumption discount parameter information, dispose described POS terminal identification information (such as, the binding relationship between card BIN (credit card issuer identification code, English full name are Bank Identification Number) and the described consumption discount parameter information; Can also at server end in configuration consumption discount parameter information, dispose the incidence relation between first match information and the described consumption discount parameter information.
Can also dispose other information of POS terminal simultaneously, as POS terminal number, trade company's coding, terminal type.
Described consumption discount parameter information comprises consumption discount parameter information coding, consumption discount managing detailed catalogue, wherein consumes the discount managing detailed catalogue and can comprise many strips discount information, and each sub-discount information comprises card BIN information, discount rate, article of consumption information.Wherein block BIN information and can judge identification transaction card type.Can a certain class card of unique identification, such as a certain card sending mechanism, perhaps the particular card section under card sending mechanism also can be identified a collection of card type, such as all cards.Card BIN information comprises initial card section, ends the card section.Discount rate can be any number.Article of consumption information comprises bullets, project valuation unit (amount of money, person-time or count).Discount rate is a numerical value arbitrarily, carries out discount with the amount of consumption of input when being used for consumption and converts, and obtains the actual amount of consumption.General, if valuation unit is the amount of money, discount rate is generally less than and equals 100%; If for person-time or count, general discount rate be greater than 100%, represent 1 person-time or 1 point, count to detain how much amount of money.
Further, the binding of described consumption discount parameter information and POS terminal identification information refers to, it is corresponding that each terminal and unique consumption discount parameter information are encoded, and records this POS terminal simultaneously and whether should consume the discount parameter information and download to terminal synchronously.When consuming the discount parameter information after changing, such as having increased and decreased card BIN information, such as having adjusted discount rate, a sync id that only needs modification consumption discount to bind is to get final product " needing synchronously ", need not to revise binding relationship.Remind POS to carry at present subsynchronous down.The POS end message is carried out related preservation with consumption discount parameter information in database.If consumption discount parameter information has change, if but the POS terminal is transposed to other trade companies, then need old consumption discount parameter information binding state is cancelled related new consumption discount parameter information.
Said POS terminal includes but not limited to that bank card is accepted POS, prepaid card is accepted POS herein, is used for storage consumption discount parameter information.
Step 102:POS terminal is obtained the consumption discount parameter information related with this POS terminal from server end;
Described POS terminal is obtained described consumption discount parameter information by the mode of request mode or passive reception.
Based on default synchronization policy, the consumption discount parameter information of described POS terminal association can be all consumption discount parameter information relevant with described POS terminal, also can be the current consumption discount parameter information that needs renewal.
When described server end disposed incidence relation between first match information and the described consumption discount parameter information simultaneously, step 102 can realize by following process, shown in Fig. 2,3, specifically comprise:
Step 201: described POS terminal sends synchronization request to described server end, comprises described first match information in the described synchronization request;
Synchronization request as described in described POS terminal timing or event triggering (registering as POS terminal initialization or operator) send.Such as, the POS terminal is consumed the discount parameter information synchronously by routine isochronous transaction (transaction of for example registering) and server end.Finish synchronously by the request of registering, the transmission of the request of registering has three opportunity, and the one, each POS can register when starting shooting automatically; The 2nd, when normally using, the operator can register at any time; The 3rd, after the binding strategy of server end upgraded, the transaction subsequently of POS terminal all can at first trigger inspection to this renewal at server end, when being checked through renewal, can notifying the POS terminal at first to register and carry out synchronously, and then conclude the business.
Step 202: described server end mates the consumption discount parameter information related with described POS terminal according to described first match information after receiving described synchronization request;
Alternatively, described first match information comprise following one or more: the identification information of POS terminal; Card type information, the article of consumption information of the default transaction of POS terminal.
Step 203: described server end sends the sync response message to described POS terminal, then carries the described consumption discount parameter information that matches in this sync response message synchronously if need;
Described consumption discount sync message adopts the financial transaction standard ISO8583 message protocol of standard.
Server end is accepted the synchronization request of POS terminal, judges in the system whether corresponding POS terminal has parameter to upgrade, if renewal is arranged then new parameter information is returned to terminal by response message; If do not upgrade, then in response message, mark no content update.
Step 204: described POS terminal receives described consumption discount parameter information and is kept at this locality.
The POS terminal is resolved update content after receiving response message, and new consumption discount parameter information Data Update is saved in local file.
That is to say, when the POS terminal is initiated consumption discount parameter information synchronization request, server end is according to first match information in the request message, identification information as the POS terminal, match the consumption discount parameter information with its binding, if the synchronous regime of consumption discount parameter information for synchronous, then can in response message, inform the POS terminal do not have can be synchronous consumption discount parameter information; Otherwise, if the change of consumption discount parameter information needs when synchronous, then can in response message, will consume the discount parameter information and pack and upload, new consumption discount parameter information is also preserved in the meeting parsing of POS terminal.Consumption discount parameter information can be saved in the local file of POS terminal, also can not lose after the shutdown.
Dispose binding relationship between described POS terminal identification information and the described consumption discount parameter information simultaneously at described server end; Understandably, POS terminal identification information herein is for identification POS terminal information, can be the unique number of POS terminal in this server end service range, or the unique number in Business Information and this businessman's scope, and the present invention does not limit this.Alternatively, as shown in Figure 4, step 102 can realize in the following way, comprise:
Step 401: described server end obtains all consumption discount parameter informations of upgrading of needs maybe with the POS terminal binding according to the POS terminal identification information;
Step 402: described server end issues with all of described POS terminal binding to described POS terminal maybe needs the consumption discount parameter information that upgrades;
Step 403: described POS terminal receives and preserves described consumption discount parameter information.
More than be that the directed POS terminal of server end sends, also can there be server end to send consumption discount parameter information and the POS terminal identification information corresponding with this consumption discount parameter information, and the mode of passing through broadcasting is identified parsing to all POS terminals transmissions automatically by the POS terminal that receives.
Step 103: described POS terminal is consumed the final consumption volume that calculates according to the consumption discount parameter information that obtains.
Described consumption discount parameter information comprises some discount information, and every discount information comprises second match information and discount rate; Described POS terminal is according to the corresponding discount rate of second match information coupling of operator's input, and calculating final consumption volume; Described second match information comprises following at least a: BIN card information, article of consumption, consumer's identification information.
In consumer sale, behind the user card punching, the POS terminal program can load the consumption discount parameter information of local storage, and with transactional cards and consumption discount parameter information coupling, if match legal discounting definition, then use convert this consumption amount of money of discount rate in the definition; If do not match legal discounting definition, then use the flow process of withholing normally.
Below from server end the present invention program is described:
Discount information management method embodiment 1 of the present invention, this method is applied to server end, as shown in Figure 5, comprising:
Step 501: server end configuration consumption discount parameter information;
Step 502: described server end obtains the consumption discount parameter information related with the POS terminal;
As indicated above, alternatively, the consumption discount parameter information of described server end configuration is applicable to all POS terminals, and the consumption discount parameter information of described association is that all relevant with described POS terminal maybe need the consumption discount parameter information that upgrades.
Step 503: described server end issues the consumption discount parameter information of described association to described POS terminal.
In the scheme of replacing, the consumption discount parameter information of described server end configuration disposes the binding relationship between POS terminal identification information and the described consumption discount parameter information simultaneously; Described server end regularly obtains and issues to described POS terminal the consumption discount parameter information of described association according to described POS terminal identification information.
Discount information management method embodiment 2 of the present invention, this method is applied to server end, as shown in Figure 6, comprising:
Step 601: the consumption discount parameter information of described server end configuration, dispose the incidence relation between first match information and the described consumption discount parameter information simultaneously;
Step 602: described server end receives the synchronization request that described POS terminal sends, and comprises described first match information in the described synchronization request;
Step 603: described server end obtains the consumption discount parameter information related with the POS terminal according to described first match information;
Step 604: described server end judges whether described POS terminal needs synchronously, and returns the syn ack message to described POS terminal, if need wherein to carry related consumption discount parameter information synchronously, need not synchronous descriptive information otherwise carry.
Replacedly, whether need synchronous decision operation, can be before server end obtains the consumption discount parameter information related with the POS terminal, such as according to the server end record lock in time last time information and this different time information after whether heavily be configured to judge whether that needs are synchronous.
As indicated above, described first match information comprise following one or more: be used for sign POS terminal information; Card type information, the article of consumption information of the default transaction of POS terminal.
In order to realize said method, the present invention also provides a kind of discount information management server, and as shown in Figure 7, this discount information management server comprises:
Configuration memory cell is used for configuration consumption discount parameter information;
The information matches unit is used for obtaining the consumption discount parameter information related with the POS terminal;
Information synchronizing unit is for the consumption discount parameter information that issues described association based on predetermined policy to described POS terminal.
Alternatively, the consumption discount parameter information of described server end configuration is applicable to all POS terminals, and the consumption discount parameter information of described association is that all relevant with described POS terminal maybe need the consumption discount parameter information that upgrades.
Further, described configuration storage module also is used for the binding relationship between configuration POS terminal identification information and the described consumption discount parameter information; Described information matches unit regularly mates the consumption discount parameter information of described association according to described POS terminal identification information, and described information synchronizing unit regularly issues the consumption discount parameter information of described association to described POS terminal.
Alternatively, described configuration memory cell is also for the incidence relation that disposes and store between first match information and the described consumption discount parameter information; Described server also comprises:
Described information synchronizing unit comprises synchronization request receiver module, synchronous judge module and sync response sending module, described synchronization request receiver module, be used for receiving the synchronization request that described POS terminal sends, comprise described first match information in the described synchronization request; Described synchronous judge module, whether needs are synchronous to be used for judging described POS terminal according to synchronization request; The sync response sending module for the syn ack message that returns to described POS terminal, if judge and need carry the consumption discount parameter information of association in the described syn ack message synchronously, need not synchronous descriptive information otherwise carry;
Described information matches unit obtains the consumption discount parameter information related with the POS terminal according to described first match information.
Described first match information comprise following one or more: the identification information of POS terminal; Card type information, the article of consumption information of the default transaction of POS terminal.
Below from the angle of POS terminal the present invention program is described:
Discount charging method of the present invention, as shown in Figure 8, this method is applied to the POS terminal, comprising:
Step 801: described POS terminal is obtained the consumption discount parameter information related with this POS terminal from server end;
Step 802: described POS terminal is calculated the final consumption volume according to the consumption discount parameter information that obtains.
As shown in Figure 9, the user is after having brushed card, the POS terminal at first loads the consumption discount parameter information of local cache, use card number and its coupling of this transaction then, if match legal discounting definition, then discount rate is taken out stand-by, if do not match discounting definition information, prove the normal consumption of this card execution, discount rate is 0.After the user imported the amount of consumption, the POS terminal was calculated the input amount of consumption according to the discount rate that obtains automatically, obtains the final amount of consumption, was submitted to server end after the user confirms and chargeed.
Alternatively, described POS terminal comprises from the step that server end obtains the consumption discount parameter information related with this POS terminal:
Described POS terminal sends synchronization request to described server, wherein carries first match information;
Described server end obtains the consumption discount parameter information related with the POS terminal according to described first match information;
Described server end judges whether described POS terminal needs synchronously, and returns the syn ack message to described POS terminal, if need wherein to carry related consumption discount parameter information synchronously, need not synchronous descriptive information otherwise carry.
As indicated above, described first match information comprise following one or more: the identification information of POS terminal; Card type information, the article of consumption information of the default transaction of POS terminal.
Alternatively, the consumption discount parameter information of this POS terminal association is applicable to all the POS terminals under the described server.
For realizing said method, the present invention also provides a kind of POS terminal, and as shown in figure 10, described POS terminal comprises:
Information synchronizing unit is used for obtaining the consumption discount parameter information related with this POS terminal from server end;
Charging Detail Record unit is used for consuming calculating final consumption volume according to the consumption discount parameter information that obtains, and comprises, during bankcard consumption, differentiate the discount power of transaction number of the account, identification is also selected corresponding consumption discount, the actual volume of withholing is calculated, be submitted to server end and charge.
。
Alternatively, described information synchronizing unit comprises:
The synchronization request sending module is used for sending synchronization request to server end, comprising first match information;
The sync response receiver module is used for receiving the sync response that described server end sends, and wherein if described server end is judged to be needed then to carry related consumption discount parameter information in the sync response synchronously, need not synchronous descriptive information otherwise carry.
Further, described first match information comprise following one or more: the card type information, the article of consumption information that are used for sign POS terminal information, the default transaction of POS terminal.
Alternatively, described consumption discount parameter information comprises some discount information, and every discount information comprises second match information and discount rate; Described Charging Detail Record unit is according to the corresponding discount rate of second match information coupling of operator's input, and calculating final consumption volume; Described second match information comprises following at least a: BIN card information, article of consumption, consumer's identification information.
In addition, for realizing said method, the present invention also provides a kind of discount charge system, and this system comprises discount information management server as indicated above and at least one POS terminal as indicated above.
Can in the computer system such as one group of computer executable instructions, carry out in the step shown in the process flow diagram of accompanying drawing.And, though there is shown logical order in flow process, in some cases, can carry out step shown or that describe with the order that is different from herein.
Compared to prior art, the application's discount charging method, discount information management method, discount information management server, POS terminal and discount charge system, utilize pre-configured consumption discount parameter information, realized the discount management flexibly effectively, can satisfy the demand of various discounting consumption in real time, flexibly, and the discount billing operation is simple, can cause billing error because of operating personnel's error in the process of exchange, and existing transaction system is changed less, has good practicability.
Those skilled in the art should be understood that, each ingredient of the device that above-mentioned the embodiment of the present application provides and/or system, and all or part of step in the method can instruct related hardware to finish by program, described program can be stored in the computer-readable recording medium, as ROM (read-only memory), disk or CD etc.They can concentrate on the single calculation element, perhaps are distributed on the network that a plurality of calculation elements form.Alternatively, they can be realized with the executable program code of calculation element.Thereby, they can be stored in the memory storage and be carried out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Various unit described in the embodiment of the invention, module only are a kind of examples of dividing according to its function; understandably; realize in system/device/apparatus under the situation of identical function; those skilled in the art can provide one or more other function dividing mode; can be wherein when concrete the application any one or a plurality of functional module adopt a functional entity device or unit realization; undeniable ground, above mapping mode is all within the application's protection domain.
Though the disclosed embodiment of the present invention as above, the embodiment that described content only adopts for ease of understanding the present invention is not in order to limit the present invention.Those of skill in the art under any the present invention; under the prerequisite that does not break away from the disclosed spirit and scope of the present invention; can carry out any modification and variation in form and the details implemented; but scope of patent protection of the present invention still must be as the criterion with the scope that appending claims was defined.