CN109947994A - Processing method, device, medium and the electronic equipment of payment process - Google Patents

Processing method, device, medium and the electronic equipment of payment process Download PDF

Info

Publication number
CN109947994A
CN109947994A CN201810914348.XA CN201810914348A CN109947994A CN 109947994 A CN109947994 A CN 109947994A CN 201810914348 A CN201810914348 A CN 201810914348A CN 109947994 A CN109947994 A CN 109947994A
Authority
CN
China
Prior art keywords
payment
response message
field
mapping
payment request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810914348.XA
Other languages
Chinese (zh)
Other versions
CN109947994B (en
Inventor
胡彦丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Financial Technology Holding Co Ltd
Original Assignee
Beijing Jingdong Financial Technology Holding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Financial Technology Holding Co Ltd filed Critical Beijing Jingdong Financial Technology Holding Co Ltd
Priority to CN201810914348.XA priority Critical patent/CN109947994B/en
Publication of CN109947994A publication Critical patent/CN109947994A/en
Priority to PCT/CN2019/099502 priority patent/WO2020029971A1/en
Application granted granted Critical
Publication of CN109947994B publication Critical patent/CN109947994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • 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

Abstract

The embodiment of the invention provides a kind of processing method of payment process, the processing unit of payment process, computer-readable medium and electronic equipment, the processing methods of the payment process, comprising: receives payment request parameter;Call request message template carries out the field mapping of the payment request parameter, generates payment request message;According to the payment request message, channel of disbursement interface is called to obtain payment response message;Response message template is called, the field mapping of the payment response message, the payment response message after generating mapping, to complete the processing to the payment process are carried out.The technical solution of the embodiment of the present invention is mapped by the field between message template and actual delivery process related parameters, avoid the overlapping development of the interface to different channel of disbursement, so that the payment process of different channel of disbursement can be managed concentratedly and be safeguarded, while improving the flexibility of polymerization payment.

Description

Processing method, device, medium and the electronic equipment of payment process
Technical field
The present invention relates to field of computer technology, in particular to a kind of processing method of payment process, device, Jie Matter and electronic equipment.
Background technique
With the development of science and technology and growth of the people to convenience in payment demand, internet payment channel is increasingly Welcome by user.However due to the increase of internet payment channel type, certain inconvenience is brought for consumer and trade company.Than Such as, shop is corresponding it is necessary to provide each internet payment channel to include the user of various internet payment channels under line The mobile consumer's barcode scanning payment of two dimensional code, meanwhile, the lane terminal of shop owners will load onto the receipts of each internet payment channel tool Money software.Thus, in order to which the cash register for meeting consumer payment experience and trade company is convenient, produce polymerization payment.Polymerization payment will A variety of channel of disbursement modes are polymerized to a kind of means of payment.
In the prior art, polymerization payment polymerize the mode of multiple channel of disbursement are as follows: different channel of disbursement is arranged different Mating interface, for identical payment task, the mating interface of different channel of disbursement uses different program codes.Meanwhile Program code need to be developed again to it for each payment task for newly-increased channel of disbursement.
However, exploitation and maintenance task are lengthy and tedious in the mode of the multiple channel of disbursement of polymerization payment polymerization in the prior art.
It should be noted that information is only used for reinforcing the reason to background of the invention disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
A kind of processing method for being designed to provide payment process of the embodiment of the present invention, the processing unit of payment process, Computer-readable medium and electronic equipment, and then multiple of polymerization payment polymerization in the prior art is overcome at least to a certain extent Pay exploitation and the lengthy and tedious problem of maintenance task in the mode of channel.
Other characteristics and advantages of the invention will be apparent from by the following detailed description, or partially by the present invention Practice and acquistion.
According to a first aspect of the embodiments of the present invention, a kind of processing method of payment process is provided, comprising:
Receive payment request parameter;
Call request message template carries out the field mapping of the payment request parameter, generates payment request message;
According to the payment request message, channel of disbursement interface is called to obtain payment response message;
Response message template is called, the field mapping of the payment response message, the payment response after generating mapping are carried out Message, to complete the processing to the payment process.
In some embodiments of the invention, call request message template, the field for carrying out the payment request parameter are reflected It penetrates, generates payment request message, comprising:
Obtaining field to be mapped in the request message template is first object field;
It is the second aiming field that field corresponding with the first object field is obtained in the payment request parameter;
The attribute of second aiming field is converted to the attribute of the first object field, is asked with generating the payment Seek message.
In some embodiments of the invention, the request message template is the first programming language format;
Before the attribute that the attribute of second aiming field is converted to the first object field, further includes:
Second aiming field is converted into the first programming language format.
In some embodiments of the invention, response message template is called, the field for carrying out the payment response message is reflected It penetrates, the payment response message after generating mapping, comprising:
Obtaining field to be mapped in the response message template is third aiming field;
It is the 4th aiming field that field corresponding with the third aiming field is obtained in the payment response message;
The attribute that the attribute of 4th aiming field is converted to the third aiming field, after generating the mapping Payment response message.
In some embodiments of the invention, the payment request parameter is the object of the second programming language;
After the attribute of the 4th aiming field to be converted to the attribute of the third aiming field, further includes:
Payment response message after parsing the mapping obtains the object of second programming language.
In some embodiments of the invention, the payment response message after the mapping is XML format, second programming Language format is Java Bean;
Payment response message after parsing the mapping obtains the object of second programming language, comprising:
The payment request parameter is the object of Java Bean, and the payment response report after the mapping is parsed by JAXB Text obtains the object of second programming language.
In some embodiments of the invention, before call request message template, further includes:
The request message template is added in configuration file.
In some embodiments of the invention, call request message template, the field for carrying out the payment request parameter are reflected It penetrates, generates payment request message, comprising:
When receiving the payment request parameter, the configuration file is called;
Based on the configuration file, is realized by template engine library and the field of the payment request parameter is mapped, generated Payment request message.
In some embodiments of the invention, before calling response message template, further includes:
The response message template is added in configuration file.
In some embodiments of the invention, response message template is called, the field for carrying out the payment response message is reflected It penetrates, the payment response message after generating mapping, comprising:
When receiving the payment response message, the configuration file is called;
Based on the configuration file, is realized by template engine library and the field of the payment response message is mapped, generated Payment response message after mapping.
In some embodiments of the invention, the payment request parameter includes the payment request parameter of M seed type, each The payment request parameter of seed type corresponds to a kind of channel of disbursement, wherein the positive integer that M is.
According to a second aspect of the embodiments of the present invention, a kind of processing unit of payment process is provided, comprising:
Receiving module, for receiving payment request parameter;
First mapping block is used for call request message template, carries out the field mapping of the payment request parameter, generates Payment request message;
Calling module, for calling channel of disbursement interface to obtain payment response message according to the payment request message;
Second mapping block carries out the field mapping of the payment response message, generates for calling response message template Payment response message after mapping, to complete the processing to the payment process.
According to a third aspect of the embodiments of the present invention, a kind of computer-readable medium is provided, computer is stored thereon with Program realizes the processing side of the payment process as described in first aspect in above-described embodiment when described program is executed by processor Method.
According to a fourth aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising: one or more processors; Storage device, for storing one or more programs, when one or more of programs are held by one or more of processors When row, so that one or more of processors realize the processing side of the payment process as described in first aspect in above-described embodiment Method.
Technical solution provided in an embodiment of the present invention can include the following benefits:
In the technical solution provided by some embodiments of the present invention, passes through call request message template and payment is asked It asks parameter to carry out field mapping, generates the payment request message for calling channel of disbursement interface;It is obtained according to payment request message After getting payment response message, response message template is called, and then field mapping is carried out to payment response message, thus completion pair In the processing of the corresponding payment process of payment request parameter.The processing method of payment process provided in an embodiment of the present invention, passes through Field mapping between message template and actual delivery process related parameters, avoids the repetition of the interface to different channel of disbursement Exploitation so that the payment process of different channel of disbursement can be managed concentratedly and be safeguarded, while improving the flexibility of polymerization payment.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 shows the flow diagram of the processing method of the payment process of an embodiment according to the present invention;
Fig. 2 shows the block schematic illustrations of the processing method of the payment process of embodiment according to the present invention;
Fig. 3 shows the stream of the method that generation payment request message is mapped by field of an embodiment according to the present invention Journey schematic diagram;
Fig. 4 shows the method by field mapping generation payment request message according to another embodiment of the present invention Flow diagram;
Fig. 5 shows the process of the method that field mapping is carried out to payment response message of an embodiment according to the present invention Schematic diagram;
Fig. 6 shows the stream of the method that field mapping is carried out to payment response message according to another embodiment of the present invention Journey schematic diagram;
Fig. 7 shows the flow diagram of the processing method of payment process according to another embodiment of the present invention;
Fig. 8 shows the structural schematic diagram of the processing unit of the payment process of embodiment according to the present invention;
Fig. 9 shows the structural schematic diagram for being suitable for the computer system for the electronic equipment for being used to realize the embodiment of the present invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However, It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step, It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
In polymerization payment, for identical payment task, such as unify lower single task, in the interface of different channel of disbursement Code the difference is that field name etc. in request message/response message format and message, and other parts Code be identical.In the prior art, by each channel of disbursement corresponding interface difference again exploitation code.So And exploitation and maintenance task are lengthy and tedious in the mode of the multiple channel of disbursement of polymerization payment polymerization in the prior art.
Fig. 1 shows the flow diagram of the processing method of the payment process of embodiment according to the present invention, at least one Determine to overcome in degree that polymerization payment in the prior art polymerize in the mode of multiple channel of disbursement exploitation and maintenance task is lengthy and tedious asks Topic.With reference to Fig. 1, this method comprises:
Step S101 receives payment request parameter;
Step S102, call request message template carry out the field mapping of the payment request parameter, generate payment request Message;
Step S103 calls channel of disbursement interface to obtain payment response message according to the payment request message;
Step S104 calls response message template, the field mapping of the payment response message is carried out, after generating mapping Payment response message, to complete the processing to the payment process
In technical solution provided by embodiment illustrated in fig. 1, by call request message template and to payment request parameter Field mapping is carried out, the payment request message for calling channel of disbursement interface is generated;According to payment request Receive message to branch After paying response message, response message template is called, and then field mapping is carried out to payment response message, to complete for payment The processing of the corresponding payment process of required parameter.The processing method of payment process provided in an embodiment of the present invention passes through message mould Field mapping between plate and actual delivery process related parameters, avoids the overlapping development of the interface to different channel of disbursement, So that the payment process of different channel of disbursement can be managed concentratedly and be safeguarded, while improving the flexibility of polymerization payment.
Fig. 2 shows the block schematic illustration of the processing method of the payment process of embodiment according to the present invention, below in conjunction with The specific implementation of step each in Fig. 1 is described in detail in Fig. 2:
With reference to Fig. 2, in the exemplary embodiment, received payment request ginseng 21 includes M seed type in step s101 Payment request parameter, a kind of corresponding channel of disbursement of the payment request parameter 21 of each type, wherein the positive integer that M is.When When M is more than or equal to 2, as described above, the code of the interface of different channel of disbursement is the difference is that request message/sound in M The field name etc. in message format and message answered, and the code of other parts is identical.
In the exemplary embodiment, call request message template in step s 102, carries out the payment request parameter Field mapping, generate payment request message.
Wherein, Fig. 3 shows the side that generation payment request message is mapped by field of an embodiment according to the present invention The flow diagram of method, with reference to Fig. 3, this method comprises:
The request message template is added in configuration file by step S301.
Step S302 when receiving the payment request parameter, calls the configuration file;
Step S303 is based on the configuration file, realizes the field to the payment request parameter by template engine library Mapping generates payment request message.
With continued reference to Fig. 2, by the way that request message template 221 to be stored in unified configuration file 22, then each payment When channel executes the program of respective interface, it can call above-mentioned configuration file 22 and get request message template 221.Into And it is based on the configuration file, by unified message Core Generator (such as template engine library), realize to the payment request The field mapping 222 of parameter 21, generates payment request message 23.Request message template 221 is configured center centralized management, favorably In advantageously call request message template, be conducive to program entirety lightweight.
Illustratively, template engine library can be StringTemplate.
Fig. 4 shows the method by field mapping generation payment request message according to another embodiment of the present invention Flow diagram, with reference to Fig. 4, this method comprises:
Step S401, obtaining field to be mapped in the request message template is first object field;
Step S402, it is the second mesh that field corresponding with the first object field is obtained in the payment request parameter Marking-up section;
The attribute of second aiming field is converted to the attribute of the first object field by step S403, to generate The payment request message.
Following code example is simple to being carried out shown in Fig. 4 by the process that field maps the method for generating payment request message Illustrate:
It is exported are as follows:<xml><payID>123456 $ of $</payId></xml>
Wherein, "<xml><payID>$ payId $</payId></xml>" be step S301 in request message template, first The attribute of aiming field can be showed by " the $ payId $ " in above-mentioned request message template, and " 123456 " can behave as from The field corresponding with the first object field got in payment request parameter is the attribute of the second aiming field.It will be described The attribute of second aiming field is converted to the attribute of the first object field, to generate the payment request message:<xml>< payID>$123456$</payId></xml>。
It in the exemplary embodiment,, will before step S403 if request message template is the first programming language format Second aiming field is converted to the first programming language format.That is, method provided by the present application, call request It not only include corresponding to during the field that message template carries out the payment request parameter is mapped to generate payment request message The conversion of field attribute also needs the uniform format of the programming language of corresponding field in request message parameter to be request message template Programming language format.In order to the execution and management of the request payment message of generation.
With continued reference to Fig. 2, in the exemplary embodiment, payment is got based on Fig. 3 and/or Fig. 4 method provided and is asked After seeking message, in step s 103, bottom channel of disbursement interface is called by HTTPS/JSF agreement, thus, the channel of disbursement Interface can be according to request message returning response message 24.
In the exemplary embodiment, response message template is called in step S104, carries out the payment response parameter Field mapping, generate mapping after payment request message.
Wherein, Fig. 5 shows the method for carrying out field mapping to payment response message of an embodiment according to the present invention Flow diagram, with reference to Fig. 5, this method comprises:
The request message template is added in configuration file by step S501.
Step S502 when receiving the payment response message, calls the configuration file;
Step S503 is based on the configuration file, realizes the field to the payment response message by template engine library Mapping, the payment response message after generating mapping.
With continued reference to Fig. 2, by the way that response message template 223 to be stored in unified configuration file 22, then each payment When channel executes the program of respective interface, it can call above-mentioned configuration file 22 and get response message template 223.Into And it is based on the configuration file 22, by unified message Core Generator (such as template engine library), realizes and the payment is rung The field of message 24 is answered to map, the payment response message 25 after generating mapping.Response message template 223 is configured center concentrate tube Reason, is conducive to advantageously call response message template 223, is conducive to program entirety lightweight.
Illustratively, template engine library can be StringTemplate.
Fig. 6 shows the stream of the method that field mapping is carried out to payment response message according to another embodiment of the present invention Journey schematic diagram, with reference to Fig. 6, this method comprises:
Step S601, obtaining field to be mapped in the response message template is third aiming field;
Step S602, it is the 4th mesh that field corresponding with the third aiming field is obtained in the payment response message Marking-up section;
The attribute of 4th aiming field is converted to the attribute of the third aiming field by step S603, to generate Payment response message after the mapping.
Each step of the specific implementation process and embodiment illustrated in fig. 4 of each step of embodiment illustrated in fig. 6 it is specific Implementation is similar, can specifically refer to embodiment illustrated in fig. 4, details are not described herein.
In the exemplary embodiment, if the payment request parameter is the object of the second programming language, in step S603 Later, the payment response message after parsing the mapping obtains the object of second programming language.That is, the application The method of offer not only includes the conversion of corresponding field attribute, also needs payment response report in the processing of the payment process Text resolves to and payment request parameter uniform programming language format.In order in payment process to the payment response message after mapping Use.
Fig. 7 shows the flow diagram of the processing method of payment process according to another embodiment of the present invention.With reference to Fig. 7, this method comprises:
Step S701 receives payment request parameter;
Step S702, obtaining field to be mapped in the request message template is first object field;
Step S703, it is the second mesh that field corresponding with the first object field is obtained in the payment request parameter Marking-up section;
Step S704, the request message template are XML format, and second aiming field is converted to XML format;
The attribute of second aiming field is converted to the attribute of the first object field by step S705, to generate The payment request message of XML format;
Step S706 calls channel of disbursement interface to obtain XML format according to the payment request message of the XML format Payment response message;
Step S707, obtaining field to be mapped in the response message template is third aiming field;
Step S708 obtains word corresponding with the third aiming field in the payment response message of the XML format Tetra- aiming field of Duan Wei;
The attribute of 4th aiming field is converted to the attribute of the third aiming field by step S709, to generate Payment response message after the mapping, the payment response message after the mapping are XML format;
Step S710, the payment request parameter are the object of Java Bean, parse the branch after the mapping by JAXB Response message is paid, the object of Java Bean is obtained.
In the exemplary embodiment, step S701 is identical as the specific implementation of step S101, and details are not described herein.
In the exemplary embodiment, step S702- step S705 is a kind of specific implementation of step S102.Step A kind of specific manifestation of S702- step S705 or embodiment illustrated in fig. 3.
Specifically, request message template is XML format in step S704, then second aiming field is converted to XML format.In turn, in step S705, the payment request message of XML format is generated.Method i.e. provided by the present application, calling are asked Ask message template carry out the payment request parameter field map to generate payment request message during, not only include pair The conversion of field attribute is answered, also needs the uniform format of the programming language of corresponding field in request message parameter to be request message mould The format of the programming language of plate.In order to the execution and management of the request payment message of generation.
In the exemplary embodiment, in step S706, according to the payment request message of the XML format, branch is called Pay the payment response message that channel interface obtains XML format.
In the exemplary embodiment, step S707- step S710 is a kind of specific implementation of step S103.Step A kind of specific manifestation of S707- step S710 or embodiment illustrated in fig. 5.
Specifically, the payment response message after getting mapping is also XML format in step S709.Meanwhile if institute It states the object that payment request parameter is Java Bean and parses the XML's after the mapping by JAXB after step S709 Payment response message, to obtain the object of Java Bean.That is, method provided by the present application, to the payment process Not only include the conversion of corresponding field attribute in processing, also needs payment response packet parsing to be consistent with payment request parameter Programming language format.In order to the use in payment process to the payment response message after mapping.
The device of the invention embodiment introduced below can be used for executing the processing side of the above-mentioned payment process of the present invention Method.
Fig. 8 shows the structural schematic diagram of the processing unit of the payment process of embodiment according to the present invention.The payment The processing unit 800 of journey, comprising: receiving module 801, the first mapping block 802, calling module 803 and the second mapping block 804。
Wherein, receiving module 801 is for receiving payment request parameter;First mapping block 802 is used for call request message Template carries out the field mapping of the payment request parameter, generates payment request message;Calling module 803 is used for according to Payment request message calls channel of disbursement interface to obtain payment response message;Second mapping block 804 is for calling response message Template carries out the field mapping of the payment response message, the payment response message after generating mapping, to complete to the payment The processing of process.
In the exemplary embodiment, the first mapping block 802, comprising: acquiring unit and converting unit.
Wherein, acquiring unit is first object field for obtaining field to be mapped in the request message template;It obtains Taking unit to be also used to obtain field corresponding with the first object field in the payment request parameter is the second target word Section;Converting unit is used to be converted to the attribute of second aiming field attribute of the first object field, to generate State payment request message.
In the exemplary embodiment, the request message template is the first programming language format;Converting unit is also used to, Second aiming field is converted into the first programming language format.
In the exemplary embodiment, the second mapping block 804, comprising: acquiring unit and converting unit.
Wherein, acquiring unit is third aiming field for obtaining field to be mapped in the response message template;It obtains Taking unit to be also used to obtain field corresponding with the third aiming field in the payment response message is the 4th target word Section;Converting unit is used to be converted to the attribute of the 4th aiming field attribute of the third aiming field, to generate Payment response message after stating mapping.
In the exemplary embodiment, the second mapping block 804, further includes: resolution unit.The payment request parameter is The object of second programming language, resolution unit obtain second programming for parsing the payment response message after the mapping The object of language.
In the exemplary embodiment, the payment response message after the mapping is XML format, second programming language Format is Java Bean;Resolution unit is specifically used for parsing the payment response message after the mapping, obtains second programming The object of language, comprising:
The payment request parameter is the object of Java Bean, and the payment response report after the mapping is parsed by JAXB Text obtains the object of second programming language.
In the exemplary embodiment, the processing unit 800 of payment process, further includes: the first adding module.First addition Module is for the request message template to be added in configuration file.
In the exemplary embodiment, the first mapping block 802, comprising: call unit and map unit.
Wherein, call unit is for calling the configuration file when receiving the payment request parameter;Map unit is used It in being based on the configuration file, is realized by template engine library and the field of the payment request parameter is mapped, generated payment and ask Seek message.
In the exemplary embodiment, the processing unit 800 of payment process, further includes: the second adding module.Second addition Module is for the response message template to be added in configuration file.
In the exemplary embodiment, the second mapping block 804, comprising: call unit and map unit.
Wherein, call unit is for calling the configuration file when receiving the payment response message;Map unit is used In being based on the configuration file, is realized by template engine library and the field of the payment response message is mapped, after generating mapping Payment response message.
In the exemplary embodiment, the payment request parameter includes the payment request parameter of M seed type, each type The payment request parameter of type corresponds to a kind of channel of disbursement, wherein the positive integer that M is.
Since each functional module of the processing unit of the payment process of example embodiments of the present invention was paid with above-mentioned The step of example embodiment of the processing method of journey, is corresponding, therefore for undisclosed details in apparatus of the present invention embodiment, asks Referring to the embodiment of the processing method of the above-mentioned payment process of the present invention.
Below with reference to Fig. 9, it illustrates the computer systems 900 for the electronic equipment for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.The computer system 900 of electronic equipment shown in Fig. 9 is only an example, should not be to the embodiment of the present invention Function and use scope bring any restrictions.
As shown in figure 9, computer system 900 includes central processing unit (CPU) 901, it can be read-only according to being stored in Program in memory (ROM) 902 or be loaded into the program in random access storage device (RAM) 903 from storage section 908 and Execute various movements appropriate and processing.In RAM 903, it is also stored with various programs and data needed for system operatio.CPU 901, ROM 902 and RAM 903 is connected with each other by bus 904.Input/output (I/O) interface 905 is also connected to bus 904。
I/O interface 905 is connected to lower component: the importation 906 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 907 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 908 including hard disk etc.; And the communications portion 909 of the network interface card including LAN card, modem etc..Communications portion 909 via such as because The network of spy's net executes communication process.Driver 910 is also connected to I/O interface 905 as needed.Detachable media 911, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 910, in order to read from thereon Computer program be mounted into storage section 908 as needed.
Particularly, according to an embodiment of the invention, may be implemented as computer above with reference to the process of flow chart description Software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 909, and/or from detachable media 911 are mounted.When the computer program is executed by central processing unit (CPU) 901, executes and limited in the system of the application Above-mentioned function.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part realizes that described unit also can be set in the processor.Wherein, the title of these units is in certain situation Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment. Above-mentioned computer-readable medium carries one or more program, when the electronics is set by one for said one or multiple programs When standby execution, so that the electronic equipment realizes the processing method such as above-mentioned payment process as described in the examples.
For example, the electronic equipment may be implemented as shown in Figure 1: step S101 receives payment request parameter;Step Rapid S101, call request message template carry out the field mapping of the payment request parameter, generate payment request message;Step S103 calls channel of disbursement interface to obtain payment response message according to the payment request message;Step S104 calls response Message template carries out the field mapping of the payment response message, the payment response message after generating mapping, to complete to described The processing of payment process.
For another example, each step as shown in Figure 7 may be implemented in the electronic equipment.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, embodiment according to the present invention, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, touch control terminal or network equipment etc.) executes embodiment according to the present invention Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (14)

1. a kind of processing method of payment process characterized by comprising
Receive payment request parameter;
Call request message template carries out the field mapping of the payment request parameter, generates payment request message;
According to the payment request message, channel of disbursement interface is called to obtain payment response message;
Response message template is called, the field mapping of the payment response message is carried out, generates the payment response message after mapping, To complete the processing to the payment process.
2. the method according to claim 1, wherein call request message template, carries out the payment request ginseng Several field mappings, generates payment request message, comprising:
Obtaining field to be mapped in the request message template is first object field;
It is the second aiming field that field corresponding with the first object field is obtained in the payment request parameter;
The attribute of second aiming field is converted to the attribute of the first object field, to generate the payment request report Text.
3. according to the method described in claim 2, it is characterized in that, the request message template is the first programming language format;
Before the attribute that the attribute of second aiming field is converted to the first object field, further includes:
Second aiming field is converted into the first programming language format.
4. according to the method described in claim 2, it is characterized in that, calling response message template, carries out the payment response report The field mapping of text, the payment response message after generating mapping, comprising:
Obtaining field to be mapped in the response message template is third aiming field;
It is the 4th aiming field that field corresponding with the third aiming field is obtained in the payment response message;
The attribute of 4th aiming field is converted to the attribute of the third aiming field, to generate the branch after the mapping Pay response message.
5. according to the method described in claim 4, it is characterized in that, the payment request parameter is pair of the second programming language As;
After the attribute of the 4th aiming field to be converted to the attribute of the third aiming field, further includes:
Payment response message after parsing the mapping obtains the object of second programming language.
6. according to the method described in claim 5, it is characterized in that, the payment response message after the mapping is XML format, institute Stating the second programming language format is Java Bean;
Payment response message after parsing the mapping obtains the object of second programming language, comprising:
The payment request parameter is the object of Java Bean, parses the payment response message after the mapping by JAXB, obtains Take the object of second programming language.
7. method according to any one of claims 1 to 6, which is characterized in that before call request message template, also wrap It includes:
The request message template is added in configuration file.
8. the method according to the description of claim 7 is characterized in that call request message template, carries out the payment request ginseng Several field mappings, generates payment request message, comprising:
When receiving the payment request parameter, the configuration file is called;
Based on the configuration file, is realized by template engine library and the field of the payment request parameter is mapped, generate payment Request message.
9. method according to any one of claims 1 to 6, which is characterized in that before calling response message template, also wrap It includes:
The response message template is added in configuration file.
10. according to the method described in claim 9, it is characterized in that, calling response message template, carries out the payment response report The field mapping of text, the payment response message after generating mapping, comprising:
When receiving the payment response message, the configuration file is called;
Based on the configuration file, is realized by template engine library and the field of the payment response message is mapped, generate mapping Payment response message afterwards.
11. method according to any one of claims 1 to 6, which is characterized in that the payment request parameter includes M type The payment request parameter of the payment request parameter of type, each type corresponds to a kind of channel of disbursement, wherein the positive integer that M is.
12. a kind of processing unit of payment process characterized by comprising
Receiving module, for receiving payment request parameter;
First mapping block is used for call request message template, carries out the field mapping of the payment request parameter, generates payment Request message;
Calling module, for calling channel of disbursement interface to obtain payment response message according to the payment request message;
Second mapping block carries out the field mapping of the payment response message, generates mapping for calling response message template Payment response message afterwards, to complete the processing to the payment process.
13. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The processing method of the payment process as described in any one of claims 1 to 11 is realized when row.
14. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs, when one or more of programs are by one or more of processing When device executes, so that one or more of processors realize the payment process as described in any one of claims 1 to 11 Processing method.
CN201810914348.XA 2018-08-10 2018-08-10 Payment process processing method, device, medium and electronic equipment Active CN109947994B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810914348.XA CN109947994B (en) 2018-08-10 2018-08-10 Payment process processing method, device, medium and electronic equipment
PCT/CN2019/099502 WO2020029971A1 (en) 2018-08-10 2019-08-06 Processing method and device for payment process, medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810914348.XA CN109947994B (en) 2018-08-10 2018-08-10 Payment process processing method, device, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109947994A true CN109947994A (en) 2019-06-28
CN109947994B CN109947994B (en) 2022-12-27

Family

ID=67005784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810914348.XA Active CN109947994B (en) 2018-08-10 2018-08-10 Payment process processing method, device, medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN109947994B (en)
WO (1) WO2020029971A1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020029971A1 (en) * 2018-08-10 2020-02-13 京东数字科技控股有限公司 Processing method and device for payment process, medium and electronic device
CN111091358A (en) * 2019-12-16 2020-05-01 中国建设银行股份有限公司 Unified processing method and system for multiple payment channels
CN111324612A (en) * 2020-02-28 2020-06-23 北京三快在线科技有限公司 Storage method, system, device, equipment and storage medium of order information
CN111324780A (en) * 2020-02-28 2020-06-23 北京三快在线科技有限公司 Storage method, transmission method, device and storage medium of product data
CN111369252A (en) * 2020-03-10 2020-07-03 北京意锐新创科技有限公司 Account checking method and device suitable for payment equipment
CN111684481A (en) * 2019-07-05 2020-09-18 深圳海付移通科技有限公司 Aggregated payment method and related equipment
CN114500690A (en) * 2022-02-15 2022-05-13 平安科技(深圳)有限公司 Interface data processing method and device, electronic equipment and storage medium
CN114900549A (en) * 2022-05-06 2022-08-12 建信金融科技有限责任公司 Message sending method and device, electronic equipment and storage medium
CN115242872A (en) * 2022-06-24 2022-10-25 平安银行股份有限公司 Data processing method and device, computer equipment and readable storage medium
CN115964028A (en) * 2021-10-12 2023-04-14 讯联数据(无锡)有限公司 Quick access method and system for third-party payment interface
CN117435174A (en) * 2023-12-11 2024-01-23 江西曼荼罗软件有限公司 Payment expansion method and system
CN111091358B (en) * 2019-12-16 2024-04-16 中国建设银行股份有限公司 Unified processing method and system for multiple payment channels

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111695328B (en) * 2020-06-16 2023-01-24 深圳前海微众银行股份有限公司 Method, device, equipment and storage medium for generating simulation test message
CN112037002A (en) * 2020-09-03 2020-12-04 中国银行股份有限公司 Fragmentation-removing message processing method and system based on distributed payment system
CN112419004B (en) * 2020-12-07 2024-02-02 恩亿科(北京)数据科技有限公司 Method, system, equipment and storage medium for configurable access of all-channel order
CN114070886A (en) * 2021-11-17 2022-02-18 深圳壹账通智能科技有限公司 Message conversion method, device, equipment and medium
CN115103034A (en) * 2022-06-27 2022-09-23 京东科技信息技术有限公司 Message protocol conversion method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847235A (en) * 2009-02-13 2010-09-29 美国银行公司 Be used to optimize system, method and the computer product of financial payment approach
CN105427101A (en) * 2015-11-19 2016-03-23 成都连银信息技术有限公司 Unified payment access gateway supporting multiple payment channels
CN105654279A (en) * 2016-01-27 2016-06-08 广州唯品会信息科技有限公司 Payment platform management method and device
CN105741093A (en) * 2016-01-25 2016-07-06 网易(杭州)网络有限公司 Payment method, device and system of mobile application
CN105741088A (en) * 2016-01-27 2016-07-06 广州唯品会信息科技有限公司 Routing matching payment method and device
WO2016115329A1 (en) * 2015-01-16 2016-07-21 Van De Wetering Stephen James Methods and systems for a personal data sharing app
CN106296142A (en) * 2015-06-12 2017-01-04 深圳云游四海信息科技有限公司 A kind of method and system of pay this extra Channel Selection
CN107153961A (en) * 2017-05-18 2017-09-12 努比亚技术有限公司 A kind of method of payment, paying server, trading server and readable storage medium storing program for executing
CN108183958A (en) * 2017-12-29 2018-06-19 银联商务股份有限公司 Message transmitting method, device and payment system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108022087A (en) * 2017-11-22 2018-05-11 深圳市牛鼎丰科技有限公司 payment data processing method, device, storage medium and computer equipment
CN109947994B (en) * 2018-08-10 2022-12-27 京东科技控股股份有限公司 Payment process processing method, device, medium and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847235A (en) * 2009-02-13 2010-09-29 美国银行公司 Be used to optimize system, method and the computer product of financial payment approach
WO2016115329A1 (en) * 2015-01-16 2016-07-21 Van De Wetering Stephen James Methods and systems for a personal data sharing app
CN106296142A (en) * 2015-06-12 2017-01-04 深圳云游四海信息科技有限公司 A kind of method and system of pay this extra Channel Selection
CN105427101A (en) * 2015-11-19 2016-03-23 成都连银信息技术有限公司 Unified payment access gateway supporting multiple payment channels
CN105741093A (en) * 2016-01-25 2016-07-06 网易(杭州)网络有限公司 Payment method, device and system of mobile application
CN105654279A (en) * 2016-01-27 2016-06-08 广州唯品会信息科技有限公司 Payment platform management method and device
CN105741088A (en) * 2016-01-27 2016-07-06 广州唯品会信息科技有限公司 Routing matching payment method and device
CN107153961A (en) * 2017-05-18 2017-09-12 努比亚技术有限公司 A kind of method of payment, paying server, trading server and readable storage medium storing program for executing
CN108183958A (en) * 2017-12-29 2018-06-19 银联商务股份有限公司 Message transmitting method, device and payment system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020029971A1 (en) * 2018-08-10 2020-02-13 京东数字科技控股有限公司 Processing method and device for payment process, medium and electronic device
CN111684481A (en) * 2019-07-05 2020-09-18 深圳海付移通科技有限公司 Aggregated payment method and related equipment
CN111091358B (en) * 2019-12-16 2024-04-16 中国建设银行股份有限公司 Unified processing method and system for multiple payment channels
CN111091358A (en) * 2019-12-16 2020-05-01 中国建设银行股份有限公司 Unified processing method and system for multiple payment channels
CN111324612A (en) * 2020-02-28 2020-06-23 北京三快在线科技有限公司 Storage method, system, device, equipment and storage medium of order information
CN111324780A (en) * 2020-02-28 2020-06-23 北京三快在线科技有限公司 Storage method, transmission method, device and storage medium of product data
CN111369252A (en) * 2020-03-10 2020-07-03 北京意锐新创科技有限公司 Account checking method and device suitable for payment equipment
CN115964028A (en) * 2021-10-12 2023-04-14 讯联数据(无锡)有限公司 Quick access method and system for third-party payment interface
CN115964028B (en) * 2021-10-12 2023-11-03 讯联数据(无锡)有限公司 Rapid access method and system for third party payment interface
CN114500690A (en) * 2022-02-15 2022-05-13 平安科技(深圳)有限公司 Interface data processing method and device, electronic equipment and storage medium
CN114500690B (en) * 2022-02-15 2023-08-18 平安科技(深圳)有限公司 Interface data processing method and device, electronic equipment and storage medium
CN114900549A (en) * 2022-05-06 2022-08-12 建信金融科技有限责任公司 Message sending method and device, electronic equipment and storage medium
CN115242872A (en) * 2022-06-24 2022-10-25 平安银行股份有限公司 Data processing method and device, computer equipment and readable storage medium
CN115242872B (en) * 2022-06-24 2024-02-02 平安银行股份有限公司 Data processing method, device, computer equipment and readable storage medium
CN117435174B (en) * 2023-12-11 2024-04-09 江西曼荼罗软件有限公司 Payment expansion method and system
CN117435174A (en) * 2023-12-11 2024-01-23 江西曼荼罗软件有限公司 Payment expansion method and system

Also Published As

Publication number Publication date
WO2020029971A1 (en) 2020-02-13
CN109947994B (en) 2022-12-27

Similar Documents

Publication Publication Date Title
CN109947994A (en) Processing method, device, medium and the electronic equipment of payment process
CN109922158A (en) Data processing method, device, medium and electronic equipment based on micro services
CN109598632A (en) Insurance business processing method, device, medium and electronic equipment
CN109242420A (en) Authority control method, device, electronic equipment and storage medium
CN108390872A (en) Certificate management method, device, medium and electronic equipment
CN109036425A (en) Method and apparatus for operating intelligent terminal
CN109118224A (en) Proof of work method, apparatus, medium and the electronic equipment of block chain network
CN109062563A (en) Method and apparatus for generating the page
CN110519379A (en) Request processing method and equipment based on micro services
CN108804402A (en) Report generating system based on big data platform and method
CN108846753A (en) Method and apparatus for handling data
CN110109979A (en) A kind of allocation list radio button method and apparatus
CN109558246A (en) A kind of load-balancing method, device, electronic equipment and storage medium
CN109960650A (en) Application assessment method, apparatus, medium and electronic equipment based on big data
CN109684188A (en) Test method and device
CN109981322A (en) The method and apparatus of cloud resource management based on label
CN108876379A (en) A kind of method and apparatus for generating message
CN110391938A (en) Method and apparatus for deployment services
CN109766148A (en) Method and apparatus for Processing Interface method call
CN110209315A (en) The display methods of character, device, electronic equipment and storage medium in user interface
CN107329834A (en) Method and apparatus for performing calculating task
CN110070394A (en) Data processing method, system, medium and calculating equipment
CN108021462B (en) Method and apparatus for calling cloud service
CN109697034A (en) A kind of method for writing data, device, electronic equipment and storage medium
CN109559241A (en) Processing method, device, medium and the electronic equipment that premium calculates

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 221, 2nd floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone, 100176

Applicant after: JINGDONG DIGITAL TECHNOLOGY HOLDINGS Co.,Ltd.

Address before: Room 221, 2nd floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone, 100176

Applicant before: BEIJING JINGDONG FINANCIAL TECHNOLOGY HOLDING Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Digital Technology Holding Co.,Ltd.

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Digital Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone, 100176

Applicant before: JINGDONG DIGITAL TECHNOLOGY HOLDINGS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant