First-party app
Adyen

Adyen

Take and manage payments on Adyen's Checkout API: sessions, payments, payment links, captures, refunds, cancels, stored payment methods and donations.

stable Commerce & Payments

About

Adyen ships in the w6w first-party pack. It declares 24 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.adyen
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Commerce & Payments

Overview

Adyen is a payments platform that processes cards and local payment methods for online merchants. This app drives its Checkout API (v72) from a workflow: start a payment session or a hosted payment link, submit or complete a payment, and then manage it afterwards with captures, cancels, refunds, reversals and authorised-amount updates.

It also covers the supporting calls a checkout needs: listing the payment methods available to a shopper, checking a gift card balance, looking up card brands, creating and deleting stored payment methods (tokens), listing a shopper’s saved methods, running donation campaigns, and creating or cancelling partial-payment orders.

One connection holds an API key, the merchant account, and whether you are on the test environment or on your company’s live endpoint. Money-moving calls carry the workflow invocation id as Adyen’s Idempotency-Key, so a retried step does not charge or refund twice.

Build with Adyen

Three routes to the same 24 actions. The Workflow tab is generated from Adyen's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Cancel Order

cancel-order

Cancel a partial-payment order and release what was authorised against it.

Cancel Payment

cancel-payment

Cancel an authorised payment that has not been captured yet. Needs the payment's PSP reference.

Cancel Payment by Reference

cancel-payment-by-reference

Cancel an authorised payment using your own payment reference instead of its PSP reference.

Capture Payment

capture-payment

Capture an authorised payment, in full or in part. The outcome arrives later in a CAPTURE webhook.

Create Donation

create-donation

Make a donation to a campaign using the donation token from a completed payment.

Create Order

create-order

Create an order for partial payments (for example a gift card plus a card). Returns the orderData to pay against.

Create Payment

create-payment

Start a payment with a payment method object. Returns a resultCode, and an action when the shopper must authenticate or be redirected.

Create Payment Link

create-payment-link

Create a hosted payment link to send to a shopper. Returns the link id, its url and status.

Create Payment Session

create-session

Create a Checkout session for Drop-in or Components, or a hosted checkout page. Returns the session id, its sessionData and (for hosted mode) a url.

Create Stored Payment Method

create-stored-payment-method

Create a token for a shopper's payment details so they can be charged again later.

Delete Stored Payment Method

delete-stored-payment-method

Delete a stored payment method (token) so it can no longer be charged.

Expire Payment Link

expire-payment-link

Expire a payment link so the shopper can no longer pay it.

Get Card Details

get-card-details

Get the brands, funding source and issuing country of a card from its number.

Get Payment Link

get-payment-link

Get a payment link and its current status (active, paid, expired, ...).

Get Payment Methods

get-payment-methods

List the payment methods available to a shopper, given an amount, country and channel.

Get Gift Card Balance

get-payment-methods-balance

Check the balance of a gift card before using it for a partial payment.

Get Session Result

get-session-result

Get the result of a Checkout session: its status and the payments made in it.

List Donation Campaigns

list-donation-campaigns

List the donation campaigns active for a currency, optionally filtered by locale or store.

List Stored Payment Methods

list-stored-payment-methods

List the tokens (stored payment methods) saved for a shopper.

Refund Payment

refund-payment

Refund a captured payment, in full or in part. The outcome arrives later in a REFUND webhook.

Reverse Payment

reverse-payment

Cancel a payment if it has not been captured, or refund it in full if it has. Use when you are not sure which.

Submit Payment Details

submit-payment-details

Complete a payment that needed more from the shopper: a redirect result, a 3D Secure result or a challenge.

Update Authorised Amount

update-authorised-amount

Increase or decrease the amount of an authorised payment before it is captured.

Update Payment Session

update-session

Update the amount, or the payable flag, of an existing Checkout session.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Adyen's real ids.

{
  "manifestVersion": "2",
  "name": "adyen-example",
  "steps": [
    {
      "id": "capture-payment",
      "uses": {
        "app": "io.w6w.adyen",
        "action": "capture-payment",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "paymentPspReference": "<paymentPspReference>",
        "currency": "<currency>",
        "value": "<value>"
      }
    }
  ]
}

Here are some of the things you can do

  • Capture Payment

    perform
    capture-payment
  • Create Donation

    perform
    create-donation
  • Create Order

    perform
    create-order
  • Create Payment

    perform
    create-payment
  • Create Payment Link

    perform
    create-payment-link

+19 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Adyen, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Adyen. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "capture-payment",
  payload: {
    // merchantAccount: "<value>",
    paymentPspReference: "<value>",
    currency: "<value>",
    value: "<value>",
    // reference: "<value>",
    // additionalFields: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action capture-payment --payload '{"paymentPspReference":"<value>","currency":"<value>","value":"<value>"}'

Give an AI agent Adyen — without giving it Adyen's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.adyen#capture-payment",
    "input": {
      "paymentPspReference": "<paymentPspReference>",
      "currency": "<currency>",
      "value": "<value>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Adyen connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Adyen's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Adyen itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Adyen declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Adyen platform status

dependency

Adyen Checkout API reachability

Unauthenticated POST /paymentMethods on checkout-test.adyen.com. A schema-correct security error envelope proves the API answered; credential validity is checked separately.

quota

API quota headroom