Payhere
Easy payment links for accepting online payments
This is a first-class FlyMyAI MCP. Agents discover it automatically via tool search and call the actions below on demand - you never wire it up by hand. See the Composio catalog for how discovery works.
Connect
Payhere authenticates with an API key. Generate the credential in your Payhere account, then paste it into FlyMyAI the first time an agent uses a Payhere action.
Fields to fill in FlyMyAI
| Field | Details |
|---|---|
Environment | Select "api" for production or "sandbox" for testing (required) |
API Key | Your Payhere API key. Find it in the integrations section of the merchants admin (https://app.payhere.co/merchants/integrations for production, https://sandbox.payhere.co/merchants/integrations for sandbox) (required) |
Actions
Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.
| Action | What it does | Required inputs |
|---|---|---|
PAYHERE_CREATE_HOOK | Tool to subscribe to a REST hook for receiving webhook events. Use when you need to register a webhook endpoint to receive real-time notifications for payment_received, subscription_cancelled, or subscription_created events. | resource, post_url, integration |
PAYHERE_CREATE_PLAN | Tool to create a new payment plan in PayHere. Use when you need to set up either a recurring subscription or one-off payment plan for accepting payments. | payment_type, name, currency |
PAYHERE_DELETE_HOOK | Tool to remove a REST hook listener subscription. Use when you need to stop receiving webhook events for a specific hook. | id |
PAYHERE_GET_CURRENT_COMPANY | Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users. | - |
PAYHERE_GET_CURRENT_COMPANY_STATS | Tool to fetch payment statistics for the last 30 days with comparison data from the preceding 30-day period (30-60 days ago). Use when you need to analyze recent payment trends, subscriber growth, or compare current performance against the previous month. | - |
PAYHERE_GET_USER | Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user. | - |
PAYHERE_LIST_CUSTOMERS | Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagination via page and per_page parameters. | - |
PAYHERE_LIST_HOOKS | Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account. | - |
PAYHERE_LIST_PAYMENTS | Tool to list all payments ordered chronologically, most recent first. Use when you need to retrieve payment history or check payment statuses. Supports pagination with page and per_page parameters. | - |
PAYHERE_LIST_PLANS | Tool to list all plans in your PayHere account. Use when you need to retrieve and paginate through available plans. | - |
PAYHERE_LIST_SUBSCRIPTIONS | Tool to list all subscriptions ordered chronologically by most recent payment first. Use when you need to retrieve subscription data with customer and plan details. | - |
PAYHERE_UPDATE_CURRENT_COMPANY | Tool to update the company information for the currently authenticated user. Use when modifying company details such as name, legal name, address, logo, support email, website, or branding preferences (button color and text color). | - |
PAYHERE_UPDATE_PLAN | Tool to update an existing plan's configuration and settings. Use when you need to modify plan properties like name, description, pricing, or other settings for both one-off and subscription plans. | id |
Links
We love our partners - FlyMy.AI builds with the best. Thanks, Payhere!