CN107392575A - A kind of automated payment method and device - Google Patents
A kind of automated payment method and device Download PDFInfo
- Publication number
- CN107392575A CN107392575A CN201710566427.1A CN201710566427A CN107392575A CN 107392575 A CN107392575 A CN 107392575A CN 201710566427 A CN201710566427 A CN 201710566427A CN 107392575 A CN107392575 A CN 107392575A
- Authority
- CN
- China
- Prior art keywords
- payment
- link
- variable
- default
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/02—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
- G06Q20/023—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP] the neutral party being a clearing house
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- General Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Finance (AREA)
- Computer Networks & Wireless Communication (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of automated payment method and device, wherein, method includes:Payment cipher is set in the script being pre-created;All payment links that Third-party payment platform needs to feed back successively in the payment flow for completing payment services are obtained, and according to the order of the payment flow, all payment links are sequentially stored in the first file;Receive the triggering command paid;According to the triggering command, the each payment link stored in first file is successively read by the script, communicated with the Third-party payment platform, and the payment cipher set in the script is sent to the Third-party payment platform in communication process, so that the Third-party payment platform completes the payment flow according to the payment cipher.The embodiment of the present invention can realize online payment, substantially increase the efficiency of online payment, shorten the online payment time.
Description
Technical field
The present embodiments relate to network technique field, and in particular to a kind of automated payment method and device.
Background technology
With the fast development of internet, online payment brings great convenience to the life of people, and more and more general
And.
Being mainly used for of online payment platform provides high-quality secure payment service for network trade user.At present, net
Upper payment platform will realize the payment services function such as transfer accounts, give bonus, rob red packet, supplement with money, withdrawing deposit, it is necessary to access Third-party payment
Platform.
It is existing to need user artificial when being transferred accounts, pay, supplement with money, the operation such as withdrawing deposit based on the function of payment services
Input payment cipher.And, it is necessary to first carry out real-name authentication to current account then payment cipher is set before this.User
Payment cipher is manually entered generally than relatively time-consuming, makes the less efficient of online payment, and can not possibly meet to carry out a large amount of accounts
The needs of payment.
In consideration of it, how online payment is realized, to improve the efficiency of online payment, shorten the online payment time as current
The technical issues that need to address.
The content of the invention
Because existing method has above mentioned problem, the embodiment of the present invention proposes a kind of automated payment method and device.
In a first aspect, the embodiment of the present invention proposes a kind of automated payment method, including:
Payment cipher is set in the script being pre-created;
All payment links that Third-party payment platform needs to feed back successively in the payment flow for completing payment services are obtained,
And according to the order of the payment flow, all payment links are sequentially stored in the first file;
Receive the triggering command paid;
According to the triggering command, each payment chain stored in first file is successively read by the script
Connect, communicated with the Third-party payment platform, and the payment cipher that will be set in communication process in the script
The Third-party payment platform is sent to, so that the Third-party payment platform completes the flow of payments according to the payment cipher
Journey.
Alternatively, the payment of payment services is completed according to the order of the payment flow, the Third-party payment platform
All payment links fed back successively are needed in flow, including:First link, the second link, the 3rd link and the 4th link;
Correspondingly, it is described that each payment link stored in first file is successively read by the script, with institute
State Third-party payment platform to be communicated, and the payment cipher set in the script is sent to described in communication process
Tripartite's payment platform, so that the Third-party payment platform completes the payment flow according to the payment cipher, including:
Stored in first file first link is read by the script and is assigned to default first variable, and to institute
State Third-party payment platform to send to the described first HTTP request linked, receive and linked to described first
HTTP request feedback the first parameter;
Stored in first file second link is read by the script and is assigned to default first variable, and
Using first parameter as post required parameters, being sent to the Third-party payment platform please to the post of the described second link
Ask, receive the second parameter to the post request feedbacks of the described second link;
If the state variable in second parameter is true true, is read in first file and deposited by the script
3rd link of storage is assigned to default first variable, and the payment cipher that will be set in second parameter and the script
As post required parameters, post requests are carried out to the described 3rd link, receives and feedback is asked to the post of the described 3rd link
The 3rd parameter;
If the state variable in the 3rd parameter is true, is read in first file and stored by the script
The 4th link be assigned to default first variable, and using the 3rd parameter as post required parameters, to the described 3rd
Square payment platform, which is sent, asks the post of the described 4th link, receives the 4th to the post request feedbacks of the described 4th link
Parameter;
If the state variable in the 4th parameter is true, displaying pays successful prompt message, and will be described pre-
If the value of the first variable is appended in default first list variable.
Alternatively, after the second parameter for asking the post of the described second link to feed back is received, methods described is also wrapped
Include:
If the state variable in second parameter is false fasle, flow terminates, and by default first variable
Value is appended in default second list variable.
Alternatively, after the 3rd parameter for asking the post of the described 3rd link to feed back is received, methods described is also wrapped
Include:
If the state variable in the 3rd parameter is fasle, flow terminates, and by the value of default first variable
It is appended in default second list variable.
Alternatively, after the 4th parameter for asking the post of the described 4th link to feed back is received, methods described is also wrapped
Include:
If the state variable in the 4th parameter is fasle, the value of default first variable is appended to default
In second list variable.
Alternatively, methods described also includes:
Communicated in the script by pre-establishing with Third-party payment platform, to complete the payment flow of payment services
Arbitrary steps in, if detecting exception, flow terminates, and the value of default first variable is appended into default 3rd row
In table variable.
Second aspect, the embodiment of the present invention also propose a kind of automated payment device, including:
Setup module, for setting payment cipher in the script being pre-created;
Acquisition module, need what is fed back successively in the payment flow for completing payment services for obtaining Third-party payment platform
All payment links, and according to the order of the payment flow, all payment links are sequentially stored in the first file;
Receiving module, the instruction paid for receiving triggering;
Payment module, for according to the triggering command, being successively read in first file and being stored by the script
Each payment link, communicated with the Third-party payment platform, and will be set in communication process in the script
The payment cipher is sent to the Third-party payment platform, so that the Third-party payment platform is complete according to the payment cipher
Into the payment flow.
Alternatively, the payment of payment services is completed according to the order of the payment flow, the Third-party payment platform
All payment links fed back successively are needed in flow, including:First link, the second link, the 3rd link and the 4th link;
Correspondingly, the payment module, is specifically used for
According to the triggering command, it is assigned to by the first link stored in script reading first file pre-
If the first variable, and the HTTP request to the described first link is sent to the Third-party payment platform,
Receive the first parameter fed back to the HTTP request of the described first link;
Stored in first file second link is read by the script and is assigned to default first variable, and
Using first parameter as post required parameters, being sent to the Third-party payment platform please to the post of the described second link
Ask, receive the second parameter to the post request feedbacks of the described second link;
If the state variable in second parameter is true true, is read in first file and deposited by the script
3rd link of storage is assigned to default first variable, and the payment cipher that will be set in second parameter and the script
As post required parameters, post requests are carried out to the described 3rd link, receives and feedback is asked to the post of the described 3rd link
The 3rd parameter;
If the state variable in the 3rd parameter is true, is read in first file and stored by the script
The 4th link be assigned to default first variable, and using the 3rd parameter as post required parameters, to the described 3rd
Square payment platform, which is sent, asks the post of the described 4th link, receives the 4th to the post request feedbacks of the described 4th link
Parameter;
If the state variable in the 4th parameter is true, displaying pays successful prompt message, and will be described pre-
If the value of the first variable is appended in default first list variable.
Alternatively, the payment module, is additionally operable to
If the state variable in second parameter is false fasle, flow terminates, and by default first variable
Value is appended in default second list variable.
Alternatively, the payment module, is additionally operable to
If the state variable in the 3rd parameter is fasle, flow terminates, and by the value of default first variable
It is appended in default second list variable.
Alternatively, the payment module, is additionally operable to
If the state variable in the 4th parameter is fasle, the value of default first variable is appended to default
In second list variable.
Alternatively, the payment module, is additionally operable to
Communicated in the script by pre-establishing with Third-party payment platform, to complete the payment flow of payment services
During, if detecting exception, flow terminates, and the value of default first variable is appended into default 3rd list and become
In amount.
The third aspect, the embodiment of the present invention also propose a kind of electronic equipment, including:Processor, memory, bus and storage
On a memory and the computer program that can run on a processor;
Wherein, the processor, memory complete mutual communication by the bus;
Described in the computing device above method is realized during computer program.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium storing program for executing, the non-transient calculating
Computer program is stored with machine readable storage medium storing program for executing, the computer program realizes the above method when being executed by processor.
As shown from the above technical solution, after the embodiment of the present invention triggers the instruction of payment by receiving, by being created in advance
Payment cipher is set in the script built, and obtain Third-party payment platform needs to feed back successively in the payment flow for completing payment services
All payment links, and according to the order of the payment flow, all payment links are sequentially stored in the first file
In, the triggering command of payment is received, according to the triggering command, is successively read in first file and stored by the script
Each payment link, communicated with the Third-party payment platform, and will be set in communication process in the script
The payment cipher is sent to the Third-party payment platform, so that the Third-party payment platform is complete according to the payment cipher
Into the payment flow, thereby, it is possible to realize online payment, the efficiency of online payment is substantially increased, when shortening online payment
Between, and disclosure satisfy that the needs paid to a large amount of accounts.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these figures.
Fig. 1 is a kind of schematic flow sheet for automated payment method that one embodiment of the invention provides;
Fig. 2 is a kind of structural representation for automated payment device that one embodiment of the invention provides;
Fig. 3 is the logic diagram for the electronic equipment that one embodiment of the invention provides.
Embodiment
Below in conjunction with the accompanying drawings, the embodiment of the present invention is further described.Following examples are only used for more
Clearly demonstrate technical scheme, and can not be limited the scope of the invention with this.
Fig. 1 shows a kind of schematic flow sheet for automated payment method that one embodiment of the invention provides, such as Fig. 1 institutes
Show, the automated payment method of the present embodiment, including:
S101, payment cipher (password) is set in the script being pre-created.
It should be noted that the automated payment method of the present embodiment is to be applied to the online branch with payment services function
In the server for paying platform, the online payment platform with payment services function need to access the 3rd when realizing payment services function
Square payment platform.
In a particular application, for example, can be set in the script being pre-created:Password=" 229393 ".
It is understood that the present embodiment can be pre-created script before the step S101.
S102, obtain all payments that Third-party payment platform needs to feed back successively in the payment flow for completing payment services
Link, and according to the order of the payment flow, all payment links are sequentially stored in the first file.
It should be noted that the server in the online payment platform with payment services function is manually entered according to user
Payment cipher, by Third-party payment platform complete payment flow during, the Third-party payment platform is supplied to institute
The sequencing stated the all-links for being used to carry out delivery operation of server and provided is well known in the prior art.This implementation
Example according to the order of payment flow just refer to the Third-party payment platform be supplied to the server be used for paid
The sequencing of the offer of the all-links of operation.
In a particular application, first file is text, can be according to the suitable of (existing) described payment flow
Sequence, a link (i.e. URL url) is stored per a line.For example, first file can be text text
Part urls.txt.
S103, receive the triggering command paid.
S104, according to the triggering command, be successively read each stored in first file by the script
Link is paid, is communicated with the Third-party payment platform, and the payment that will be set in communication process in the script
Password is sent to the Third-party payment platform, so that the Third-party payment platform completes the branch according to the payment cipher
Pay flow.
It is understood that because the online payment platform that existing payment services function has payment services function is entering
Row transfer accounts, pay, supplementing with money, withdrawing deposit etc. delivery operation when be required to user and be manually entered payment cipher.And the present embodiment by
Payment cipher is pre-set in the script pre-established, is entered when carrying out delivery operation using the script with Third-party payment platform
Row communication, the payment flow of existing payment services can be automatically performed.
The automated payment method of the present embodiment, the server applied to the online payment platform with payment services function
In, by setting payment cipher in the script being pre-created, obtain Third-party payment platform and complete the payment of payment services
Need all payment links fed back successively in flow, and according to the order of the payment flow, by all payment links according to
It is secondary to be stored in the first file, the triggering command of payment is received, according to the triggering command, institute is successively read by the script
The each payment link stored in the first file is stated, is communicated with the Third-party payment platform, and will in communication process
The payment cipher set in the script is sent to the Third-party payment platform, so that the Third-party payment platform root
The payment flow is completed according to the payment cipher, thereby, it is possible to realize online payment with the mode of automation, reduces input
Amount, substantially increases the efficiency of online payment, shortens the online payment time, once write, and multiplexing, disclosure satisfy that pair infinitely
The needs that a large amount of accounts are paid.The present embodiment methods described is applied to all applications with payment services function.
Further, on the basis of above method embodiment, according to the order of the payment flow, institute in the present embodiment
All payment links that Third-party payment platform needs to feed back successively in the payment flow for completing payment services are stated, can be included:
First link, the second link, the 3rd link and the 4th link;
Correspondingly, above-mentioned steps S104 can include the step A1-A5 not shown in figure:
A1, according to the triggering command, pass through the script and read the first link assignment stored in first file
To default first variable, and sent to the Third-party payment platform and the HTTP HTTP of the described first link is asked
Ask, receive the first parameter fed back to the HTTP request of the described first link.
Asked it is understood that the HTTP request in step A1 can be get, naturally it is also possible to asked for post, this
Embodiment is not limited.
In a particular application, for example, default first variable can be url_cashier, first link
Can be:
https://plus.yeepay.com/cashier/cashier/showExternalno=
ODRCG20170105155936037G1jVP5d
First link is the url for the payment page that the Third-party payment platform is provided;To the Third-party payment
After platform sends the HTTP request to first link, first link can redirect automatically, and the Third-party payment platform is to institute
The first parameter for stating the HTTP request feedback of the first link is externalNo, and now externalNo value is:
ExternalNo=ODRCG20170105155936037G1jVP5d
A2, the stored in first file second link read by the script it is assigned to described default first and become
Amount, and using first parameter as post required parameters, sent to the Third-party payment platform to the described second link
Post is asked, and receives the second parameter to the post request feedbacks of the described second link.
In a particular application, for example, it is described second link can be:
https://plus.yeepay.com/pp-user-app/app/validatePasswordExist
Second link is that the Third-party payment platform is used for verifying the url that password whether there is;Third party's branch
The second parameter that platform asks the post of the described second link feedback is paid, can be included:password、externalNo、
bizType、requestNo、webCallBackUrl、serverCallBackUrl、returnUrl、ppMerchantNo、
The parameters such as merchantUserId and status.
If the state variable (status) in A3, second parameter is true true, by described in script reading
The 3rd link stored in first file is assigned to default first variable, and will be set in second parameter and the script
The payment cipher put carries out post requests to the described 3rd link, received to the described 3rd link as post required parameters
3rd parameter of post request feedbacks.
In a particular application, each parameter and its value in second parameter can be pressed k-v (i.e. key key- value value)
Store in pre-set dictionary variable (such as dictValue), the 5th parameter is previously provided with the pre-set dictionary variable
Keypassword, and by the payment cipher set in the script be assigned to the 5th parameter (such as dictValue ['
Keypassword']=password), key and value in the pre-set dictionary variable is encoded into url parametric form
(as post required parameters), post requests are carried out to the described 3rd link.
In a particular application, for example, it is described 3rd link can be:
https://plus.yeepay.com/pp-user-app/app/verifyTradePassword
3rd link is the url that the Third-party payment platform is used for verifying trading password, i.e., please to the post of reception
The keypassword of middle carrying value is asked to be verified.
In a particular application, the Third-party payment platform asks the post of the described 3rd link the 3rd parameter of feedback
It can include:6th parameter (i.e. token parameter, such as cashierToken).
In a particular application, the present embodiment methods described can also include:
If the state variable in second parameter is false fasle, flow terminates, and by default first variable
Value is appended in default second list variable.
It is understood that the default second list variable is the url for storing failure, for example, described pre-
If second list variable can be list variable list_failed.
If the state variable in A4, the 3rd parameter is true, read by the script in first file
4th link of storage is assigned to default first variable, and using the 3rd parameter as post required parameters, to described
Third-party payment platform, which is sent, asks the post of the described 4th link, receives to the post request feedbacks of the described 4th link
4th parameter.
In a particular application, the 6th parameter (i.e. token parameter can be obtained from the 3rd parameter of feedback
CashierToken value), the character string for obtaining k-v forms are assigned to default second variable, and default second variable is use
In the variable for confirming to pay, such as param_confirmPay.
In a particular application, for example, it is described 4th link can be:
https://plus.yeepay.com/cashier/cashier/confirmPay
4th link is that the Third-party payment platform is used for confirming to pay and completing the url paid.
In a particular application, the Third-party payment platform asks the post of the described 4th link the 4th parameter of feedback
It can include:7th parameter (i.e. be used for confirm pay whether successful response parameter, such as response_confirm).
In a particular application, the present embodiment methods described can also include:
If the state variable in the 3rd parameter is fasle, flow terminates, and by the value of default first variable
It is appended in the default second list variable.
If the state variable in A5, the 4th parameter is true, displaying pays successful prompt message, and by described in
The value of default first variable is appended in default first list variable.
It is understood that the default first list variable is to be used to store successful url, for example, described pre-
If first list variable can be list variable list_success.
In a particular application, the present embodiment methods described can also include:
If the state variable in the 4th parameter is fasle, the value of default first variable is appended to default
In second list variable.
In a particular application, the present embodiment methods described can also include:
Communicated in the script by pre-establishing with Third-party payment platform, to complete the payment flow of payment services
Arbitrary steps in, if detecting exception, flow terminates, and the value of default first variable is appended into default 3rd row
In table variable.
It is understood that default 3rd list variable is for storing abnormal url, for example, described pre-
If the 3rd list variable can be list variable list_exception.
It is understood that after above-mentioned flow terminates, the present embodiment can travel through the output default first list variable,
The value of the default second list variable and default 3rd list variable, so as to url that subsequently can be to exception and failure
Url carry out post requests again and perform automatic delivery operation.
The automated payment method of the present embodiment, the server applied to the online payment platform with payment services function
In, online payment can be realized, substantially increases the efficiency of online payment, shortens the online payment time, and disclosure satisfy that pair
The needs that a large amount of accounts are paid.
Fig. 2 shows a kind of structural representation for automated payment device that one embodiment of the invention provides, the present embodiment
Automated payment device be applied to payment services function online payment platform server in, as shown in Fig. 2 this reality
The automated payment device of example is applied, including:Setup module 21, acquisition module 22, receiving module 23 and payment module 24;Wherein:
The setup module 21, for setting payment cipher in the script being pre-created;
The acquisition module 22, needed successively in the payment flow for completing payment services for obtaining Third-party payment platform
All payment links of feedback, and according to the order of the payment flow, all payment links are sequentially stored in first
In file;
The receiving module 23, the instruction paid for receiving triggering;
The payment module 24, for according to the triggering command, first file to be successively read by the script
Each payment link of middle storage, is communicated with the Third-party payment platform, and by the script in communication process
The payment cipher set is sent to the Third-party payment platform, so that the Third-party payment platform is according to the payment
Password completes the payment flow.
Specifically, the setup module 21 sets payment cipher in the script being pre-created;The acquisition module 22 obtains
Third-party payment platform is taken to need all payment links fed back successively in the payment flow for completing payment services, and according to described
The order of payment flow, all payment links are sequentially stored in the first file;The receiving module 23 receives triggering
The instruction of payment;The payment module 24 is successively read in first file according to the triggering command by the script
Each payment link of storage, is communicated, and will be set in communication process in the script with the Third-party payment platform
The payment cipher put is sent to the Third-party payment platform, so that the Third-party payment platform is close according to the payment
Code completes the payment flow.
It is understood that because the online payment platform that existing payment services function has payment services function is entering
Row transfer accounts, pay, supplementing with money, withdrawing deposit etc. delivery operation when be required to user and be manually entered payment cipher.
For the present embodiment by pre-setting payment cipher in the script pre-established, being utilized when carrying out delivery operation should
Script is communicated with Third-party payment platform, can be realized online payment with the mode of automation, be reduced input quantity, significantly
The efficiency of online payment is improved, the online payment time is shortened, once writes, multiplexing, disclosure satisfy that to a large amount of accounts infinitely
Number needs paid, and suitable for all applications with payment services function.
Further, on the basis of said apparatus embodiment, according to the order of the payment flow, institute in the present embodiment
All payment links that Third-party payment platform needs to feed back successively in the payment flow for completing payment services are stated, including:First
Link, the second link, the 3rd link and the 4th link;
Correspondingly, the payment module 24, can be specifically used for
According to the triggering command, it is assigned to by the first link stored in script reading first file pre-
If the first variable, and the HTTP request to the described first link is sent to the Third-party payment platform,
Receive the first parameter fed back to the HTTP request of the described first link;
Stored in first file second link is read by the script and is assigned to default first variable, and
Using first parameter as post required parameters, being sent to the Third-party payment platform please to the post of the described second link
Ask, receive the second parameter to the post request feedbacks of the described second link;
If the state variable in second parameter is true true, is read in first file and deposited by the script
3rd link of storage is assigned to default first variable, and the payment cipher that will be set in second parameter and the script
As post required parameters, post requests are carried out to the described 3rd link, receives and feedback is asked to the post of the described 3rd link
The 3rd parameter;
If the state variable in the 3rd parameter is true, is read in first file and stored by the script
The 4th link be assigned to default first variable, and using the 3rd parameter as post required parameters, to the described 3rd
Square payment platform, which is sent, asks the post of the described 4th link, receives the 4th to the post request feedbacks of the described 4th link
Parameter;
If the state variable in the 4th parameter is true, displaying pays successful prompt message, and will be described pre-
If the value of the first variable is appended in default first list variable.
In a particular application, the payment module 24, it may also be used for
If the state variable in second parameter is false fasle, flow terminates, and by default first variable
Value is appended in default second list variable.
In a particular application, the payment module 24, it may also be used for
If the state variable in the 3rd parameter is fasle, flow terminates, and by the value of default first variable
It is appended in default second list variable.
In a particular application, the payment module 24, it may also be used for
If the state variable in the 4th parameter is fasle, the value of default first variable is appended to default
In second list variable.
In a particular application, the payment module 24, it may also be used for
Communicated in the script by pre-establishing with Third-party payment platform, to complete the payment flow of payment services
During, if detecting exception, flow terminates, and the value of default first variable is appended into default 3rd list and become
In amount.
It is understood that the payment module 24 is sent to the described first link to the Third-party payment platform
HTTP can be that get is asked, naturally it is also possible to be asked for post, the present embodiment is not limited.
It should be noted that the server in the online payment platform with payment services function is manually entered according to user
Payment cipher, by Third-party payment platform complete payment flow during, the Third-party payment platform is supplied to institute
The sequencing stated the all-links for being used to carry out delivery operation of server and provided is well known in the prior art.This implementation
Example according to the order of payment flow just refer to the Third-party payment platform be supplied to the server be used for paid
The sequencing of the offer of the all-links of operation.
The automated payment device of the present embodiment, online payment can be realized with the mode of automation, reduce input quantity,
The efficiency of online payment is substantially increased, the online payment time is shortened, once writes, multiplexing, disclosure satisfy that to big infinitely
The needs that amount account is paid, and suitable for all applications with payment services function.
The automated payment device of the present embodiment, it can be used for the technical scheme for performing preceding method embodiment, it is realized
Principle is similar with technique effect, and here is omitted.
Fig. 3 shows the entity structure schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention, as shown in figure 3, should
Electronic equipment can include:Processor 11, memory 12, bus 13 and it is stored on memory 12 and can be transported on processor 11
Capable computer program;
Wherein, the processor 11, memory 12 complete mutual communication by the bus 13;
The processor 11 realizes the method that above-mentioned each method embodiment is provided when performing the computer program, such as
Including:Payment cipher is set in the script being pre-created;Obtain Third-party payment platform and complete the flow of payments of payment services
All payment links that Cheng Zhongxu feeds back successively, and according to the order of the payment flow, by all payment links successively
It is stored in the first file;Receive the triggering command paid;According to the triggering command, it is successively read by the script described
The each payment link stored in first file, is communicated with the Third-party payment platform, and by institute in communication process
State the payment cipher set in script and be sent to the Third-party payment platform so that the Third-party payment platform according to
The payment cipher completes the payment flow.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium storing program for executing, is stored thereon with computer program, should
Realize the method that above-mentioned each method embodiment is provided when computer program is executed by processor, such as including:It is being pre-created
Script in payment cipher is set;Obtain Third-party payment platform needs what is fed back successively in the payment flow for completing payment services
All payment links, and according to the order of the payment flow, all payment links are sequentially stored in the first file;
Receive the triggering command paid;According to the triggering command, it is successively read what is stored in first file by the script
Each payment link, communicated with the Third-party payment platform, and the institute that will be set in communication process in the script
State payment cipher and be sent to the Third-party payment platform, so that the Third-party payment platform is completed according to the payment cipher
The payment flow.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, apparatus or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application be with reference to according to the method, apparatus of the embodiment of the present application and the flow chart of computer program product and/or
Block diagram describes.It should be understood that can by each flow in computer program instructions implementation process figure and/or block diagram and/or
Square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided to arrive
All-purpose computer, special-purpose computer, the processor of Embedded Processor or other programmable data processing devices are to produce one
Machine so that produced by the instruction of computer or the computing device of other programmable data processing devices and flowed for realizing
The device/system for the function of being specified in one flow of journey figure or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those
Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element also be present in process, method, article or equipment including the key element.Term " on ", " under " etc. refers to
The orientation or position relationship shown is based on orientation shown in the drawings or position relationship, is for only for ease of the description present invention and simplifies
Description, rather than the device or element of instruction or hint meaning must have specific orientation, with specific azimuth configuration and behaviour
Make, therefore be not considered as limiting the invention.Unless otherwise clearly defined and limited, term " installation ", " connected ",
" connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected, or be integrally connected;Can be
Mechanically connect or electrically connect;Can be joined directly together, can also be indirectly connected by intermediary, can be two
The connection of element internal.For the ordinary skill in the art, above-mentioned term can be understood at this as the case may be
Concrete meaning in invention.
In the specification of the present invention, numerous specific details are set forth.Although it is understood that embodiments of the invention can
To be put into practice in the case of these no details.In some instances, known method, structure and skill is not been shown in detail
Art, so as not to obscure the understanding of this description.Similarly, it will be appreciated that disclose in order to simplify the present invention and helps to understand respectively
One or more of individual inventive aspect, in the description to the exemplary embodiment of the present invention above, each spy of the invention
Sign is grouped together into single embodiment, figure or descriptions thereof sometimes.However, should not be by the method solution of the disclosure
Release and be intended in reflection is following:I.e. the present invention for required protection requirement is than the feature that is expressly recited in each claim more
More features.More precisely, as the following claims reflect, inventive aspect is to be less than single reality disclosed above
Apply all features of example.Therefore, it then follows thus claims of embodiment are expressly incorporated in the embodiment,
Wherein each claim is in itself as separate embodiments of the invention.It should be noted that in the case where not conflicting, this
The feature in embodiment and embodiment in application can be mutually combined.The invention is not limited in any single aspect,
Any single embodiment is not limited to, is also not limited to any combination and/or the displacement of these aspects and/or embodiment.And
And can be used alone the present invention each aspect and/or embodiment or with other one or more aspects and/or its implementation
Example is used in combination.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme, it all should cover among the claim of the present invention and the scope of specification.
Claims (14)
- A kind of 1. automated payment method, it is characterised in that including:Payment cipher is set in the script being pre-created;All payment links that Third-party payment platform needs to feed back successively in the payment flow for completing payment services are obtained, and are pressed According to the order of the payment flow, all payment links are sequentially stored in the first file;Receive the triggering command paid;According to the triggering command, each payment link stored in first file is successively read by the script, with The Third-party payment platform is communicated, and is sent to the payment cipher set in the script in communication process The Third-party payment platform, so that the Third-party payment platform completes the payment flow according to the payment cipher.
- 2. according to the method for claim 1, it is characterised in that according to the order of the payment flow, third party's branch All payment links that platform needs to feed back successively in the payment flow for completing payment services are paid, including:First link, the second chain Connect, the 3rd link and the 4th links;Correspondingly, it is described that each payment link stored in first file is successively read by the script, with described Tripartite's payment platform is communicated, and the payment cipher set in the script is sent into the third party in communication process Payment platform, so that the Third-party payment platform completes the payment flow according to the payment cipher, including:Stored in first file first link is read by the script and is assigned to default first variable, and to described the Tripartite's payment platform sends the HTTP request to the described first link, receives to the described first link First parameter of HTTP request feedback;Stored in first file second link is read by the script and is assigned to default first variable, and by institute The first parameter is stated as post required parameters, the post requests to Third-party payment platform transmission to the described second link, Receive the second parameter that feedback is asked the post of the described second link;If the state variable in second parameter is true true, read what is stored in first file by the script 3rd link is assigned to default first variable, and using the payment cipher set in second parameter and the script as Post required parameters, post requests are carried out to the described 3rd link, receive the to the post request feedbacks of the described 3rd link Three parameters;If the state variable in the 3rd parameter is true, the stored in first file is read by the script Four links are assigned to default first variable, and using the 3rd parameter as post required parameters, to third party's branch Pay platform and send the post requests linked to the described 4th, receive and join to the 4th of the post request feedbacks of the described 4th link the Number;If the state variable in the 4th parameter is true, displaying pays successful prompt message, and described will preset the The value of one variable is appended in default first list variable.
- 3. according to the method for claim 2, it is characterised in that feedback is asked to the post of the described second link receiving After second parameter, methods described also includes:If the state variable in second parameter is false fasle, flow terminates, and the value of default first variable is chased after It is added in default second list variable.
- 4. according to the method for claim 2, it is characterised in that feedback is asked to the post of the described 3rd link receiving After 3rd parameter, methods described also includes:If the state variable in the 3rd parameter is fasle, flow terminates, and the value of default first variable is added Into default second list variable.
- 5. according to the method for claim 2, it is characterised in that feedback is asked to the post of the described 4th link receiving After 4th parameter, methods described also includes:If the state variable in the 4th parameter is fasle, the value of default first variable is appended to default second In list variable.
- 6. according to the method for claim 2, it is characterised in that methods described also includes:Communicated in the script by pre-establishing with Third-party payment platform, to complete appointing for the payment flow of payment services In step of anticipating, if detecting exception, flow terminates, and the value of default first variable is appended into default 3rd list and become In amount.
- A kind of 7. automated payment device, it is characterised in that including:Setup module, for setting payment cipher in the script being pre-created;Acquisition module, for obtain Third-party payment platform need to feed back successively in the payment flow for completing payment services it is all Payment link, and according to the order of the payment flow, all payment links are sequentially stored in the first file;Receiving module, the instruction paid for receiving triggering;Payment module, for according to the triggering command, be successively read by the script in first file store it is every One payment link, communicated with the Third-party payment platform, and described in being set in the script in communication process Payment cipher is sent to the Third-party payment platform, so that the Third-party payment platform completes institute according to the payment cipher State payment flow.
- 8. device according to claim 7, it is characterised in that according to the order of the payment flow, third party's branch All payment links that platform needs to feed back successively in the payment flow for completing payment services are paid, including:First link, the second chain Connect, the 3rd link and the 4th links;Correspondingly, the payment module, is specifically used forAccording to the triggering command, the stored in first file first link is read by the script and is assigned to default the One variable, and the HTTP request to the described first link is sent to the Third-party payment platform, receive The first parameter fed back to the HTTP request of the described first link;Stored in first file second link is read by the script and is assigned to default first variable, and by institute The first parameter is stated as post required parameters, the post requests to Third-party payment platform transmission to the described second link, Receive the second parameter that feedback is asked the post of the described second link;If the state variable in second parameter is true true, read what is stored in first file by the script 3rd link is assigned to default first variable, and using the payment cipher set in second parameter and the script as Post required parameters, post requests are carried out to the described 3rd link, receive the to the post request feedbacks of the described 3rd link Three parameters;If the state variable in the 3rd parameter is true, the stored in first file is read by the script Four links are assigned to default first variable, and using the 3rd parameter as post required parameters, to third party's branch Pay platform and send the post requests linked to the described 4th, receive and join to the 4th of the post request feedbacks of the described 4th link the Number;If the state variable in the 4th parameter is true, displaying pays successful prompt message, and described will preset the The value of one variable is appended in default first list variable.
- 9. device according to claim 8, it is characterised in that the payment module, be additionally operable toIf the state variable in second parameter is false fasle, flow terminates, and the value of default first variable is chased after It is added in default second list variable.
- 10. device according to claim 8, it is characterised in that the payment module, be additionally operable toIf the state variable in the 3rd parameter is fasle, flow terminates, and the value of default first variable is added Into default second list variable.
- 11. device according to claim 8, it is characterised in that the payment module, be additionally operable toIf the state variable in the 4th parameter is fasle, the value of default first variable is appended to default second In list variable.
- 12. device according to claim 8, it is characterised in that the payment module, be additionally operable toCommunicated in the script by pre-establishing with Third-party payment platform, to complete the mistake of the payment flow of payment services Cheng Zhong, if detecting exception, flow terminates, and the value of default first variable is appended into default 3rd list variable In.
- 13. a kind of electronic equipment, it is characterised in that including:Processor, memory, bus and storage are on a memory and can be The computer program run on processor;Wherein, the processor, memory complete mutual communication by the bus;The method as any one of claim 1-6 is realized described in the computing device during computer program.
- 14. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that on the non-transient computer readable storage medium storing program for executing Computer program is stored with, the side as any one of claim 1-6 is realized when the computer program is executed by processor Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710566427.1A CN107392575A (en) | 2017-07-12 | 2017-07-12 | A kind of automated payment method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710566427.1A CN107392575A (en) | 2017-07-12 | 2017-07-12 | A kind of automated payment method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107392575A true CN107392575A (en) | 2017-11-24 |
Family
ID=60340563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710566427.1A Pending CN107392575A (en) | 2017-07-12 | 2017-07-12 | A kind of automated payment method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107392575A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110210869A (en) * | 2019-06-11 | 2019-09-06 | Oppo广东移动通信有限公司 | Method of payment and relevant device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1756160A (en) * | 2004-09-27 | 2006-04-05 | 戴志军 | Individualized website convenient for user accessing Internet |
CN102236598A (en) * | 2010-05-07 | 2011-11-09 | 腾讯科技(深圳)有限公司 | Method and device for testing software |
CN103645898A (en) * | 2013-12-13 | 2014-03-19 | 浪潮电子信息产业股份有限公司 | Automatic scripting tool |
-
2017
- 2017-07-12 CN CN201710566427.1A patent/CN107392575A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1756160A (en) * | 2004-09-27 | 2006-04-05 | 戴志军 | Individualized website convenient for user accessing Internet |
CN102236598A (en) * | 2010-05-07 | 2011-11-09 | 腾讯科技(深圳)有限公司 | Method and device for testing software |
CN103645898A (en) * | 2013-12-13 | 2014-03-19 | 浪潮电子信息产业股份有限公司 | Automatic scripting tool |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110210869A (en) * | 2019-06-11 | 2019-09-06 | Oppo广东移动通信有限公司 | Method of payment and relevant device |
CN110210869B (en) * | 2019-06-11 | 2023-07-07 | Oppo广东移动通信有限公司 | Payment method and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107491948B (en) | Transfer payment method based on block chain technology | |
CN107169749A (en) | Network payment account checking method and system | |
CN107819861A (en) | Business data processing method, apparatus and system | |
CN107423957A (en) | A kind of service operation system of flexibly payment and settlement | |
CN108198071A (en) | A kind of futures sales counter risk control method and system | |
CN107038644A (en) | Declaration form treating method and apparatus | |
CN107451812B (en) | APP payment method on mobile terminal based on block chain technology | |
CN109299193A (en) | Method of data synchronization and relevant device | |
CN106034148B (en) | Rapid information interaction method, local server, remote server and system | |
CN107305673A (en) | A kind of order processing method and apparatus | |
CN107886428B (en) | Method for determining payment clearing exchange rate and payment clearing system | |
CN110400139B (en) | Payment method, device and system based on public digital wallet | |
CN109615384A (en) | Generation method, device and the server of timeliness verification rule | |
CN103020827B (en) | Payment processing method and system | |
CN107392575A (en) | A kind of automated payment method and device | |
CN106557921A (en) | On-line payment method and device | |
CN107464114A (en) | The automation real name identification method and device of a kind of payment services | |
CN106934606A (en) | A kind of Credit Card Payments request processing method and device | |
US20150134524A1 (en) | Real-Time External Financial Account Verification | |
CN104375830B (en) | A kind of collocation method and device of the electronic payment platform based on fund | |
CN106528078A (en) | Method and device for dynamically regulating payment way on the basis of react-native | |
CN110009483A (en) | A kind of data processing method and device based on temporal information | |
CN105205720A (en) | On-line financing examination and approval method, device and system | |
CN111260349B (en) | Real-time payment method and system based on block chain | |
CN108259487A (en) | Information interacting method and computer-readable medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171124 |
|
RJ01 | Rejection of invention patent application after publication |