An agent-based payment system and method
By generating and encapsulating service metadata, skills, and orders through an agent-based payment system, the problem of payment agents being unable to make autonomous consumption in existing payment systems is solved, enabling autonomous payment without human intervention.
Patent Information
- Application Number
- CN202611260412.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-19
- Publication Date
- 2026-11-27
AI Technical Summary
Existing agent-based payment systems require developers to have multiple development capabilities, and consumers need to perform manual operations to make payments through different payment channels, making it difficult to achieve truly autonomous consumption.
This paper provides an agent-based payment system, which includes an information access module, a skill generation module, a payment agent, an order generation module, and a payment execution module. By generating and encapsulating service metadata, skills, and orders, the payment agent enables autonomous consumption.
Developers do not need to possess multiple development capabilities simultaneously, and consumers can make payments through different payment channels without manual operation, enabling payment agents to make autonomous consumption.
Smart Images

Figure CN123180995A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence (AI) technology, and in particular to an agent-based payment system and method. Background Technology
[0002] Currently, in various payment scenarios, a new intelligent payment method has gradually emerged that uses an intelligent agent to identify the user's intent and initiates payment on behalf of the user based on the user's payment intent.
[0003] Existing agent-based payment systems typically require developers to possess multiple development capabilities, including payment, billing, and order management. Furthermore, each time a payment service is invoked, the consumer still needs to perform corresponding manual operations to complete the payment across different payment channels. Therefore, it is evident that payment agents in existing payment systems struggle to achieve truly autonomous consumption. Summary of the Invention
[0004] This application provides an agent-based payment system and method to ensure that the payment agent in the payment system can achieve truly autonomous consumption.
[0005] In a first aspect, embodiments of this application provide an agent-based payment system, which includes: an information access module, a skill generation module, a payment agent, an order generation module, and a payment execution module; wherein, The information access module is configured to generate multiple service metadata based on multiple interface configuration information submitted by the first object, and send the multiple service metadata to the skill generation module; wherein, different service metadata correspond to different service skills; The skill generation module is configured to generate service skills corresponding to multiple service metadata based on multiple service metadata and preset skill generation templates; wherein, the skill generation template is used to indicate multiple skill configuration items set for the service skill; After the payment agent is configured to load multiple service skills generated by the skill generation module, it responds to the first payment request initiated by the second object by calling the target service skill that matches the first payment request from among the multiple service skills. This enables the order generation module to generate and send an initial payment order and a second payment request to the payment execution module based on the consumption information indicated by the first payment request and the order generation method indicated by the target service skill. The payment execution module is also configured to encapsulate the initial payment order based on the unified order encapsulation rules set for multiple payment channels to obtain the target payment order, and send the target payment order to the target payment channel indicated by the second payment request to execute the payment operation of the target payment order.
[0006] In one optional embodiment, the information access module is configured to generate multiple service metadata based on multiple interface configuration information submitted by the first object, including: The first object is verified for entry into the information access module, and the entry verification result is obtained; After the entry verification result indicates that the first object has successfully entered the information access module, the multiple interface configuration information submitted by the first object is structured and parsed to obtain multiple service metadata.
[0007] In one alternative embodiment, the multiple skill configuration items indicated by the skill generation template include any one or a combination of the following: Service skill names and their corresponding skill descriptions; The mapping relationship between service skill input parameters and service skill output parameters; The rules for invoking the authentication strategy; Billing trigger point.
[0008] In one optional embodiment, the order generation module includes: a billing unit and an order generation unit; wherein, The billing unit is configured to perform real-time billing of consumption information based on a billing method associated with consumption information, thereby obtaining the amount to be paid corresponding to the first payment request; The order generation unit is configured to fill a preset payment order template with at least one consumption feature corresponding to the amount to be paid and the consumption information to obtain an initial payment order.
[0009] In one optional embodiment, the payment execution module is configured to encapsulate the initial payment order based on a unified order encapsulation rule set for multiple payment channels to obtain the target payment order, including: Based on the payment parameters corresponding to various payment channels, a payable voucher is generated; the payable voucher is used by the payment execution module to execute the payment operation of the corresponding payment order under various payment channels; Add the payable voucher to the initial payment order to obtain the target payment order.
[0010] In an optional embodiment, the payment execution module is further configured to: If a successful payment result is received from the target payment channel based on the target payment order within the set execution time of the payment operation, then the payment of the target payment order is determined to be completed. If a successful payment result is not received within the set payment operation execution time or the target payment channel does not return a successful payment result, the payment of the target payment order is determined to have failed, and the payment operation is executed again. If the target payment order is not executed within the set order execution time or a cancellation operation is received for the target payment order, then the payment for the target payment order is considered closed.
[0011] In an optional embodiment, the payment system further includes: a callback and settlement module; wherein, The payment execution module is also configured to send the order payment result to the callback and settlement module after receiving a successful payment result within the set payment operation execution time. The callback and settlement module is configured to record the initial order status of the target payment order as pending payment and send the initial order status to the order generation module before the order generation module initiates the second payment request to the payment execution module. When the order generation module sends a second payment request to the payment execution module, the initial order status is updated to "paying" and the updated initial order status is sent to the order generation module. Furthermore, upon confirming that payment for the target payment order has been completed, the updated initial order status is updated to "paid," and the latest order status is sent to the order generation module.
[0012] In an optional embodiment, the callback and settlement module is further configured as follows: If the payment for the target payment order is determined to have failed, the updated initial order status will be updated to "payment failed", and the latest order status will be sent to the order generation module. Additionally, once it is determined that payment for the target payment order has been closed, the updated initial order status is updated to "payment closed," and the latest order status is sent to the order generation module.
[0013] In an optional embodiment, the payment system further includes: a compliance audit module; wherein, The compliance audit module is configured to record billing logs and order status logs generated by the order generation module, payment request logs generated by the payment execution module, and callback settlement logs generated by the callback and settlement module.
[0014] Secondly, embodiments of this application also provide an agent-based payment method, applied to the agent-based payment system as described in the first aspect, the method comprising: Multiple service metadata are generated based on the interface configuration information submitted by the first object; among them, different service metadata correspond to different service skills; Based on multiple service metadata and preset skill generation templates, service skills corresponding to multiple service metadata are generated; among them, the skill generation template is used to indicate multiple skill configuration items set for the service skill; After loading multiple service skills, in response to the first payment request initiated by the second object, the target service skill matching the first payment request is called from among the multiple service skills. Based on the consumption information indicated by the first payment request and the order generation method indicated by the target service skill, an initial payment order and a second payment request are generated. Based on the unified order encapsulation rules set for multiple payment channels, the initial payment order is encapsulated to obtain the target payment order, and then the target payment order is sent to the target payment channel indicated by the second payment request to execute the payment operation of the target payment order.
[0015] Thirdly, embodiments of this application also provide an agent-based payment device, applied to the agent-based payment system as described in the first aspect, the device comprising: The data generation module is used to generate multiple service metadata based on the multiple interface configuration information submitted by the first object; among them, different service metadata correspond to different service skills; The skill generation module is used to generate service skills corresponding to multiple service metadata based on multiple service metadata and preset skill generation templates; among them, the skill generation template is used to indicate multiple skill configuration items set for the service skills; The skill invocation module is used to load multiple service skills and, in response to a first payment request initiated by a second object, invoke the target service skill that matches the first payment request from among the multiple service skills. The order generation module is used to generate an initial payment order and a second payment request based on the consumption information indicated by the first payment request and the order generation method indicated by the target service skill. The order payment module is used to encapsulate the initial payment order based on the unified order encapsulation rules set for multiple payment channels, obtain the target payment order, and send the target payment order to the target payment channel indicated by the second payment request to execute the payment operation of the target payment order.
[0016] Fourthly, embodiments of this application also provide an electronic device, including: processor; Stored program memory, The program includes instructions that, when executed by the processor, cause the processor to perform the agent-based payment method as described in the second aspect.
[0017] Fifthly, embodiments of this application also provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the agent-based payment method as described in the first aspect.
[0018] Sixthly, this application also provides a computer program product that, when invoked by a computer, causes the computer to execute the steps of the agent-based payment method as described in the first aspect.
[0019] The beneficial effects of this application are as follows: In the agent-based payment system provided in this application embodiment, the information access module is configured to generate multiple service metadata based on multiple interface configuration information submitted by the first object, and the skill generation module is configured to generate service skills corresponding to the multiple service metadata based on the multiple service metadata generated by the information access module and a preset skill generation template. Furthermore, the payment agent is configured to load the multiple service skills generated by the skill generation module and, in response to the first payment request initiated by the second object, call the target service skill matching the first payment request from the multiple service skills. This enables the order generation module to generate and send an initial payment order and a second payment request to the payment execution module based on the consumption information indicated by the first payment request and the order generation method indicated by the target service skill. The payment execution module is configured to encapsulate the initial payment order based on a unified order encapsulation rule set for multiple payment channels to obtain a target payment order, and send the target payment order to the target payment channel indicated by the second payment request, so that the target payment channel executes the payment operation of the target payment order. Therefore, it is evident that developers (e.g., the first object) do not need to possess multiple development capabilities such as payment, billing, and order processing; and, each time a payment service (e.g., the target service skill) is invoked, consumers (e.g., the second object) do not need to perform corresponding manual operations to achieve payment through different payment channels, thereby enabling payment agents to truly consume autonomously.
[0020] Furthermore, other features and advantages of this application will be set forth in the following description and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained through the structures particularly pointed out in the written description and accompanying drawings. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described herein are used to provide a further understanding of this application, constitute a part of this application, and do not constitute an improper limitation of this application. In the accompanying drawings: Figure 1 This is a schematic diagram of the system architecture of an agent-based payment system provided in an embodiment of this application.
[0022] Figure 2This is a schematic diagram of another agent-based payment system architecture provided for an embodiment of this application.
[0023] Figure 3 This is a schematic diagram illustrating the implementation process of an agent-based payment method provided in this application embodiment.
[0024] Figure 4 This is a schematic diagram of the structure of an Agent-based payment device provided in an embodiment of this application.
[0025] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0026] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While some embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this application. It should be understood that the drawings and embodiments of this application are for illustrative purposes only and are not intended to limit the scope of protection of this application.
[0027] It should be understood that the steps described in the method embodiments of this application may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this application is not limited in this respect.
[0028] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc., mentioned in this application are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.
[0029] It should be noted that the terms "a" and "a plurality of" used in this application are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0030] The names of the messages or information exchanged between multiple devices in the embodiments of this application are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0031] The design concept of the embodiments of this application is briefly introduced below: In existing agent-based payment systems, developers (e.g., business-side (B2B) technical personnel) develop their own payment services (e.g., application programming interfaces (APIs) and provide the entry point for calls). Furthermore, if they wish to charge fees, developers must build their own billing systems (e.g., call metering, package management, order management, reconciliation, etc.). In addition, when a payment agent (or consumer-side (C2C) AI agent) calls the payment service, it typically cannot directly complete compliant payments and must be handled manually. Therefore, it is evident that payment agents in existing payment systems struggle to achieve truly autonomous consumption.
[0032] To ensure that payment agents in the payment system can achieve truly autonomous spending, see [reference needed]. Figure 1 As shown, this application embodiment provides an agent-based payment system. The agent-based payment system may include: an information access module 101, a skill generation module 102, a payment agent 103, an order generation module 104, and a payment execution module 105.
[0033] The information access module 101 is configured to generate multiple service metadata based on multiple interface configuration information submitted by the first object (e.g., B-end developer), and send the multiple service metadata to the skill generation module 102.
[0034] It is understandable that different service metadata corresponds to different service skills. Furthermore, each service metadata corresponds to at least one interface configuration information; that is, each service metadata can be generated based on at least one interface configuration information, and through this service metadata, the invocation of at least one corresponding interface can be achieved. For example, each interface configuration information may include API description information, such as the interface address, request parameters, billing rules, and return structure. In one optional implementation, the information access module 101 is configured to generate multiple service metadata based on multiple interface configuration information submitted by the first object. When generating multiple service metadata, the first object can be verified for entry into the information access module to obtain the entry verification result. After the entry verification result indicates that the first object has successfully entered the information access module, the multiple interface configuration information submitted by the first object is structured and parsed to obtain multiple service metadata.
[0035] In this way, by verifying the entry of the first object, the information access module 101 can ensure the reliability of the interface configuration information submitted by the first object, thereby ensuring the accuracy of the service metadata obtained based on the interface configuration information.
[0036] The skill generation module 102 is configured to generate service skills corresponding to multiple service metadata based on multiple service metadata and preset skill generation templates.
[0037] The skill generation template indicates multiple skill configuration items set for a service skill. Optionally, the multiple skill configuration items indicated by the skill generation template include any one or a combination of the following: the service skill name and its corresponding skill description; the mapping relationship between the service skill input parameters and the service skill output parameters; the invocation rules of the authentication policy; and the billing trigger point. For example, the aforementioned authentication policy may include: Cookie / Session authentication, Token authentication, and OpenAPI call authentication, etc. Therefore, each service skill corresponding to each service metadata can implement a corresponding payment service.
[0038] In this way, through the information access module 101 and the skill generation module 102, the first object (e.g., B-end developer) can complete the callable release of the Agent ecosystem without manually writing Skill code (i.e., the code of the skill service).
[0039] After the payment agent 103 is configured to load multiple service skills generated by the skill generation module 102, it responds to a first payment request initiated by a second object (e.g., a C-end consumer) by calling the target service skill that matches the first payment request from among the multiple service skills. For example, the payment agent 103 can parse the first payment request to obtain the target skill identifier of the target skill service, and then call the target service skill from among the multiple service skills based on the target skill identifier.
[0040] It should be noted that, in order to reduce the load and resource consumption of the payment agent 103, the function of loading multiple service skills generated by the skill generation module 102 can also be separated from the payment agent 103.
[0041] For example, in Figure 1 The agent-based payment system shown has a separate capability listing and catalog module (not in...). Figure 1 (As shown in the diagram). The capability listing and catalog module is configured to load multiple service skills generated by the skill generation module 102, so that when the payment agent 103 receives a first payment request initiated by a second object, it can call the target service skill that matches the first payment request from the multiple service skills indicated by the skill catalog loaded by the capability listing and catalog module.
[0042] The order generation module 104 is configured to generate and send an initial payment order and a second payment request to the payment execution module 105 based on the consumption information indicated by the first payment request and the order generation method indicated by the target service skill. For example, the aforementioned consumption information may include: the consumption behavior of a second object for one or more items within a set time range.
[0043] At this point, the payment execution module 105 is configured to encapsulate the initial payment order based on a unified order encapsulation rule set for multiple payment channels (e.g., Payment A, Payment B, and Payment C), obtain the target payment order, and send the target payment order to the target payment channel (e.g., Payment B) indicated by the second payment request, so that the target payment channel executes the payment operation of the target payment order. In this way, the payment agent 103 can realize order payment for different payment channels through the payment execution module 105 without relying on the second object to perform corresponding manual operations, realizing true autonomous consumption.
[0044] In one optional implementation, the payment execution module 105 is configured to encapsulate the initial payment order based on a unified order encapsulation rule set for multiple payment channels. When the target payment order is obtained, a payable voucher can be generated based on the payment parameters corresponding to each of the multiple payment channels (e.g., the order placement parameters corresponding to Payment A, Payment B, and Payment C, respectively). This payable voucher is then added to the initial payment order to obtain the target payment order. The aforementioned payable voucher can be used by the payment execution module 105 to execute the payment operation of the corresponding payment order under multiple payment channels.
[0045] Based on the above method, the payment execution module 105 generates payable credentials based on the payment parameters corresponding to various payment channels, and adopts a unified payment call interface to shield the underlying communication differences between different payment channels. That is, the unified protocol is used so that the payment agent 103 does not need to adapt to multiple payment channels separately.
[0046] Furthermore, the payment execution module 105 is configured to: if a payment success result is received from the target payment channel based on the target payment order within a set payment operation execution time (e.g., 2 minutes), then the payment for the target payment order is determined to be complete. Here, receiving a payment success result within the set payment operation execution time can be understood as a successful asynchronous callback from the payment execution module 105 to the target payment channel.
[0047] If a payment success result is not received within the set payment operation execution time or the target payment channel does not return a payment success result, the payment of the target payment order is determined to have failed, and the payment operation is executed again. Here, "not receiving a payment success result within the set payment operation execution time" can be understood as the asynchronous callback of the payment execution module 105 to the target payment channel timeout, and "the target payment channel not returning a payment success result" can be understood as the asynchronous callback of the payment execution module 105 to the target payment channel failing. The aforementioned re-execution of the payment operation is also known as a retry of the payment operation.
[0048] If the target payment order is not executed within the set order execution time (e.g., 15 minutes) or a cancellation operation is received for the target payment order, then the payment for the target payment order is considered closed. Here, "not executing the target payment order within the set order execution time" can be understood as the order payment for the target payment order timed out.
[0049] Optionally, after receiving a successful payment result (i.e., the asynchronous callback of the payment execution module 105 to the target payment channel is successful) within the set payment operation execution time, the payment execution module 105 can perform security verification (such as payment callback signature verification, request identity verification, amount consistency verification), idempotent processing, and state storage.
[0050] Idempotent control ensures that repeated payment requests for the same payment order result in only one valid transaction, while state logging continuously updates and records the order status of payment orders. For example, a state machine records the order status changes of a target payment order as "Pending payment → In progress → Paid / Payment failed / Payment closed".
[0051] Based on the above Figure 1 The agent-based payment system shown serves as a payment agent platform for the AI Agent ecosystem. The information access module 101 provides low-cost onboarding capabilities for B-end developers (e.g., the first target). The skill generation module 102 automatically encapsulates their service metadata into tradable service skills, and completes the transaction loop through a unified order generation module 104 and payment execution module 105. Thus, it solves the problems of "services can be invoked but not traded" and "AI can make decisions but cannot make payments," achieving a closed-loop process for the payment agent from capability invocation to fund transfer.
[0052] In one alternative implementation, see [link to relevant documentation]. Figure 2 As shown, the order generation module 104 may include a billing unit 1041 and an order generation unit 1042. The billing unit 1041 is configured to perform real-time billing on the consumption information based on the billing method associated with the consumption information indicated by the first payment request, thereby obtaining the amount to be paid corresponding to the first payment request.
[0053] For example, the billing unit 1041 can be used to perform real-time metering according to the billing method associated with the consumption information (e.g., per use) among a number of preset billing methods (e.g., per use, per quantity, tiered, package, etc.) after the payment agent 103 calls the target service skill, and calculate the amount to be paid corresponding to the first payment request.
[0054] The order generation unit 1042 is configured to fill a preset payment order template with at least one consumption feature corresponding to the amount to be paid and the consumption information to obtain an initial payment order.
[0055] Optionally, at least one of the aforementioned consumption characteristics may include: transaction context, merchant identifier, etc., and the preset payment order template may also indicate the order number and order expiration time corresponding to the initial payment order. Therefore, the initial payment order may at least include: amount to be paid, transaction context, merchant identifier, order number, and order expiration time.
[0056] Still Figure 2 As shown, the agent-based payment system may further include a callback and settlement module 106. Thus, the payment execution module 405 can also be configured to send the order payment result to the callback and settlement module 106 after receiving a successful payment result within a set payment operation execution time. In this case, the callback and settlement module 106 is configured to record the initial order status of the target payment order as pending payment and send the initial order status to the order generation module 104 before the order generation module 104 initiates a second payment request to the payment execution module 105.
[0057] Furthermore, the callback and settlement module 106 is also configured to update the initial order status to "paying" and send the updated initial order status to the order generation module 104 when the order generation module 104 initiates a second payment request to the payment execution module 105; and to update the updated initial order status to "paid" and send the latest order status to the order generation module 104 when it is determined that the payment of the target payment order has been completed.
[0058] At this point, the callback and settlement module 106 updates the order status to "payment for the target payment order has been completed", i.e., "pending payment → in payment → paid".
[0059] Similarly, the callback and settlement module 106 can also be configured to update the initial order status to payment failure and send the latest order status to the order generation module 104 when the payment of the target payment order is determined to have failed.
[0060] At this point, the callback and settlement module 106 updates the order status for "payment failure of the target payment order", namely "pending payment → in payment → payment failure".
[0061] Additionally, the callback and settlement module 106 can also be configured to update the initial order status to "payment closed" and send the latest order status to the order generation module 104 when it is determined that the payment for the target payment order has been closed.
[0062] At this point, the callback and settlement module 106 updates the order status for "the target payment order has been closed", i.e., "pending payment → in payment → payment closed".
[0063] In addition, as Figure 2 As shown, the agent-based payment system may further include a compliance audit module 107. The compliance audit module 107 may be configured to record billing logs and order status logs generated by the order generation module 104, payment request logs generated by the payment execution module 105, and callback settlement logs generated by the callback and settlement module 106.
[0064] It is understandable that the aforementioned billing logs, order status logs, payment request logs, and callback settlement logs can all be referred to as transaction link logs, which can meet the auditing requirements for request identifiers, order status changes, callback summaries, etc.
[0065] Based on the above approach, a compliance audit module 107 is set up in the agent-based payment system, which effectively solves the problem of high compliance and security pressure, namely, the lack of risk control consistency and audit capabilities due to the need to connect to different payment channels.
[0066] In summary, in the agent-based payment system provided in this application embodiment, the information access module is configured to generate multiple service metadata based on multiple interface configuration information submitted by the first object, and the skill generation module is configured to generate service skills corresponding to the multiple service metadata based on the multiple service metadata generated by the information access module and a preset skill generation template. Furthermore, the payment agent is configured to load the multiple service skills generated by the skill generation module and, in response to the first payment request initiated by the second object, call the target service skill matching the first payment request from the multiple service skills. This enables the order generation module to generate and send an initial payment order and a second payment request to the payment execution module based on the consumption information indicated by the first payment request and the order generation method indicated by the target service skill. The payment execution module is configured to encapsulate the initial payment order based on a unified order encapsulation rule set for multiple payment channels to obtain a target payment order, and send the target payment order to the target payment channel indicated by the second payment request, so that the target payment channel executes the payment operation of the target payment order. Therefore, it is evident that developers (e.g., the first object) do not need to possess multiple development capabilities such as payment, billing, and order processing; and, each time a payment service (e.g., the target service skill) is invoked, consumers (e.g., the second object) do not need to perform corresponding manual operations to achieve payment through different payment channels, thereby enabling payment agents to truly consume autonomously.
[0067] Furthermore, based on the same technical concept, embodiments of this application also provide an agent-based payment method, wherein the executing entity uses, for example... Figure 1 or Figure 2 The agent-based payment system shown is described in the following document. Figure 3 As shown, the specific implementation process of this method is as follows: S301: Generate multiple service metadata based on the multiple interface configuration information submitted by the first object.
[0068] Different service metadata correspond to different service skills.
[0069] In one optional implementation, during step S301, the agent-based payment system can perform an entry verification of the first object into the information access module, obtain an entry verification result, and, after the entry verification result indicates that the first object has successfully entered the information access module, perform structured parsing of the multiple interface configuration information submitted by the first object to obtain multiple service metadata. Conversely, if the entry verification result indicates that the first object has failed to enter the information access module, the agent-based payment system does not need to perform structured parsing of the multiple interface configuration information submitted by the first object.
[0070] S302: Based on multiple service metadata and preset skill generation templates, generate service skills corresponding to the multiple service metadata.
[0071] The skill generation template is used to indicate multiple skill configuration items set for a service skill. Optionally, the aforementioned multiple skill configuration items include any one or a combination of the following: the service skill name and its corresponding skill description; the mapping relationship between the service skill input parameters and the service skill output parameters; the invocation rules of the authentication policy; and the billing trigger point.
[0072] S303: After loading multiple service skills, in response to the first payment request initiated by the second object, call the target service skill that matches the first payment request from among the multiple service skills.
[0073] S304: Based on the consumption information indicated by the first payment request and the order generation method indicated by the target service skill, generate an initial payment order and a second payment request.
[0074] Optionally, the aforementioned initial payment order can be obtained by the agent-based payment system performing real-time billing on the consumption information based on the billing method associated with the consumption information, obtaining the amount to be paid corresponding to the first payment request, and then filling the amount to be paid and at least one consumption feature corresponding to the consumption information into a preset payment order template.
[0075] S305: Based on the unified order encapsulation rules set for multiple payment channels, the initial payment order is encapsulated to obtain the target payment order, and the target payment order is sent to the target payment channel indicated by the second payment request to execute the payment operation of the target payment order.
[0076] In one optional implementation, when executing step S305, the agent-based payment system can generate payable vouchers based on the payment parameters corresponding to various payment channels, thereby adding the payable vouchers to the initial payment order to obtain the target payment order, so as to realize payment operations for the payment order under multiple payment channels.
[0077] In one optional implementation, the agent-based payment system can also be used to determine that the payment of the target payment order has been completed if a successful payment result is received from the target payment channel based on the target payment order within the set payment operation execution time; if a successful payment result is not received within the set payment operation execution time or the target payment channel does not return a successful payment result, the payment of the target payment order is determined to have failed, and the payment operation is executed again; if the target payment order is not executed within the set order execution time or a cancellation operation is received for the target payment order, the payment of the target payment order is determined to have been closed.
[0078] Of course, the agent-based payment system can also perform other methods and steps described above, such as order status updates or log recording, etc., which are not specifically limited in this embodiment.
[0079] In summary, the agent-based payment method provided in this application embodiment can offer B-end developers (e.g., the first object) low-cost onboarding capabilities, automatically encapsulate their service metadata into tradable service skills, and complete the transaction loop through unified order generation and payment execution. Thus, it solves the problems of "services can be invoked but not traded" and "AI can make decisions but cannot make payments," achieving a closed-loop process for the payment agent from capability invocation to fund transfer.
[0080] Based on the same technical concept, embodiments of this application also provide an agent-based payment device, applicable to, for example... Figure 1 or Figure 2 The agent-based payment system shown is used to implement the method flow described in the embodiments of this application. For example, see [link to relevant documentation]. Figure 4 As shown, the agent-based payment device 400 includes: a data generation module 401, a skill generation module 402, a skill invocation module 403, an order generation module 404, and an order payment module 405, wherein: The data generation module 401 is used to generate multiple service metadata based on the multiple interface configuration information submitted by the first object; wherein, different service metadata correspond to different service skills; The skill generation module 402 is used to generate service skills corresponding to multiple service metadata based on multiple service metadata and preset skill generation templates; wherein, the skill generation template is used to indicate multiple skill configuration items set for the service skills; The skill invocation module 403 is used to load multiple service skills and, in response to the first payment request initiated by the second object, invoke the target service skill that matches the first payment request from the multiple service skills. The order generation module 404 is used to generate an initial payment order and a second payment request based on the consumption information indicated by the first payment request and the order generation method indicated by the target service skill. The order payment module 405 is used to encapsulate the initial payment order based on the unified order encapsulation rules set for multiple payment channels, obtain the target payment order, and send the target payment order to the target payment channel indicated by the second payment request to execute the payment operation of the target payment order.
[0081] Based on the description of the method and apparatus embodiments above, an exemplary embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor. The memory stores a computer program executable by the at least one processor, which, when executed by the at least one processor, causes the electronic device to perform the method according to an embodiment of the present invention.
[0082] This application also provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a computer's processor, is used to cause the computer to perform a method according to an embodiment of this application.
[0083] This application also provides a computer program product, including a computer program, wherein the computer program, when executed by a computer's processor, is used to cause the computer to perform a method according to an embodiment of this application.
[0084] See Figure 5 The diagram shown below illustrates the structure of an electronic device 500 that can serve as a server or client in this application, and is an example of a hardware device that can be applied to various aspects of this application. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.
[0085] like Figure 5 As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. The RAM 503 may also store various programs and data required for the operation of the device 500. The computing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0086] Multiple components in electronic device 500 are connected to I / O interface 505, including: input unit 506, output unit 507, storage unit 508, and communication unit 509. Input unit 506 can be any type of device capable of inputting information to electronic device 500. Input unit 506 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of electronic device. Output unit 507 can be any type of device capable of presenting information and may include, but is not limited to, a display, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 508 may include, but is not limited to, disks and optical discs. Communication unit 509 allows electronic device 500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and / or chipsets, such as Bluetooth devices, WiFi devices, worldwide interoperability for microwave access (WiMax) devices, cellular communication devices, and / or the like.
[0087] The computing unit 501 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various AI computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above. For example, in some embodiments, the agent-based payment method described above can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 500 via ROM 502 and / or communication unit 509. In some embodiments, the computing unit 501 can be configured to perform the agent-based payment method described above by any other suitable means (e.g., by means of firmware).
[0088] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0089] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, RAM, ROM, erasable programmable read-only memory (EPROM) or flash memory, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0090] As used in this application, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device, PLD) used to provide machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0091] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a cathode ray tube (CRT) or liquid crystal display (LCD) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0092] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0093] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.
[0094] Furthermore, it should be understood that the above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of the invention. Therefore, any equivalent variations made in accordance with the claims of this invention are still within the scope of this application.
Claims
1. An agent-based payment system, characterized in that, The payment system includes: an information access module, a skill generation module, a payment agent, an order generation module, and a payment execution module; wherein, The information access module is configured to generate multiple service metadata based on multiple interface configuration information submitted by the first object, and send the multiple service metadata to the skill generation module; wherein, different service metadata correspond to different service skills; The skill generation module is configured to generate service skills corresponding to the multiple service metadata based on the multiple service metadata and a preset skill generation template; wherein, the skill generation template is used to indicate multiple skill configuration items set for the service skills; The payment agent is configured to load multiple service skills generated by the skill generation module, and in response to a first payment request initiated by a second object, to call a target service skill from the multiple service skills that matches the first payment request. This enables the order generation module to generate and send an initial payment order and a second payment request to the payment execution module based on the consumption information indicated by the first payment request and the order generation method indicated by the target service skill. The payment execution module is also configured to encapsulate the initial payment order based on a unified order encapsulation rule set for multiple payment channels to obtain a target payment order, and send the target payment order to the target payment channel indicated by the second payment request to execute the payment operation of the target payment order.
2. The payment system as described in claim 1, characterized in that, The information access module is configured to generate multiple service metadata based on multiple interface configuration information submitted by the first object, including: The first object is subjected to the entry verification of the information access module to obtain the entry verification result; After the entry verification result indicates that the first object has successfully entered the information access module, the multiple interface configuration information submitted by the first object is structured and parsed to obtain the multiple service metadata.
3. The payment system as described in claim 1, characterized in that, The skill generation template indicates multiple skill configuration items, including any one or a combination of the following: Service skill names and their corresponding skill descriptions; The mapping relationship between service skill input parameters and service skill output parameters; The rules for invoking the authentication strategy; Billing trigger point.
4. The payment system as described in claim 1, characterized in that, The order generation module includes: a billing unit and an order generation unit; wherein... The billing unit is configured to perform real-time billing on the consumption information based on the billing method associated with the consumption information, so as to obtain the amount to be paid corresponding to the first payment request; The order generation unit is configured to fill a preset payment order template with at least one consumption feature corresponding to the amount to be paid and the consumption information to obtain the initial payment order.
5. The payment system as described in claim 1, characterized in that, The payment execution module is configured to encapsulate the initial payment order based on a unified order encapsulation rule set for multiple payment channels, to obtain the target payment order, including: Based on the payment parameters corresponding to the various payment channels, a payable voucher is generated; the payable voucher is used by the payment execution module to execute the payment operation of the corresponding payment order under the various payment channels; The payable voucher is added to the initial payment order to obtain the target payment order.
6. The payment system as described in claim 5, characterized in that, The payment execution module is also configured to: If a successful payment result is received from the target payment channel corresponding to the payment operation based on the target payment order within the set execution time of the payment operation, it is determined that the payment of the target payment order has been completed. If the payment success result is not received within the set payment operation execution time or the target payment channel does not return the payment success result, the payment of the target payment order is determined to have failed, and the payment operation is executed again. If the target payment order is not executed within the set order execution time or a cancellation operation is received for the target payment order, then the payment for the target payment order is determined to be closed.
7. The payment system as described in claim 6, characterized in that, The payment system also includes: a callback and settlement module; wherein... The payment execution module is also configured to send the order payment result to the callback and settlement module after receiving the payment success result within the set payment operation execution time. The callback and settlement module is configured to record the initial order status of the target payment order as pending payment and send the initial order status to the order generation module before the order generation module initiates the second payment request to the payment execution module. When the order generation module initiates the second payment request to the payment execution module, the initial order status is updated to "paying" and the updated initial order status is sent to the order generation module. Furthermore, upon determining that the payment for the target payment order has been completed, the updated initial order status is updated to "paid," and the latest order status is sent to the order generation module.
8. The payment system as described in claim 7, characterized in that, The callback and settlement module is also configured as follows: Upon determining that the target payment order has failed, the updated initial order status is updated to "payment failed," and the latest order status is sent to the order generation module. Furthermore, upon determining that the payment for the target payment order has been closed, the updated initial order status is updated to "payment closed," and the latest order status is sent to the order generation module.
9. The payment system as described in claim 7, characterized in that, The payment system also includes: a compliance audit module; wherein... The compliance audit module is configured to record the billing logs and order status logs generated by the order generation module, the payment request logs generated by the payment execution module, and the callback settlement logs generated by the callback and settlement module.
10. An agent-based payment method, characterized in that, Applied to the agent-based payment system as described in any one of claims 1-9, comprising: Multiple service metadata are generated based on the interface configuration information submitted by the first object; among them, different service metadata correspond to different service skills; Based on the multiple service metadata and the preset skill generation template, service skills corresponding to the multiple service metadata are generated respectively; wherein, the skill generation template is used to indicate multiple skill configuration items set for the service skills; After loading multiple service skills, in response to the first payment request initiated by the second object, the target service skill matching the first payment request is called from the multiple service skills; Based on the consumption information indicated by the first payment request and the order generation method indicated by the target service skill, an initial payment order and a second payment request are generated. Based on the unified order encapsulation rules set for multiple payment channels, the initial payment order is encapsulated to obtain the target payment order, and the target payment order is sent to the target payment channel indicated by the second payment request to execute the payment operation of the target payment order.
