Summary of the invention
Many in order to solve in prior art the non-banking account, and use inconvenient present situation, the purpose of this invention is to provide based on bank account non-banking account management and method of payment and many account managements payment system, realize implementing the management of all non-banking accounts and unified priority orders by setting are paid successively by bank account.
The present invention is based on bank account is realized by following steps non-banking account management and method of payment: the method is based on many account managements payment system, bank account managing payment system, non-banking account management payment system and the realization of consumption request input end, and it is characterized in that: the method realizes according to the following steps:
(1), non-banking account management payment system and many account managements payment system of a plurality of different consumption or integrated form are set up communication contact:
, many account managements of non-banking account management payment system mandate payment system used the account of this system management,
Authorization method is: the owner with non-banking account logins non-banking account management payment system, to specifying the non-banking account, input the bank account of my empowerment management, agree that many account managements payment system used this non-banking account by bank account, after many account managements payment system receives the above-mentioned request of non-banking account management payment system, set up authorized agreement, and preserve this authorized agreement, many account managements payment system arranges the service regeulations of non-banking account according to this agreement:
(3), when consumption request input end is initiated the consumption request by bank account to many account managements payment system, at first many account managements payment system searches the non-banking account whether this bank account has empowerment management, lookup result has, the priority orders that many account managements payment system is set by agreement, to first order non-banking account management payment system, send the consumption request, after first order non-banking account management payment system agrees that this consumption ask and completed this and pay, successful message occurs to the consumption of consumption request input end in many account managements payment system, this message is put down in writing this non-banking account management payment system description information, the consumption amount of money, the information such as consumption time and consumption request input end, when as not enough as this time consumption request first order non-banking account balance, after the remaining sum of first order non-banking account management payment system payment account, enter next step,
(4), many account managements payment system is for first order non-banking account balance insufficient section, to next stage non-banking account management payment system, send the consumption request of remaining sum part, after to next stage non-banking account management payment, agreeing that this consumption ask and completed this and pay, successful message occurs to the consumption of consumption request input end in many account managements payment system, produce that Sorry, your ticket has not enough value as equally as non-banking account management payment system at the corresponding levels, enter next step after the remaining sum of non-banking account management payment system payment at the corresponding levels account;
(5), (4) many account managements payment system sends the consumption request to different non-banking account management payment systems successively according to step, after all rank non-banking account management payment systems complete this consumption of whole agreements and asks and complete this and pay, successful message occurs to the consumption of consumption request input end in many account managements payment system, after all non-banking account management payment system absolute payments, same produce that Sorry, your ticket has not enough value, enter next step after the remaining sum of all non-banking account management payment systems payments account;
(6), many account managements payment system sends the consumption request of whole non-banking account management payment system payment of balance rear section to bank account managing payment system, after bank account managing payment system agrees that this consumption ask and completed this and pay, successful message occurs to the consumption of consumption request input end in many account managements payment system, this message is put down in writing the description information of this non-banking account management payment system and bank account managing payment system, the consumption amount of money, the information such as consumption time and consumption request input end, enter next step, produce that Sorry, your ticket has not enough value or pay unsuccessfully as equally as bank account managing payment system, many account managements payment system has been paid each successful rank non-banking account management payment system to this consumption request and has just been initiated punching, failure message occurs to the consumption of consumption request input end in many account managements payment system,
(7), by the reconciliation time node designed, the reconciliation respectively of many account managements payment system and each non-banking account management payment system, determine the end-state of single consumer sale, generate non-banking account reconciliation mistake detail, and according to the mistake detail, carry out the adjustment of account mistake in non-banking account management payment system;
, many account managements payment system is according to the reconciliation result, to non-banking account management payment system, bank account managing payment system, settle accounts respectively.
The invention has the beneficial effects as follows:
1, by the mode of using bank account to conclude the business, the preferential interior consumable remaining sum of all non-banking accounts of using of convenient, while, solve non-banking account use scenes, scope and consume the limited problem of amount.
2, adopt that transaction processing is separated mutually with payment processes, the universal payment interface is as the system of both exchange methods, reduces the complexity of transaction processing, during newly-increased non-banking account system, do not need to change transaction processing, improves system robustness.
3, the access to your account mode of access supports reward voucher to give a discount, compared with directly giving a discount when the transaction processing, and reduction transaction processing complexity.
4, merchant tenninal does not need newly added equipment or does too much change, reduces lower deployment cost;
5, the unified trade company's clearance of doing, separate reconciliation with current a plurality of systems and independently clear and compare, and trade company processes simpler.
The present invention is described in detail below in conjunction with accompanying drawing.
Accompanying drawing 1 is non-banking bill payment schematic flow sheet in present technology.
Accompanying drawing 2 is that bank account of the present invention is to non-banking account management and method of payment schematic flow sheet.
Accompanying drawing 3 forms schematic diagram for system hardware of the present invention.
Accompanying drawing 4 is system architecture diagram for the present invention.
Accompanying drawing 5 is protocol processes subsystem processes process flow diagram of the present invention.
Accompanying drawing 6 is the processing flow chart of payment processes subsystem of the present invention.
Accompanying drawing 7 is cleared processing subsystem reconciliation processing flow chart for the present invention.
Embodiment
Referring to accompanying drawing, based on bank account to non-banking account management and method of payment, the method asks input end to be realized based on many account managements payment system, bank account managing payment system, non-banking account management payment system and consumption, and the method realizes according to the following steps:
(1), non-banking account management payment system and many account managements payment system of a plurality of different consumption or integrated form are set up communication contact:
, many account managements of non-banking account management payment system mandate payment system used the account of this system management,
Authorization method is: the owner with non-banking account logins non-banking account management payment system, to specifying the non-banking account, input the bank account of my empowerment management, agree that many account managements payment system used this non-banking account by bank account, after many account managements payment system receives the above-mentioned request of non-banking account management payment system, set up authorized agreement, and preserve this authorized agreement, many account managements payment system arranges the service regeulations of non-banking account according to this agreement:
(3), when consumption request input end is initiated the consumption request by bank account to many account managements payment system, at first many account managements payment system searches the non-banking account whether this bank account has empowerment management, lookup result has, the priority orders that many account managements payment system is set by agreement, to first order non-banking account management payment system, send the consumption request, after first order non-banking account management payment system agrees that this consumption ask and completed this and pay, successful message occurs to the consumption of consumption request input end in many account managements payment system, this message is put down in writing this non-banking account management payment system description information, the consumption amount of money, the information such as consumption time and consumption request input end, when as not enough as this time consumption request first order non-banking account balance, after the remaining sum of first order non-banking account management payment system payment account, enter next step,
(4), many account managements payment system is for first order non-banking account balance insufficient section, to next stage non-banking account management payment system, send the consumption request of remaining sum part, after to next stage non-banking account management payment, agreeing that this consumption ask and completed this and pay, successful message occurs to the consumption of consumption request input end in many account managements payment system, produce that Sorry, your ticket has not enough value as equally as non-banking account management payment system at the corresponding levels, enter next step after the remaining sum of non-banking account management payment system payment at the corresponding levels account;
(5), (4) many account managements payment system sends the consumption request to different non-banking account management payment systems successively according to step, after all rank non-banking account management payment systems complete this consumption of whole agreements and asks and complete this and pay, successful message occurs to the consumption of consumption request input end in many account managements payment system, after all non-banking account management payment system absolute payments, same produce that Sorry, your ticket has not enough value, enter next step after the remaining sum of all non-banking account management payment systems payments account;
(6), many account managements payment system sends the consumption request of whole non-banking account management payment system payment of balance rear section to bank account managing payment system, after bank account managing payment system agrees that this consumption ask and completed this and pay, successful message occurs to the consumption of consumption request input end in many account managements payment system, this message is put down in writing the description information of this non-banking account management payment system and bank account managing payment system, the consumption amount of money, the information such as consumption time and consumption request input end, enter next step, produce that Sorry, your ticket has not enough value or pay unsuccessfully as equally as bank account managing payment system, many account managements payment system has been paid each successful rank non-banking account management payment system to this consumption request and has just been initiated punching, failure message occurs to the consumption of consumption request input end in many account managements payment system,
(7), by the reconciliation time node designed, the reconciliation respectively of many account managements payment system and each non-banking account management payment system, determine the end-state of single consumer sale, generate non-banking account reconciliation mistake detail, and according to the mistake detail, carry out the adjustment of account mistake in non-banking account management payment system;
, many account managements payment system is according to the reconciliation result, to non-banking account management payment system, bank account managing payment system, settle accounts respectively.
In the embodiment of the present invention, consumption request input end is the POS terminal.
The step of the embodiment of the present invention (8) in, non-banking account management payment system foundation and many account managements payment system reconciliation result, to many account managements payment system payment settlement fund, after many account managements payment system is received non-banking account management payment system settlement fund, settle accounts according to the agreement of signing between many account managements payment system and non-banking account management payment system, bank account managing payment system.
The step of the embodiment of the present invention (3) in, the priority orders that described many account managements payment system is set by agreement is press the effective time of non-banking account sequentially.Avoid due to the expired loss brought of non-banking account.
Referring to accompanying drawing 3, the hardware of the system that the embodiment of the present invention relates to formation comprises: application server, database server and management server be totally three station servers, and a coding machine and a set of disk array memory device.Wherein, the two-node cluster hot backup each other of application server and database server, and shared disk array stores.Database Systems are deployed on database server, and transaction processing subsystem, clearance processing subsystem, payment interface subsystem, protocol processes subsystem are deployed on application server, and ADMINISTRATION SUBSYSTEM is deployed on management server.
Referring to accompanying drawing 4, in the embodiment of the present invention, many account managements payment system comprises: Database Systems, transaction processing subsystem, clearance processing subsystem, ADMINISTRATION SUBSYSTEM, payment interface subsystem.The POS terminal is carried out message interaction by net control device and transaction processing subsystem, and the payment interface subsystem is by the financial Intranet private line access CUPS of Unionpay.The payment interface subsystem is by private line access non-banking account management payment system, as bank card integrating system, operator's integrating system, reward voucher account system etc.
Referring to accompanying drawing 5, in the embodiment of the present invention, the treatment step of protocol processes subsystem is as follows:
1, the holder logins the own terminal of non-banking account management payment system, for example mobile phone application, portal website, indoor billboard, outdoor billboard, after authentication by non-banking account management payment system, input holder's account No. (or card number), the non-banking account of authorizing this management of bank account and use holder.
2, this non-banking account management payment system forms the subscription request message, and the message of transmission band signature is the account management payment system at the most.Wherein signature field is the key by non-banking account management payment system and many account managements payment system agreement, and for example bank card number, non-banking card account ID, the time of contracting carry out MD5 or SHA-1 computing and obtains to the message key.
3, many account managements payment system receives the subscription request message of non-banking account management payment system, preserves the authorized agreement storehouse table of message to database.
4, many account managements payment system checks whether the subscription request message format is correct, whether sign correct.If incorrect, the treatment state of putting this agreement of database is unsuccessfully, and the signing failed receipt message of group, send to non-banking account management payment system, and non-banking account management payment system is showed and contracted unsuccessfully to the holder, process ends.
5, protocol testing passes through, and the treatment state of putting this agreement of database is successfully, and the signing success receipt message of group, send to non-banking account management payment system, and non-banking account management payment system is showed and contracted successfully to the holder, process ends.
Referring to accompanying drawing 6, the treatment scheme schematic diagram of payment processes subsystem, treatment step is as follows:
1, the holder swipes the card by the POS terminal, the input bank card password.POS terminal assembling POS message is sent to net control device, and message content comprises the bank card password after bank card number, the consumption amount of money, encryption at least.
2, net control device forwards the listening port of POS message to the payment processes subsystem.
3, after payment processes subsystem monitors program listens to the connection request of network control, connect, receive transaction message, at first preserve transaction message to database.
4, the payment processes subsystem checks whether message format is correct, whether security code is correct, message has or not and is tampered, and checks whether transaction request meets business rule.If message audit or service observation are not passed through, payment processing system is set to failure to the stateful transaction of this transaction in database so, organizes failed receipt message, send to net control device, net control device retransmission failure receipt message is to the POS terminal, and the POS terminal shows Fail Transaction information, process ends.
5, according to card number, search the non-banking account aggregation of authorizing this card to use from the authorized agreement storehouse table of database, according to the non-banking account aggregation that trade company number can be used from searching this trade company business rule, the common factor of above-mentioned two non-banking account aggregations is the non-banking account aggregation that this transaction can be used.
If 6 these transaction also have the non-banking account to use, by the account priority orders, to corresponding non-banking account management payment system, send expired consumption message by the payment interface subsystem so.Otherwise, jump to step 9.
7, receive the consumption receipt message of non-banking account management payment system, in the tran list of database, search former transaction by the trade company in message number, terminal number, batch number, system keeps track number.
8, the result of judgement non-banking account management payment system consumption receipt message.If the non-banking account has enough been paid this transaction, revise so the treatment state of this transaction in tran list for to process successfully, form merit receipt message, in the remarks territory of message, fill in the payment detail of non-banking account.Send the success receipt message to net control device, net control device E-Packets receipt to the POS terminal.The POS terminal is printed the consumption result on POS shopping receipt, wherein the receipt remarks column is printed the payment detail of non-banking account, process ends.Otherwise the deficient payment of non-banking account management is enough paid, repeating step 6.
9, use the residue amount of money to be paid to bank account managing payment system, to continue to send the consumption message by the payment interface subsystem, message comprises in POS terminal message the bank card password after encrypting.
10, receive the consumption receipt message of bank card managing payment system, in the tran list of database, search former transaction by the trade company in message number, terminal number, batch number, system keeps track number.
11, the result of judgement bank account managing payment system consumption receipt message.If bank card is withholdd successfully, revise so the treatment state of this transaction in tran list for to process successfully, form merit receipt message, in the remarks territory of message, fill in the payment detail of non-banking account.Send the success receipt message to net control device, net control device E-Packets receipt to the POS terminal.The POS terminal is printed the consumption result on POS shopping receipt, wherein the receipt remarks column is printed the payment detail of non-banking account, process ends.
12 otherwise, bank card is withholdd unsuccessfully, the non-banking bill payment detail of using according to the 6th step, by the payment interface subsystem, send consumption to corresponding non-banking account management payment system and cancel message, non-banking account management payment system is returned the holder to the money of having detained after receiving the request cancelled.After the EM end of message is cancelled in transmission, send the failed receipt message of consumption to net control device, net control device E-Packets receipt to the POS terminal, and the POS terminal shows Fail Transaction information, process ends.
As specific embodiment, suppose that this transaction overall consumption is 200 yuan, can use certain operator's integration and certain bank card integration.So, to certain operator's integrating system transmission amount of money, be at first the expired consumption order of 200 yuan, operator's integrating system returns to real button 50, and remaining the amount of money to be paid is 150.Then, to certain bank card integrating system transmission amount of money, be the expired consumption order of 150 yuan, the bank card integrating system returns to real button 100, and remaining the amount of money to be paid is 50.Finally, to the bank card paying system transmission amount of money, be 50 consumption order, complete the payment of last 50 yuan.
Referring to accompanying drawing 7, are reconciliation schematic flow sheets of clearance processing subsystem.
A consumer sale may relate to many payment details, and wherein one may be that the bank account payment is detailed, and other are non-banking card account and pay detail.The key step of reconciliation is as follows:
1, resolve the reconciliation file of non-banking account management payment system and the reconciliation file of bank account system, the transaction details in the reconciliation file is all inserted to the reconciliation detail list.
2, compare bank card payment account detail and reconciliation detail, determine the end-state of bank card business dealing.Scanning reconciliation detail list, search this transaction according to trade company number, terminal number, batch number, system keeps track number in tran list.If can find and element of transaction such as card number, the amount of money consistent, the reconciliation state that this transaction is set is " reconciliation success "; If can find but element of transaction such as card number, the amount of money are inconsistent, the reconciliation state that this transaction is set is " reconciliation failure ".
3, get the detailed contrast of non-banking card payment account detail corresponding to transaction and reconciliation.Scanning payment detail list, the non-banking card payment account detail of getting transaction " reconciliation is successful ", search in the reconciliation detail according to the detailed numbering of payment.If can find and key element such as account, the amount of money consistent, the reconciliation state that this payment detail is set is " reconciliation success "; If can find but element of transaction such as card number, the amount of money are inconsistent, the reconciliation state that this transaction of payment detail list is set is " reconciliation failure ".
4, use the bank card of every transaction to pay the final reconciliation result that detailed reconciliation result is defined as this transaction.
If the reconciliation result of the payment detail that 5 transaction the first strokes are later and the final reconciliation result of transaction are inconsistent, the detailed reconciliation error list that inserts of this payment.
6, after the execution reconciliation completes, add up receivable bank card channel of disbursement settlement fund, receivable non-banking card channel of disbursement settlement fund, receivable merchant transaction service charge, deal with trade company's settlement fund according to the reconciliation result.
The payment interface subsystem is done the message conversion between universal account payment interface and bank account system interface and non-banking account system interface.The universal account payment interface comprises the inquiry into balance message interface, supplements message interface with money, consumes message interface, consumes and cancel message interface.The function of clearance subsystem is to carry out and the reconciliation of bank account managing payment system, the reconciliation of non-banking account management payment system, transaction funds calculating, account formality charge calculating, trade company's service charge calculating, mistake transaction processing etc.
The function of ADMINISTRATION SUBSYSTEM is merchant tenninal management, terminal key management, account formality charge tariff management, trade company's service charge tariff management, the configuration of non-banking account system routing parameter, the management of non-banking account system priority, other Business Rule Management.