Adyen ACTION
Create Payment
Creates a payment for a shopper. See the documentation
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Adyen account once, then configure and run Create Payment from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "adyen-create-payment",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
adyen: { authProvisionId: "apn_xxxxxxx" },
merchantAccount: "Merchant Account",
amountCurrency: "Currency",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "adyen-create-payment",
"configured_props": {
"adyen": { "authProvisionId": "apn_xxxxxxx" },
"merchantAccount": "Merchant Account",
"amountCurrency": "Currency"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "adyen",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "adyen-create-payment",
arguments: {
merchantAccount: "Merchant Account",
amountCurrency: "Currency",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
merchantAccount Merchant Account | string | The merchant account identifier, with which you want to process the transaction. Required |
amountCurrency Currency | string | The currency of the payment amount. The three-character ISO currency code. Required |
amountValue Value | integer | The amount of the transaction, in minor units. Required |
reference Reference | string | The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens ( -). Maximum length: 80 characters. Required |
returnUrl Return URL | string | The URL to return to in case of a redirection. The format depends on the channel. For more information refer the documentation. Required |
paymentMethodType Payment Method Type | string | The payment method used for the payment. For example scheme or paypal. For the full list of payment methods, refer to the documentation. Required Dynamic |
paymentMethodDetails Payment Method Details | object | The payment method details object required for submitting additional payment details. Should contain relevant payment details fields. For more information refer the documentation. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- adyen-create-payment
- Version
- 0.0.2
- App
- Adyen
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗