CN109583873A - Transaction communications method, server, POS machine and electronic equipment - Google Patents

Transaction communications method, server, POS machine and electronic equipment Download PDF

Info

Publication number
CN109583873A
CN109583873A CN201710897733.3A CN201710897733A CN109583873A CN 109583873 A CN109583873 A CN 109583873A CN 201710897733 A CN201710897733 A CN 201710897733A CN 109583873 A CN109583873 A CN 109583873A
Authority
CN
China
Prior art keywords
transaction
positive
request
pos machine
punching
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.)
Granted
Application number
CN201710897733.3A
Other languages
Chinese (zh)
Other versions
CN109583873B (en
Inventor
罗宇平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201710897733.3A priority Critical patent/CN109583873B/en
Publication of CN109583873A publication Critical patent/CN109583873A/en
Application granted granted Critical
Publication of CN109583873B publication Critical patent/CN109583873B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/20Point-of-sale [POS] network systems

Abstract

The disclosure provides a kind of transaction communications method, server, POS machine and electronic equipment, belongs to Internet technical field.Wherein transaction communications method includes: to receive the transaction request from POS machine, and the transaction request is sent to request processing side, wherein the transaction request triggers for the credit card transaction in response to the POS machine;Receive and cache the response message that the request processing side returns;The state of the credit card transaction is updated according to the response message.The disclosure passes through the response message that returns in server side cache request processing side, (i.e. transaction backstage) is updated for the state of transaction is no longer the result that reports according to POS machine so that server, but it is subject to the state of server buffer, it being capable of real-time update, businessman can also learn the state of transaction in time in this way, because order extremely caused by the rate of complaints be greatly reduced.

Description

Transaction communications method, server, POS machine and electronic equipment
Technical field
The present disclosure generally relates to Internet technical fields, in particular to a kind of transaction communications method, server, POS Mechanical, electrical sub- equipment and computer-readable medium.
Background technique
POS (point of sale, point-of-sale terminal) machine almost all supports brush bank card business dealing, and credit card transaction is also big A kind of essential selection paid in family's life.For the realization side of the credit card transaction in POS machine, it is necessary to obtain and abide by Unionpay Some interaction specifications of POS, but these outmoded specifications are not adjusted with the development of technology, entire credit card transaction Experience and transaction index it is poor.
Fig. 1 shows the related communication interaction flow chart for implementing existing POS machine in example, needs to be related to POS in interactive process Machine, transaction backstage and acquirer.It trades from the background as shown in Figure 1, credit card transaction is sent to by POS machine after the completion of swiping the card, transaction Backstage again will transaction ciphertext be transparent to acquirer, later again from acquirer to transaction backstage return back packet, then by trading after Platform returns back packet to POS.Illustrate to trade successfully if POS machine receives back packet, the POS machine successful result that will trade is reported to friendship Easily backstage, transaction backstage carry out state update to the result of this transaction in the database.But if POS machine does not receive back Packet will cause punching just, i.e., POS machine sends the positive request of punching to transaction backstage, and the positive request of punching is equally passed through ciphertext by transaction backstage The mode of transparent transmission is sent to acquirer, and acquirer receives the positive request of punching and the packet (rush and just returning packet) that returns for just responding punching returns Transaction backstage is passed to, punching is just being returned packet again and returning to POS machine by transaction backstage.POS machine receive punching just return packet after, by rush it is just successful As a result it is reported to transaction backstage, transaction backstage rushes positive result to this in the database and carries out state update.
Above-mentioned transaction and punching just during, since the credit card transaction of POS machine is to be subject to this one end of POS machine, transaction Transparent transmission role is served as on backstage, and transaction for the result of transaction and rushes positive result and ignorant, the order shape of database from the background State be also to rely on the result that POS machine reports complete update, once therefore any one process there is network communication It is abnormal, interactive message loss will be easy to cause.As shown in fig. 1, when POS machine does not receive when returning packet of transaction request, POS Machine will initiate to rush positive request, this will lead to transaction to rush positive rate higher.In addition, either transaction request still rushes positive request, The order status of transaction background data base updates merely reporting dependent on POS machine.Report when POS machine result (transaction or To rush just) be not sent to transaction backstage when, it is inconsistent to will lead to stateful transaction;When transaction request does not issue successfully, meeting The money of customer is caused to be buckled, but since the order status on transaction backstage is not updated, businessman can not but learn in real time The state of transaction, to a large amount of customer complaint work order occur.
Therefore, there is also the places that has much room for improvement for technical solution in the prior art.
Above- mentioned information are only used for reinforcing the understanding to the background of the disclosure, therefore it disclosed in the background technology part It may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The disclosure provides a kind of transaction communications method, server, POS machine, electronic equipment and computer-readable medium, solves Above-mentioned technical problem.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
According to the one side of the disclosure, a kind of transaction communications method is provided, comprising:
The transaction request from POS machine is received, and the transaction request is sent to request processing side, wherein the transaction Request triggers for the credit card transaction in response to the POS machine;Receive and cache the response message that the request processing side returns; The state of the credit card transaction is updated according to the response message.
In one embodiment of the present disclosure, the response message is to characterize the transaction response data of transaction results, described Transaction communications method further include:
The transaction response data is sent to the POS machine;If the POS machine does not receive the transaction number of responses According to, then trigger Transaction Inquiries request;The server is requested in response to the Transaction Inquiries, by the transaction number of responses of caching According to being sent to the POS machine.
In one embodiment of the present disclosure, further includes:
If the server does not receive the positive request of punching, the POS machine repeats to issue the punching within a preset period of time Positive request, until the server receives the punching just request, wherein the positive request of the punching is to request when the Transaction Inquiries When the POS machine does not receive the transaction response data yet after query strategy failure, is triggered and issued by the POS machine.
In one embodiment of the present disclosure, the response message is the positive response data of rushing that characterization rushes positive result, described Transaction communications method further include:
If the server receives the positive request of the punching, but the POS machine do not receive it is described rush positive response data, then The server rushes positive inquiry request in response to the POS machine, and the positive response data of the punching of caching is sent to the POS Machine.
In one embodiment of the present disclosure, the response message is the positive response data of rushing that characterization rushes positive result, described Transaction communications method further include:
If the server receives the positive request of the punching, but the POS machine do not receive it is described rush positive response data, then The server waits the positive request of punching next time, and rushes positive request next time for the positive number of responses of the punching of caching in response to described According to being sent to the POS machine.
In one embodiment of the present disclosure, further includes:
The transaction response data and the ciphertext for rushing positive response data of caching are parsed, and according to parsing after Transaction results and rush the state that positive result updates the credit card transaction.
According to another aspect of the present disclosure, a kind of server is also provided, comprising:
Communication module is configured to receive the transaction request from POS machine and the transaction request is sent at request Reason side, wherein the transaction request triggers for the credit card transaction in response to the POS machine;
Cache module is configured to receive and cache the response message that the request processing side returns;
Update module is configured to update database positioning according to the response message.
In one embodiment of the present disclosure, the response message is to characterize the transaction response data of transaction results, described Communication module includes:
Transaction response data sending module, is configured to the transaction response data being sent to the POS machine;
Transaction inquiry module is configured to not receive the transaction response data when the POS machine and trigger Transaction Inquiries and ask When asking, is requested in response to the Transaction Inquiries, the transaction response data of caching is sent to the POS machine.
In one embodiment of the present disclosure, the communication module further include:
Positive request receiving module is rushed, is configured to when the server does not receive punching just request, the POS machine is when default Between repeat in section to issue the positive request of the punching, until the server receives the positive request of the punching, wherein the positive request of the punching is When the POS machine does not receive the transaction response data yet after the query strategy failure of Transaction Inquiries request, by described POS machine is triggered and is issued.
In one embodiment of the present disclosure, the response message is the positive response data of rushing that characterization rushes positive result, described Communication module further include:
Positive enquiry module is rushed, is configured to receive the positive request of the punching when the server, but the POS machine does not receive institute It states when rushing positive response data, rushes positive inquiry request in response to the POS machine, the positive response data of the punching of caching is sent to institute State POS machine.
In one embodiment of the present disclosure, the response message is the positive response data of rushing that characterization rushes positive result, described Communication module further include:
Positive module is rushed in waiting, is configured to receive the positive request of the punching when the server, but the POS machine does not receive institute It states when rushing positive response data, waits the positive request of punching next time, and in response to the positive request of punching next time by the punching of caching Positive response data is sent to the POS machine.
In one embodiment of the present disclosure, further includes:
Parsing module is configured to the transaction response data in the cache module and described rushes positive response data Ciphertext is parsed, and by after parsing transaction results and it is described rush positive result and be sent to the update module carry out database shape State updates.
According to another aspect of the present disclosure, a kind of transaction communications method is also provided, comprising:
It is triggered in response to credit card transaction and issues transaction request;The response that the request processing side returns is inquired to server Information, wherein the server buffer has the response message.
In one embodiment of the present disclosure, the response message is to characterize the transaction response data of transaction results, described Transaction communications method further include:
If the POS machine does not receive the transaction response data and trigger Transaction Inquiries request, and the transaction is looked into It askes request and is sent to the server;The POS machine receives the server and requests in response to the Transaction Inquiries and return The transaction response data.
In one embodiment of the present disclosure, further includes:
After the query strategy failure of Transaction Inquiries request, the POS machine does not receive the transaction response data yet When, the positive request of POS machine triggering punching.
In one embodiment of the present disclosure, further includes:
If the POS machine does not issue the positive request of the punching successfully, the POS machine repeats to send out within a preset period of time The positive request of the punching out, until the positive request of the punching issues successfully.
In one embodiment of the present disclosure, the response message is the positive response data of rushing that characterization rushes positive result, described Transaction communications method further include:
If the POS machine has successfully issued the positive request of the punching, but do not receive it is described rush positive response data, then institute It states POS machine and triggers and issue and rush positive inquiry request;The POS machine receive the server rush positive inquiry request in response to described and The positive response data of the punching returned.
In one embodiment of the present disclosure, the response message is the positive response data of rushing that characterization rushes positive result, described Transaction communications method further include:
If the POS machine has successfully issued the positive request of the punching, but do not receive it is described rush positive response data, then institute It states POS machine and receives the positive request of the server waiting punching next time, and in response to the punching next time just request rushing caching Positive response data.
In one embodiment of the present disclosure, the POS machine sends the Transaction Inquiries using the query strategy of poll and asks It sums and described rushes positive inquiry request.
According to another aspect of the present disclosure, a kind of POS machine is also provided, comprising:
Transaction request module is configured to trigger in response to credit card transaction and issue transaction request;
Response data enquiry module is configured to inquire the response message that the request processing side returns to server, wherein The server buffer has the response message.
In one embodiment of the present disclosure, the response message is to characterize the transaction response data of transaction results, described POS machine further include:
Transaction inquiry module does not receive the transaction response data and triggers Transaction Inquiries if being configured to the POS machine Request, and Transaction Inquiries request is sent to the server;
It trades response data receiving module, is configured to receive the server and requests and return in response to the Transaction Inquiries The transaction response data.
In one embodiment of the present disclosure, further includes:
Positive request trigger module is rushed, is configured to after the query strategy failure that the Transaction Inquiries are requested, the POS machine is still When not receiving the transaction response data, the positive request of triggering punching.
In one embodiment of the present disclosure, further includes:
Positive request sending module is rushed, is configured to when the POS machine does not issue the punching just request successfully, when default Between repeat in section to issue the positive request of the punching, until the positive request of the punching issues successfully.
In one embodiment of the present disclosure, the response message is the positive response data of rushing that characterization rushes positive result, described POS machine further include:
Positive enquiry module is rushed, is configured to successfully issue the positive request of the punching when the POS machine, but does not receive described When rushing positive response data, triggers and issue and rush positive inquiry request;
Positive response data receiving module is rushed, is configured to receive the server and rushes positive inquiry request in response to described and return Rush positive response data.
In one embodiment of the present disclosure, the response message is the positive response data of rushing that characterization rushes positive result, described POS machine further include:
It rushes positive response data and waits module, be configured to successfully issue the positive request of the punching when the POS machine, but not It receives described when rushing positive response data, waits and receive the server in response to rushing the positive punching requested and returned next time Positive response data.
Transaction communications method, server, the POS machine, electronic equipment and computer-readable provided according to the embodiment of the present disclosure Medium, by the response data returned in server side cache request processing side, so that server (i.e. transaction backstage) is for handing over Easy state is no longer the result that reports according to POS machine to update, but is subject to the state of server buffer, can in real time more Newly, such businessman can also learn the state of transaction in time, because order extremely caused by the rate of complaints be greatly reduced.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
Its example embodiment is described in detail by referring to accompanying drawing, above and other target, feature and the advantage of the disclosure will It becomes more fully apparent.
Fig. 1 shows the related communication interaction flow chart for implementing existing POS machine in example.
Fig. 2 shows a kind of flow charts of the transaction communications method provided in one embodiment of the disclosure.
Fig. 3 shows the flow chart in one embodiment of the disclosure after step S203.
Fig. 4 shows the step flow chart in the case where rushing positive request in one embodiment of the disclosure without issuing.
Fig. 5 shows the step for rushing in one embodiment of the disclosure and just requesting successfully to issue but not receiving in the case that packet is just returned in punching Rapid flow chart.
Fig. 6 shows the method in one embodiment of the disclosure in the interaction schematic diagram of entire transaction flow.
Fig. 7 shows a kind of schematic diagram of the server provided in another embodiment of the disclosure.
Fig. 8 shows the schematic diagram of the communication module in another embodiment of the disclosure.
Fig. 9 shows the schematic diagram of another server provided in another embodiment of the disclosure.
Figure 10 shows the flow chart of another transaction communications method provided in one embodiment of the disclosure.
Figure 11 shows in one embodiment of the disclosure flow chart after step S101.
Figure 12 shows the step flow chart that the positive stage is rushed in one embodiment of the disclosure.
Figure 13 shows a kind of schematic diagram of the POS machine provided in another embodiment of the disclosure.
Figure 14 shows the schematic diagram of a kind of electronic equipment provided in another embodiment of the disclosure.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Attached drawing is only the disclosure Schematic illustrations, be not necessarily drawn to scale.Identical appended drawing reference indicates same or similar part in figure, thus Repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In mode.In the following description, many details are provided to provide and fully understand to embodiment of the present disclosure.So And it will be appreciated by persons skilled in the art that one in the specific detail can be omitted with technical solution of the disclosure Or more, or can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes Known features, method, apparatus, realization, material or operation are to avoid a presumptuous guest usurps the role of the host and all aspects of this disclosure is made to become mould Paste.
Some block diagrams shown in the drawings are functional entitys, not necessarily must be with physically or logically independent entity phase It is corresponding.These functional entitys can be realized using software form, or in one or more hardware modules or integrated circuit in fact These existing functional entitys, or these functions reality is realized in heterogeneous networks and/or processor device and/or microcontroller device Body.
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference Attached drawing, the present invention is described in more detail.
Acquirer in Fig. 1 refers in bank's card payment transactions as business processing side, is engaged in the developing of franchised business Movable with management, authorization requests, billing settlement etc., interests are mainly derived from other service charges of trade company's return commission, trade company's payment (such as POS machine rent, monthly fee) and merchant deposit increase, and can be realized the request processing side for receiving single business in addition to most of hairs Block bank (i.e. receipts uniline), there are also non-banking professional services organizations.
Transaction backstage functions only as transparent transmission role in transaction flow shown in FIG. 1, the result of transaction and rushes positive result all It is to rely on POS machine to report, and update database positioning.In addition, always by the core in transaction in entire transaction flow, i.e., Order status is stored in POS machine side, but since POS machine is to be chronically exposed in public network, and the safety of public network is poor, It is highly susceptible to criminal's attack, so that criminal has an opportunity to distort the order status that POS machine records, is traded Safety it is poor.
Fig. 2 shows a kind of flow chart of the transaction communications method provided in one embodiment of the disclosure, this method is for trading Server in system, that is, transaction backstage.Method includes the following steps:
As shown in Fig. 2, in step s 201, receiving the transaction request from POS machine, wherein the transaction in the present embodiment is asked It asks as the credit card transaction in response to POS machine and triggers.
As shown in Fig. 2, transaction request is sent to request processing side in step S202.
As shown in Fig. 2, receiving the response message that simultaneously cache request processing side returns in step S203.
As shown in Fig. 2, in step S204, the state of information update credit card transaction according to response.
It should be noted that in request stage, (namely POS machine issues request and clothes to server in the present embodiment Business device sends the requests to the stage of request processing side), server can still act as transparent transmission role, but response phase (also It is that request processing direction server issues response message and response message is sent to the stage of POS machine by server), server The role of transparent transmission response message is no longer acted only as, but the Response information cache received is got off, " request " here refers to Transaction request and the positive request of punching, " response message " refer to transaction response data and rush positive response data.Go out in the following embodiments Existing transaction return packet be exactly characterization transaction whether successful response data, punching just return packet is exactly characterization rush just whether successfully response Data.
Process is it is found that POS machine initially enters transactional stage after carrying out credit card transaction triggering, if transaction according to Fig. 1 Stage POS machine does not receive packet of trading back and then triggers into next stage, that is, rushes the positive stage.Therefore, in transactional stage, above-mentioned step The rapid received response message of S203 is packet of trading back, and the Bao Shi that trades back represents whether request processing policy successfully hands over transaction request Easy returns packet.
In the present embodiment, Fig. 3 shows the flow chart after step S203, comprising the following steps:
As shown in figure 3, the packet that will trade back is sent to POS machine, if POS machine does not receive packet of trading back in step S301 Transaction Inquiries request is then triggered, then carries out step S302.Although server receives the transaction that request processing side returns and returns after packet, The packet that can will trade back is sent to POS machine, but due to the influence of communication conditions, POS machine, which there may be, can not receive packet of trading back The case where, it is therefore desirable to POS machine actively carries out Transaction Inquiries to server.
As shown in figure 3, in step s 302, server is requested in response to Transaction Inquiries, packet is returned into the transaction of caching and is sent To POS machine.It is sent to POS machine it is, will trade back to wrap by server, to inform transaction results to trade company, trade company Know whether the result of this credit card transaction succeeds.
This method is first inquired in the case where not receiving and trading back packet, and is inquired and can constantly be retried, if logical Cross inquire and retry inquiry can receive trade back packet can complete trade, do not need to rush again just, so as to reducing rush just Rate.
Based on above-mentioned steps S301, POS machine issues Transaction Inquiries to server according to certain query strategy and requests, at this In embodiment, query strategy can be poll, that is, (such as 1 minute) is inquired always in one section of preset time, until receiving Packet is returned in the transaction that server returns.But if when the query strategy of Transaction Inquiries request fails (namely within a preset time Do not receive packet of trading back by repeatedly inquiring yet) after, POS machine do not receive yet trade back packet when, then triggered by POS machine and issue punching Positive request, that is, enter and rush the positive stage.
In the present embodiment, due to the influence of communication conditions, rushing the positive stage further includes two kinds of situations: the first situation, punching Positive request does not issue;Second situation does not receive corresponding time packet although the positive request of punching successfully issues, at this point, The packet that returns for rushing the positive stage is just returning packet for punching, and punching is just returning Bao Shi and representing whether the positive request that liquidates of request processing policy successfully rushes positive time Packet.
Fig. 4 shows the step flow chart in the case where rushing positive request in the present embodiment without issuing, comprising the following steps:
As shown in figure 4, POS machine repeats to issue the positive request of punching within a preset period of time, until server in step S401 Receive the positive request of punching.
As shown in figure 4, after server receives the positive request of punching, the positive request of punching is then forwarded at request in step S402 Reason side.
As shown in figure 4, request processing policy generates corresponding rush to the positive request of this punching and is just returning packet in step S403, And it is sent to server.
As shown in figure 4, in step s 404, server is just returning the state that packet updates credit card transaction according to punching, and will rush just It returns packet and is sent to POS machine, inform so that positive result will be rushed to trade company, trade company, which is known, rushes whether positive result succeeds.
Fig. 5 shows the step process for rushing in the present embodiment and just requesting successfully to issue but not receiving in the case that packet is just returned in punching Figure, comprising the following steps:
As shown in figure 5, POS machine rushes positive inquiry request to server sending, that is, is rushed and just looked into step S501 It askes, similar to the process of Transaction Inquiries.
As shown in figure 5, server rushes positive inquiry request in response to POS machine in step S502, rushing for caching is just returned Packet is sent to POS machine, informs to rush positive result to trade company, trade company, which is known, rushes whether positive result succeeds.
It will not trade back to wrap or rush because of accidentally primary communication conditions influence POS machine reception in the present embodiment and just return packet, and It is first to carry out Transaction Inquiries and the positive inquiry of punching later confiscating, and is to inquire repeatedly, exception can be greatly lowered in this way Customer Complaint caused by order brings good experience of swiping the card for customer.
The case where packet is just being returned in punching is not received still for rushing just to request successfully to issue, and can also use following scheme:
Server waits the positive request of punching next time, and rushing for caching is just returned packet and be sent in response to rushing positive request next time POS machine.Since general POS machine can carry out rushing just automatically, so even rushing this time is just returned Bao Wei and received, needle is also had Swipe the card to this rush it is positive rush positive request and issued from POS machine, server can will equally rush the positive packet that returns and issue POS machine, It informs so that positive result will be rushed to trade company, trade company, which is known, rushes whether positive result succeeds.
It should be noted that in step S404 server will punching just returning the step of packet is sent to POS machine if it fails, its Subsequent processing just requests successfully to issue the processing scheme not received still in the case that packet is just being returned in punching referring to for rushing, herein no longer It repeats.
It should also be noted that, in the present embodiment server also to trading back packet and punching is just being returned the ciphertext of packet and parsed, And by the transaction results after parsing and rush positive result and cache, in this way, the result entirely traded not existing scheme one for another example Sample relies on POS machine and reports, but is subject to the result of server oneself backstage caching.Result with existing scheme transaction is with public affairs It is compared subject to the result that POS machine in net reports, the method in the present embodiment can prevent transaction results from being distorted by people's malice, from And improve the safety of transaction.
Fig. 6 shows the method in the present embodiment in the interaction schematic diagram of entire transaction flow.
As shown in fig. 6, POS machine triggers credit card transaction in transactional stage, transaction request is sent to server (in Fig. 6 Indicated with transaction backstage), transaction request is sent to request processing side, request by transaction backstage in a manner of ciphertext transparent transmission of trading again Processing side, which will trade back to wrap again, is sent to transaction backstage, and transaction backstage caches packet of trading back, and according to the transaction in packet of trading back As a result database positioning is updated.Transaction backstage, which will also trade back to wrap, is sent to POS machine, if POS machine does not receive the Bao Ze that trades back Into inquiry phase, Transaction Inquiries are carried out.
POS machine to transaction backstage issue inquiry request, and query strategy failure before using poll by the way of one periodically Interior to retry repeatedly, transaction backstage, which will trade back to wrap, is sent to POS machine.
If arriving query strategy, POS machine still do not receive packet of trade back, then is causing and rushing just, into rushing the positive stage.If handed over Easily backstage does not receive the positive request of punching, then POS machine retries always transmission, rushes positive request until issuing.If transaction backstage has been received To the positive request of punching, but POS machine does not receive corresponding punching and is just returning packet, then enters inquiry phase, inquired, be similar to transaction Rushing for caching is just returned packet and is sent to POS machine by inquiry, transaction backstage;Or transaction backstage waits the positive request of punching next time, and rings Ying Yu rushes positive request next time and just returns packet and be sent to POS machine rushing for caching.
In conclusion transaction communications method provided in this embodiment is by returning in server side cache request processing side Packet is returned, (i.e. transaction backstage) is updated for the state of transaction is no longer the result that reports according to POS machine so that server, but Be subject to the state of server buffer, can real-time update, such businessman can also learn the state of transaction in time, because of order exception Caused the rate of complaints is greatly reduced.By being improved to interactive process, reduces rush positive rate as far as possible, but inquiring repeatedly The case where all having no resolution undershoot just also improves as far as possible and rushes positive success rate.
Fig. 7 shows a kind of schematic diagram of the server provided in another embodiment of the disclosure, which is exactly transaction system Entire process of exchange is completed with POS machine and request processing side in transaction backstage in system jointly.As shown in fig. 7, server 700 Including communication module 710, cache module 720 and update module 730.
Wherein communication module 710 is configured to receive the transaction request from POS machine and transaction request is sent to request Processing side, wherein transaction request triggers for the credit card transaction in response to POS machine.In simple terms, communication module 710 is exactly to complete Communication between server and POS machine and request processing side 730.Cache module 720 is configured to receive and cache request is handled The response message just returned, in place of this is also the main distinction of the server and existing scheme in the present embodiment, i.e., server is not Transparent transmission role is functioned only as, but is cached during returning and trading back and wrap or rush and just returning packet.Update module 730 configures For the transaction results according to the state of response message update credit card transaction, therefore in the present embodiment or rush just the result is that with server Subject to the updated state of middle update module 730.
In the present embodiment, communication module has both sides effect, first is that interacting with POS machine, that is, receives POS machine The transaction request of transmission and the positive request of punching, and trade back to wrap and rush to POS machine return and just returning packet;Second is that with request processing side into Row interaction sends transaction request and the positive request of punching to request processing side, and receive the transaction that request processing side returns and return packet Packet is just being returned with punching.
Fig. 8 shows the schematic diagram of the communication module in another embodiment of the disclosure.In the present embodiment, transactional stage service What device received that request processing side returns return packet for packet of trade back, the Bao Shi that trades back representative request to handle policy to transaction request whether Packet is returned in Successful Transaction.As shown in figure 8, communication module 710 includes: trade back packet sending module 711 and transaction inquiry module 712, packet sending module 711 of trading back, which is configured to trade back to wrap, is sent to POS machine.Transaction inquiry module 712 is configured to work as POS Machine do not receive trade back packet and trigger Transaction Inquiries request when, in response to Transaction Inquiries request, by the transaction of caching return packet send To POS machine.By the inquiry of POS machine, server, which will trade back to wrap, is sent to POS machine, to inform transaction results to trade company, Trade company knows whether the result of this credit card transaction succeeds.Query strategy can be poll, that is, in one section of preset time (such as 1 minute) is inquired always, and packet is returned in the transaction until receiving server return.
It by the way that transaction inquiry module is arranged, is first inquired in the case where not receiving and trade back and wrap, and inquiry can be with Constantly retry, if by inquiry and retry inquiry can receive trade back wrap can complete trade, do not need to rush again just, from And it can reduce and rush positive rate.
When the query strategy failure of Transaction Inquiries request (does not namely receive friendship by repeatedly inquiring within a preset time yet Easily return packet) after, POS machine does not receive yet when trade back packet, trigger by POS machine and issues punching and just requested, i.e., into rushing the positive stage.
Rushing the positive stage further includes two kinds of situations: the first situation, rushes positive request and does not issue;Second situation, punching are just asked It is successfully issued although asking, does not receive corresponding return and wrap, at this point, the packet that returns for rushing the positive stage is just returning packet for punching, rushed and just return Bao Shi representative request processing policy, which liquidates, just requests whether successfully to rush positive time packet.
As shown in figure 8, communication module 710 further includes rushing positive request receiving module 713, it is configured to not receive punching when server When positive request, POS machine repeats to issue the positive request of punching within a preset period of time, until server receives the positive request of punching.It is namely logical It crosses and retries repeatedly, the positive request of punching can be received to ensure to rush positive request receiving module 713, then the positive request of punching is then forwarded to and is asked Processing side is asked, request processing policy generates corresponding rush to the positive request of this punching and just returning packet, and is sent to server.Server is again The state that packet updates credit card transaction is just being returned according to punching, and packet is just being returned into punching and is being sent to POS machine, is being informed so that positive result will be rushed to quotient Family, trade company, which is known, rushes whether positive result succeeds.
As shown in figure 8, communication module 710 further includes rushing positive enquiry module 714, it is configured to just ask when server receives punching It asks, but POS machine does not receive punching when just returning packet, rushes positive inquiry request in response to POS machine, rushing for caching is just returned packet and be sent to POS machine.
Positive enquiry module is rushed by setting, first carries out Transaction Inquiries and the positive inquiry of punching later confiscating, and be repeatedly Inquiry, can be greatly lowered Customer Complaint caused by abnormal order in this way, bring good experience of swiping the card for customer.
As shown in figure 8, communication module 710 further includes waiting rushing positive module 715, it is configured to just ask when server receives punching It asks, but POS machine does not receive punching when just returning packet, waits the positive request of punching next time, and will caching in response to rushing positive request next time Rush and just return packet and be sent to POS machine.
It is entirely trading the result is that be subject to server oneself backstage caching result, with existing scheme transaction result with It is compared subject to the result that POS machine in public network reports, the present embodiment can prevent transaction results from being distorted by people's malice, to improve The safety of transaction.
In addition, in the server in modules without reference to function retouched referring to the correlation in above method embodiment It states, details are not described herein again.
Server in the present embodiment can be realized technical effect identical with the transaction communications method of above-mentioned server, this Place repeats no more.
The schematic diagram of another server is also shown in Fig. 9, in addition to include above-mentioned communication module 710, cache module 720, Update module 730 further includes parsing module 740, be configured to receive communication module 710 trade back packet and punching just returning the close of packet Text is parsed, and by the transaction results after parsing and is rushed positive result and be sent to cache module 720 and cache.
Figure 10 shows the flow chart of another transaction communications method provided in one embodiment of the disclosure, and this method is for handing over POS machine in easy system.Method includes the following steps:
As shown in Figure 10, it in step S1001, is triggered in response to credit card transaction and issues transaction request.
As shown in Figure 10, in step S1002, the response message returned to server inquiry request processing side, wherein taking Business device is cached with response message.
In request stage, (namely POS machine issues request to server and server sends the requests to request processing The stage of side), server can still act as transparent transmission role, but (namely request processing direction server issues in response phase Response message is sent to the stage of POS machine by response message and server), server no longer acts only as the angle that transparent transmission returns packet Color, but the Response information cache received is got off, " request " here refers to transaction request and the positive request of punching, " response message " Refer to trade back to wrap and rush and is just returning packet.
In transactional stage, POS is packet of trading back from the received response message of server, and the Bao Shi that trades back represents request processing Policy to transaction request, whether wrap by returning for Successful Transaction.
In the present embodiment, Figure 11 shows flow chart after step S1001, comprising the following steps:
As shown in figure 11, it in step S1101, trades back packet if POS machine does not receive and triggers Transaction Inquiries request, and Transaction Inquiries request is sent to server.Although server receives the transaction that request processing side returns and returns after packet, can will hand over It easily returns packet and is sent to POS machine, but due to the influence of communication conditions, POS machine, which there may be, can not receive the case where trading back packet, Therefore it needs POS machine actively to issue Transaction Inquiries request to server and carries out Transaction Inquiries.
As shown in figure 11, in step S1102, POS machine receives the friendship that server is requested in response to Transaction Inquiries and returned Packet is returned, easily so that trade company knows whether the result of this credit card transaction succeeds.
By step shown in Figure 11, POS machine is first inquired in the case where not receiving and trading back packet, and inquiring can Constantly to retry, if by inquiry and retry inquiry can receive trade back wrap can complete trade, do not need to rush again just, Positive rate is rushed so as to reduce.
In step S111, POS machine issues Transaction Inquiries to server according to certain query strategy and requests, in this implementation In example, query strategy can be poll, that is, (such as 1 minute) is inquired always in one section of preset time, until receiving service Packet is returned in the transaction that device returns.But if the query strategy failure when Transaction Inquiries request (namely passes through within a preset time Repeatedly inquiry do not receive packet of trade back yet) after, POS machine do not receive yet trade back wrap when, then by POS machine trigger rush just request, i.e., Into rushing the positive stage.
In the present embodiment, after the positive request of triggering punching, due to the influence of communication conditions, rushing the positive stage further includes two kinds of feelings Condition: the first situation is rushed positive request and is not issued;Second situation does not receive although the positive request of punching successfully issues Corresponding to return packet, at this point, the packet that returns for rushing the positive stage is just returning packet for punching, punching, which is just returning Bao Shi and represents request and handle policy, to liquidate positive request Positive returning whether is successfully rushed to wrap.
Figure 12 shows the step flow chart that the positive stage is rushed in the present embodiment, comprising the following steps:
As shown in figure 12, in step S1201, if POS machine does not issue the positive request of punching successfully, POS machine is default It repeats to issue the positive request of punching in period, be issued successfully until rushing positive request.Later, it after server receives the positive request of punching, will rush Positive request is then forwarded to request processing side;Request processing policy generates corresponding rush to the positive request of this punching and is just returning packet, and sends To server;Server is just returning packet according to punching and is updating database positioning, and packet is just being returned in punching and is being sent to POS machine, and POS machine is according to receipts To rush and just return packet and know and rush whether positive result succeeds.
As shown in figure 12, in step S1202, if POS machine has successfully issued the positive request of punching, but punching is not received just Packet is returned, then POS machine, which is triggered and issued, rushes positive inquiry request, that is, carries out rushing positive inquiry, similar to the process of Transaction Inquiries.? In the present embodiment, POS machine sends Transaction Inquiries request using the query strategy of poll and rushes positive inquiry request.
As shown in figure 12, in step S1203, POS machine receives server in response to rushing positive inquiry request and rushing for returning Packet is just being returned, is rushing whether positive result succeeds to know.
It will not trade back to wrap or rush because of accidentally primary communication conditions influence POS machine reception in the present embodiment and just return packet, and It is first to carry out Transaction Inquiries and the positive inquiry of punching later confiscating, and is to inquire repeatedly, exception can be greatly lowered in this way Customer Complaint caused by order brings good experience of swiping the card for customer.
The positive request of punching has successfully been issued for POS machine, but has not received the case where packet is just being returned in punching, can also have been used as follows Scheme:
POS machine receives server and waits the positive request of punching next time, and in response to rushing positive request rushing caching just next time Return packet.Since general POS machine can carry out rushing just automatically, so even rushing this time is just returned Bao Wei and received, needle is also had Swipe the card to this rush it is positive rush positive request and issued from POS machine, punching equally can just returned packet and issue POS machine, POS by server Machine, which receives to rush just to return to wrap, rushes whether positive result succeeds to know.
It should be noted that the positive request of above-mentioned steps punching is in first time without issuing successfully and issuing by repeatedly retrying Later, server will punching just returning the step of packet is sent to POS machine if it fails, its subsequent processing referring to for rush positive request at Function issues but does not receive the processing scheme in the case that packet is just returned in punching, and details are not described herein again.
POS machine receives transaction return in the present embodiment or punching is just returned before packet, and server is also wrapped to trading back and rushed just The ciphertext for returning packet is parsed, and by the transaction results after parsing and is rushed positive result and cached, in this way, the result entirely traded Existing scheme does not rely on reporting for POS machine equally for another example, but be subject to server oneself backstage caching result.With it is existing The result of scheme transaction is subject to the result that the POS machine in public network reports and is compared, and the method in the present embodiment can prevent from trading As a result it is distorted by people's malice, to improve the safety of transaction.
In conclusion transaction communications method POS machine provided in this embodiment into server query service device by caching The response message that returns of request processing side so that server (i.e. transaction backstage) is no longer according to POS for the state of transaction The result that machine reports updates, but be subject to the state of server buffer, can real-time update, such businessman also can be timely The easy state of bosom friend, because order extremely caused by the rate of complaints be greatly reduced.In transactional stage, POS machine repeats inquiry and trades back Packet, can reduce and rush positive rate.But enter in the case where inquiring and all having no resolution repeatedly and rush the positive stage, do not have in the positive request of primary punching It is also to retry in the case where sending repeatedly, improves rush positive success rate as far as possible.
Figure 13 shows a kind of schematic diagram of the POS machine provided in another embodiment of the disclosure, the POS machine and above-described embodiment In server (namely transaction backstage) and request processing side complete entire process of exchange jointly, POS machine mainly complete and Communication function between server.As shown in figure 13, POS machine 1300 includes transaction request module 1301 and time packet enquiry module 1302。
Wherein transaction request module 1301 is configured to trigger and issue transaction request in response to credit card transaction, returns packet inquiry mould Block 1302 is configured to the response message returned to server inquiry request processing side, and wherein server buffer has response message.
In the present embodiment, the response message that transactional stage POS machine receives is packet of trading back, and the Bao Shi that trades back represents request Handling policy, whether returning for Successful Transaction is wrapped to transaction request.It rushes the response message that positive stage POS machine receives and is just returning packet for punching, rush It is just returning Bao Shi and represents request processing policy and liquidating whether packet is returned in Successful Transaction for positive request.
As shown in figure 13, POS machine further includes transaction inquiry module 1303, if being configured to POS machine does not receive packet of trading back And Transaction Inquiries request is triggered, and Transaction Inquiries request is sent to server.
As shown in figure 13, POS machine further includes packet receiving module 1304 of trading back, is configured to receive server in response to transaction Inquiry request and packet is returned in the transaction that returns.By the inquiry of POS machine, POS machine receives the transaction that server returns and returns packet, so as to quotient Family knows whether the result of this credit card transaction succeeds.Query strategy can be poll, that is, in one section of preset time (such as 1 minute) it inquires always, packet is returned in the transaction until receiving server return.
In the present embodiment, in POS machine by setting transaction inquiry module, do not receive trade back wrap in the case where it is advanced Row inquiry, and inquire can constantly retry, if by inquiry and retry inquiry can receive trade back wrap can complete Transaction, does not need to rush again just, rushes positive rate so as to reduce.
As shown in figure 13, POS machine further includes rushing positive request trigger module 1305, is configured to the inquiry when Transaction Inquiries request After strategy fails, POS machine does not receive yet when trading back packet, the positive request of triggering punching.
When the query strategy failure of Transaction Inquiries request (does not namely receive friendship by repeatedly inquiring within a preset time yet Easily return packet) after, POS machine does not receive yet when trade back packet, trigger by POS machine and issues punching and just requested, i.e., into rushing the positive stage.
Rushing the positive stage further includes two kinds of situations: the first situation, rushes positive request and does not issue;Second situation, punching are just asked It is successfully issued although asking, does not receive corresponding return and wrap, at this point, the packet that returns for rushing the positive stage is just returning packet for punching, rushed and just return Bao Shi representative request processing policy, which liquidates, just requests whether successfully to rush positive time packet.
If the positive request of punching does not issue, as shown in figure 13, POS machine further includes rushing positive request sending module 1306, configuration When POS machine successfully issues punching just request, to repeat to issue punching just request within a preset period of time, sent out until rushing positive request Succeed out.Namely by retrying repeatedly, to ensure that server can receive the positive request of punching, then the positive request of punching is then forwarded to Processing side is requested, request processing policy generates corresponding rush to the positive request of this punching and just returning packet, and is sent to server.Server Packet is just being returned further according to punching and is updating database positioning, and packet is just being returned into punching and is being sent to POS machine, is being informed to rush positive result to quotient Family, trade company, which is known, rushes whether positive result succeeds.
Although not receiving corresponding time packet, as shown in figure 13, POS machine is also if the positive request of punching successfully issues When including rushing positive enquiry module 1307, being configured to successfully issue the positive request of punching when POS machine, but not receiving punching and just returning packet, It triggers and issues and rush positive inquiry request.
As shown in figure 13, POS machine further includes that packet receiving module 1308 is just being returned in punching, is configured to receive server in response to rushing just Inquiry request and packet is just returned in rushing for returning.
In the present embodiment, POS machine rushes positive enquiry module by setting, first carries out Transaction Inquiries and punching later confiscating Positive inquiry, and be to inquire repeatedly, Customer Complaint caused by abnormal order can be greatly lowered in this way, brought well for customer Experience of swiping the card.
As shown in figure 13, POS machine further includes that packet waiting module 1309 is just returned in punching, is configured to successfully issue when POS machine The positive request of punching, but when not receiving punching and just returning packet waits and receives server in response to rushing positive request next time and what is returned rush Just returning packet.
It is entirely trading the result is that be subject to server oneself backstage caching result, POS machine receive server return Trading back, perhaps punching returns packet just so that transaction is known in trade company or rushes whether positive result succeeds to packet.With existing scheme transaction As a result the result that the POS machine being subject in public network reports is compared, and the present embodiment can prevent transaction results from being distorted by people's malice, from And improve the safety of transaction.
POS machine in the present embodiment can be realized technical effect identical with the transaction communications method of above-mentioned POS machine, herein It repeats no more.
In addition, in the POS machine in modules without reference to function referring to the associated description in above method embodiment, Details are not described herein again.
On the other hand, the disclosure additionally provides a kind of electronic equipment, including processor and memory, and memory storage is used for Above-mentioned processor controls the instruction of operation below:
The transaction request from POS machine is received, and transaction request is sent to request processing side, wherein transaction request is to ring Should in POS machine credit card transaction and trigger;Receive the response message that simultaneously cache request processing side returns;Information update according to response The state of credit card transaction.
On the other hand, the disclosure additionally provides another electronic equipment, including processor and memory, and memory storage is used The instruction of operation below is controlled in above-mentioned processor:
It is triggered in response to credit card transaction and issues transaction request;The response letter returned to server inquiry request processing side Breath, wherein server buffer has response message.
Below with reference to Figure 14, it illustrates the computer systems for the electronic equipment for being suitable for being used to realize the embodiment of the present application 1400 structural schematic diagram.Electronic equipment shown in Figure 14 is only an example, should not function to the embodiment of the present application and Use scope brings any restrictions.
As shown in figure 14, computer system 1400 include central processing unit (CPU) 1401, can according to be stored in only It reads the program in memory (ROM) 1402 or is loaded into random access storage device (RAM) 1403 from storage section 1407 Program and execute various movements appropriate and processing.In RAM 1403, also it is stored with system 1400 and operates required various journeys Sequence and data.CPU 1401, ROM 1402 and RAM 1403 are connected with each other by bus 1404.Input/output (I/O) interface 1405 are also connected to bus 1404.
I/O interface 1405 is connected to lower component: the importation 1406 including keyboard, mouse etc.;Including such as cathode The output par, c 1407 of ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section including hard disk etc. 1408;And the communications portion 1409 of the network interface card including LAN card, modem etc..Communications portion 1409 passes through Communication process is executed by the network of such as internet.Driver 1410 is also connected to I/O interface 1405 as needed.It is detachable to be situated between Matter 1411, such as disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 1410, so as to In being mounted into storage section 1408 as needed from the computer program read thereon.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 1409, and/or from detachable media 1411 are mounted.When the computer program is executed by central processing unit (CPU) 1401, executes in the system of the application and limit Above-mentioned function.
It should be noted that computer-readable medium shown in the application can be computer-readable signal media or meter Calculation machine readable medium either the two any combination.Computer-readable medium for example may be-but not limited to- Electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.It is computer-readable The more specific example of medium can include but is not limited to: have electrical connection, the portable computer magnetic of one or more conducting wires Disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or sudden strain of a muscle Deposit), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned appoint The suitable combination of meaning.In this application, computer-readable medium can be any tangible medium for including or store program, the journey Sequence can be commanded execution system, device or device use or in connection.And in this application, it is computer-readable Signal media may include in a base band or as carrier wave a part propagate data-signal, wherein carrying computer can The program code of reading.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, optical signal or Above-mentioned any appropriate combination.Computer-readable signal media can also be any calculating other than computer-readable medium Machine readable medium, the computer-readable medium can be sent, propagated or transmitted for by instruction execution system, device or device Part uses or program in connection.The program code for including on computer-readable medium can use any Jie appropriate Matter transmission, including but not limited to: wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include transmission unit, acquiring unit, determination unit and first processing units.Wherein, the title of these units is under certain conditions simultaneously The restriction to the unit itself is not constituted, for example, transmission unit is also described as " sending picture to the server-side connected The unit of acquisition request ".
On the other hand, the disclosure additionally provides a kind of computer-readable medium, which can be above-mentioned Included in equipment described in embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned computer can It reads medium and carries one or more program, when said one or multiple programs are executed by the equipment, so that this Equipment includes: to receive the transaction request from POS machine, and transaction request is sent to request processing side, and wherein transaction request is In response to POS machine credit card transaction and trigger;Receive the response message that simultaneously cache request processing side returns;Information is more according to response The state of new credit card transaction.
On the other hand, the disclosure additionally provides a kind of computer-readable medium, which can be above-mentioned Included in equipment described in embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned computer can It reads medium and carries one or more program, when said one or multiple programs are executed by the equipment, so that this Equipment includes: to trigger in response to credit card transaction and issue transaction request;The response letter returned to server inquiry request processing side Breath, wherein server buffer has response message.
It will be clearly understood that the present disclosure describes how to form and use particular example, but the principle of the disclosure is not limited to These exemplary any details.On the contrary, the introduction based on disclosure disclosure, these principles can be applied to many other Embodiment.
It is particularly shown and described the illustrative embodiments of the disclosure above.It should be appreciated that the disclosure is unlimited In detailed construction described herein, set-up mode or implementation method;On the contrary, disclosure intention covers included in appended claims Spirit and scope in various modifications and equivalence setting.

Claims (29)

1. a kind of transaction communications method is used for server characterized by comprising
The transaction request from POS machine is received, and the transaction request is sent to request processing side, wherein the transaction request It is triggered for the credit card transaction in response to the POS machine;
Receive and cache the response message that the request processing side returns;The credit card transaction is updated according to the response message State.
2. transaction communications method according to claim 1, which is characterized in that the response message is characterization transaction results Transaction response data, the transaction communications method further include:
The transaction response data is sent to the POS machine;
If the POS machine does not receive the transaction response data, Transaction Inquiries request is triggered;
The server is requested in response to the Transaction Inquiries, and the transaction response data of caching is sent to the POS machine.
3. transaction communications method according to claim 2, which is characterized in that further include:
If the server does not receive the positive request of punching, the POS machine, which repeats to issue the punching within a preset period of time, is just asked It asks, until the server receives the positive request of the punching, wherein the positive request of the punching is the inquiry requested when the Transaction Inquiries When the POS machine does not receive the transaction response data yet after strategy fails, is triggered and issued by the POS machine.
4. transaction communications method according to claim 3, which is characterized in that the response message is that characterization rushes positive result Rush positive response data, the transaction communications method further include:
If the server receives the positive request of the punching, but the POS machine do not receive it is described rush positive response data, then it is described Server rushes positive inquiry request in response to the POS machine, and the positive response data of the punching of caching is sent to the POS machine.
5. transaction communications method according to claim 3, which is characterized in that the response message is that characterization rushes positive result Rush positive response data, the transaction communications method further include:
If the server receives the positive request of the punching, but the POS machine do not receive it is described rush positive response data, then it is described Server waits the positive request of punching next time, and sends out the positive response data of the punching of caching in response to the positive request of punching next time Give the POS machine.
6. according to transaction communications method described in claim 2,4 or 5, which is characterized in that further include:
The transaction response data and the ciphertext for rushing positive response data of caching are parsed, and according to the friendship after parsing Easy result and rush the state that positive result updates the credit card transaction.
7. a kind of server characterized by comprising
Communication module is configured to receive the transaction request from POS machine and the transaction request is sent to request processing side, Wherein the transaction request triggers for the credit card transaction in response to the POS machine;
Cache module is configured to receive and cache the response message that the request processing side returns;
Update module is configured to update the state of the credit card transaction according to the response message.
8. server according to claim 7, it is characterised in that the response message is the transaction sound for characterizing transaction results Data are answered, the communication module includes:
Transaction response data sending module, is configured to the transaction response data being sent to the POS machine;
Transaction inquiry module is configured to then trigger Transaction Inquiries when the POS machine does not receive the transaction response data and ask It asks, is requested in response to the Transaction Inquiries, the transaction response data of caching is sent to the POS machine.
9. server according to claim 8, which is characterized in that the communication module further include:
Positive request receiving module is rushed, is configured to when the server does not receive punching just request, the POS machine is in preset time period Interior repetition issues the positive request of the punching, until the server receives the positive request of the punching, wherein the positive request of the punching is works as The POS machine when not receiving the transaction response data yet after stating the query strategy failure of Transaction Inquiries request, by the POS machine It triggers and issues.
10. server according to claim 9, which is characterized in that the response message is that characterization rushes rushing just for positive result Response data, the communication module further include:
Positive enquiry module is rushed, is configured to receive the positive request of the punching when the server, but the POS machine does not receive the punching When positive response data, positive inquiry request is rushed in response to the POS machine, the positive response data of the punching of caching is sent to described POS machine.
11. server according to claim 9, which is characterized in that the response message is that characterization rushes rushing just for positive result Response data, the communication module further include:
Positive module is rushed in waiting, is configured to receive the positive request of the punching when the server, but the POS machine does not receive the punching When positive response data, the positive request of punching next time is waited, and just ringing the punching of caching in response to the positive request of punching next time Data are answered to be sent to the POS machine.
12. according to server described in claim 8,10 or 11, which is characterized in that further include:
Parsing module is configured to the transaction response data and the ciphertext for rushing positive response data in the cache module It is parsed, and the transaction results after parsing is sent to the state that the update module updates credit card transaction with positive result is rushed.
13. a kind of transaction communications method is used for POS machine characterized by comprising
It is triggered in response to credit card transaction and issues transaction request;
The response message that the request processing side returns is inquired to server, wherein the server buffer has the response to believe Breath.
14. transaction communications method according to claim 13, it is characterised in that the response message is characterization transaction results Transaction response data, the transaction communications method further include:
If the POS machine does not receive the transaction response data and trigger Transaction Inquiries request, and the Transaction Inquiries are asked It asks and is sent to the server;
The POS machine receives the transaction response data that the server is requested in response to the Transaction Inquiries and returned.
15. transaction communications method according to claim 14, which is characterized in that further include:
After the query strategy failure of Transaction Inquiries request, when the POS machine does not receive the transaction response data yet, institute State the positive request of POS machine triggering punching.
16. transaction communications method according to claim 15, which is characterized in that further include:
If the POS machine does not issue the positive request of the punching successfully, the POS machine repeats to issue institute within a preset period of time The positive request of punching is stated, until the positive request of the punching issues successfully.
17. transaction communications method according to claim 15, which is characterized in that the response message is that characterization rushes positive result Rush positive response data, the transaction communications method further include:
If the POS machine has successfully issued the positive request of the punching, but do not receive it is described rush positive response data, then it is described POS machine, which is triggered and issued, rushes positive inquiry request;
The POS machine receives the server in response to the positive response data of the punching rushing positive inquiry request and returning.
18. transaction communications method according to claim 15, which is characterized in that the response message is that characterization rushes positive result Rush positive response data, the transaction communications method further include:
If the POS machine has successfully issued the positive request of the punching, but do not receive it is described rush positive response data, then it is described POS machine receives the server and waits the positive request of punching next time, and in response to positive request the rushing caching just of punching next time Response data.
19. transaction communications method described in 4 or 17 according to claim 1, which is characterized in that the POS machine is looked into using poll It askes the strategy transmission Transaction Inquiries request and rushes positive inquiry request with described.
20. a kind of POS machine characterized by comprising
Transaction request module is configured to trigger in response to credit card transaction and issue transaction request;
Response data enquiry module is configured to inquire the response message that the request processing side returns to server, wherein described Server buffer has the response message.
21. POS machine according to claim 20, which is characterized in that the response message is to characterize the transaction of transaction results Response data, the POS machine further include:
Transaction inquiry module does not receive the transaction response data and triggers Transaction Inquiries request if being configured to the POS machine, And Transaction Inquiries request is sent to the server;
Transaction response data receiving module, is configured to receive the institute that the server is requested in response to the Transaction Inquiries and returned State transaction response data.
22. POS machine according to claim 21, which is characterized in that further include:
Positive request trigger module is rushed, is configured to after the query strategy failure that the Transaction Inquiries are requested, the POS machine is not received yet When to the transaction response data, the positive request of triggering punching.
23. POS machine according to claim 22, which is characterized in that further include:
Positive request sending module is rushed, is configured to when the POS machine does not issue the punching just request successfully, in preset time period Interior repetition issues the positive request of the punching, until the positive request of the punching issues successfully.
24. POS machine according to claim 22, which is characterized in that the response message is that characterization rushes rushing just for positive result Response data, the POS machine further include:
Positive enquiry module is rushed, is configured to successfully issue the positive request of the punching when the POS machine, but does not receive the punching just When response data, triggers and issue and rush positive inquiry request;
Positive response data receiving module is rushed, is configured to receive the server and rushes positive inquiry request and rushing for returning in response to described Positive response data.
25. POS machine according to claim 22, which is characterized in that the response message is that characterization rushes rushing just for positive result Response data, the POS machine further include:
It rushes positive response data and waits module, be configured to successfully issue the positive request of the punching when the POS machine, but do not receive It is described when rushing positive response data, it waits and receives the server and just rung in response to rushing the positive punching requested and returned next time Answer data.
26. a kind of electronic equipment, including memory, processor and it is stored on the memory and can runs on the processor Computer program, which is characterized in that the program realizes that method described in any one of claims 1-6 walks when being executed by the processor Suddenly.
27. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method and step as described in claim 1-6 is any is realized when row.
28. a kind of electronic equipment, including memory, processor and it is stored on the memory and can runs on the processor Computer program, which is characterized in that claim 13-19 described in any item methods are realized when the program is executed by the processor Step.
29. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method and step as described in claim 13-19 is any is realized when row.
CN201710897733.3A 2017-09-28 2017-09-28 Transaction communication method, server, POS machine and electronic equipment Active CN109583873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710897733.3A CN109583873B (en) 2017-09-28 2017-09-28 Transaction communication method, server, POS machine and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710897733.3A CN109583873B (en) 2017-09-28 2017-09-28 Transaction communication method, server, POS machine and electronic equipment

Publications (2)

Publication Number Publication Date
CN109583873A true CN109583873A (en) 2019-04-05
CN109583873B CN109583873B (en) 2021-02-02

Family

ID=65913057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710897733.3A Active CN109583873B (en) 2017-09-28 2017-09-28 Transaction communication method, server, POS machine and electronic equipment

Country Status (1)

Country Link
CN (1) CN109583873B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706069A (en) * 2019-09-25 2020-01-17 口碑(上海)信息技术有限公司 Exception handling method, device, server and system for order payment request
CN110930607A (en) * 2019-10-30 2020-03-27 浙江大搜车软件技术有限公司 Transaction result judgment method and device, computer equipment and storage medium
CN114038132A (en) * 2021-11-11 2022-02-11 武汉天喻信息产业股份有限公司 Offline collection terminal, system and collection and cash withdrawal method based on internet access

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996855A (en) * 2006-12-22 2007-07-11 中国建设银行股份有限公司 A method and system for keeping data consistency
CN101046868A (en) * 2006-03-29 2007-10-03 中国银联股份有限公司 Method and system for processing account data
CN201838087U (en) * 2010-05-19 2011-05-18 中国工商银行股份有限公司 Police POS terminal and system thereof
CN102098335A (en) * 2011-01-06 2011-06-15 北京物美商业集团股份有限公司 Method and device for handling synchronization transaction abnormity for intersystem integration
CN102915600A (en) * 2012-09-20 2013-02-06 无锡华御信息技术有限公司 Fore-POS (point of sale) system and method convenient for function extension
CN105023151A (en) * 2015-07-22 2015-11-04 天地融科技股份有限公司 Card transaction data processing method and device
CN105190662A (en) * 2013-03-13 2015-12-23 哈瑞克思信息科技公司 Mobile payment processing system and method therefor

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046868A (en) * 2006-03-29 2007-10-03 中国银联股份有限公司 Method and system for processing account data
CN1996855A (en) * 2006-12-22 2007-07-11 中国建设银行股份有限公司 A method and system for keeping data consistency
CN201838087U (en) * 2010-05-19 2011-05-18 中国工商银行股份有限公司 Police POS terminal and system thereof
CN102098335A (en) * 2011-01-06 2011-06-15 北京物美商业集团股份有限公司 Method and device for handling synchronization transaction abnormity for intersystem integration
CN102915600A (en) * 2012-09-20 2013-02-06 无锡华御信息技术有限公司 Fore-POS (point of sale) system and method convenient for function extension
CN105190662A (en) * 2013-03-13 2015-12-23 哈瑞克思信息科技公司 Mobile payment processing system and method therefor
CN105023151A (en) * 2015-07-22 2015-11-04 天地融科技股份有限公司 Card transaction data processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706069A (en) * 2019-09-25 2020-01-17 口碑(上海)信息技术有限公司 Exception handling method, device, server and system for order payment request
CN110706069B (en) * 2019-09-25 2021-03-02 口碑(上海)信息技术有限公司 Exception handling method, device, server and system for order payment request
CN110930607A (en) * 2019-10-30 2020-03-27 浙江大搜车软件技术有限公司 Transaction result judgment method and device, computer equipment and storage medium
CN114038132A (en) * 2021-11-11 2022-02-11 武汉天喻信息产业股份有限公司 Offline collection terminal, system and collection and cash withdrawal method based on internet access

Also Published As

Publication number Publication date
CN109583873B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US8260694B1 (en) System, method, and computer program for managing transaction billing across a plurality of billing sources utilizing an interface to configure advice-of-charge
CN109922158A (en) Data processing method, device, medium and electronic equipment based on micro services
US7035872B2 (en) Recurrent billing maintenance system
EP0865641B1 (en) A system, a method and an apparatus for performing an electric payment transaction in a telecommunication network
US20120185378A1 (en) System and Method for Adaptive Selection of Bank Card for Payment
CN106779666A (en) Polymerization payment platform and method of payment
CN109684408A (en) Data managing method, device, medium and the electronic equipment of block catenary system
US20200265409A1 (en) Systems and methods to split bills and requests for payment from debit or credit account
CN109583873A (en) Transaction communications method, server, POS machine and electronic equipment
CN111857888A (en) Transaction processing method and device
CN109218041A (en) Request processing method and device for server system
CN109697607A (en) A kind of Electronic Transfer method, apparatus and storage medium
WO2019245940A1 (en) Systems and methods for managing third party tokens and transactions across issuer ecosystems
CN104680368A (en) Method and system for obtaining order by near-field card-free payment
CN111127224B (en) Information processing method, information processing device, electronic equipment and storage medium
CN110020349A (en) The method and device of page rendering
US20210390526A1 (en) Validating a transaction relating to an offer for a good or a service to a user
US20160042343A1 (en) Information processing apparatus, information processing method and information processing program
CN111861745B (en) Service wind control method and device
US20180165647A1 (en) Multicomputer Processing of Client Device Request Data Using Centralized Event Orchestrator
CN111695985A (en) System and method for processing voluntary deposit service of accumulation fund
CN111415245A (en) Account opening method and device
TW201106286A (en) System and method for adaptively selecting bank card for payment
CN110070442A (en) A kind of refund processing method, server and storage medium
CN109685508A (en) Processing method, device, electronic equipment and the readable storage medium storing program for executing of transaction data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant