A kind of method of payment, device, terminal and readable medium
Technical field
The present embodiments relate to payment technology field more particularly to a kind of method of payment, device, terminal and readable Jie
Matter.
Background technique
At present there are many means of payment, such as the payment of cCredit card payment, terminal barcode scanning etc., the diversified means of payment is convenient
The operation of user overcomes various problems present in traditional pay in cash.But payment exists much under current line
Inconvenience, for example, generally requiring to wait in line barcode scanning to pay or swipe the card branch when user to be paid is more
It pays, reduces the efficiency of payment, waste user time.
Summary of the invention
In view of this, being realized more the embodiment of the invention provides a kind of method of payment, device, terminal and readable medium
It conveniently pays, improves the efficiency of payment.
In a first aspect, the embodiment of the invention provides a kind of method of payment, applied in the terminal for being mounted with toll collection applications,
Include:
It searches in preset range and is in the terminal of open state, and it is default to judge whether the duration in open state is greater than
Duration;
In the case that the duration in open state is greater than preset duration, charge request signal is sent to the terminal;
Receive the delivery operation of the terminal, and generates order.
Optionally, gathering parameter is included in the charge request signal;
Correspondingly, the delivery operation for receiving the terminal, and generate order and specifically include:
Receive the terminal according to the delivery operation signal of gathering parameter input, and generates order.
Optionally, further includes:
In the case where the delivery operation for not receiving the terminal, the IC card information of detection and terminal binding, and read
The payment information of IC card the last time;
In the case that IC card the last time payment information mismatches the gathering parameter, payment reminders signal is sent.
In the case that IC card the last time payment information matches the gathering parameter, refusal receives the payment of the terminal
Operation.
Second aspect, the embodiment of the invention provides a kind of method of payment, applied to being mounted in the terminal of payment application,
Include:
It searches in preset range and is in the terminal of open state, and it is default to judge whether the duration in open state is greater than
Duration;
In the case that the duration in open state is greater than preset duration, payment request is sent to terminal, wherein described
Payment request includes payment parameter;
Receive charging terminal allows to pay signal, progress delivery operation, and generates order.
Optionally, further includes:
The IC card information of binding is detected, and reads the payment information of IC card the last time;
In the case that IC card the last time payment information matches the gathering parameter, forbid carrying out delivery operation.
The third aspect, the embodiment of the invention provides a kind of payment mechanisms, comprising:
Search module, for search in preset range be in open state terminal, and judge in open state when
It is long whether to be greater than preset duration;
Sending module, for being sent to the terminal in the case that the duration in open state is greater than preset duration
Charge request signal;
Receiving module for receiving the delivery operation of the terminal, and generates order.
Fourth aspect, the embodiment of the invention provides a kind of payment mechanisms, comprising:
Search module, for search in preset range be in open state terminal, and judge in open state when
It is long whether to be greater than preset duration;
Sending module, for sending and paying to terminal in the case that the duration in open state is greater than preset duration
Request, wherein the payment request includes payment parameter;
Receiving module allows to pay signal, carries out delivery operation, and generate order for receiving terminal.
5th aspect, the embodiment of the invention provides a kind of terminals, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes such as method of payment as claimed in any one of claims 1 to 6.
6th aspect, the embodiment of the invention provides a kind of readable mediums, are stored thereon with computer program, the program quilt
Such as method of payment as claimed in any one of claims 1 to 6 is realized when processor executes.
A kind of method of payment, device, terminal and readable medium provided by the invention, search preset range are interior in open shape
The terminal of state, and judge whether the duration in open state is greater than preset duration;It is greater than in the duration in open state pre-
If in the case where duration, sending charge request signal to the terminal;Receive the delivery operation of the terminal, and generates order.
The terminal device that needs are paid is determined by the terminal in search preset range under open state, and is sent and received to terminal
Take request signal, pay terminal in time, withouted waiting in payment process, improves payment efficiency.
Detailed description of the invention
Fig. 1 is a kind of method of payment flow chart that the embodiment of the present invention one provides;
Fig. 2 is a kind of method of payment flow chart provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of payment mechanism structural schematic diagram that the embodiment of the present invention three provides;
Fig. 4 is a kind of payment mechanism structural schematic diagram that the embodiment of the present invention four provides;
Fig. 5 is a kind of terminal structure schematic diagram that the embodiment of the present invention five provides.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.It is understood that
It is that specific embodiment described herein is used only for explaining the present invention rather than limiting the invention.It further needs exist for illustrating
, only the parts related to the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of method of payment flow chart that the embodiment of the present invention one provides, and the present embodiment is applicable to pass through terminal
The case where being paid, this method are applied to be mounted in the terminal of toll collection applications, can be realized by payment mechanism, payment dress
Setting can be integrated into terminal, can specifically be implemented by the software and/or hardware in device.Referring to Fig. 1, the method for payment packet
Include following steps:
It is in the terminal of open state in S110, search preset range, and judges whether the duration in open state is big
In preset duration.
Wherein, the preset range can be set according to the actual situation, for example, setting preset range is to be mounted with
Centered on the terminal of toll collection applications, 4 meters of circumference ranges for radius.It is in the terminal of open state in search in preset range,
The open state can be that the bluetooth of terminal is in the open state or work in interconnection net state.Since there may be openings
Terminal be in moving condition, and can then be searched by charging terminal, therefore once in the preset range in moving process
It needs to judge whether the duration in open state is greater than preset duration, the preset duration can be set according to the actual situation
It is fixed, such as set preset duration as 3 minutes, then the terminal locking by the duration in open state greater than 3 minutes is to need to prop up
The terminal paid.
S120, in open state duration be greater than preset duration in the case where, to the terminal send charge request
Signal.
When the open state duration for searching the terminal in open state is greater than preset duration, charging terminal is to needs
The terminal of payment sends charge request signal.In the request signal comprising gathering parameter, such as payment detail, the type of merchandise,
The information such as payment amount, time of payment can reflect the information of this time payment in detail, to provide payment reference for terminal.
S130, the delivery operation for receiving the terminal, and generate order.
After charging terminal sends charge request signal to terminal, terminal can join according to the gathering in charge request signal
Number carries out delivery operation, the delivery operation of charging terminal receiving terminal, and generates corresponding pay invoice, so that user checks branch
Situation and detail are paid, and gives over to pay warrant.
S140, in the case where the delivery operation for not receiving the terminal, detection with terminal binding IC card information, and
Read the payment information of IC card the last time;
Due at present there are still being paid by IC card, if user has passed through IC card and has been paid, because
This does not need to be paid by terminal again, at this time, it may be necessary to detect whether user has completed to pay.When charging terminal does not receive
To terminal delivery operation when, detection with terminal binding IC card information illustratively can pass through the application program in terminal
It is bound with IC card numbers, and the synchronizing informations such as the payment record of IC card, remaining sum is updated into application program.Read IC card
In the last payment information, to judge whether user has completed payment by IC card.
S150, judge whether IC card the last time payment information matches the gathering parameter, paid in IC card the last time
In the case that information mismatches the gathering parameter, S160 is executed;The receipts whether are matched in IC card the last time payment information
In the case where money parameter, S170 is executed.
S160, payment reminders signal is sent.
When the last payment information of IC card and gathering parameter mismatch, show that user does not carry out this consumption
Payment, therefore, charging terminal send payment reminders signal to terminal, and user is reminded to pay this consumption.
S170, refusal receive the delivery operation of the terminal.
When the last payment information of IC card is matched with gathering parameter, show that user completes this consumption
Payment, does not need to be paid again, at this time the delivery operation of charging terminal refusal receiving terminal, prevents from repeating to pay.
A kind of method of payment provided in an embodiment of the present invention, the interior terminal for being in open state of search preset range, and sentence
Whether the disconnected duration in open state is greater than preset duration;In in open state duration be greater than preset duration the case where
Under, charge request signal is sent to the terminal;Receive the delivery operation of the terminal, and generates order.It is default by searching for
It is in the terminal of open state in range, can determine the terminal in state to be paid, sends charge request signal to terminal
And the delivery operation of receiving terminal, it can complete to pay in time, improve payment efficiency.
Embodiment two
Fig. 2 is a kind of method of payment flow chart provided by Embodiment 2 of the present invention, and the present embodiment is applicable to pass through terminal
The case where being paid, this method are applied in the terminal for being mounted with payment application, can be realized by payment mechanism, payment dress
Setting can be integrated into terminal, can specifically be implemented by the software and/or hardware in device.Referring to fig. 2, the method for payment packet
Include following steps:
It is in the terminal of open state in S210, search preset range, and judges whether the duration in open state is big
In preset duration.
Wherein, the preset range can be set according to the actual situation, such as setting is to be mounted with payment application
Centered on terminal, it is preset range that 4 meters, which are the circumference range of radius, and search is in the terminal of open state, the open state
Can be terminal bluetooth it is in the open state or work in interconnection net state.Since possible payment terminal is in mobile shape
State, and be once in preset range in moving process, then it can search the terminal in open state, it is therefore desirable to judge
Whether what payment terminal was able to detect that is greater than preset duration in open state open-destination duration, and the preset duration can be with
Set according to the actual situation, such as set preset duration as 3 minutes, then will search in open state when
The long terminal locking greater than 3 minutes is the terminal for needing to pay to it.
S220, in open state duration be greater than preset duration in the case where, to terminal send payment request,
In, the payment request includes payment parameter.
When the open-destination duration in open state searched is greater than preset duration, show that this terminal is needs
The terminal paid to it includes payment parameter in payment request, the payment parameter can at this point, sending payment request to terminal
Think consumption details set by user, payment amount, time of payment etc., or the payment application in payment terminal recognizes
Payment parameter information.
The IC card information that S230, detection are bound, and read the payment information of IC card the last time.
The IC card information of detection and payment terminal binding, illustratively, can by application program in payment terminal with
IC card numbers are bound, and the synchronizing informations such as the payment record of IC card, remaining sum are updated into application program.It reads in IC card
The last payment information, to judge whether user has completed payment by IC card.
S240, judge whether the payment information of IC card the last time matches the payment parameter, the last in IC card
In the case that payment information mismatches the payment parameter, S250 is executed;Described in the payment information matching of IC card the last time
In the case where paying parameter, S260 is executed;
S250, it receives terminal and allows to pay signal, carry out delivery operation, and generate order.
When the payment information of IC card the last time mismatches the payment parameter, illustrate that user does not carry out this consumption
Payment, at this point, terminal allows to pay signal, branch according to payment request return after payment terminal sends payment request to terminal
Paying terminal reception allows to pay signal, delivery operation is carried out, and generate order, to check payment information.
S260, forbid carrying out delivery operation.
When the payment information of IC card the last time matches the payment parameter, illustrate that user has passed through IC card to this
Consumption completes payment, does not need to be paid again, and payment terminal forbids all delivery operations at this time, prevents from repeating to pay.
A kind of method of payment provided in an embodiment of the present invention, the interior terminal for being in open state of search preset range, and sentence
Whether the disconnected duration in open state is greater than preset duration;In in open state duration be greater than preset duration the case where
Under, payment request is sent to terminal, wherein the payment request includes payment parameter;Receive terminal allows payment signal, into
Row delivery operation, and generate order.By being in the terminal of open state in search preset range, can determine to its payment
Terminal, by terminal send payment request and receive terminal allow pay signal, carry out delivery operation, completion paid
Journey does not need payment and waits, improves payment efficiency.
Embodiment three
Fig. 3 be the embodiment of the present invention three provide a kind of payment mechanism structural schematic diagram, be applicable to by terminal into
The case where row payment.Referring to Fig. 3, which includes:
Search module, for search in preset range be in open state terminal, and judge in open state when
It is long whether to be greater than preset duration;
Sending module, for being sent to the terminal in the case that the duration in open state is greater than preset duration
Charge request signal;
Receiving module for receiving the delivery operation of the terminal, and generates order.
A kind of payment mechanism provided in an embodiment of the present invention, a kind of method of payment proposed with embodiment one belong to same hair
Bright design, the technical detail of detailed description not can be found in embodiment one, and the present embodiment and embodiment one in the present embodiment
Beneficial effect having the same.
Example IV
Fig. 4 be the embodiment of the present invention four provide a kind of payment mechanism structural schematic diagram, be applicable to by terminal into
The case where row payment.Referring to fig. 4, which includes:
Search module, for search in preset range be in open state terminal, and judge in open state when
It is long whether to be greater than preset duration;
Sending module, for sending and paying to terminal in the case that the duration in open state is greater than preset duration
Request, wherein the payment request includes payment parameter;
Receiving module allows to pay signal, carries out delivery operation, and generate order for receiving terminal.
A kind of payment mechanism provided in an embodiment of the present invention, a kind of method of payment proposed with embodiment two belong to same hair
Bright design, the technical detail of detailed description not can be found in embodiment two, and the present embodiment and embodiment two in the present embodiment
Beneficial effect having the same.
Embodiment five
A kind of terminal is present embodiments provided, can be used for the case where being paid by terminal.Fig. 5 is implementation of the present invention
A kind of structural schematic diagram for terminal that example five provides.Referring to Fig. 5, which includes:
One or more processors 510;
Memory 520, for storing one or more programs;
When one or more of programs are executed by one or more of processors 510, so that one or more of
Processor 510 realizes a kind of method of payment proposed such as above-described embodiment.
In Fig. 5 by taking a processor 510 as an example;Processor 510 and memory 520 can be connected by bus or other modes
It connects, in Fig. 5 for being connected by bus.
Memory 520 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, such as the corresponding program instruction/module of one of embodiment of the present invention method of payment.Processor 510 passes through fortune
Software program, instruction and the module that row is stored in memory 520, thereby executing the various function application and data of terminal
Processing, that is, realize a kind of above-mentioned method of payment.
Memory 520 can mainly include storing program area and storage data area, wherein storing program area can store operation dress
It sets, application program needed at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This
Outside, memory 520 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 520 can be into one
Step includes the memory remotely located relative to processor 510, these remote memories can pass through network connection to terminal.On
The example for stating network includes but is not limited to Internet, intranet, local area network, mobile radio communication and combinations thereof.
A kind of method of payment that the terminal and above-described embodiment that the present embodiment proposes propose belongs to same inventive concept, does not exist
The technical detail of detailed description can be found in above-described embodiment in the present embodiment, and the present embodiment have with above-described embodiment it is identical
Beneficial effect.
Embodiment six
The present embodiment provides a kind of readable mediums, are stored thereon with computer program, real when which is executed by processor
Now such as a kind of method of payment of above-described embodiment proposition.
A kind of method of payment that the readable medium and above-described embodiment that the present embodiment proposes propose belongs to same inventive concept,
The technical detail of detailed description not can be found in above-described embodiment in the present embodiment, and the present embodiment has with above-described embodiment
Identical beneficial effect.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions use so that a Computing Intelligence
Energy terminal (can be personal computer, server or network intelligence terminal etc.) executes described in each embodiment of the present invention
Method.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.