Tools
| Name | Description |
|---|---|
create_paymentCreate a Paytrail hosted payment transaction. | Create a Paytrail hosted payment transaction. |
get_paymentRetrieve a Paytrail payment by transaction ID. | Retrieve a Paytrail payment by transaction ID. |
list_providersList available Paytrail payment providers for a payment amount and currency. | List available Paytrail payment providers for a payment amount and currency. |
refund_paymentCreate a Paytrail refund for a payment transaction. | Create a Paytrail refund for a payment transaction. |
email_refund_paymentCreate a Paytrail email refund when account details must be collected from the payer. | Create a Paytrail email refund when account details must be collected from the payer. |
Triggers
| Name | Description |
|---|---|
payment_callback_receivedReceive Paytrail redirect/callback payloads and verify the HMAC signature when headers are available. | Receive Paytrail redirect/callback payloads and verify the HMAC signature when headers are available. |
Quick Start
import { WeavzClient } from '@weavz-io/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute('paytrail', 'create_payment', {
workspaceId: '550e8400-e29b-41d4-a716-446655440000',
integrationAlias: 'paytrail',
input: { /* ... */ },
})Related Integrations
Works well with
Frequently Asked Questions
How do I connect Paytrail to my app?
Use Weavz Hosted Connect for Custom authentication. Install the SDK, create a connection through the connect portal or API, then execute tools programmatically.
What tools does Paytrail support?
Paytrail supports 5 tools including Create Payment, Get Payment, List Providers, Refund Payment, Email Refund Payment.
Can I use Paytrail with AI agents?
Yes. Add Paytrail to an MCP server in Tool Mode or Code Mode. Code Mode provides 3 meta-tools with on-demand API discovery so agents can compose stateful workflows without loading every action schema up front.
How do I connect Paytrail to ChatGPT or Claude?
Open the Weavz connector setup, sign in, choose a workspace, and add Paytrail as an approved app. ChatGPT, Claude, and other remote MCP clients can then call the scoped Paytrail tools exposed by that workspace.
Does Paytrail work with Claude Code, Cursor, Codex, and local agents?
Yes. Remote and local MCP clients can connect to a Weavz MCP endpoint for the workspace. Local coding agents can also use the Weavz CLI to inspect apps, discover actions, run approved Paytrail work, and execute Code Mode workflows from a terminal.
What can I ask an AI agent to do with Paytrail?
Paytrail exposes 5 tools, including Create Payment, Get Payment, List Providers, Refund Payment, Email Refund Payment. Use Weavz to keep credentials scoped, require approval for sensitive work, and audit what the agent did.
Can Paytrail be used in stateful agent workflows?
Yes. Agents can combine Paytrail tools with Filesystem, State KV, Human Gates, input partials, and other workspace integrations while keeping execution scoped to the selected workspace or end user.
What authentication does Paytrail use?
Paytrail uses Custom. Weavz stores credentials securely and uses them for authorized action execution.
How much does the Paytrail integration cost?
The Paytrail integration is included on all Weavz plans including the free tier with 20,000 actions per month. No credit card required.
What triggers does Paytrail support?
Paytrail supports 1 triggers including Payment Callback Received.
Connect Paytrail in minutes
Get 20,000 free action executions every month. No credit card required.