PayHere MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PAYHERE_MODE | Yes | sandbox or live | |
| PAYHERE_APP_ID | Yes | From Settings → Business Apps | |
| PAYHERE_APP_SECRET | Yes | App secret paired with PAYHERE_APP_ID | |
| PAYHERE_MERCHANT_ID | Yes | From PayHere dashboard → Settings → Integrations | |
| PAYHERE_MERCHANT_SECRET | Yes | Domain-specific secret |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_checkout_payloadA | Generates the form data needed to POST a checkout request to PayHere, including the MD5 hash. Returns action URL, form fields, and an HTML snippet. |
| get_paymentA | Returns all payment attempts (success, refunded, chargedback) associated with the given order_id. PayHere does not support listing by date range or status — only by order_id. |
| issue_refundA | Refunds a payment by payment_id. Omit |
| generate_signatureA | Computes a PayHere MD5 hash for either checkout submission (mode='checkout') or notify URL validation (mode='notify'). For notify mode, pass |
| verify_credentialsA | Health check that confirms env vars are loaded and (once implemented) that the App credentials can fetch an OAuth token. Useful first call when setting up an integration. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lakshitha0526/payhere-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server