CN107230061A - Templating recharge method and device - Google Patents

Templating recharge method and device Download PDF

Info

Publication number
CN107230061A
CN107230061A CN201710397347.8A CN201710397347A CN107230061A CN 107230061 A CN107230061 A CN 107230061A CN 201710397347 A CN201710397347 A CN 201710397347A CN 107230061 A CN107230061 A CN 107230061A
Authority
CN
China
Prior art keywords
money
templating
order
way
payment
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
Application number
CN201710397347.8A
Other languages
Chinese (zh)
Inventor
唐武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Sisanjiujiu Information Technology Co Ltd
Original Assignee
Guangzhou Sisanjiujiu Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Sisanjiujiu Information Technology Co Ltd filed Critical Guangzhou Sisanjiujiu Information Technology Co Ltd
Priority to CN201710397347.8A priority Critical patent/CN107230061A/en
Publication of CN107230061A publication Critical patent/CN107230061A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures

Abstract

The invention provides a kind of templating recharge method and device, it is related to moving game payment technology field, this method includes:Receive client submission supplements message with money;Wherein, message is supplemented with money to identify including way of payment;Way of payment class corresponding with way of payment mark is transferred, for the way of payment class establishment object transferred;According to supplementing message establishing order with money and order be sent into client;Function generation is supplemented with money by the templating of object supplemented with money and link and link will be supplemented with money be sent to client, so that client submits order to supplementing the corresponding server of link with money;When the callback interface of server calls service end, function is supplemented with money by the templating of object and judges whether order merchandises success;If it is, being added for client, order is corresponding virtually to supplement number with money.Templating recharge method and device provided in an embodiment of the present invention, carry out templating to the generalized flowsheets of different channel of disbursement, and specification supplements access process with money, simplifies access and supplements code with money.

Description

Templating recharge method and device
Technical field
The present invention relates to moving game payment technology field, more particularly, to a kind of templating recharge method and device.
Background technology
There is the demand (example for allowing player to buy virtual goodses in moving game field, particularly mobile phone network game Such as diamond, ingot), it is traded or supplements with money generally by access third party's on-line payment.In different countries and regions, stream Capable on-line payment mode is different, such as Thailand's prevalence MOL and Easy2pay, U.S. prevalence Paypal, and Russia is popular Payssion and Yandex.Because the recharge procedure of different on-line payment channels there is difference to supplement logic with money, it is necessary to mobile trip The service end of play supports a variety of different recharge procedures, causes complicated code, exploitation and the cost safeguarded high.
A variety of on-line payment modes are supported to cause to develop and safeguard into for above-mentioned mobile game client in the prior art The problem of this is high, not yet proposes effective solution at present.
The content of the invention
In view of this, it is an object of the invention to provide a kind of templating recharge method and device, connecing for supplementing with money of specification Enter flow, also simplify the code supplemented with money.
In a first aspect, the embodiments of the invention provide a kind of templating recharge method, applied to service end, service end is advance Definition has way of payment class corresponding with way of payment, and way of payment class supplements function with money including templating;This method includes:Receive What client was submitted supplements message with money;Wherein, message is supplemented with money to identify including way of payment;Transfer fill corresponding with way of payment mark Value mode class, for the way of payment class establishment object transferred;According to supplementing message establishing order with money and order be sent into client; Function generation is supplemented with money by the templating of object supplemented with money and link and link will be supplemented with money be sent to client, ordered so that client is submitted It is single to supplementing the corresponding server of link with money;When the callback interface of server calls service end, supplemented with money by the templating of object Function judges whether order merchandises success;If it is, being added for client, order is corresponding virtually to supplement number with money.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of the first of first aspect, wherein, it is The way of payment class transferred, which creates object, to be included:Obtain the class name of way of payment class;According to the entitled way of payment class establishment pair of class As.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of second of first aspect, wherein, lead to The templating for crossing object supplements function with money and judges whether order merchandises and successfully includes:Function is supplemented with money by the templating of object to obtain back Adjust the general parameter of interface;Order status parameter in general parameter judges whether order merchandises success.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of the third of first aspect, in addition to: When the callback interface of server calls service end, function is supplemented with money by the templating of object and verifies whether call request is legal; If legal, perform and function is supplemented with money by the templating of object judge whether order merchandises successful step.
With reference to the third possible embodiment of first aspect, the embodiments of the invention provide the 4th of first aspect kind Possible embodiment, in addition to:Signature is calculated according to message is supplemented with money;By the templating of object supplement with money function checking call please Seeking Truth it is no it is legal including:By the templating of object supplement with money function ratio compared with signature and the signature that is calculated according to call request whether one Cause, whether checking call request is legal.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of the 5th of first aspect kind, in addition to: When judging that order transaction is unsuccessful, transmission supplements failed message with money to client.
Second aspect, the embodiment of the present invention also provides a kind of templating recharging device, and applied to service end, service end is advance Definition has way of payment class corresponding with way of payment, and way of payment class supplements function with money including templating;The device includes:Receive Module, for receive client submission supplement message with money;Wherein, message is supplemented with money to identify including way of payment;Object Creation module, For transferring way of payment class corresponding with way of payment mark, for the way of payment class establishment object transferred;Order sends mould Block, supplements message establishing order with money for basis and order is sent into client;Link sending module is supplemented with money, for passing through object Templating supplement function generation with money and supplement with money and link and link will be supplemented with money be sent to client so that client submits order to supplementing with money Link corresponding server;Merchandise successfully judge module, for when the callback interface of server calls service end, passing through object Templating supplement function with money and judge whether order merchandises success;Module is supplemented with money, for if it is, being client addition order correspondence Virtual supplement number with money.
With reference to second aspect, the embodiments of the invention provide the possible embodiment of the first of second aspect, wherein, it is right As creation module is additionally operable to:Obtain the class name of way of payment class;Object is created according to the entitled way of payment class of class.
With reference to second aspect, the embodiments of the invention provide the possible embodiment of second of second aspect, wherein, hand over Easily success judge module is additionally operable to:The general parameter that function obtains callback interface is supplemented with money by the templating of object;According to general Order status parameter in parameter judges whether order merchandises success.
With reference to second aspect, the embodiments of the invention provide the possible embodiment of the third of second aspect, wherein, also Including:Legitimate verification module, for when the callback interface of server calls service end, letter to be supplemented with money by the templating of object Whether number checking call request is legal;If legal, execution supplements function with money by the templating of object and judges whether order merchandises Successful step.
The embodiment of the present invention brings following beneficial effect:Templating recharge method and dress provided in an embodiment of the present invention Put, be that a variety of way of payment define corresponding way of payment class, the way of payment class supplements function with money including templating, by for Way of payment class creates the special logics supplemented with money different in object implementatio8 templating flow, so as to reach to different payment canals The generalized flowsheet in road carries out Templated purpose, and both the specification access process supplemented with money, also simplify the code that access is supplemented with money.
Other features and advantages of the present invention will be illustrated in the following description, also, partly be become from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages are in specification, claims And specifically noted structure is realized and obtained in accompanying drawing.To enable the above objects, features and advantages of the present invention brighter Show understandable, preferred embodiment cited below particularly, and coordinate appended accompanying drawing, be described in detail below.
Brief description of the drawings
, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical scheme of the prior art The accompanying drawing used required in embodiment or description of the prior art is briefly described, it should be apparent that, in describing below Accompanying drawing is some embodiments of the present invention, for those of ordinary skill in the art, before creative work is not paid Put, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of templating recharge method provided in an embodiment of the present invention;
Fig. 2 is the step S12 of templating recharge method provided in an embodiment of the present invention schematic flow sheet;
Fig. 3 is the interaction figure of templating recharge method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of templating recharging device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another templating recharging device provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another templating recharging device provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another templating recharging device provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of server provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with accompanying drawing to the present invention Technical scheme be clearly and completely described, it is clear that described embodiment is a part of embodiment of the invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, belongs to the scope of protection of the invention.
There is player in current moving game and supplement behavior with money, be traded generally by access third party's on-line payment or Supplement with money.Because there is the recharge procedure of different on-line payment channels difference to supplement logic with money, it is necessary to the service end branch of moving game A variety of different recharge procedures are held, cause complicated code, exploitation and the cost safeguarded high.Meanwhile, the different means of payment are deposited again All it is, by the network address of game generation channel side, user to be then directed to channel in common ground, such as Easy2pay and Paypal Side supplements interface with money, and player is completed after payment action, and service end sends ideal money after receiving the notice of channel side to player.Base In this, a kind of templating recharge method and device provided in an embodiment of the present invention can supplement access process with money with specification, and simplification is supplemented with money Code.For ease of understanding the present embodiment, class, variable and the function for being first defined service end in the present invention are said It is bright:
1st, class and variable declaration:
(1) class Pay_Center:Perform the entrance class for supplementing operation with money.
(2) class Pay_Base:The parent of each way of payment class, for the different differentiation to be realized of way of payment of specification Logic.The corresponding class of each way of payment is as follows:
Easy2Pay:Class Pay_Easy2pay
MOL:Class Pay_Mol
PayPal:Class Pay_Payal
Payssion:Class Pay_Payssion
Yandex:Class Pay_Yandex
(3) object for some way of payment class that object pay_object is, for performing way of payment in recharge procedure Differentiation logic.The object is defined in class Pay_Center.For example supplemented with money using PayPal, pay_object is Pay_ The object of Payal classes;Supplemented with money using Payssion, be then the object of Pay_Payssion classes.
(4) variable pay_type_key is the identifier of way of payment, and the corresponding identifier of each way of payment is as follows:
Easy2Pay:easy2pay
MOL:mol
PayPal:payal
Payssion:payssion
Yandex:yandex
(5) variable request is used to obtain the parameter in url requests, such as request->State represents that obtaining url asks State parameters in asking
2nd, class Pay_Base function is as follows:
(1)hook_after_create_order:Realize and create the logic after order.
(2)success_pay:Called during the interface that places an order success.
(3)fail_pay:The interface that places an order is called when failing.
(4)get_server_callback_param:Return to the general parameter of service end callback interface, the parameter of return It is as follows:
billing_no:Order number
channel_success:Whether order succeeds
(5)hook_before_server_callback:Judge whether service end readjustment is legal, usually checking signature.
(6)server_callback_response:Service end callback interface returned data.
3rd, class Pay_Center Key Functions are as follows:
(1)init_pay:Initialization function.False code is as follows:
Class_name='Pay_'.ucfirst (pay_type_key);// obtain the class name of way of payment
Pay_object=new class_name ();// according to class name, create pay_object objects
(2)pay:Place an order interface, realizes and creates order function.False code is as follows:
Order=make_order ();// create order
If (order==false) pay_object->fail_pay();// place an order unsuccessfully
pay_object->hook_after_create_order();// perform the logic created after order
pay_object->success_pay();// place an order success
(3)server_callback:Service end callback interface, realizes verification request legitimacy, judges whether order succeeds With transmission ideal money function.False code is as follows:
Param=pay_object->get_server_callback_param();// get parms
if(param->Channel_success==false)
pay_object->server_callback_response();If // order is failure, return
Result=pay_object->hook_before_server_callback();// judge whether order is legal
If (result==false) papy_object->server_callback_response();// order does not conform to Method, then return
send_gold_to_user();The success of // order then sends the interior commodity of application to player.
papy_object->server_callback_response();// returning result.
A kind of templating recharge method disclosed in the embodiment of the present invention is described in detail first.
Embodiment 1
The embodiment of the present invention 1 provides a kind of templating recharge method, applied to service end, service end is pre-defined have with The corresponding way of payment class of way of payment, way of payment class supplements function with money including templating, and templating shown in Figure 1 is supplemented with money The schematic flow sheet of method, comprises the following steps:
Step S11, receive client submission supplements message with money.
When user supplements demand with money, it can be opened in client and supplement a kind of interface way of payment of selection with money (in the present embodiment In illustrated exemplified by selecting Payssion), and select to click on " submission order " button after the amount of money, now client is to clothes Business end, which is submitted, supplements message with money, and this, which supplements message with money, includes way of payment mark, and supplementing with money for such as Payssion is designated payssion。
Step S12, transfers way of payment class corresponding with way of payment mark, for the way of payment class establishment pair transferred As.
Service end can obtain the way of payment mark for supplementing that message includes with money, and be transferred pair according to way of payment mark The way of payment class answered, the corresponding way of payment classes of Payssion are Pay_Payssion classes.Created for class Pay_Payssion Object pay_object, the differentiation logic for performing way of payment in recharge procedure.The object is in class Pay_Center Definition, is supplemented with money for Payssion, and pay_object is the object of Pay_Payssion classes.
Step S13, according to supplementing message establishing order with money and order is sent into client.
Service end can include the amount of money in the order, supplement number or virtual goodses with money according to message generation order is supplemented with money The information such as value volume and range of product.Order is sent to client by service end, and the service of above-mentioned way of payment is submitted to by client Device.
Step S14, supplements function generation with money by the templating of object and supplements with money and link and will supplement link with money and be sent to client, So that client submits order to supplementing the corresponding server of link with money.
Service end supplements function generation with money by the templating of object and supplements link url with money, and the chain is received and sent to client, Link is supplemented with money by WebView accesses in client, into the payment interface of corresponding way of payment, user is in the payment interface Complete delivery operation.So that way of payment is Payssion as an example, the process that link is supplemented in generation with money is as follows:
pay_object->hook_after_create_order:
Url=https://www.payssion.com/api/v1/payment/createApi_key=api_key& Amount=amount&currency=currency&order_id=order_id&api_si g=api_sig;
The parameter name that // splicing is supplemented with money on the right of link, equal sign can replace with actual parameter value, and each parameter meaning is as follows: Api_key is the identifier that Payssion distributes to game, and amount is the amount of money, and currency is currency type, and order_id is to order Odd numbers, api_sig is signature.The api_key of wherein way of payment distribution is unique.Signature api_sig calculation is such as Under:
Api_sig=md5 (api_key+amount+currency+order_id+secret_key)
Wherein md5 is Message-Digest Algorithm 5 (Message-Digest Algorithm 5), for ensuring information transfer It is complete consistent, it is one of widely used hash algorithm of computer (translating digest algorithm, hash algorithm again).Obviously it can also use Other algorithms carry out the generation of secrecy signature.
Step S15, when the callback interface of server calls service end, supplements function with money by the templating of object and judges to order Single success of whether merchandising.If it is, performing step S16;If not, performing step S17.
The server of way of payment (channel side) can call the callback interface at game services end, and callback interface performs Pay_ Center init functions and server_callback functions, it is specific as follows:
(1) general parameter that function obtains callback interface is supplemented with money by the templating of object.
pay_object->get_server_callback_param:
Return array (billing_no=>request->Track_id, channel_success=> (request->State=='completed'));
Wherein, billing_no is order number, and channel_success is stateful transaction, works as request->State for ' Just represent to merchandise successfully during completed', otherwise represent Fail Transaction.
(2) the order status parameter in general parameter judges whether order merchandises success.
Channel_success of the service end in above-mentioned general parameter judges whether order merchandises success, when request->Represent to merchandise successfully when state is ' completed'.
Step S16, is that order is corresponding virtually supplements number with money for client addition.
After service end determines that channel side merchandises successfully, being that client addition is corresponding virtually supplements number with money, and this virtually fills Being worth number includes the forms such as ideal money number, virtual goodses number.
Step S17, transmission supplements failed message with money to client.
When judging that order transaction is unsuccessful, service end, which is sent, supplements failed message with money to client, reminds user to supplement behaviour with money Make failed.
Templating recharge method provided in an embodiment of the present invention, is that a variety of way of payment define corresponding way of payment Class, the way of payment class supplements function with money including templating, by being created for way of payment class in object implementatio8 templating flow not The same special logic supplemented with money, carries out Templated purpose, both specification so as to reach to the generalized flowsheet of different channel of disbursement The access process supplemented with money, also simplify the code that access is supplemented with money.
As a kind of step S12 embodiment, configuration data is determined whether there is according to the version information of current application, Referring to Fig. 2, step S12 can include:
Step S21, obtains the class name of way of payment class.
Step S22, object is created according to the entitled way of payment class of class.
Above-mentioned steps are realized by initialization function, specific as follows:
init_pay:
Class_name='Pay_'.ucfirst (pay_type_key);// obtain the class name of way of payment.
Pay_object=new class_name ();// according to class name, create pay_object objects.
Based on security consideration, in the callback interface of the server calls service end of channel side, it is necessary to pass through object Whether function checking call request is supplemented in templating with money legal;If legal, perform and function judgement is supplemented with money by the templating of object Whether order merchandises successful step.
Specifically, by the templating of object supplement with money function verify call request it is whether legal including:
Function ratio is supplemented with money by the templating of object whether consistent compared with signature and the signature that is calculated according to call request, verified Whether call request is legal.Wherein compare the parameter in url requests calculate obtained signature with according to the signature calculated when supplementing with money, If inconsistent, it is fly-by-night to illustrate this url requests, returns to failure.It is specific as follows:
pay_object->hook_before_server_callback:
Cal_sig=md5 (request->api_key+request->amount+request->currency+ request->order_id+request->state+secret_key);
if(cal_sig!=request->notify_sig)return false;
return true
The interaction figure of templating recharge method shown in Figure 3, including game client, game server and fills It is worth server, comprises the following steps:
1. user submits recharge amount and way of payment.
User the market interface of game client or supplement with money interface carry out virtual goodses or currency purchase or Supplement with money.
2. generate order and supplement link with money.
Game server according to client send supplement with money message establishing order and splice supplement link with money.
3. send order and supplement link with money.
Game server sends order to client and supplements link with money.
4. submit order to server is supplemented with money.
Client shows the interface of supplementing with money of way of payment by supplementing link with money, and operation is supplemented in completion with money.
5. call the callback interface of game server.
Supplement the callback interface of server calls game server with money, callback interface perform Pay_Center init functions and Server_callback functions, the client using interior commodity to user can be sent if order is successfully.
6. send virtual goodses or currency.
Templating recharge method provided in an embodiment of the present invention, is that a variety of way of payment define corresponding way of payment Class, the way of payment class supplements function with money including templating, by being created for way of payment class in object implementatio8 templating flow not The same special logic supplemented with money, carries out Templated purpose, while right so as to reach to the generalized flowsheet of different channel of disbursement Supplement server readjustment with money and carry out legal checking, improve the security supplemented with money.
Embodiment 2
The embodiment of the present invention 2 provides a kind of templating recharging device, applied to service end, service end is pre-defined have with The corresponding way of payment class of way of payment, way of payment class supplements function, structural representation shown in Figure 4 with money including templating Figure, including with lower module:
Receiving module 410, for receive client submission supplement message with money;Wherein, supplementing message with money includes way of payment mark Know;
Object Creation module 420, for transferring way of payment class corresponding with way of payment mark, for the side of supplementing with money transferred Formula class creates object;
Order sending module 430, supplements message establishing order with money for basis and order is sent into client;
Supplement with money link sending module 440, for the templating by object supplement with money function generation supplement with money link and will supplement with money Link is sent to client, so that client submits order to supplementing the corresponding server of link with money;
Merchandise successfully judge module 450, for when the callback interface of server calls service end, passing through the template of object Change supplements function with money and judges whether order merchandises success;
Module 460 is supplemented with money, for if it is, order is corresponding virtually supplements number with money for client addition.
Specifically, Object Creation module 420 is additionally operable to:Obtain the class name of way of payment class;According to the entitled way of payment of class Class creates object.
Specifically, successfully judge module 450 of merchandising is additionally operable to:Function is supplemented with money by the templating of object and obtains callback interface General parameter;Order status parameter in general parameter judges whether order merchandises success.
Further, structural representation shown in Figure 5, said apparatus also includes:
Legitimate verification module 510, for when the callback interface of server calls service end, passing through the templating of object Whether legal supplement function checking call request with money;If legal, execution supplements function with money by the templating of object and judges that order is The successful step of no transaction.
Further, structural representation shown in Figure 6, said apparatus also includes:
Signature calculation module 610, supplements message with money for basis and calculates signature;
Legitimate verification module is additionally operable to:Function ratio is supplemented with money by the templating of object relatively to sign and according to call request meter Whether the signature of calculation is consistent, and whether checking call request is legal.
Further, structural representation shown in Figure 7, said apparatus also includes:
Failed message sending module 710, for when judging that order transaction is unsuccessful, transmission to supplement failed message with money to client End.
The technique effect and preceding method embodiment phase of the device that the embodiment of the present invention is provided, its realization principle and generation Together, to briefly describe, device embodiment part does not refer to part, refers to corresponding contents in preceding method embodiment, herein not Repeat again.
Referring to Fig. 8, the embodiment of the present invention also provides a kind of server 100, including:Processor 80, memory 81, bus 82 With communication interface 83, processor 80, communication interface 83 and memory 81 are connected by bus 82;Processor 80 is used to perform storage The executable module stored in device 81, such as computer program.
Wherein, memory 81 may include high-speed random access memory (RAM, Random Access Memory), Non-labile memory (non-volatile memory), for example, at least one magnetic disk storage may also be included.By extremely A few communication interface 83 (can be wired or wireless) is realized logical between the system network element and at least one other network element Letter connection, can use internet, wide area network, LAN, Metropolitan Area Network (MAN) etc..
Bus 82 can be isa bus, pci bus or eisa bus etc..It is total that bus can be divided into address bus, data Line, controlling bus etc..For ease of representing, only represented in Fig. 8 with a four-headed arrow, it is not intended that only one bus or one The bus of type.
Wherein, memory 81 is used for storage program, and processor 80 is after execute instruction is received, configuration processor, foregoing The method performed by device that the stream process that inventive embodiments any embodiment is disclosed is defined can apply in processor 80, or Person is realized by processor 80.
Processor 80 is probably a kind of IC chip, the disposal ability with signal.In implementation process, above-mentioned side Each step of method can be completed by the integrated logic circuit of the hardware in processor 80 or the instruction of software form.Above-mentioned Processor 80 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), application specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable Logical device, discrete gate or transistor logic, discrete hardware components.It can realize or perform in the embodiment of the present invention Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor can also be appointed What conventional processor etc..The step of method with reference to disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing Device performs completion, or performs completion with the hardware in decoding processor and software module combination.Software module can be located at Machine memory, flash memory, read-only storage, programmable read only memory or electrically erasable programmable memory, register etc. are originally In the ripe storage medium in field.The storage medium is located at memory 81, and processor 80 reads the information in memory 81, with reference to The step of its hardware completes the above method.
The computer program product for the progress templating recharge method that the embodiment of the present invention is provided, including store processing The computer-readable recording medium of the executable non-volatile program code of device, the instruction that described program code includes can be used for holding Method described in row previous methods embodiment, implements and can be found in embodiment of the method, will not be repeated here.
If above-mentioned functions are realized using in the form of SFU software functional unit and are used as independent production marketing or in use, can be with It is stored in the executable non-volatile computer read/write memory medium of a processor.Understood based on such, the present invention The part that is substantially contributed in other words to prior art of technical scheme or the part of the technical scheme can be with software The form of product is embodied, and the computer software product is stored in a storage medium, including some instructions are to cause One computer equipment (can be personal computer, server, or network equipment etc.) performs each embodiment institute of the invention State all or part of step of method.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with The medium of store program codes.
Finally it should be noted that:Embodiment described above, is only the embodiment of the present invention, to illustrate the present invention Technical scheme, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, it will be understood by those within the art that:Any one skilled in the art The invention discloses technical scope in, it can still modify to the technical scheme described in previous embodiment or can be light Change is readily conceivable that, or equivalent substitution is carried out to which part technical characteristic;And these modifications, change or replacement, do not make The essence of appropriate technical solution departs from the spirit and scope of technical scheme of the embodiment of the present invention, should all cover the protection in the present invention Within the scope of.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

1. a kind of templating recharge method, it is characterised in that applied to service end, the service end is pre-defined to be had and the side of supplementing with money The corresponding way of payment class of formula, the way of payment class supplements function with money including templating;Methods described includes:
Receive client submission supplements message with money;Wherein, the message of supplementing with money is identified including way of payment;
Way of payment class corresponding with way of payment mark is transferred, for the way of payment class establishment object transferred;
Supplement message establishing order with money according to described and the order is sent to the client;
Function generation is supplemented with money by the templating of the object to supplement link with money and supplement link with money by described and be sent to the client, So that the client submits the order to supplement the corresponding server of link with money to described;
When the callback interface of service end described in the server calls, function is supplemented with money by the templating of the object and judges institute Order is stated whether to merchandise success;
If it is, being added for the client, the order is corresponding virtually to supplement number with money.
2. according to the method described in claim 1, it is characterised in that the way of payment class to transfer creates object bag Include:
Obtain the class name of the way of payment class;
Object is created according to the entitled way of payment class of the class.
3. according to the method described in claim 1, it is characterised in that function judgement is supplemented in the templating by the object with money Whether the order, which merchandises, successfully includes:
The general parameter that function obtains the callback interface is supplemented with money by the templating of the object;
Order status parameter in the general parameter judges whether the order merchandises success.
4. according to the method described in claim 1, it is characterised in that also include:When service end described in the server calls During callback interface, function is supplemented with money by the templating of the object and verifies whether the call request is legal;
If legal, perform the templating by the object and supplement function with money and judge whether the order merchandises successful step Suddenly.
5. method according to claim 4, it is characterised in that methods described also includes:Calculated according to the message of supplementing with money Signature;
The templating by the object supplement with money function verify the call request it is whether legal including:
By the templating of the object supplement with money function ratio it is more described signature with according to the call request calculate signature whether Unanimously, verify whether the call request is legal.
6. according to the method described in claim 1, it is characterised in that methods described also includes:
When judging that the order transaction is unsuccessful, transmission supplements failed message with money to the client.
7. a kind of templating recharging device, it is characterised in that applied to service end, the service end is pre-defined to be had and the side of supplementing with money The corresponding way of payment class of formula, the way of payment class supplements function with money including templating;Described device includes:
Receiving module, for receive client submission supplement message with money;Wherein, the message of supplementing with money is identified including way of payment;
Object Creation module, for transferring way of payment class corresponding with way of payment mark, is supplemented with money described in transferring Mode class creates object;
Order sending module, for supplementing message establishing order with money according to and the order being sent into the client;
Supplement link sending module with money, for the templating by the object supplement with money function generation supplement with money link and supplemented with money described Link is sent to the client, so that the client submits the order to supplement the corresponding server of link with money to described;
Merchandise successfully judge module, for when the callback interface of service end described in the server calls, passing through the object Templating supplement function with money and judge whether the order merchandises success;
Module is supplemented with money, for if it is, virtually supplementing number with money for the client addition order is corresponding.
8. device according to claim 7, it is characterised in that the Object Creation module is additionally operable to:
Obtain the class name of the way of payment class;
Object is created according to the entitled way of payment class of the class.
9. device according to claim 7, it is characterised in that the transaction success judge module is additionally operable to:
The general parameter that function obtains the callback interface is supplemented with money by the templating of the object;
Order status parameter in the general parameter judges whether the order merchandises success.
10. device according to claim 7, it is characterised in that also include:
Legitimate verification module, for when the callback interface of service end described in the server calls, passing through the object Templating supplements function with money and verifies whether the call request is legal;If legal, the templating by the object is performed Supplement function with money and judge whether the order merchandises successful step.
CN201710397347.8A 2017-05-27 2017-05-27 Templating recharge method and device Pending CN107230061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710397347.8A CN107230061A (en) 2017-05-27 2017-05-27 Templating recharge method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710397347.8A CN107230061A (en) 2017-05-27 2017-05-27 Templating recharge method and device

Publications (1)

Publication Number Publication Date
CN107230061A true CN107230061A (en) 2017-10-03

Family

ID=59933974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710397347.8A Pending CN107230061A (en) 2017-05-27 2017-05-27 Templating recharge method and device

Country Status (1)

Country Link
CN (1) CN107230061A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107833038A (en) * 2017-11-09 2018-03-23 深圳市幸福商城科技股份有限公司 A kind of recharge method and device
CN112613955A (en) * 2020-12-31 2021-04-06 苏州天聚人合科技有限公司 Order processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104966190A (en) * 2015-06-30 2015-10-07 北京奇虎科技有限公司 Network payment method and apparatus
CN105631650A (en) * 2015-12-22 2016-06-01 北京奇虎科技有限公司 Method and device for realizing universal front end payment service
CN105741092A (en) * 2016-01-19 2016-07-06 四川长虹电器股份有限公司 Unified payment method and unified payment system supporting multiple cloud services
CN105844459A (en) * 2016-03-22 2016-08-10 北京建飞无限科技有限公司 Small-amount phone fee payment method, device and system
CN106528078A (en) * 2016-09-23 2017-03-22 北京五八信息技术有限公司 Method and device for dynamically regulating payment way on the basis of react-native
JP6110549B1 (en) * 2016-06-23 2017-04-05 ヤフー株式会社 Management device, management method, and management program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104966190A (en) * 2015-06-30 2015-10-07 北京奇虎科技有限公司 Network payment method and apparatus
CN105631650A (en) * 2015-12-22 2016-06-01 北京奇虎科技有限公司 Method and device for realizing universal front end payment service
CN105741092A (en) * 2016-01-19 2016-07-06 四川长虹电器股份有限公司 Unified payment method and unified payment system supporting multiple cloud services
CN105844459A (en) * 2016-03-22 2016-08-10 北京建飞无限科技有限公司 Small-amount phone fee payment method, device and system
JP6110549B1 (en) * 2016-06-23 2017-04-05 ヤフー株式会社 Management device, management method, and management program
CN106528078A (en) * 2016-09-23 2017-03-22 北京五八信息技术有限公司 Method and device for dynamically regulating payment way on the basis of react-native

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ZGW06629: "代码设计之多渠道支付", 《HTTPS://MY.OSCHINA.NET/ZHUGUOWEI/BLOG/408263》 *
李昊: "互联网第三方支付模拟与监控平台设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
谭征: "电子商城多渠道网上支付系统", 《中国市场》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107833038A (en) * 2017-11-09 2018-03-23 深圳市幸福商城科技股份有限公司 A kind of recharge method and device
CN112613955A (en) * 2020-12-31 2021-04-06 苏州天聚人合科技有限公司 Order processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10796313B2 (en) Method and system for facilitating online payments based on an established payment agreement
US11164166B2 (en) Securely modifying exchange items in an exchange item marketplace network
US11694207B2 (en) Securing an exchange item associated with fraud
US20230015356A1 (en) No point-of-sale terminal exchange item redemption
JP6355141B2 (en) Online payment method, system, and apparatus
CN108320228A (en) Transregional piece of chain transaction in assets method, platform, equipment and storage medium
US20170372392A1 (en) Securely processing exchange items in a data communication system
CN105099688A (en) Operation method for electronic account, display method and apparatus for payment page
WO2017020618A1 (en) Electronic resource processing method and apparatus
JP2015528934A (en) Payment method and apparatus
JP2004240858A (en) Electronic money system, electronic money exchange server and portable terminal
CN104850990A (en) Payment method and system thereof, key terminal and key support system
CN107256484A (en) Mobile payment sublicense method and the payment system realized using this method
KR102045493B1 (en) Payment processing apparatus using virtual currency with automatic trading function of virtual currency and operating method thereof
US20230010281A1 (en) Securely processing exchange items in a data communication system
CN107230061A (en) Templating recharge method and device
US20220414667A1 (en) Dynamically sharing an exchange item
WO2021121030A1 (en) Resource transfer method, settlement terminal, and server node
TW201619878A (en) Method of transacting by using mobile wallet at internet transacting side
CN107633392B (en) Device refund interactive authentication method and system
CN116128507A (en) Block chain-based transaction method and device and electronic equipment
CN117575593A (en) Third party payment method and system
CN110570201A (en) music data processing method and device based on block chain

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171003