View as Markdown
Adyen icon

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)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Payment inputs
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