feat(tools): add Mastercard Payment Integration Tool#5200
Closed
Samir-atra wants to merge 1 commit intoaden-hive:mainfrom
Closed
feat(tools): add Mastercard Payment Integration Tool#5200Samir-atra wants to merge 1 commit intoaden-hive:mainfrom
Samir-atra wants to merge 1 commit intoaden-hive:mainfrom
Conversation
Adds Mastercard Payment Gateway Services (MPGS) integration with 8 MCP tools: - mastercard_create_token: Securely store card details and return a token - mastercard_authorize: Verify funds and place a hold without capturing - mastercard_pay: Execute a direct payment (authorize and capture in one step) - mastercard_capture: Capture funds from a previously authorized transaction - mastercard_refund: Process full or partial refunds - mastercard_retrieve_transaction: Fetch transaction status and details - mastercard_verify_service: Validate 3D Secure (3DS) eligibility - mastercard_void: Cancel a previously authorized transaction Files: - tools/src/aden_tools/tools/mastercard_tool/mastercard_tool.py: Main tool implementation - tools/src/aden_tools/tools/mastercard_tool/__init__.py: Module exports - tools/src/aden_tools/tools/mastercard_tool/README.md: Documentation - tools/src/aden_tools/tools/__init__.py: Tool registration - tools/README.md: Updated available tools list - tools/tests/test_mastercard_tool.py: Unit tests (22 tests) Environment variables: MASTERCARD_MERCHANT_ID, MASTERCARD_API_PASSWORD, MASTERCARD_BASE_URL Resolves aden-hive#4653
PR Closed - Requirements Not MetThis PR has been automatically closed because it doesn't meet the requirements. PR Author: @Samir-atra To fix:
Exception: To bypass this requirement, you can:
Micro-fix requirements (must meet ALL):
Why is this required? See #472 for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #4653
Summary
This PR adds a new Mastercard Payment Gateway Services (MPGS) integration tool to the Hive tools library. The tool enables Hive agents to securely handle payment orchestration, tokenization, and transaction management directly via the Mastercard Payment Gateway API.
Changes
New Files
tools/src/aden_tools/tools/mastercard_tool/mastercard_tool.py- Main tool implementation with 8 MCP toolstools/src/aden_tools/tools/mastercard_tool/__init__.py- Module exportstools/src/aden_tools/tools/mastercard_tool/README.md- Comprehensive documentationtools/tests/test_mastercard_tool.py- Unit tests (22 tests, all passing)Modified Files
tools/src/aden_tools/tools/__init__.py- Added mastercard_tool registrationtools/README.md- Added mastercard_* to available tools listAvailable Tools
This integration provides 8 MCP tools for comprehensive payment operations:
mastercard_create_tokenmastercard_authorizemastercard_paymastercard_capturemastercard_refundmastercard_retrieve_transactionmastercard_verify_servicemastercard_voidConfiguration
Environment variables required:
Testing
All 22 unit tests pass:
Use Case
This enables agents to handle end-to-end e-commerce workflows, such as:
Reference Documentation