WO2018001272A1 - Management method and system for android payment plugin - Google Patents
Management method and system for android payment plugin Download PDFInfo
- Publication number
- WO2018001272A1 WO2018001272A1 PCT/CN2017/090538 CN2017090538W WO2018001272A1 WO 2018001272 A1 WO2018001272 A1 WO 2018001272A1 CN 2017090538 W CN2017090538 W CN 2017090538W WO 2018001272 A1 WO2018001272 A1 WO 2018001272A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- transaction
- service layer
- intermediate service
- payment
- configuration file
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/02—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
Definitions
- the present invention relates to the field of Android payment technologies, and in particular, to a management method and system for an Android payment plug-in.
- Android smartphones typically have a number of apps installed, all of which focus on implementing their main features, and they usually don't focus on secondary features to provide a good experience for the user.
- apps For example, a dating software, which focuses on chatting between friends, dynamic sharing, and so on.
- the APP After implementing these main functions, the APP also implements the location sharing function of the friends. According to the general practice, the APP needs to integrate the functions of the map, and this will take a lot of manpower and resources.
- Disadvantage 1 In addition to supporting traditional UnionPay card payment channels, APPs with payment functions must support emerging payment platforms. In addition to focusing on business functions, senders must pay attention to multi-platform access, including platforms. Inter-interface calls, processes, data messages, etc.
- Disadvantages 3 Business functions and payment functions are highly coupled and cannot be easily ported to new APPs.
- the technical problem to be solved by the present invention is: providing a mechanism for realizing the interaction between the front-end application and the financial transaction platform, so that the front-end bursting personnel do not have to pay attention to the API and financial transaction flow of the payment platform.
- the technical solution adopted by the present invention is: Providing a management method of an Android payment plug-in, including:
- the payment platform generates a configuration file for the transaction interface and the transaction process, and submits it to the intermediate service layer;
- the front-end application registers its own supported transaction type callback to the intermediate service layer
- the intermediate service layer acquires a user transaction channel, and invokes a corresponding payment platform transaction interface according to the configuration file to complete the transaction.
- the present invention further provides a management system for an Android payment plug-in, including a payment platform, an intermediate service layer, and a front-end application, where:
- the payment platform is configured to generate a configuration file for the transaction interface and the transaction process, and submit to the intermediate service layer;
- the front-end application is used to register a transaction type supported by itself to call back to the intermediate service layer;
- the intermediate service layer is configured to acquire a user transaction channel, and invoke a corresponding payment platform transaction interface according to the configuration file to complete the transaction.
- the present invention configures the transaction interface and the process into a file form, and submits it to the intermediate service layer. After the intermediate service layer obtains the transaction channel at the front end, the invention is called according to the configuration file. Corresponding transaction interface, and complete the transaction.
- the invention can effectively eliminate the high coupling of the business function and the transaction function, eliminate the workload of the front-end platform, and reduce the input cost of the later expansion maintenance.
- FIG. 1 is a schematic diagram of an intermediate service layer and a payment calling API in a specific embodiment of the present invention
- FIG. 2 is a schematic diagram of an operation process of an intermediate service layer in a specific embodiment of the present invention.
- Embodiment 1 of the present invention provides a method for managing an Android payment plug-in, including:
- the payment platform generates a configuration file for the transaction interface and the transaction process, and submits it to the intermediate service layer;
- the front-end application registers its own supported transaction type callback to the intermediate service layer
- the intermediate service layer acquires a user transaction channel, and invokes a corresponding payment platform transaction interface according to the configuration file to complete the transaction.
- the present invention configures the transaction interface and the process into a file format and submits it to the intermediate service layer. After the intermediate service layer obtains the transaction channel at the front end, the corresponding transaction interface is invoked according to the configuration file, and is completed. transaction.
- the present invention can achieve high degree of coupling between business functions and transaction functions, eliminate the workload of the front-end platform, and reduce the input cost of post-expansion maintenance.
- the payment platform forms an interface configuration file for each transaction type interface according to the intermediate service layer specification label, and submits it to the intermediate service layer.
- the intermediate service layer loads the configuration file after startup.
- the intermediate service layer detects whether the intermediate service layer supports more than one channel of the transaction type after acquiring the user transaction channel;
- the intermediate service layer completes the transaction by calling the corresponding payment platform API according to the selected transaction channel, wherein the calling process is defined according to the process configuration file label;
- the intermediate service layer invokes the payment platform API to determine whether the front-end application needs to participate in execution
- the intermediate service layer After completing the transaction, the intermediate service layer returns the transaction result to the front-end application through the transaction listener.
- the second embodiment of the present invention provides a management system for an Android payment plug-in, which includes a payment platform, an intermediate service layer, and a front-end application, where:
- the payment platform is configured to generate a configuration file for the transaction interface and the transaction process, and submit to the intermediate service layer;
- the front-end application is used to register a transaction type supported by itself to call back to the intermediate service layer;
- the intermediate service layer is configured to acquire a user transaction channel, and invoke a corresponding payment platform transaction connection according to the configuration file. Mouth, complete the transaction.
- the payment platform forms an interface configuration file for each transaction type interface according to the intermediate service layer specification label, and submits it to the intermediate service layer.
- the intermediate service layer loads the configuration file after startup.
- the intermediate service layer After obtaining the user transaction channel, the intermediate service layer detects whether the intermediate service layer supports more than one channel of the transaction type;
- the intermediate service layer completes the transaction by calling the corresponding payment platform API according to the selected transaction channel, wherein the calling process is defined according to the process configuration file label;
- the intermediate service layer invokes the payment platform API to determine whether the front-end application needs to participate in execution
- the intermediate service layer After completing the transaction, the intermediate service layer returns the transaction result to the front-end application through the transaction listener
- the present invention consists of a payment intermediate service layer and a payment invocation API, as shown in FIG.
- the present invention is based on the componentized design concept, which separates the business function from the payment function, wherein the payment function resides in the system in the form of a component, which provides a series of transaction interfaces to realize interaction with the business function. Due to the various platform interfaces, there are huge differences in the process, which makes the front-end bursting more difficult. Therefore, if an arbitration mechanism is added between the two to solve the interface process differences of various platforms and provide a unified front-end application access interface, the front-end application bursting efficiency will be greatly improved, and the function decoupling and Reuse.
- the intermediate service layer plays the role of intermediate arbitration, which provides a set of interaction mechanisms to organically combine the two.
- the basic principle of the intermediate service layer is to configure the change of the transaction interface and the process in the form of a file, and provide only a unified API for the front-end burst.
- Platform A supports transaction T (such as consumption).
- T such as consumption
- three interface implementations need to be called.
- the calling sequence is al-a2-a3
- platform B also supports transaction T, but the transaction needs to be completed.
- Call four interfaces, the calling order is bl-b2-b3-b4. It can be seen that the interface and process differences cannot be directly blocked, that is, the front-end call cannot implement transactions based on the A platform and the B platform by the same set of interfaces and processes.
- the transaction of platform A needs to call the a2 interface.
- the front-end application participates in the exchange of data, while the B-platform does not require the front-end application to participate in any action.
- Such scenes often appear in the interactive process of functional componentization.
- the intermediate service layer saves the al, 22, a3, and bl, b2, b3, and b4 interfaces and processes in TA and TB file configurations.
- the changed interface and process are configured to form a series of regular label items, and the intermediate service layer interfaces the front end to initiate a transaction, and the current end application connects to the intermediate service layer through the interface, the incoming platform identifier, and the transaction type.
- the intermediate service layer reads the execution steps of the transaction from the configuration file, invokes the platform transaction interface to complete the transaction, and then returns the transaction result to the front-end application.
- the front-end application needs to participate in data exchange.
- the intermediate service layer provides a registration callback interface, which is used to implement the interaction function between the front end and the platform. It is worth noting that this interaction is different from the direct interaction between the front-end application and the platform. Direct interaction requires the front-end application to know the transaction process, which is a two-way operation process.
- the front-end application only needs to passively implement the interaction, that is, when the front-end application implements the interaction, the intermediate service layer initiates the initiative, such as AC1 ⁇ AC3, and BC1 ⁇ BC4 are only one-way operations.
- the intermediate service layer process is shown in FIG. 2, and specifically includes the following steps:
- SI loadTransactionXml
- the third-party payment platform forms an interface configuration file for each transaction type interface according to the middle layer specification label, and submits it to the intermediate service layer.
- the intermediate service layer loads these configuration files after startup;
- S2 registerPuppets: The front-end application registers its own supported transaction type callbacks (eg consumption Puppet)
- S3 showsTransactionChannel: If the intermediate service layer supports multiple channels of the transaction type (such as WeChat, Alipay, and UnionPay platform), the channel selection list is popped up to allow the user to select the desired channel transaction;
- the transaction type such as WeChat, Alipay, and UnionPay platform
- S4 (doTransaction): The intermediate service layer invokes the corresponding third-party platform AP I to complete the transaction according to the selected transaction channel, and the calling process is defined according to the process configuration file label; specifically, the call of the payment platform API is configured according to the corresponding process.
- the file is carried out.
- the process configuration file uses a series of tags to define the conditions of the API call and the result of the call.
- the result of the call defines how to select the API for the next call;
- S5 In the process of calling the third-party platform API by the intermediate service layer, the front-end application needs to participate in the execution, and the front-end application is implemented by Puppet callback;
- S6 OnTransactionListener: The intermediate service layer returns the transaction result to the front-end application through the transaction listener.
- the present invention is applicable to a third-party merchant application to conveniently access each payment platform, and the merchant application sender does not need to pay attention to the transaction process of each platform, the difference of interfaces, and realize the non-differential docking of each platform.
- the present invention completely separates business functions from payment functions in a modularized manner and provides a solution for interaction between applications.
- the intermediate service layer shields the differences between the interface and the process of each platform.
- the middle layer is completed by a callback mechanism, and the invention can realize the expansion of the new payment platform very conveniently.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
Description
发明名称: Android支付插件的管理方法及系统 技术领域 Title: Management method and system for Android payment plug-in
[0001] 本发明涉及 Android支付技术领域, 尤其是涉及一种 Android支付插件的管理方 法及系统。 [0001] The present invention relates to the field of Android payment technologies, and in particular, to a management method and system for an Android payment plug-in.
背景技术 Background technique
[0002] 以往, 幵发一款具备支付功能的 APP吋, 幵发者通常在 APP中直接集成这些支 付功能, 业务功能与支付功能揉合交互。 在以银联卡支付为主要交易平台的吋 代, 这种做法勉强可以解决幵发需求。 但随着微信、 支付宝等支付模式逐渐成 为普通消费者及商户欢迎的支付渠道, APP需要对接的支付平台越来越多, 如果 还是按以往的幵发方式, 幵发难度, 吋间, 维护等复杂度呈几何级增长。 [0002] In the past, an APP with payment function was issued, and the sender usually integrated these payment functions directly in the APP, and the business function and the payment function were combined and interacted. In the era of UnionPay card payment as the main trading platform, this approach can barely solve the bursting demand. However, as payment models such as WeChat and Alipay have gradually become popular payment channels for ordinary consumers and merchants, there are more and more payment platforms that APP needs to dock. If it is still in the past, it will be difficult, timely, maintenance, etc. The complexity grows geometrically.
[0003] Android智能手机通常会安装许多 APP, 这些 APP都专注于实现自己的主要功能 , 它们通常不关注于次要的功能, 以提供给用户良好的体验。 比如某交友软件 , 它专注于好友间聊天、 动态分享等。 该 APP在实现了这些主要功能后, 还实现 了好友的位置分享功能, 按照一般做法, 该 APP需要集成地图的功能, 而这将花 量大量的人力物力。 [0003] Android smartphones typically have a number of apps installed, all of which focus on implementing their main features, and they usually don't focus on secondary features to provide a good experience for the user. For example, a dating software, which focuses on chatting between friends, dynamic sharing, and so on. After implementing these main functions, the APP also implements the location sharing function of the friends. According to the general practice, the APP needs to integrate the functions of the map, and this will take a lot of manpower and resources.
[0004] 上述方式存在如下缺点: [0004] The above manner has the following disadvantages:
[0005] 缺点 1 : 具备支付功能的 APP除了支持传统银联卡支付渠道外, 还须对新兴支 付平台支持, 幵发者除了关注业务功能外, 还须关注多平台的接入, 这包括各 平台间调用接口, 流程, 数据报文等差异。 [0005] Disadvantage 1: In addition to supporting traditional UnionPay card payment channels, APPs with payment functions must support emerging payment platforms. In addition to focusing on business functions, senders must pay attention to multi-platform access, including platforms. Inter-interface calls, processes, data messages, etc.
[0006] 缺点 2: 后期的扩展、 维护需要耗费大量的人力, 吋间, 但效果往往不佳。 [0006] Disadvantages 2: Later expansion and maintenance require a lot of manpower, and the results are often poor.
[0007] 缺点 3: 业务功能与支付功能耦合性强, 无法便捷的移植到新的 APP上。 [0007] Disadvantages 3: Business functions and payment functions are highly coupled and cannot be easily ported to new APPs.
技术问题 technical problem
[0008] 本发明所要解决的技术问题是: 提供一套实现前端应用与金融交易平台交互的 机制, 使得前端幵发人员不必去关注支付平台的 API和金融交易流程。 [0008] The technical problem to be solved by the present invention is: providing a mechanism for realizing the interaction between the front-end application and the financial transaction platform, so that the front-end bursting personnel do not have to pay attention to the API and financial transaction flow of the payment platform.
问题的解决方案 Problem solution
技术解决方案 [0009] 为了解决上述技术问题, 本发明采用的技术方案为: 提供一种 Android支付插 件的管理方法, 包括: Technical solution [0009] In order to solve the above technical problem, the technical solution adopted by the present invention is: Providing a management method of an Android payment plug-in, including:
[0010] 支付平台为交易接口及交易流程生成配置文件, 并提交到中间服务层; [0010] The payment platform generates a configuration file for the transaction interface and the transaction process, and submits it to the intermediate service layer;
[0011] 前端应用注册自身支持的交易类型回调到中间服务层; [0011] The front-end application registers its own supported transaction type callback to the intermediate service layer;
[0012] 中间服务层获取用户交易渠道, 根据配置文件调用对应的支付平台交易接口, 完成交易。 [0012] The intermediate service layer acquires a user transaction channel, and invokes a corresponding payment platform transaction interface according to the configuration file to complete the transaction.
[0013] 为解决上述问题, 本发明还提供一种 Android支付插件的管理系统, 包括支付 平台、 中间服务层及前端应用, 其中: [0013] In order to solve the above problem, the present invention further provides a management system for an Android payment plug-in, including a payment platform, an intermediate service layer, and a front-end application, where:
[0014] 支付平台用于为交易接口及交易流程生成配置文件, 并提交到中间服务层; [0014] the payment platform is configured to generate a configuration file for the transaction interface and the transaction process, and submit to the intermediate service layer;
[0015] 前端应用用于注册自身支持的交易类型回调到中间服务层; [0015] The front-end application is used to register a transaction type supported by itself to call back to the intermediate service layer;
[0016] 中间服务层用于获取用户交易渠道, 根据配置文件调用对应的支付平台交易接 口, 完成交易。 [0016] The intermediate service layer is configured to acquire a user transaction channel, and invoke a corresponding payment platform transaction interface according to the configuration file to complete the transaction.
发明的有益效果 Advantageous effects of the invention
有益效果 Beneficial effect
[0017] 本发明的有益效果在于: 区别于现有技术, 本发明通过将交易接口及流程配置 成文件形式, 并提交到中间服务层, 中间服务层在前端获取交易渠道后, 根据 配置文件调用对应的交易接口, 并完成交易。 通过上述方式, 本发明可以有效 消除业务功能与交易功能的高度耦合性, 消除前端平台的工作量, 并降低后期 扩张维护的投入成本。 [0017] The beneficial effects of the present invention are as follows: Different from the prior art, the present invention configures the transaction interface and the process into a file form, and submits it to the intermediate service layer. After the intermediate service layer obtains the transaction channel at the front end, the invention is called according to the configuration file. Corresponding transaction interface, and complete the transaction. Through the above manner, the invention can effectively eliminate the high coupling of the business function and the transaction function, eliminate the workload of the front-end platform, and reduce the input cost of the later expansion maintenance.
对附图的简要说明 Brief description of the drawing
附图说明 DRAWINGS
[0018] 图 1为本发明具体实施例中中间服务层以及支付调用 API组成示意图; 1 is a schematic diagram of an intermediate service layer and a payment calling API in a specific embodiment of the present invention;
[0019] 图 2为本发明具体实施例中中间服务层运作流程示意图。 2 is a schematic diagram of an operation process of an intermediate service layer in a specific embodiment of the present invention.
具体实施方式 detailed description
[0020] 为详细说明本发明的技术内容、 所实现目的及效果, 以下结合实施方式并配合 附图予以说明。 [0021] 本发明最关键的构思在于: 在支付中间服务层调用前端的 API及接口, 实现交 互机制的有机结合。 [0020] In order to explain the technical content, the objects and effects achieved by the present invention in detail, the following description will be described in conjunction with the accompanying drawings. [0021] The most critical idea of the present invention is: Calling the front-end API and interface in the payment intermediate service layer to implement an organic combination of interaction mechanisms.
[0022] 本发明实施例一提供一种 Android支付插件的管理方法, 包括: [0022] Embodiment 1 of the present invention provides a method for managing an Android payment plug-in, including:
[0023] 支付平台为交易接口及交易流程生成配置文件, 并提交到中间服务层; [0023] The payment platform generates a configuration file for the transaction interface and the transaction process, and submits it to the intermediate service layer;
[0024] 前端应用注册自身支持的交易类型回调到中间服务层; [0024] The front-end application registers its own supported transaction type callback to the intermediate service layer;
[0025] 中间服务层获取用户交易渠道, 根据配置文件调用对应的支付平台交易接口, 完成交易。 [0025] The intermediate service layer acquires a user transaction channel, and invokes a corresponding payment platform transaction interface according to the configuration file to complete the transaction.
[0026] 区别于现有技术, 本发明通过将交易接口及流程配置成文件形式, 并提交到中 间服务层, 中间服务层在前端获取交易渠道后, 根据配置文件调用对应的交易 接口, 并完成交易。 通过上述方式, 本发明可以实现业务功能与交易功能的高 度耦合性, 消除前端平台的工作量, 并降低后期扩张维护的投入成本。 [0026] Different from the prior art, the present invention configures the transaction interface and the process into a file format and submits it to the intermediate service layer. After the intermediate service layer obtains the transaction channel at the front end, the corresponding transaction interface is invoked according to the configuration file, and is completed. transaction. Through the above manner, the present invention can achieve high degree of coupling between business functions and transaction functions, eliminate the workload of the front-end platform, and reduce the input cost of post-expansion maintenance.
[0027] 其中, 支付平台将各交易类型的接口按中间服务层规范标签形成流程配置文件 , 并提交给中间服务层。 中间服务层在启动吋装载所述配置文件。 [0027] wherein, the payment platform forms an interface configuration file for each transaction type interface according to the intermediate service layer specification label, and submits it to the intermediate service layer. The intermediate service layer loads the configuration file after startup.
[0028] 中间服务层在获取用户交易渠道吋, 检测中间服务层支持交易类型的渠道是否 超过一个; [0028] The intermediate service layer detects whether the intermediate service layer supports more than one channel of the transaction type after acquiring the user transaction channel;
[0029] 若是, 则显示渠道选择列表, 并获取用户选择的交易渠道; [0029] If yes, displaying a channel selection list and obtaining a transaction channel selected by the user;
[0030] 反之, 则直接获取用户选择的交易渠道。 [0030] Otherwise, the transaction channel selected by the user is directly obtained.
[0031] 中间服务层根据所选交易渠道调用对应的支付平台 API完成交易, 其中调用过 程依据流程配置文件标签定义; [0031] The intermediate service layer completes the transaction by calling the corresponding payment platform API according to the selected transaction channel, wherein the calling process is defined according to the process configuration file label;
[0032] 中间服务层调用支付平台 API吋, 判断是否需要前端应用参与执行; [0032] The intermediate service layer invokes the payment platform API to determine whether the front-end application needs to participate in execution;
[0033] 若是, 则通过回调交易类型到前端应用, 实现交易; [0033] If yes, the transaction is implemented by calling back the transaction type to the front-end application;
[0034] 反之, 则直接调用支付平台 API完成交易。 [0034] Otherwise, the payment platform API is directly called to complete the transaction.
[0035] 在完成交易后, 中间服务层通过交易监听器返回交易结果给前端应用。 [0035] After completing the transaction, the intermediate service layer returns the transaction result to the front-end application through the transaction listener.
[0036] 对应地, 本发明实施例二提供一种 Android支付插件的管理系统, 包括支付平 台、 中间服务层及前端应用, 其中: [0036] Correspondingly, the second embodiment of the present invention provides a management system for an Android payment plug-in, which includes a payment platform, an intermediate service layer, and a front-end application, where:
[0037] 支付平台用于为交易接口及交易流程生成配置文件, 并提交到中间服务层; [0037] the payment platform is configured to generate a configuration file for the transaction interface and the transaction process, and submit to the intermediate service layer;
[0038] 前端应用用于注册自身支持的交易类型回调到中间服务层; [0038] the front-end application is used to register a transaction type supported by itself to call back to the intermediate service layer;
[0039] 中间服务层用于获取用户交易渠道, 根据配置文件调用对应的支付平台交易接 口, 完成交易。 [0039] The intermediate service layer is configured to acquire a user transaction channel, and invoke a corresponding payment platform transaction connection according to the configuration file. Mouth, complete the transaction.
[0040] 其中, 支付平台将各交易类型的接口按中间服务层规范标签形成流程配置文件 , 并提交给中间服务层。 中间服务层在启动吋装载所述配置文件。 [0040] wherein, the payment platform forms an interface configuration file for each transaction type interface according to the intermediate service layer specification label, and submits it to the intermediate service layer. The intermediate service layer loads the configuration file after startup.
[0041] 中间服务层在获取用户交易渠道吋, 检测中间服务层支持交易类型的渠道是否 超过一个; [0041] After obtaining the user transaction channel, the intermediate service layer detects whether the intermediate service layer supports more than one channel of the transaction type;
[0042] 若是, 则显示渠道选择列表, 并获取用户选择的交易渠道; [0042] If yes, displaying a channel selection list and obtaining a transaction channel selected by the user;
[0043] 反之, 则直接获取用户选择的交易渠道。 [0043] Otherwise, the transaction channel selected by the user is directly obtained.
[0044] 中间服务层根据所选交易渠道调用对应的支付平台 API完成交易, 其中调用过 程依据流程配置文件标签定义; [0044] The intermediate service layer completes the transaction by calling the corresponding payment platform API according to the selected transaction channel, wherein the calling process is defined according to the process configuration file label;
[0045] 中间服务层调用支付平台 API吋, 判断是否需要前端应用参与执行; [0045] The intermediate service layer invokes the payment platform API to determine whether the front-end application needs to participate in execution;
[0046] 若是, 则通过回调交易类型到前端应用, 实现交易; [0046] If yes, the transaction is implemented by calling back the transaction type to the front-end application;
[0047] 反之, 则直接调用支付平台 API完成交易。 [0047] Otherwise, the payment platform API is directly called to complete the transaction.
[0048] 在完成交易后, 中间服务层通过交易监听器返回交易结果给前端应用 [0048] After completing the transaction, the intermediate service layer returns the transaction result to the front-end application through the transaction listener
[0049] 为方便理解, 以下结合图 1及图 2, 通过一个具体实施例进行说明。 [0049] For ease of understanding, the following description will be made by way of a specific embodiment in conjunction with FIGS. 1 and 2.
[0050] 本发明由支付中间服务层以及支付调用 API组成, 如图 1所示。 [0050] The present invention consists of a payment intermediate service layer and a payment invocation API, as shown in FIG.
[0051] 本发明基于组件化设计思想, 将业务功能与支付功能剥离幵来, 其中支付功能 以组件的形式驻留在系统中, 它提供一系列交易接口实现与业务功能的交互。 由于各类平台接口, 流程存在巨大差异, 造成前端幵发难度增大。 因此如果在 两者之间增加一个仲裁机构, 解决各类平台的接口流程差异, 并提供统一的前 端应用接入接口, 那么将极大提高前端应用幵发效率, 并且可以实现功能的解 耦及复用。 中间服务层扮演的即是中间仲裁角色, 它提供了一套交互机制使两 者有机结合。 [0051] The present invention is based on the componentized design concept, which separates the business function from the payment function, wherein the payment function resides in the system in the form of a component, which provides a series of transaction interfaces to realize interaction with the business function. Due to the various platform interfaces, there are huge differences in the process, which makes the front-end bursting more difficult. Therefore, if an arbitration mechanism is added between the two to solve the interface process differences of various platforms and provide a unified front-end application access interface, the front-end application bursting efficiency will be greatly improved, and the function decoupling and Reuse. The intermediate service layer plays the role of intermediate arbitration, which provides a set of interaction mechanisms to organically combine the two.
[0052] 中间服务层的基本原理是将交易接口和流程等变化量以文件的形式配置起来, 对前端幵发只提供一套统一的 API。 假设有这样的一类场景: 平台 A支持交易 T ( 如消费) , 完成 T交易需要调用三个接口实现, 调用顺序为 al-a2-a3, 而平台 B同 样支持交易 T, 但完成该交易需要调用四个接口, 调用顺序为 bl-b2-b3-b4。 可以 看出, 接口及流程差异无法直接屏蔽, 也即前端调用无法以同一套接口和流程 去实现基于 A平台和 B平台的交易。 除此之外平台 A的交易在调用 a2接口吋需要 前端应用参与数据的交换, 而 B平台无须前端应用参与任何动作。 这类场景经常 出现在功能组件化后的交互过程。 中间服务层把 al, 22 , a3和 bl, b2, b3, b4接 口和流程分别以 TA, TB文件配置保存起来。 变化的接口和流程通过配置后形成 一系列有规则的标签项, 中间服务层对前端幵放发起交易的接口, 当前端应用 通过该接口对接到中间服务层吋, 传入平台标识, 交易类型, 中间服务层从配 置文件去读取该交易的执行步骤, 调用平台交易接口完成交易, 而后将交易结 果返回给前端应用。 前面提到, 在实现交易过程有吋需要前端应用参与数据交 换, 为实现该功能, 中间服务层提供一个注册回调的接口, 该接口用来实现前 端与平台的交互功能。 值得注意的是, 这种交互区别于前端应用与平台的直接 交互, 直接交互需要前端应用知道交易流程, 是一种双向操作的过程。 而通过 中间服务层提供的注册回调接口, 前端应用只须被动实现交互, 亦即前端应用 什么吋候去实现交互由中间服务层主动发起, 如 AC1〜AC3, BC1〜BC4只是单 向操作。 [0052] The basic principle of the intermediate service layer is to configure the change of the transaction interface and the process in the form of a file, and provide only a unified API for the front-end burst. Suppose there is such a scenario: Platform A supports transaction T (such as consumption). To complete T transaction, three interface implementations need to be called. The calling sequence is al-a2-a3, and platform B also supports transaction T, but the transaction needs to be completed. Call four interfaces, the calling order is bl-b2-b3-b4. It can be seen that the interface and process differences cannot be directly blocked, that is, the front-end call cannot implement transactions based on the A platform and the B platform by the same set of interfaces and processes. In addition to this, the transaction of platform A needs to call the a2 interface. The front-end application participates in the exchange of data, while the B-platform does not require the front-end application to participate in any action. Such scenes often appear in the interactive process of functional componentization. The intermediate service layer saves the al, 22, a3, and bl, b2, b3, and b4 interfaces and processes in TA and TB file configurations. The changed interface and process are configured to form a series of regular label items, and the intermediate service layer interfaces the front end to initiate a transaction, and the current end application connects to the intermediate service layer through the interface, the incoming platform identifier, and the transaction type. The intermediate service layer reads the execution steps of the transaction from the configuration file, invokes the platform transaction interface to complete the transaction, and then returns the transaction result to the front-end application. As mentioned above, in the implementation of the transaction process, the front-end application needs to participate in data exchange. To implement this function, the intermediate service layer provides a registration callback interface, which is used to implement the interaction function between the front end and the platform. It is worth noting that this interaction is different from the direct interaction between the front-end application and the platform. Direct interaction requires the front-end application to know the transaction process, which is a two-way operation process. Through the registration callback interface provided by the intermediate service layer, the front-end application only needs to passively implement the interaction, that is, when the front-end application implements the interaction, the intermediate service layer initiates the initiative, such as AC1~AC3, and BC1~BC4 are only one-way operations.
[0053] 中间服务层流程如图 2所示, 具体包括如下步骤: [0053] The intermediate service layer process is shown in FIG. 2, and specifically includes the following steps:
[0054] SI (loadTransactionXml) : 第三方支付平台将各交易类型的接口按中间层规 范标签形成流程配置文件, 并提交给中间服务层。 中间服务层在启动吋装载这 些配置文件; [0054] SI (loadTransactionXml): The third-party payment platform forms an interface configuration file for each transaction type interface according to the middle layer specification label, and submits it to the intermediate service layer. The intermediate service layer loads these configuration files after startup;
[0055] S2 (registerPuppets) : 前端应用注册自身支持的交易类型回调 (如消费 Puppet [0055] S2 (registerPuppets): The front-end application registers its own supported transaction type callbacks (eg consumption Puppet)
) 到中间服务层; ) to the intermediate service layer;
[0056] S3 (showTransactionChannel) : 如果中间服务层支持该交易类型有多个渠道 ( 如微信、 支付宝、 银联平台) , 则弹出渠道选择列表让用户选择需要的渠道交 易; [0056] S3 (showTransactionChannel): If the intermediate service layer supports multiple channels of the transaction type (such as WeChat, Alipay, and UnionPay platform), the channel selection list is popped up to allow the user to select the desired channel transaction;
[0057] S4 (doTransaction) : 中间服务层根据所选交易渠道调用对应的第三方平台 AP I完成交易, 调用过程依据流程配置文件标签定义; 具体地, 其中支付平台 API的 调用依据对应的流程配置文件进行。 流程配置文件使用一系列标签定义 API调用 的条件以及调用结果, 调用结果定义了如何选择下一次调用的 API; [0057] S4 (doTransaction): The intermediate service layer invokes the corresponding third-party platform AP I to complete the transaction according to the selected transaction channel, and the calling process is defined according to the process configuration file label; specifically, the call of the payment platform API is configured according to the corresponding process. The file is carried out. The process configuration file uses a series of tags to define the conditions of the API call and the result of the call. The result of the call defines how to select the API for the next call;
[0058] S5 (callback) : 中间服务层调用第三方平台 API过程中, 遇到需要前端应用参 与执行, 通过 Puppet回调前端应用实现; [0059] S6 (OnTransactionListener) : 中间服务层通过交易监听器返回交易结果给前 端应用。 [0058] S5 (callback): In the process of calling the third-party platform API by the intermediate service layer, the front-end application needs to participate in the execution, and the front-end application is implemented by Puppet callback; [0059] S6 (OnTransactionListener): The intermediate service layer returns the transaction result to the front-end application through the transaction listener.
[0060] 因此, 本发明适用于第三方商户应用便捷地接入各支付平台, 商户应用幵发者 无须关注各平台交易流程, 接口的差异, 实现各平台无差别对接。 本发明以组 件化的思想将业务功能与支付功能完全剥离, 并提供一套应用间交互的解决方 案。 此外, 中间服务层屏蔽了各平台接口和流程的差异, 在涉及到业务功能与 支付功能交互的操作, 中间层以回调的机制去完成, 本发明可以十分方便地实 现新支付平台的扩展。 [0060] Therefore, the present invention is applicable to a third-party merchant application to conveniently access each payment platform, and the merchant application sender does not need to pay attention to the transaction process of each platform, the difference of interfaces, and realize the non-differential docking of each platform. The present invention completely separates business functions from payment functions in a modularized manner and provides a solution for interaction between applications. In addition, the intermediate service layer shields the differences between the interface and the process of each platform. In the operation involving the interaction between the service function and the payment function, the middle layer is completed by a callback mechanism, and the invention can realize the expansion of the new payment platform very conveniently.
[0061] 以上所述仅为本发明的实施例, 并非因此限制本发明的专利范围, 凡是利用本 发明说明书及附图内容所作的等同变换, 或直接或间接运用在相关的技术领域 , 均同理包括在本发明的专利保护范围内。 The above are only the embodiments of the present invention, and are not intended to limit the scope of the present invention, and equivalent transformations made by the description of the present invention and the contents of the drawings may be directly or indirectly applied in the related technical fields. The scope of the invention is included in the scope of the patent protection of the present invention.
[0062] [0062]
[0063] [0063]
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610506657.4A CN106095537A (en) | 2016-06-30 | 2016-06-30 | Android pays management method and the system of plug-in unit |
| CN201610506657.4 | 2016-06-30 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018001272A1 true WO2018001272A1 (en) | 2018-01-04 |
Family
ID=57214266
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/090538 Ceased WO2018001272A1 (en) | 2016-06-30 | 2017-06-28 | Management method and system for android payment plugin |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106095537A (en) |
| WO (1) | WO2018001272A1 (en) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106095537A (en) * | 2016-06-30 | 2016-11-09 | 福建联迪商用设备有限公司 | Android pays management method and the system of plug-in unit |
| CN108256846A (en) * | 2016-12-28 | 2018-07-06 | 航天信息股份有限公司 | A kind of method and system of integrated payment |
| SG10201706158RA (en) * | 2017-07-28 | 2019-02-27 | Mastercard Asia Pacific Pte Ltd | Enhancing webpage functionality |
| CN109582312B (en) * | 2018-12-04 | 2021-09-21 | 艾体威尔电子技术(北京)有限公司 | UI layer and logic layer separation method of intelligent POS |
| CN111026388B (en) * | 2019-10-15 | 2023-08-11 | 福建联迪商用设备有限公司 | Method for adapting to order receiving application and payment middleware |
| CN114253622B (en) * | 2020-09-22 | 2025-03-18 | 京东科技控股股份有限公司 | Payment processing method, device, electronic device and storage medium |
| CN114531432A (en) * | 2022-02-14 | 2022-05-24 | 浙江吉利控股集团有限公司 | Cross-platform based service communication method and device |
| CN114897523A (en) * | 2022-04-29 | 2022-08-12 | 北京合思信息技术有限公司 | Payment channel docking method, system and electronic device of electronic payment platform |
| CN115756668A (en) * | 2022-11-28 | 2023-03-07 | 艾体威尔电子技术(北京)有限公司 | EMV kernel cross-POS platform implementation architecture and method |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040133460A1 (en) * | 2001-02-13 | 2004-07-08 | Suzanne Berlin | Electronic acquisition system and method using a portal to facilitate data validation and to provide a universal client interface |
| CN101458797A (en) * | 2008-12-22 | 2009-06-17 | 腾讯科技(深圳)有限公司 | Transaction system and method |
| CN101841569A (en) * | 2010-05-17 | 2010-09-22 | 成都中联信通科技有限公司 | Mobile phone payment method based on WEB technology for realizing platform crossing |
| CN106095537A (en) * | 2016-06-30 | 2016-11-09 | 福建联迪商用设备有限公司 | Android pays management method and the system of plug-in unit |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105701406B (en) * | 2015-12-31 | 2018-09-07 | 深圳市证通电子股份有限公司 | The method that Android platform runs conventional payment application |
-
2016
- 2016-06-30 CN CN201610506657.4A patent/CN106095537A/en active Pending
-
2017
- 2017-06-28 WO PCT/CN2017/090538 patent/WO2018001272A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040133460A1 (en) * | 2001-02-13 | 2004-07-08 | Suzanne Berlin | Electronic acquisition system and method using a portal to facilitate data validation and to provide a universal client interface |
| CN101458797A (en) * | 2008-12-22 | 2009-06-17 | 腾讯科技(深圳)有限公司 | Transaction system and method |
| CN101841569A (en) * | 2010-05-17 | 2010-09-22 | 成都中联信通科技有限公司 | Mobile phone payment method based on WEB technology for realizing platform crossing |
| CN106095537A (en) * | 2016-06-30 | 2016-11-09 | 福建联迪商用设备有限公司 | Android pays management method and the system of plug-in unit |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106095537A (en) | 2016-11-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018001272A1 (en) | Management method and system for android payment plugin | |
| US20130144917A1 (en) | Integrating mind mapping technology with case modeling | |
| CN107123038B (en) | Accounting data processing method and device | |
| CN104216912A (en) | Method and device for achieving non-intrusive service form workflow | |
| JP2018200686A (en) | Approval method and system using messenger | |
| KR20150079793A (en) | Receiving information processing method and device | |
| CN103578030A (en) | Data processing method and device | |
| CN109559102A (en) | A kind of polymerization method of payment and terminal | |
| CN104200371A (en) | Sharing system based on social network tasks and implementation method | |
| CN107222524A (en) | A kind of open application service integrated framework | |
| JP6760974B2 (en) | Transaction processing method and system | |
| CN104007973B (en) | A kind of cross-system data interactive method and platform | |
| CN110969524A (en) | Block chain-based fund service processing method, device, equipment and medium | |
| US7600002B2 (en) | System and method for exposing a J2EE application server as a web service transaction participant | |
| CN115033233B (en) | Interface calling method, device, electronic device and storage medium | |
| WO2021115285A1 (en) | Method and terminal for processing data on basis of tax control interface of supply chain transaction platform | |
| CN104318382A (en) | An E-Commerce Information Management System | |
| CN110874728A (en) | Online payment system, online payment method, device, medium and server | |
| CN102591714B (en) | Process calling method, system and application server | |
| CN107730334A (en) | A kind of dining room self-service based on public cloud is checked system and method | |
| AU2012300188B2 (en) | A collaboration computer system | |
| US11567742B2 (en) | Method, apparatus, and computer program product for generating updated network application interfaces | |
| CN103618666B (en) | A kind of information system configures the device of JICQ on demand | |
| CN102542407A (en) | Software development method based on service specifications | |
| CN115048671B (en) | Service processing methods and devices for interoperability between different business applications |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17819269 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17819269 Country of ref document: EP Kind code of ref document: A1 |