Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of overcome the problems referred to above or the method for network payment that addresses the above problem at least in part and system are provided.
According to one aspect of the present invention, a kind of payment processing method is provided, comprise: receive the first payment request that comprises payment information of user's transmission of the first client, generate corresponding payment verification code according to payment information, store explicitly payment information and corresponding payment verification code, and the payment verification code sent to the first client, this payment information is included in the user profile at the first client place and the information of product to be paid; Receive user's second payment request that send, that comprise the payment verification code of the second client, guide the second client to finish payment according to the payment information corresponding with the payment verification code of storing; After the second payment request that the user who receives the second client sends, whether checking has stored the payment verification code, if the result is yes, obtains the payment information corresponding with the payment verification code.
Alternatively, wherein payment information also comprises: the time that sends the first payment request.
Alternatively, the step according to payment information generation payment verification code comprises: by random key payment information is encrypted, obtains the payment verification code.
Alternatively, also comprise step: generating the payment verification code above behind the Preset Time, the payment information of deletion storage and corresponding payment verification code.
According to a further aspect in the invention, a kind of payment processing system is provided, comprise server, the first client and the second client, described server comprises: first network interface, identifying code maker, storer and second network interface, wherein, the first network interface be suitable for receiving the first payment request that comprises payment information that the user of the first client sends, and the payment verification code that the identifying code maker is generated sends to the first client; The identifying code maker is suitable for generating corresponding payment verification code according to payment information; Storer is suitable for storing explicitly payment information and corresponding payment verification code, and wherein, this payment information is included in the user profile at the first client place and the information of product to be paid; The second network interface is suitable for receiving user's second payment request that send, that comprise the payment verification code of the second client, guides the second client to finish payment according to the payment information corresponding with the payment verification code of memory stores.
Alternatively, wherein payment information also comprises: the time that sends the first payment request.
Alternatively, the identifying code maker is encrypted payment information by random key, obtains the payment verification code.
Alternatively, this server further comprises: the identifying code detector, be suitable for after the second network interface receives the second payment request that the user of the second client sends, whether stored the payment verification code in the verifying memory, if the result is yes, obtain the payment information corresponding with the payment verification code.
Alternatively, storer is further adapted for and is generating the payment verification code above behind the Preset Time, the payment information of deletion storage and corresponding payment verification code.
According to payment processing method of the present invention and system, the payment information that comprises in the first payment request that sends according to the user of the first client generates corresponding payment verification code, and with this payment information and payment verification code association store, in subsequent process, receive the second payment request that comprises this payment verification code that the second client sends, according to guiding the second client to pay with the second payment information of paying the payment verification code association store in the request.Solved thus when present employing URL pays and easily utilized by fishing website, thereby cause paying failed problem, realized and to have paid by the payment verification code, and by the corresponding relation between payment information and the payment verification code, the payment verification code is verified, to avoid paying failed beneficial effect.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
The embodiment of the invention provides a kind of payment processes server.Fig. 1 shows the structural representation of the payment processing system that comprises this payment processes server.As shown in Figure 1, this payment processes server 100 comprises: first network interface 110, identifying code maker 120, storer 150 and second network interface 130.
First network interface 110 receives the first payment request that comprises payment information of user's transmission of the first client 210, this payment information is sent to identifying code maker 120, generate corresponding payment verification code by identifying code maker 120 according to the payment information that first network interface 110 receives, then, first network interface 110 sends to this first client 210 with the payment verification code that identifying code maker 120 generates.Wherein, the payment information that comprises in this first payment request is included in the user profile at the first client place and the information of product to be paid.
When generating the payment verification code according to the payment information in this first payment request, can realize in the following way by identifying code maker 120: by the md5 algorithm payment information is encrypted, obtains the payment verification code.Perhaps, by random key payment information is encrypted, obtains the payment verification code.Wherein, when by random key payment information being encrypted, because key is random, therefore, crack difficulty larger, so security is better.Therefore, in the present embodiment, the mode that article once is encrypted payment information by random key.In order to obtain random key, can in above-mentioned payment information, further comprise the time that sends the first payment request, encryption key when like this, identifying code maker 120 is determined the payment information encryption in the first payment request according to the transmitting time of the first payment request.Because each time that sends the first payment request is all different, so the encryption key when the first payment request being encrypted is also different at every turn, thereby has improved security.In addition, can also when the first client sends the first payment request, produce a random number, determine encryption key according to this random number, crack difficulty in order to increase.
After identifying code maker 120 generated the payment verification code, storer 150 was with the payment verification code association store of the correspondence of this payment information and generation.In addition, crack difficulty in order further to increase, storer 150 is further used for generating the payment verification code above behind the Preset Time, the payment information of deletion storage and corresponding payment verification code.
The second payment request that second network interface 130 sends for the user who receives the second client 220, comprise the payment verification code, the payment information corresponding with this payment verification code of storing according to storer 150 guides the second client 220 to finish payment.
Generally, be friends or partnership relation etc. between the user of the user of the second client and the first client.The user of the second client can get access to the payment verification code that the identifying code maker generates from the first client by various communication modes (such as QQ, short message, Email etc.).
Alternatively, in order further the payment verification code in the second payment request to be verified, this payment processes server can further include: identifying code detector 140, be suitable for after second network interface 130 receives the second payment request that the user of the second client 220 sends, whether stored this payment verification code in the verifying memory 150, if the result is yes, obtain the payment information corresponding with this payment verification code.
In addition, alternatively, also can be after the payment verification code that receives from the second client, check whether the time that this payment verification code generates has surpassed the schedule time, if surpassed the schedule time (for example 30 minutes), think that then the payment verification code lost efficacy, and the payment that does not allow the second client to carry out.
Specific works process about above-mentioned first network interface 110, identifying code maker 120, storer 150 and second network interface 130 and identifying code detector 110 will give to describe in detail further with reference to accompanying drawing in the embodiment of payment processing method provided by the invention.
The payment processes server that provides by the embodiment of the invention, the payment verification code that the official website of the second client by product to be paid provides replaces the first client to finish payment process, because this payment verification code can only use in official website, therefore, avoided the risk of being cheated by fishing website.And, by pre-stored payment verification code and corresponding payment information, and further guide the second client to finish payment according to the payment verification code of storage with corresponding payment information, can further verify the legitimacy of the payment verification code of the second client input, thereby improve payment safety.In addition, in the embodiment of the invention, by random key payment information is encrypted, and the storage time limit that the payment verification code is set, and will exceed the payment verification code deletion of storing the time limit or be made as the modes such as invalid, further improved the difficulty that cracks of payment verification code, ensured safety of payment.
The embodiment of the invention also provides a kind of payment processing system, and as shown in Figure 1, this payment processing system comprises payment processes server 100, the first client 210 and the second client 220.Wherein, the first client 210 and the second client 220 can communicate with payment processes server 100 by various wire/radio network links.Payment processes server 100 comprises above-mentioned first network interface 110, identifying code maker 120, storer 150 and second network interface 130 and identifying code detector 140.Specific works process about payment processes server 100 and the first client 210 and the second client 220 will give to describe in detail further in the embodiment of payment processing method provided by the invention by reference to the accompanying drawings.
The embodiment of the invention also provides a kind of payment processing method, and this payment processing method can be applicable to above-mentioned payment processes server and payment processing system.Fig. 2 shows the process flow diagram of this payment processing method.As shown in Figure 2, the method starts from step S210, in step S210, receives the first payment request that comprises payment information of user's transmission of the first client.Wherein, the payment information that comprises in this first payment request is included in the user profile at the first client place and the information of product to be paid.Wherein, the executive agent of step S210 can be the first network interface 110 among Fig. 1.
The user of the first client is when sending the first payment request, and the appointment that provides on can the official website by product to be paid is supplemented interface with money and sent.In the present embodiment, describe take product to be paid as online game as example.When the user of the first client is intended for online game and supplements with money, can login the official website of this online game.Fig. 3 shows the schematic diagram of supplementing the interface with money in the official website of this online game.As can be seen from Figure 3, supplement the upper left corner at interface with money at this, for the user provides three to supplement interface with money: first is supplemented interface with money and is " supplementing with money to oneself ", supplements interface with money for second and is " supplementing with money to others ", supplements interface with money for the 3rd and is " looking for people Dai Chong ".The user supplements the transmission that interface " is looked for people Dai Chong " and can finish the first above-mentioned payment request with money by the 3rd.
Particularly, after the user clicks the button of " looking for people Dai Chong ", can show corresponding choice box on the right side of supplementing the interface with money, input payment information for the user.Payment information comprises: the user profile at the information of product to be paid and the first client place.Wherein, the information of product to be paid is mainly used in identifying product to be paid, for example, in interface shown in Figure 3, the information of product to be paid comprises game name and Game Zone clothes, the title that the user can select to play by combobox (as dragon will), then select relevant Game Zone clothes by the multiselect frame.The user profile at the first client place is mainly used in identifying the user that will supplement with money, and for example, in interface shown in Figure 3, the user profile at the first client place mainly refers to game role (such as Huai China).After user selection complete above-mentioned product information to be paid and user profile, click the button of " generating for filling identification code " (" generation is filled identification code " among Fig. 3 just refers to above-mentioned " payment verification code "), just can send the first above-mentioned payment request to server, comprise the payment information of inputting among Fig. 3 in this first payment request.
Receive after the first above-mentioned payment request, in step S220, generate corresponding payment verification code according to the payment information in this first payment request, store explicitly this payment information and corresponding payment verification code, and this payment verification code is sent to the first client.
Particularly, in step S220, can realize in the following way when generating the payment verification code according to the payment information in this first payment request: by the md5 algorithm payment information is encrypted, obtains the payment verification code.Perhaps, by random key payment information is encrypted, obtains the payment verification code.Wherein, when by random key payment information being encrypted, because key is random, therefore, crack difficulty larger, so security is better.Therefore, in the present embodiment, the mode that article once is encrypted payment information by random key.
In order to obtain random key, can in above-mentioned payment information, further comprise the time that the first payment is asked that sends, like this, the encryption key when server is determined the payment information encryption in the first payment request according to the transmitting time of the first payment request.Because each time that sends the first payment request is all different, so the encryption key when the first payment request being encrypted is also different at every turn, thereby has improved security.In addition, can also when the first client sends the first payment request, produce a random number, determine encryption key according to this random number, crack difficulty in order to increase.
The combination of a string letter and number that the button right side that " generates for filling identification code " among Fig. 3 shows is exactly above-mentioned payment verification code.This payment verification code is to be encrypted by the payment information (being game name, Game Zone clothes and game role) that random key is inputted the user to obtain, and particularly, can adopt following code to produce the payment verification code:
Can find out by above-mentioned code, when generating the payment verification code, mainly realize by the authcode function, the Main Function of this function is to encrypt.For example, the game abbreviation of the online game that the gkey among first parameter $ gkey. $ skey. $ qid. $ time of authcode function indicates to supplement with money, the Game Zone clothes of the online game that skey indicates to supplement with money, qid represents user ID, time represents the current time, namely sends the time of the first payment request.This shows, different from traditional md5 algorithm, in the authcode function algorithm, use the character string $ gkey. $ skey. $ qid. $ time that changes as encrypting the original character string, can use random encryption key to be encrypted, encryption original character string when so just having guaranteed each generation payment verification code can not repeat, thereby has improved security.
The detailed process of above-mentioned generation payment verification code can be realized by the identifying code maker 120 among Fig. 1.
In step S220, generated after payment verification code corresponding to payment information, also needed the payment verification code association store with the correspondence of this payment information and generation.Take Fig. 3 as example, payment information comprises that " supplement game with money: dragon is with 360 bodyguards, 01 district; Game role: Huai China ", the payment verification code that this payment information is corresponding is " af5542b31f2105077d4a65aab3a5a29a ".
When storage, in order further to improve security, prevent that the payment verification code from illegally being stolen or Brute Force within the long time period, can only payment information and corresponding payment verification code be stored the time period (for example half an hour) of setting, after the payment verification code of the payment information of storing and correspondence surpasses this time period, just with its deletion or be set to invalidly, in the process of long-time storage, illegally stolen or Brute Force preventing.Like this, as long as the disabled user can't successfully crack this payment verification code within half an hour, just can not threaten the payment safety generation, surpass after half an hour, even cracked this payment verification code, because this payment verification code lost efficacy, therefore can not threaten the payment safety generation yet.Above-mentioned storing process can be realized by the storer 150 among Fig. 1.
In step S220, the payment verification code that this payment information that further will generate is corresponding sends to the first above-mentioned client, can send by the first network interface 110 among Fig. 1 when specifically sending.The user of the first above-mentioned client receives after this payment verification code, can copy this payment verification code by " copying to Clipboard " button among Fig. 3, then by various communication modes (such as QQ, short message, Email etc.) this payment verification code be sent to the user of the second client.Wherein, the user of the second client is the user that user user's appointment, that will replace the first client by the first client finishes delivery operation.Generally, be friends or partnership relation etc. between the user of the user of the second client and the first client.
Then, in step S230, receive user's second payment request that send, that comprise this payment verification code of the second client, the payment information corresponding with this payment verification code according to storage guides the second client to finish payment, particularly, can be received by the second network interface 130 among Fig. 1 the second above-mentioned payment request.
Wherein, the user of the second client is when sending the second payment request, and the appointment that provides on also can the official website by product to be paid is supplemented interface with money and sent.For example, the user of the second client can supplement by second of showing among Fig. 3 interface with money and " supplement " the second payment request that sends to others with money.Supplement with money after interface " supplements with money to others " when the user of the second client clicks second, will show the interface of supplementing with money shown in Figure 4 on the second client.Supplement the interface with money and can find out from shown in Figure 4, the payment verification code that comprises in the second payment request that the user of the second client sends is " af5542b31f2105077d4a65aab3a5a29a ", alternatively, after server is received the payment verification code that comprises in this second payment request, at first whether checking has stored the payment verification code that comprises in the second payment request, find in step S220, to have stored this payment verification code by checking, illustrate that this payment verification code is to be generated by the official website of product to be paid, legal, thereby, further obtain the payment information corresponding with this payment verification code, namely " supplement game with money: dragon is with 360 bodyguards, 01 district; Game role: Huai China ".Correspondingly, in Fig. 4, will demonstrate above-mentioned payment information, confirm for the user.If user's payment confirming information of the second client is errorless, can finish the process of supplementing with money by clicking " next step ".In addition, for prompting user better, in Fig. 4, also be provided with the prompting frame of " I know this is not supplemented with money can be charged in my account ", in order to prompting user.
Wherein, in said process, can verify by following code whether to store the payment verification code that comprises in the second payment request:
In above-mentioned code, obtain the data of the given content of databases storage by the getGameInfo function, if get less than then report an error, do not store corresponding payment verification code in the database of descriptions; Will return corresponding payment information if got, and guide the second client to finish payment process according to corresponding payment information.The process whether above-mentioned checking has stored the payment verification code that comprises in the second payment request can realize by the identifying code detector 140 among Fig. 1.
In addition, alternatively, also can be after the payment verification code that receives from the second client, check whether the time that this payment verification code generates has surpassed the schedule time, if surpassed the schedule time (for example 30 minutes), think that then the payment verification code lost efficacy, and the payment that does not allow the second client to carry out.
In the above-described embodiments, describe as an example of online game example, in the actual conditions, product to be paid can also be other various products, for example, and film ticket, books etc.Correspondingly, as long as payment information can reflect product information to be paid and user profile.For example, when product to be paid was books, the product information to be paid that comprises in the payment information can be that book name, author's title, publishing house and/or galley are inferior; User profile can be to want to buy the user's of these books network account or Real Name.
The payment processing method that provides by the embodiment of the invention, the payment verification code that the official website of the second client by product to be paid provides replaces the first client to finish payment process, because this payment verification code can only use in official website, therefore, avoided the risk of being cheated by fishing website.And, by pre-stored payment verification code and corresponding payment information, and further guide the second client to finish payment according to the payment verification code of storage with corresponding payment information, can further verify the legitimacy of the payment verification code of the second client input, thereby improve payment safety.
In addition, in the embodiment of the invention, by random key payment information is encrypted, and the storage time limit that the payment verification code is set, and will exceed the payment verification code deletion of storing the time limit or be made as the modes such as invalid, further improved the difficulty that cracks of payment verification code, ensured safety of payment.
According to payment processing method of the present invention and system, the payment information that comprises in the first payment request that sends according to the user of the first client generates corresponding payment verification code, and with this payment information and payment verification code association store, in subsequent process, receive the second payment request that comprises this payment verification code that the second client sends, according to guiding the second client to pay with the second payment information of paying the payment verification code association store in the request.Solved thus when present employing URL pays and easily utilized by fishing website, thereby cause paying failed problem, realized and to have paid by the payment verification code, and by the corresponding relation between payment information and the payment verification code, the payment verification code is verified, to avoid paying failed beneficial effect.
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the instructions that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be in the situation that there be these details to put into practice.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate clearly thus this embodiment into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different from this embodiment the module in the equipment among the embodiment.Can be combined into a module or unit or assembly to the module among the embodiment or unit or assembly, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless in addition clearly statement, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this instructions (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of the feature of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use in practice microprocessor or digital signal processor (DSP) to realize according to some or all some or repertoire of parts in the payment processing system of the embodiment of the invention.The present invention can also be embodied as be used to part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computing machine of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title with these word explanations.