CN114756283A - Method for authorizing and paying compatible with multiple software environments - Google Patents

Method for authorizing and paying compatible with multiple software environments Download PDF

Info

Publication number
CN114756283A
CN114756283A CN202210665257.3A CN202210665257A CN114756283A CN 114756283 A CN114756283 A CN 114756283A CN 202210665257 A CN202210665257 A CN 202210665257A CN 114756283 A CN114756283 A CN 114756283A
Authority
CN
China
Prior art keywords
environment
payment
information
user
wechat
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
CN202210665257.3A
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.)
Shandong Dingxin Digital Technology Co ltd
Original Assignee
Shandong Dingxin Digital 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 Shandong Dingxin Digital Technology Co ltd filed Critical Shandong Dingxin Digital Technology Co ltd
Priority to CN202210665257.3A priority Critical patent/CN114756283A/en
Publication of CN114756283A publication Critical patent/CN114756283A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/326Payment applications installed on the mobile devices
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a data processing method specially used for business purposes, in particular to a method compatible with multiple software environment authorization and payment, aiming at overcoming the defect that the prior art separately develops a set of system aiming at each authorization and payment mode. The method can uniformly receive the request information of the user, automatically verify the agent information, distinguish the environments of the user, such as a browser environment, a WeChat environment, a Payment treasure environment, a nailing environment, a bank APP environment and the like, distribute and process different business logics according to different environments, initiate the calling of different payments, uniformly output after the processing is finished, realize the seamless connection with the core business logic, and avoid the resource waste caused by the need of deploying multiple sets of services.

Description

Method for authorizing and paying compatible with multiple software environments
Technical Field
The invention relates to a data processing method specially used for commercial purposes, in particular to a method compatible with authorization and payment of various software environments.
Background
With the continuous development of internet systems, more and more services are accepted by the same platform, and more clients are accessed, so that the same system is inevitably compatible with various environments to meet the requirements of the clients, and therefore, the processing of various authorization and payment modes is inevitably involved.
Authorization is to get basic information about the user and payment is to invoke different payments. However, the authorization and payment methods, parameters and requirements provided by different manufacturers are inconsistent, and all business logics are consistent. The traditional solution is to separately deploy a set of independent systems to distinguish the environments according to the environments, and although the method can solve the problems caused by different environments, huge cost is invisibly added. If a set of system is separately developed for each authorization and payment mode, a developer needs to perform repeated code work, so that not only can the labor cost be increased and the working efficiency of the developer be reduced, but also a huge barrier is caused to the maintenance and updating iteration among the subsequent systems, and all the systems need to be updated completely if any updating iteration exists. Meanwhile, each set of system needs to be deployed independently, the convenience of popularizing the system by service personnel is lost, and corresponding server cost needs to be spent when each set of system is deployed.
Disclosure of Invention
In order to overcome one of the defects or defects in the prior art, the invention provides a method compatible with multiple software environment authorization and payment, which can uniformly receive request information of a user, automatically verify agent information, distinguish the environments of the user, such as a browser environment, a WeChat environment, a Paibao environment, a nailing environment, a bank APP environment and the like, distribute and process different business logics according to different environments, initiate calling of different payments, uniformly output after the processing is finished, and realize seamless connection with core business logics. Therefore, the technical scheme adopted by the invention is as follows:
A method of enabling and paying for multiple software environments, adapted to run on a computing device, comprising, in contrast to the prior art:
step 1: a unified request interface is formulated to receive an http request sent by a user;
and 2, step: extracting agent information in the http request in the step 1;
and 3, step 3: comparing the agent information in the step 2 with a pre-established agent information base to determine the software environment of the user;
and 4, step 4: after a software environment label is marked on an http request, an authservice.
And 5: the obtained user information is assigned to AuthData, and the AuthData carries tags and keyword information under each environment at the same time and then authorized distribution is carried out;
step 6: unified return processing is carried out, and processing logic is formulated according to the services of different existing systems;
and 7: transferring the label information in AuthData to PayData, and calling Payservice.pay (PayData) to perform payment distribution;
and 8: assigning the payment result to PayData to form a uniform data return format;
and step 9: with uniform return processing, PayData would be encapsulated into a MessageBean.
Compared with the prior art, the invention has the beneficial effects that:
the invention can judge the software environment of the http request by analyzing the agent of the http request, thereby finding an entrance for solving the problem, creating a good solution idea for the subsequent logic processing, and avoiding the resource waste that the problem can be solved by deploying a plurality of sets of services.
The invention is not limited to blind separation of various environments, but separation is carried out when needed, and combination is carried out after separation is finished. The separation can enable the service to have better compatibility, the separated architecture design can support infinite extension, and the operation logics under all environments are mutually isolated. The combination is to better process the subsequent service, so that the subsequent service does not need to pay attention to the influence brought by the software environment, and the subsequent service is dedicated to processing the service logic of the subsequent service. Developers only need to pay attention to the input of business logic processing, and the labor cost investment and the later maintenance cost are reduced.
Detailed Description
The present invention will be described in further detail with reference to the following examples. The following examples are intended to illustrate the invention but are not intended to limit it.
Step 1: and providing a uniform api request interface for receiving http requests, login/auth sent by users, wherein all requests for requesting user authorization can enter through the interface.
The authorization is used when a user enters the system, the normal user clicks a link and should enter a front-end page, but the system provides a background interface link, in the background interface, the environment where the user is located can be judged according to the user agent carried in the http request, api interfaces of different manufacturers are called according to the environment to obtain user information, and then the front-end page is skipped through redirection operation to display the user interface. Therefore, although the user enters the same interface, the interface can give the user the display effect of belonging to the environment after a series of processing.
The payment principle is consistent with the authorization principle, and the payment interfaces of different manufacturers can be respectively called according to different environments, so that various payment conditions are realized.
And 2, step: extracting agent information in the http request in the step 1
String userAgent = request.getHeader("User-Agent");
StringrequestWith = request.getHeader("x-requested-with"))
The proxy information and the request information are implicit attributes of http information transmission, can be taken regardless of services, and after the information is taken, the proxy information needs to be completely converted into lower case, so that the problem of lower case caused by different transmission rules of browsers is prevented.
And 3, step 3: and (3) comparing the agent information in the step (2) with a pre-established agent information base to determine the software environment of the user, wherein the agent information base is briefly listed as follows:
H5 environment keywords are windows and compatible
Payment treasure environment keywords are Alipayceent and Aliapp
The environment keywords of the Paobao small program are Alipayclient and miniprogam
The WeChat environment keywords are micromessenger and nettype
The WeChat applet environment key words are micromessenger and miniprogam
And 4, step 4: after a software environment label is marked on an http request, an authservice.
After the comparison is completed, the request is labeled, and the labels are briefly listed as follows:
h5 Environment Label is H5
Payment treasure environment label is ALI
Payment treasure small program environment label is ALI _ APPLET
WeChat environment label is WECHAT
WeChat APPLET environment label is WECHAT _ APPLET
And distributing after the label is transmitted. The distribution only needs to call a common method entry, namely: authservice. auth (AuthData), wherein the step 3 environment key is contained in AuthData, i.e., AuthData contains environment data.
The distribution method distributes the function to the exclusive authorization method according to the label in the data.
@Service(value = "H5")
@Service(value = "ALI")
@Service(value = "ALI_APPLET")
@Service(value = "WECHAT")
@Service(value = "WECHAT_APPLET")
After the distribution is completed, the mode can automatically call authservice.
And 5: after the authorization information of different environments is processed in the step 4, the basic information of the user is assigned to AuthData, so that the data simultaneously carries the tags and the key information under each environment, and then authorization distribution is performed;
step 6: unified return processing is carried out, and processing logic is formulated according to the services of different existing systems;
and 7: after the processing in step 5 is completed, the AuthData contains the tag information, so that the tag information in the AuthData can be transferred to PayData, the distribution operation is the same as that in step 4, different types of payments are called according to the tags, and the calling method is payservice.
The distribution method distributes the function to the exclusive payment method according to the label in the data.
@Service(value = "H5")
@Service(value = "ALI")
@Service(value = "ALI_APPLET")
@Service(value = "WECHAT")
@Service(value = "WECHAT_APPLET")
After the distribution is completed, the mode automatically calls payservice.
And 8: after the payment information of different environments is processed in step 7, the payment result is assigned to PayData to form a uniform data return format.
And step 9: and after the unified return processing logic is entered, the PayData is packaged into the MessageBean to finish the unified return of the data, and after the return is successful, the whole process is finished.
The above embodiments are only intended to be technical solutions of the present invention and not to be restrictive, and it should be noted that, for those skilled in the art, modifications and equivalents may be made to the specific embodiments of the present invention without departing from the technical principle of the present invention, and any modifications or equivalents without departing from the spirit and scope of the present invention should be covered by the claims of the present invention.

Claims (3)

1. A method for authorizing and paying for compatibility with multiple software environments, adapted to run on a computing device, the method comprising:
step 1: a unified request interface is formulated to receive an http request sent by a user;
and 2, step: extracting agent information in the http request in the step 1;
and 3, step 3: comparing the agent information in the step 2 with a pre-established agent information base, and determining the software environment of the user;
and 4, step 4: after a software environment label is marked on an http request, an authservice.
And 5: the obtained user information is assigned to AuthData, and the AuthData carries tags and keyword information under each environment at the same time and then authorized distribution is carried out;
And 6: unified return processing is carried out, and processing logic is formulated according to the services of different existing systems;
and 7: transferring the label information in AuthData to PayData, and calling Payservice.pay (PayData) to perform payment distribution;
and 8: assigning the payment result to PayData to form a uniform data return format;
and step 9: with uniform return processing, PayData would be encapsulated into a MessageBean.
2. The method for authorizing and paying in accordance with multiple software environments as recited in claim 1,
in the step 4, the process is carried out,
if the mobile terminal is in the WeChat environment, calling the api provided by the WeChat to acquire corresponding authorization information;
if the environment is a Payment treasure environment, an api provided by the Payment treasure needs to be called to obtain corresponding authorization information;
if the environment is the APP environment, the api provided by the APP needs to be called, and corresponding authorization information is obtained.
3. The method for authorizing and paying in accordance with multiple software environments as recited in claim 1,
in a step 7 of the method, the step of the method,
if the mobile phone is in the WeChat environment, the api provided by the WeChat needs to be called, and corresponding payment calling is initiated;
if the environment is the environment of the payment bank, the api provided by the payment bank needs to be called, and corresponding payment calling is initiated;
If the environment is the APP environment, the api provided by the APP needs to be called, and corresponding payment calling is initiated.
CN202210665257.3A 2022-06-14 2022-06-14 Method for authorizing and paying compatible with multiple software environments Pending CN114756283A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210665257.3A CN114756283A (en) 2022-06-14 2022-06-14 Method for authorizing and paying compatible with multiple software environments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210665257.3A CN114756283A (en) 2022-06-14 2022-06-14 Method for authorizing and paying compatible with multiple software environments

Publications (1)

Publication Number Publication Date
CN114756283A true CN114756283A (en) 2022-07-15

Family

ID=82336260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210665257.3A Pending CN114756283A (en) 2022-06-14 2022-06-14 Method for authorizing and paying compatible with multiple software environments

Country Status (1)

Country Link
CN (1) CN114756283A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729768A (en) * 2012-10-15 2014-04-16 腾讯科技(深圳)有限公司 Method and device for processing electronic trading information
CN112153012A (en) * 2020-09-01 2020-12-29 珠海市卓轩科技有限公司 Multi-terminal contact access method, device and storage medium
CN112232794A (en) * 2020-09-11 2021-01-15 微民保险代理有限公司 Payment method and device, storage medium and electronic equipment
CN112463515A (en) * 2019-09-09 2021-03-09 北京国双科技有限公司 Data acquisition method and device based on small program, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729768A (en) * 2012-10-15 2014-04-16 腾讯科技(深圳)有限公司 Method and device for processing electronic trading information
US20140222666A1 (en) * 2012-10-15 2014-08-07 Tencent Technology (Shenzhen) Company Limited Method and apparatus for processing electronic transaction information
CN112463515A (en) * 2019-09-09 2021-03-09 北京国双科技有限公司 Data acquisition method and device based on small program, storage medium and electronic equipment
CN112153012A (en) * 2020-09-01 2020-12-29 珠海市卓轩科技有限公司 Multi-terminal contact access method, device and storage medium
CN112232794A (en) * 2020-09-11 2021-01-15 微民保险代理有限公司 Payment method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
KR100264535B1 (en) Computer apparatus and method for communicating between software applications and computers on the world-wide web
US20030069943A1 (en) Method and apparatus for user personalized and adaptive business processing modeling and integration
CA3059719C (en) Payment processing method, device, medium and electronic device
CN114358921A (en) System switching method, apparatus, device, medium, and program product
CN106775668A (en) The mobile applications Development Framework and implementation method of cross operating system
CN110221840B (en) Function implementation method and device of application program, equipment and storage medium
CN111447273B (en) Cloud processing system and data processing method based on cloud processing system
CN110764769B (en) Method and device for processing user request
CN112988127A (en) CDN service customization method and system
CN114756283A (en) Method for authorizing and paying compatible with multiple software environments
CN105282150B (en) A kind of login assistant system of web oriented system
CN103501326A (en) Data processing method and system based on middleware
CN110674173A (en) Method and system for caching data on wind control cloud
CN114301970B (en) Service calling method, device, electronic equipment and storage medium
CN115658305A (en) Vehicle service activation management method, system, electronic equipment and storage medium
CN112182083A (en) File generation method, device, equipment and storage medium
CN112860398A (en) Data processing method, device, equipment and medium based on rule engine
CN112817779A (en) Communication method, device, equipment and medium for modular application program
CN111949259A (en) Risk decision configuration method, system, electronic equipment and storage medium
CN111866171A (en) Message processing method and device, electronic equipment and medium
CN112954075B (en) Business function implementation method, system, corresponding device and storage medium
CN112615745B (en) Method and system for accessing Internet of things card platform to upstream through parameter configuration
CN109669793A (en) Object calling method in middleware process
CN115421824B (en) Micro-service execution engine, running method and application method
CN115981609A (en) Service processing method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220715

RJ01 Rejection of invention patent application after publication