Payment docking management method, payment platform, medium and program product
The asynchronous processing queue management method identifies payment information characteristics and determines the target payment channel, which solves the complexity and efficiency problems in the diversified payment process and improves the efficiency and user experience of payment operations.
Patent Information
- Application Number
- CN202410803166.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-20
AI Technical Summary
In the diversified payment process, due to the different interface standards, communication protocols and data processing methods of different payment methods, the complexity of the payment process increases, affecting efficiency and user experience.
Adopting an asynchronous processing queue management method, by identifying the interface specifications, data formats, communication protocols and other characteristics in the payment information, the target payment channel is determined, and the order payment operation is completed based on this channel, and the backup channel is monitored in real time and switched to ensure the continuity of the payment process. sex.
It improves the efficiency and accuracy of payment operations, reduces user waiting time, improves the intelligence and automation of payment processing, reduces the need for manual intervention, and ensures the continuity of the payment process.
Smart Images

Figure CN118569856A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data management technology, and in particular to a payment docking management method, a payment middle platform, a medium and a program product. Background Art
[0002] The diversification of payment methods is a major feature of existing payment operations. With the popularization of mobile Internet and the development of technology, payment methods no longer rely solely on traditional cash or bank cards, but have expanded to a variety of emerging payment methods including QR code payment, NFC payment, sound wave payment, fingerprint payment, blockchain payment, etc. The diversification of payment methods can provide users with a convenient payment experience.
[0003] When dealing with different types of payment processing operations, it is usually necessary to establish different payment business logics with the payment platform corresponding to each payment method to ensure a smooth and accurate payment process. However, since the interface standards, communication protocols and data processing methods corresponding to different payment methods may be different, when establishing docking with various payment platforms, the complexity of the payment process may increase, which may affect payment efficiency. Summary of the invention
[0004] In order to improve the payment efficiency in diversified payment processes, the present application provides a payment docking management method, a payment middle platform, a medium and a program product.
[0005] In the first aspect, the present application provides a payment connection management method, which adopts the following technical solution: A payment connection management method, comprising: After receiving the payment information sent by the user end, the payment acceptance information is sent to the user end and the corresponding payment merchant end according to the payment information, and the payment information is written into the asynchronous processing queue corresponding to the payment merchant end. The payment information includes the order to be paid, the payment method and the payment merchant. The asynchronous processing queue is used to store the payment information; When the number of orders to be paid contained in the asynchronous processing queue corresponding to the payment merchant exceeds a preset number threshold, identifying payment features contained in each payment information, the payment features including interface specifications, data formats, communication protocols, and risk monitoring; Based on the payment features contained in all payment information, determine the target payment channel corresponding to each payment information; According to the target payment channel corresponding to each payment information, communication is established between the corresponding user end and the merchant end to be paid, and the order payment operation is completed based on the corresponding target payment channel.
[0006] By adopting the above technical solution, in the process of processing payment operations, asynchronous processing is achieved by returning payment acceptance information and writing the payment information into an asynchronous processing queue to wait for subsequent payment processing. In the face of diversified payment processes, the interface specifications, data formats, communication protocols, etc. corresponding to different payment information may be different. Therefore, it may take a long time to determine the target payment channel corresponding to each payment information, which may affect the payment processing efficiency. If synchronous processing is adopted, it is necessary to wait for the payment operation corresponding to the previous payment information to be completed before starting the payment operation of the next payment information. This may cause the overall payment processing cycle to be longer and may affect the user's payment experience. Asynchronous processing can take over diversified payment requests and then process the queue based on asynchronous processing, thereby reducing the user's waiting time. In addition, the target payment channel is determined based on the payment characteristics contained in different payment information, that is, the appropriate payment channel can be selected according to the specific circumstances of different payment information, which improves the intelligence and accuracy of determining the target payment channel, thereby facilitating the improvement of efficiency in the payment operation process.
[0007] In one possible implementation, based on the payment characteristics included in the payment information, determining the target payment channel corresponding to the payment information includes: Identify the payment characteristic value corresponding to each payment characteristic from the payment information, and determine the sub-function channel corresponding to each payment characteristic value from a preset sub-function channel list corresponding to each payment characteristic, wherein the preset sub-function channel list includes sub-function channels corresponding to different payment characteristic values; All sub-function channels corresponding to the payment information are combined to obtain a target payment channel of the payment information, where the target payment channel is composed of multiple sub-function channels.
[0008] By adopting the above technical solution, the sub-function channel corresponding to the payment feature is determined by the payment feature identified from the payment information and the payment feature value corresponding to each payment feature, which facilitates improving the accuracy in determining the sub-function channel. In addition, by combining all the sub-function channels corresponding to the payment information to determine the final target payment channel, it is convenient to meet the different payment needs of diversified payment information, thereby facilitating improving the flexibility in determining the target payment channel.
[0009] In one possible implementation, all sub-function channels corresponding to each payment information are combined to obtain the target payment channel of each payment information, including: Identify the writing time when each payment information is written into the asynchronous processing queue and the payment identifier contained in each payment information, and determine the estimated operation duration corresponding to each payment information based on the mapping relationship between each payment identifier and the payment duration, wherein the payment duration mapping relationship is the corresponding relationship between the payment identifier and the estimated operation duration; Determine the access time corresponding to each sub-function channel according to the estimated operation time and writing time corresponding to each payment information; According to the access time of each sub-function channel, the preset sub-function channel list to which each sub-function channel belongs, and the preset execution time wheel corresponding to each preset sub-function list, an execution time wheel corresponding to each preset sub-function channel list is generated, and each preset execution time wheel includes multiple time bins; Based on the access time corresponding to each payment information and each execution time round, channel combination is performed to obtain the target payment channel corresponding to each payment information.
[0010] By adopting the above technical scheme, since different payment information may contain the same payment characteristics, that is, different payment information may use the same sub-function channel when determining the target payment channel, by analyzing the sub-function channels that need to be used by multiple payment information, as well as the estimated operation time of each payment information and the access time of each sub-function channel, multiple execution time wheels are constructed. According to the flow of the execution time wheels at the corresponding time, it is convenient to efficiently combine the sub-function channels to determine the target payment channel of each payment information, thereby facilitating improving the accuracy and speed of determining the target payment channel corresponding to each payment information.
[0011] In a possible implementation, generating an execution time wheel corresponding to each preset sub-function channel list according to the access time of each sub-function channel, the preset sub-function channel list to which each sub-function channel belongs, and the preset execution time wheel corresponding to each preset sub-function list includes: According to the access time of each payment information, determine the sub-function channel to be executed in each time bin in each preset execution time round; According to the access time of each sub-function channel corresponding to each preset sub-function channel list, determine the execution time of the time bin corresponding to each sub-function channel; According to the execution time of each time bin and the sub-function channels to be executed, an execution time wheel for each preset sub-function channel list is generated.
[0012] By adopting the above technical solution, by storing each sub-function channel in the execution time wheel according to the access time, the execution time and order of each sub-function channel can be controlled. In addition, by establishing the execution time wheel, it is helpful to reduce manual intervention in the process of determining the target payment channel, thereby facilitating improving processing efficiency.
[0013] In one possible implementation, channel combination is performed based on the access time and execution time corresponding to the payment information, including: If it is detected that the current moment is the access moment of the payment information, then the execution time bin corresponding to each execution time wheel at the access moment is obtained; The to-be-executed sub-function channels corresponding to each execution time bin are identified, and the to-be-executed sub-function channels corresponding to each execution time bin are combined.
[0014] By adopting the above technical solution, the execution time bin that needs to be accessed is determined by matching the current moment with the access moment corresponding to each execution time bin in the execution time wheel, that is, the sub-function channel that needs to be accessed is determined. Only when the current moment is consistent with the access moment can the corresponding sub-function channels be combined. Time matching facilitates improving the accuracy of determining the sub-function channels to be executed, thereby facilitating improving the accuracy of the channel combination results.
[0015] In a possible implementation, communication is established between the corresponding user terminal and the merchant terminal to be paid according to the target payment channel corresponding to the payment information, and the order payment operation is completed based on the corresponding target payment channel, and then the following is further included: Detect the order payment operation process in real time and collect operation characteristics according to the preset frequency; When an abnormal operation feature appears in the operation feature, a backup payment channel is started, and the backup payment channel is determined as the target payment channel of the order to be paid, and the abnormal operation feature includes network delay and payment channel maintenance.
[0016] By adopting the above technical solution, the payment operation process is monitored in real time. When abnormal operation characteristics are detected, the backup payment channel is promptly started and determined as the target payment channel for the order to be paid. This automatic switching mechanism can greatly reduce the need for manual intervention, which is convenient for improving the automation and efficiency of the payment process. In addition, by switching to the backup payment channel in time after an abnormal situation is discovered, the continuity of the payment process can be ensured.
[0017] In a second aspect, the present application provides an electronic device, which adopts the following technical solution: A payment platform, comprising: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the above-mentioned payment docking management method.
[0018] In a third aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium includes: a computer program that can be loaded by a processor and execute the payment docking management method.
[0019] In a fourth aspect, the present application provides a computer program product, which adopts the following technical solution: A computer program product includes a computer program, and when the computer program is executed by a processor, the payment connection management method is implemented.
[0020] In summary, the present application includes at least one of the following beneficial technical effects: In the process of processing payment operations, asynchronous processing is achieved by returning payment acceptance information and writing the payment information into an asynchronous processing queue to wait for subsequent payment processing. In the face of diversified payment processes, the interface specifications, data formats, communication protocols, etc. corresponding to different payment information may be different. Therefore, it may take a long time to determine the target payment channel corresponding to each payment information, which may affect the payment processing efficiency. If synchronous processing is used, it is necessary to wait for the payment operation corresponding to the previous payment information to be completed before starting the payment operation of the next payment information. This may cause the overall payment processing cycle to be longer and may affect the user's payment experience. Asynchronous processing can take over diversified payment requests and then process the queue based on asynchronous processing, thereby reducing the user's waiting time. In addition, the target payment channel is determined based on the payment characteristics contained in different payment information, that is, the appropriate payment channel can be selected according to the specific circumstances of different payment information, which improves the intelligence and accuracy of determining the target payment channel, thereby facilitating the improvement of efficiency during payment operations.
[0021] Since different payment information may contain the same payment characteristics, that is, different payment information may use the same sub-function channel when determining the target payment channel, by analyzing the sub-function channels that need to be used by multiple payment information, as well as the estimated operation time of each payment information and the access time of each sub-function channel, multiple execution time wheels are constructed. According to the flow of the execution time wheels at the corresponding time, it is convenient to efficiently combine the sub-function channels to determine the target payment channel of each payment information, thereby facilitating improving the accuracy and speed of determining the target payment channel corresponding to each payment information. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a flow chart of a payment connection management method in an embodiment of the present application; Figure 2 It is a flowchart of a method for determining a target payment channel in an embodiment of the present application; Figure 3 is a schematic diagram of an execution time bin in an embodiment of the present application; Figure 4 It is a structural diagram of a payment platform in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following is combined with Figure 1-4 This application is described in further detail.
[0024] After reading this specification, those skilled in the art may make non-creative modifications to this embodiment as needed, but such modifications are protected by patent law as long as they are within the scope of the claims of this application.
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] Specifically, the embodiment of the present application provides a payment docking management method, which is executed by a payment middle station, which can be a server or a terminal device, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited to this. The terminal device and the server can be directly or indirectly connected through wired or wireless communication, and the embodiment of the present application does not limit this.
[0027] refer to Figure 1 , Figure 1 : is a flow chart of a payment connection management method in an embodiment of the present application, the method comprises steps S110 to S140, wherein: Step S110: After receiving the payment information sent by the user end, the payment acceptance information is sent to the user end and the corresponding payment merchant end according to the payment information, and the payment information is written into the asynchronous processing queue corresponding to the payment merchant end. The payment information includes the order to be paid, the payment method and the payment merchant. The asynchronous processing queue is used to store the payment information.
[0028] Specifically, the user end is generally the consumer end, and the user end and the payment merchant end communicate through the payment middle station, that is, the user end can send the order to be paid to the payment middle station. After receiving the payment information sent by the user end, the payment middle station can package and process the payment information and then forward it to the payment merchant end to complete the order payment, wherein the payment information is packaged and processed to write the payment information into the asynchronous processing queue corresponding to the payment merchant end. When the number of payment information to be processed is lower than the preset processing number, the payment middle station can directly process the payment information sent by the user end after receiving it, and it is not necessary to write the payment information into the asynchronous processing queue corresponding to the payment merchant end. When the number of payment information to be processed is not lower than the preset processing number, in order to reduce the calculation pressure of the payment middle station and to reduce the probability of abnormalities in the payment process, after receiving the payment information sent by the user end, the payment acceptance information can be fed back to the client and the corresponding payment merchant end, and then the payment information can be written into the abnormal processing queue corresponding to the payment merchant end to wait for subsequent processing, that is, when the number of payment information is not lower than the preset processing number, the payment information is operated in an asynchronous processing manner. Among them, the specific preset processing quantity is not specifically limited in the embodiments of the present application and can be set by relevant technical personnel.
[0029] Different payment merchants have different corresponding asynchronous processing queues. Since the payment information contains the payment merchant, the payment merchant in the payment information can be determined by feature recognition, and then the asynchronous processing queue path corresponding to the payment merchant is obtained, and the payment information sent by the user end is written based on the path. The payment method is the payment method selected by the user end, such as face payment, fingerprint payment, etc.
[0030] Step S120: When the number of orders to be paid contained in the asynchronous processing queue corresponding to the payment merchant exceeds a preset number threshold, the payment characteristics contained in each payment information are identified, and the payment characteristics include interface specifications, data formats, communication protocols, and risk monitoring.
[0031] Specifically, the number of orders to be paid is the number of payment information in the asynchronous processing queue. When the number of orders to be paid contained in the asynchronous processing queue corresponding to the payment merchant does not exceed the preset number threshold, each payment information in the asynchronous processing queue can be processed by allocating processing time. For example, the preset number threshold is 4. When the number of payment information contained in the asynchronous processing queue corresponding to the payment merchant is 3, different payment information can be allocated processing time periods. For example, the first payment information is processed at 10:00, the second payment information is processed at 10:01, and the third payment information is processed at 10:02. The working pressure of the payment center at a certain moment is reduced by allocating processing time periods. When the number of orders to be paid contained in the asynchronous processing queue exceeds the preset number threshold, if the method of allocating processing time periods is used again, the payment processing time may be extended, which may reduce the user experience of the user end and the payment merchant end.
[0032] At this time, it is necessary to identify the payment features contained in the payment information and then use other methods to process the multiple payment information in the asynchronous processing queue. The payment channels corresponding to different interface specifications may differ in technical implementation, business logic, security requirements, etc. For example, in terms of technical implementation, different payment channel providers may use different technical architectures and development languages, and the interface specifications provided by different payment channel providers may differ. Therefore, when determining the payment channel corresponding to the payment information, it is necessary to consider the interface specifications contained in the payment information.
[0033] When payment information is circulated in the payment channel, it is necessary to ensure that the payment information sent by the user end can be accurately received by the payment merchant end. Therefore, when selecting a payment channel, it is necessary to consider and analyze the data format contained in the payment information. When the data format of the payment information sent by the client cannot be received by the payment merchant end, it is necessary to convert the data format through the payment channel during the payment information transmission process to ensure that the data format of the payment information is a data format that the payment merchant end can receive and identify. The data format contained in the payment information includes the data format sent by the user end and the data format that the payment merchant end can receive.
[0034] Since payment information may need to be transmitted between different operating terminals, and the communication protocol defines the rules and standards that should be followed when transmitting information between these operating terminals, only by following the correct communication protocol can the accuracy and completeness of the payment information during the transmission process be ensured. Therefore, when determining the payment channel, it is necessary to consider the communication protocol contained in the payment information so that the determined payment channel can transmit information in accordance with the communication protocol contained in the payment information.
[0035] In addition, different payment information may have different corresponding importance levels. The importance of payment information corresponds to the level of risk monitoring that the payment information needs to be subject to during the information transmission process. Therefore, when determining the payment channel, it is necessary to consider the level of risk monitoring contained in the payment information so that the determined payment channel can be subject to risk monitoring at the corresponding level.
[0036] The payment characteristics contained in the payment information can be determined according to a preset payment characteristic mapping relationship when generating a payment order, wherein the preset payment characteristic mapping relationship includes payment characteristics corresponding to different payment amounts, payment user identities, payment times, etc. The payment characteristics corresponding to the payment information can be determined by identifying the payment amount, payment user identity, payment time, etc. in the payment information. The specific content of the preset payment characteristic mapping relationship is not specifically limited in the embodiment of the present application, and can be determined by relevant technical personnel based on historical experience and uploaded to the payment middle station. The number of payment characteristics contained in the same payment information is not specifically limited in the embodiment of the present application.
[0037] Step S130: Based on the payment features contained in all payment information, determine the target payment channel corresponding to each payment information.
[0038] Specifically, different payment features correspond to a sub-function channel. After combining multiple sub-function channels, the target payment channel corresponding to each payment information can be determined. The process of determining the target payment channel corresponding to any payment information can be: Identify the payment feature value corresponding to each payment feature from the payment information, and determine the sub-function channel corresponding to each payment feature value from the preset sub-function channel list corresponding to each payment feature, the preset sub-function channel list containing sub-function channels corresponding to different payment feature values; combine all sub-function channels corresponding to the payment information to obtain a target payment channel of the payment information, the target payment channel consisting of multiple sub-function channels.
[0039] Specifically, different payment features correspond to a preset sub-function channel list, and each preset sub-function channel list contains sub-function channels corresponding to different payment feature values under the current payment feature, wherein the payment feature value is a specific payment feature content, for example, when the payment feature is a communication protocol, different payment feature values can be communication protocol a, communication protocol b, communication protocol c, and communication protocol d, wherein the sub-function channels corresponding to different payment feature values are also different, for example, communication protocol a corresponds to sub-function channel 11, communication protocol b corresponds to sub-function channel 12, communication protocol c corresponds to sub-function channel 13, and communication protocol c corresponds to sub-function channel 14. Sub-function channels belonging to the same preset sub-function channel list have the same prefix number, such as sub-function channel 11 corresponding to communication protocol a and sub-function channel 12 corresponding to communication protocol b have the same prefix number "1". The preset sub-function channel list is used to determine the sub-function channels corresponding to different payment features, so as to improve the accuracy of determining the sub-function channels. The preset sub-function channel list corresponding to each payment feature can be determined by relevant staff after analyzing historical operation data, and the specific content is not specifically limited in the embodiment of the present application.
[0040] After determining the sub-function channel corresponding to each payment feature contained in the payment information, multiple sub-function channels are combined. The combination method is not specifically limited in the embodiment of the present application. For example, when the sub-function channels corresponding to each payment feature contained in the payment information are sub-function channel 11, sub-function channel 22, and sub-function channel 33, the combination method can be sub-function channel 11, sub-function channel 22, and sub-function channel 33, or can be sub-function channel 11, sub-function channel 33, and sub-function channel 22, as long as the target payment channel formed after the combination can meet the requirements of each payment feature for the payment channel. In the same way, the target payment channel corresponding to each payment information can be obtained.
[0041] Step S140: establishing communication between the corresponding user end and the merchant end to be paid according to the target payment channel corresponding to each payment information, and completing the order payment operation based on the corresponding target payment channel.
[0042] Specifically, after the payment platform determines the target payment channel corresponding to each payment information, it establishes communication between the user end and the corresponding payment merchant end through the target payment channel, so that the user can make order payments. After the merchant confirms the payment, it can feedback confirmation information to the payment platform, and the payment platform can forward the feedback confirmation information to the user end. Since the feedback confirmation information does not contain important data content, other data transmission channels other than the target payment channel can be used in the process of feedback confirmation information to reduce the frequency of use of the target payment channel and facilitate the execution of subsequent order operation tasks.
[0043] For the embodiments of the present application, in the process of processing payment operations, asynchronous processing is achieved by returning payment acceptance information and writing the payment information into an asynchronous processing queue to wait for subsequent payment processing. In the face of diversified payment processes, the interface specifications, data formats, communication protocols, etc. corresponding to different payment information may be different. Therefore, it may take a long time to determine the target payment channel corresponding to each payment information, which may affect the payment processing efficiency. If synchronous processing is adopted, it is necessary to wait for the payment operation corresponding to the previous payment information to be completed before the payment operation of the next payment information can be started. This may cause the overall payment processing cycle to be longer and may affect the user's payment experience. Asynchronous processing can take over diversified payment requests and then process the queue based on asynchronous processing, thereby reducing the user's waiting time. In addition, the target payment channel is determined based on the payment characteristics contained in different payment information, that is, the appropriate payment channel can be selected according to the specific circumstances of different payment information, which improves the intelligence and accuracy of determining the target payment channel, thereby facilitating the improvement of efficiency during the payment operation.
[0044] Furthermore, in order to improve the accuracy and speed of determining the target payment channel corresponding to each payment information, all sub-function channels corresponding to each payment information are combined to obtain the target payment channel of each payment information, which may specifically include steps S1 to S4, such as Figure 2 As shown, where: Step S1: Identify the writing time when each payment information is written into the asynchronous processing queue and the payment identifier contained in each payment information, and determine the estimated operation time corresponding to each payment information based on the mapping relationship between each payment identifier and payment time. The payment time mapping relationship is the correspondence between the payment identifier and the estimated operation time.
[0045] Specifically, the log information can be used to determine the writing time when each payment information is written into the corresponding asynchronous processing queue. The earlier the writing time, the higher the processing demand of the corresponding payment information. In order to improve the user experience and the corresponding payment merchant end, when processing the payment information, it is necessary to sort and process it according to the writing time of each payment information.
[0046] Different payment identifiers correspond to different payment scales. The size and complexity of the payment order amount may affect the payment time. For example, large payments or orders involving multiple goods may require more time to verify and confirm the payment information. Therefore, when determining the estimated operation time, it is necessary to consider and analyze the payment identifier of the payment information. The larger the payment amount and the more goods orders included, the larger the corresponding payment scale. When determining the payment scale corresponding to the payment information, the payment amount and the number of goods orders included in the payment information can be first identified, and then the payment scale corresponding to the payment information can be determined through the scale mapping relationship. The scale mapping relationship includes payment amounts and the number of goods orders corresponding to different payment scales. The specific content is not specifically limited in the embodiments of this application.
[0047] After determining the payment identifier, the estimated operation duration corresponding to each payment identifier can be directly determined according to the payment duration mapping relationship, that is, the estimated operation duration corresponding to each payment information can be directly determined. The payment duration mapping relationship includes the estimated operation duration corresponding to different payment identifiers, and the specific content is not specifically limited in the embodiments of this application.
[0048] Step S2: Determine the access time corresponding to each sub-function channel according to the estimated operation time and writing time corresponding to each payment information.
[0049] Specifically, after the payment information is written into the asynchronous processing queue, the actual processing time of the payment information may be later than the generation time of the payment information, when determining the access time of each payment information in the asynchronous processing queue, the payment information written for the first time can be determined according to the writing time of each payment information, and then the delayed processing time can be determined based on the number of payment information contained in the asynchronous processing queue. Since the larger the number of payment information, the larger the amount of data analysis before determining the target payment channel, the larger the number of payment information contained in the asynchronous processing queue, the longer the corresponding delayed processing time. There is a corresponding relationship between the number of payment information and the delayed processing time. According to the corresponding relationship, the delayed processing time corresponding to each asynchronous processing queue can be determined. First, determine the access time corresponding to the payment information written for the first time, and take the writing time of the payment information written for the first time as the starting time. After the delayed processing time, determine the access time corresponding to the payment information written for the first time, and then take the access time as the starting time. After the expected operation time of the payment information written for the first time, determine the access time of the next written payment information. For example, the writing time of the payment information a written for the first time is 10:00, and the delayed processing time is 1 minute. The access time of the payment information a is 10:01. When the expected operation time corresponding to the payment information a is 2 minutes, the access time corresponding to the next written payment information b is 10:03.
[0050] Step S3: Generate an execution time wheel corresponding to each preset sub-function channel list according to the access time of each sub-function channel, the preset sub-function channel list to which each sub-function channel belongs, and the preset execution time wheel corresponding to each preset sub-function list, wherein each preset execution time wheel includes multiple time bins.
[0051] Specifically, since different preset sub-function lists contain different sub-function channels, and the access time corresponding to each sub-function channel may also be different, it is necessary to construct a corresponding execution time wheel for each preset sub-function list, and then execute multiple execution time wheels simultaneously to form the target payment channel for each payment information. Since the sub-function channels contained in the same sub-function channel list are similar during use, each preset sub-function list is used to determine the preset execution time wheel, which is convenient for reducing the modification range of the preset execution time wheel, thereby facilitating improving the rate of determining the execution time wheel. Each execution time wheel contains multiple time bins, each time bin corresponds to a sub-function channel. If the pointer contained in the execution time wheel at the current moment points to a time bin, it indicates that the sub-function channel in the corresponding time bin needs to be accessed at the current moment.
[0052] Among them, in order to improve processing efficiency, according to the access time of each sub-function channel, the preset sub-function channel list to which each sub-function channel belongs, and the preset execution time round corresponding to each preset sub-function list, when generating the execution time round corresponding to each preset sub-function channel list, it can specifically include: According to the access time of each payment information, the sub-function channel to be executed in each time bin in each preset execution time wheel is determined; according to the access time of each sub-function channel corresponding to each preset sub-function channel list, the execution duration of the time bin corresponding to each sub-function channel is determined; according to the execution duration of each time bin and the sub-function channel to be executed, the execution time wheel of each preset sub-function channel list is generated.
[0053] Specifically, the access time of the payment information, that is, the access time of all sub-function channels of the payment information during the payment operation, is characterized. According to the access time of each sub-function channel, the sub-function channels in different preset sub-function channel lists are written into the corresponding time bins. Since the number of payment information contained in the asynchronous processing queue is different, and different payment information may use the same sub-function channel, the number of time bins containing sub-function channels in the execution time wheel corresponding to each preset sub-function channel list generated is different. For example, the asynchronous processing queue contains 4 payment information, namely payment information a, payment information b, payment information c and payment information d. The payment characteristics contained in the payment information are interface specification 1, data format 2, communication protocol 3 and risk monitoring 4. Among them, each payment characteristic corresponds to a preset sub-function channel list. The preset sub-function list corresponding to the interface specification 1 includes sub-function channel 11, sub-function channel 12, sub-function channel 13, sub-function channel 14, and each sub-function A channel corresponds to a payment feature value. Similarly, data format 2 also corresponds to a preset sub-function list, wherein the preset sub-function list includes sub-function channel 21, sub-function channel 22, sub-function channel 23, and sub-function channel 24. The communication protocol and risk monitoring also each correspond to a preset sub-function list. The payment information contained in the asynchronous processing queue may traverse and use the sub-function channels corresponding to each payment feature, that is, payment information 1 needs to use sub-function channel 11, payment information 2 needs to use sub-function channel 12, payment information 3 needs to use sub-function channel 13, and payment information 4 needs to use sub-function channel 14. However, different payment information may also reuse sub-function channels. For example, payment information 1 needs to use sub-function channel 11, payment information 2 needs to use sub-function channel 11, payment information 3 needs to use sub-function channel 12, and payment information 4 needs to use sub-function channel 13. The specific usage needs to be selected and determined according to the payment feature value corresponding to each payment feature in each payment information. Therefore, when operating the payment information in the asynchronous processing queue, the execution time wheel corresponding to the preset sub-function channel list may only include some of the sub-function channels in the preset sub-function list.
[0054] The sub-function channel corresponding to the time bin can be determined as the sub-function channel to be executed. Since different payment information may use the same sub-function channel, when determining the execution time of the sub-function channel corresponding to the time bin to be executed, it is necessary to compare and analyze multiple payment information before determining. For example, payment information a needs to use sub-function channel 11, and the access time is 10:00; payment information b needs to use sub-function channel 11, and the access time is 10:02; payment information c needs to use sub-function channel 12, and the access time is 10:04. It can be determined that the execution time period of sub-function channel 11 is 10:00-10:04, that is, the execution time of the time bin corresponding to sub-function channel 11 is 4 minutes.
[0055] According to the execution time of each time bin and the corresponding sub-function channel to be executed, an execution time wheel is generated, such as Figure 3 As shown, Figure 3 The diagram includes Figure (a) and Figure (b), wherein Figure (a) can represent the execution time wheel corresponding to the preset sub-function list of the payment feature interface specification 1, and Figure (b) can represent the execution time wheel corresponding to the preset sub-function list of the payment feature data format 2. The same sub-function channel 11 exists in the payment information 1 and the payment information 2. When the corresponding pointer at the current moment points to the time bin corresponding to the sub-function channel 11 in Figure (a), the corresponding pointer in Figure (b) points to the sub-function channel 22. The target payment channel corresponding to the payment information 1 is determined based on the sub-function channel 11 and the sub-function channel 22. As time passes, the time bin pointed to by the pointer of the execution time wheel in Figure (a) at 10:02 still corresponds to the sub-function channel 11, while the pointer of the execution time wheel in Figure (b) has pointed to the time bin corresponding to the sub-function channel 22. At this time, the target payment channel of the payment information 2 can be determined based on the sub-function channel 11 and the sub-function channel 21.
[0056] When the number of sub-function channels is lower than the number of time bins, the execution time wheel may contain idle time bins; when the number of sub-function channels is higher than the number of time bins, the data written in the executed time bins can be overwritten by data overwriting. The establishment of the execution time wheel helps to reduce manual intervention in the process of determining the target payment channel, thereby facilitating the improvement of processing efficiency.
[0057] Step S4: Based on the access time corresponding to each payment information and each execution time round, channel combination is performed to obtain the target payment channel corresponding to each payment information.
[0058] Specifically, the sub-function channels that need to be combined in each execution time round are determined according to the access time corresponding to each payment information, and then the target payment channel corresponding to the payment information can be obtained by connecting the sub-function channels.
[0059] Furthermore, for any payment information, if it is detected that the current moment is the access moment of the payment information, the execution time bin corresponding to each execution time wheel at the access moment is obtained; the sub-function channel to be executed corresponding to each execution time bin is identified, and the sub-function channel to be executed corresponding to each execution time bin is combined into channels.
[0060] Specifically, the execution time bin is the time bin pointed to by the current time pointer in each execution time wheel, and the sub-function channel to be executed corresponding to each execution time bin is obtained, and then the target payment channel of the payment information can be generated after connecting multiple sub-function channels. When combining multiple sub-function channels to be executed, they can be combined in order or sorted by importance. The specific combination method is not specifically limited in the embodiment of this application.
[0061] By matching the current time with the access time corresponding to each execution time bin in the execution time wheel, the execution time bin to be accessed is determined, that is, the sub-function channel to be accessed is determined. Only when the current time is consistent with the access time can the corresponding sub-function channels be combined. Time matching can improve the accuracy of determining the sub-function channels to be executed, thereby improving the accuracy of the channel combination results. Furthermore, in order to ensure the continuity of the payment process, the communication between the corresponding user end and the merchant end to be paid is established according to the target payment channel corresponding to the payment information, and the order payment operation is completed based on the corresponding target payment channel, and then it also includes: Detect the order payment operation process in real time and collect operation characteristics according to the preset frequency; when abnormal operation characteristics appear in the operation characteristics, start the backup payment channel and determine the backup payment channel as the target payment channel for the order to be paid. Abnormal operation characteristics include network delay and payment channel maintenance.
[0062] Specifically, the payment middle platform can supervise the order payment operation process corresponding to each payment information, and can collect the operation characteristics generated during the operation process. The operation characteristics include execution network speed, execution channel operation date, etc. When the execution network speed is higher than the preset standard network speed, it indicates that there may be network delays in the order payment operation process. The specific preset standard network speed is not specifically limited in the embodiment of the present application and can be uploaded by relevant staff; when the execution channel operation date is within the maintenance time period, it indicates that a payment channel maintenance abnormality may occur during the order payment operation process.
[0063] The backup payment channel can be determined in advance by relevant staff and uploaded to the payment center. If the target payment channel corresponding to the payment information has abnormal operation characteristics during the payment operation, the backup payment channel will be activated. The adaptability between the backup payment channel and the payment information is lower than the adaptability between the payment information and the corresponding target payment channel. However, order payment can also be completed through the backup payment channel. Since the payment amount, payment user identity, payment time, etc. of the payment information are considered and analyzed in the process of determining the target payment channel, when the target payment channel is used for order payment, the probability of payment information leakage or tampering is relatively small. However, the backup payment channel can only guarantee the completion of order payment, and cannot provide a higher level of security protection for payment information during the payment process. Therefore, the backup payment channel will only be activated when an abnormality occurs in the target payment channel. By switching to the backup payment channel in time after the abnormality is discovered, the continuity of the payment process is guaranteed.
[0064] In the embodiment of the present application, a payment platform is provided, such as Figure 4 Show, Figure 4 The payment platform 400 shown includes: a processor 401 and a memory 403. The processor 401 and the memory 403 are connected, such as through a bus 402. Optionally, the payment platform 400 may also include a transceiver 404. It should be noted that in actual applications, the transceiver 404 is not limited to one, and the structure of the payment platform 400 does not constitute a limitation on the embodiments of the present application.
[0065] Processor 401 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 401 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0066] The bus 402 may include a path to transmit information between the above components. The bus 402 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 402 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 The fact that only one line is used in the diagram does not mean that there is only one bus or only one type of bus.
[0067] The memory 403 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0068] The memory 403 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 401. The processor 401 is used to execute the application code stored in the memory 403 to implement the contents shown in the above method embodiment.
[0069] The payment platform includes but is not limited to: mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 4 The payment platform shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0070] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment.
[0071] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method in any of the above embodiments is implemented.
[0072] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0073] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A payment connection management method, characterized in that: include: After receiving the payment information sent by the user end, the payment acceptance information is sent to the user end and the corresponding payment merchant end according to the payment information, and the payment information is written into the asynchronous processing queue corresponding to the payment merchant end. The payment information includes the order to be paid, the payment method and the payment merchant. The asynchronous processing queue is used to store the payment information; When the number of orders to be paid contained in the asynchronous processing queue corresponding to the payment merchant exceeds a preset number threshold, identifying payment features contained in each payment information, the payment features including interface specifications, data formats, communication protocols, and risk monitoring; Based on the payment features contained in all payment information, determine the target payment channel corresponding to each payment information; According to the target payment channel corresponding to each payment information, communication is established between the corresponding user end and the merchant end to be paid, and the order payment operation is completed based on the corresponding target payment channel.
2. A payment connection management method according to claim 1, characterized in that: Based on the payment features contained in the payment information, determine the target payment channel corresponding to the payment information, including: Identify the payment characteristic value corresponding to each payment characteristic from the payment information, and determine the sub-function channel corresponding to each payment characteristic value from a preset sub-function channel list corresponding to each payment characteristic, wherein the preset sub-function channel list includes sub-function channels corresponding to different payment characteristic values; All sub-function channels corresponding to the payment information are combined to obtain a target payment channel of the payment information, where the target payment channel is composed of multiple sub-function channels.
3. A payment connection management method according to claim 2, characterized in that: Combine all sub-function channels corresponding to each payment information to obtain the target payment channel for each payment information, including: Identify the writing time when each payment information is written into the asynchronous processing queue and the payment identifier contained in each payment information, and determine the estimated operation duration corresponding to each payment information based on the mapping relationship between each payment identifier and the payment duration, wherein the payment duration mapping relationship is the corresponding relationship between the payment identifier and the estimated operation duration; Determine the access time corresponding to each sub-function channel according to the estimated operation time and writing time corresponding to each payment information; According to the access time of each sub-function channel, the preset sub-function channel list to which each sub-function channel belongs, and the preset execution time wheel corresponding to each preset sub-function list, an execution time wheel corresponding to each preset sub-function channel list is generated, and each preset execution time wheel includes multiple time bins; Based on the access time corresponding to each payment information and each execution time round, channel combination is performed to obtain the target payment channel corresponding to each payment information.
4. A payment connection management method according to claim 3, characterized in that: The step of generating an execution time wheel corresponding to each preset sub-function channel list according to the access time of each sub-function channel, the preset sub-function channel list to which each sub-function channel belongs, and the preset execution time wheel corresponding to each preset sub-function list comprises: According to the access time of each payment information, determine the sub-function channel to be executed in each time bin in each preset execution time round; According to the access time of each sub-function channel corresponding to each preset sub-function channel list, determine the execution time of the time bin corresponding to each sub-function channel; According to the execution time of each time bin and the sub-function channels to be executed, an execution time wheel for each preset sub-function channel list is generated.
5. A payment connection management method according to claim 3, characterized in that: Channel combination is performed based on the access time and execution time corresponding to the payment information, including: If it is detected that the current moment is the access moment of the payment information, then the execution time bin corresponding to each execution time wheel at the access moment is obtained; The to-be-executed sub-function channels corresponding to each execution time bin are identified, and the to-be-executed sub-function channels corresponding to each execution time bin are combined.
6. A payment connection management method according to claim 1, characterized in that: Establish communication between the corresponding user end and the merchant end to be paid according to the target payment channel corresponding to the payment information, and complete the order payment operation based on the corresponding target payment channel, and then also include: Detect the order payment operation process in real time and collect operation characteristics according to the preset frequency; When an abnormal operation feature appears in the operation feature, a backup payment channel is started, and the backup payment channel is determined as the target payment channel of the order to be paid, and the abnormal operation feature includes network delay and payment channel maintenance.
7. A payment platform, characterized in that: The payment platform includes: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute a payment docking management method according to any one of claims 1-6.
8. A computer-readable storage medium, characterized in that: include: A computer program is stored which can be loaded by a processor and execute a payment connection management method as described in any one of claims 1 to 6.
9. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the steps of a payment docking management method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method based on modularized automatic assembling payment gateway system
CN106875163A
Payment routing method and device, computer equipment and storage medium
CN113850661A
Electronic payment processing method and device, electronic equipment and storage medium
CN114429340A
Payment page display method and device, terminal equipment and storage medium
CN114943529A
Transaction request processing method and device, storage medium and electronic device
CN115439250A
