The Adyen API Library for NodeJS enables you to work with Adyen APIs.

Usage no npm install needed!

<script type="module">
  import adyenApiLibrary from 'https://cdn.skypack.dev/@adyen/api-library';


Adyen Node.js API Library

Node.js CI Coverage Status Downloads npm bundle size (scoped) Version Quality Gate Status Total alerts Language grade: JavaScript

The Adyen API Library for NodeJS enables you to work with Adyen APIs.


The Library supports all APIs under the following services:

  • checkout
  • checkout utility
  • payments
  • modifications
  • payouts
  • recurring
  • notifications
  • BIN lookup
  • Terminal API


  • Node 10 or higher


You can use NPM to add our library to your project


npm install --save @adyen/api-library


HTTP Client Configuration

By default, NodeJS https will be used to submit requests to the API. But you can change that by injecting your own HttpClient on your client instance. In the example below, we use axios:

const {Client, Config} = require('@adyen/api-library');
const axios = require("axios");
const config = new Config();
const client = new Client({
  httpClient: {
    async request(endpoint, json, config, isApiKeyRequired, requestOptions) {
        const response = await axios({
            method: 'POST',
            url: endpoint,
            data: JSON.parse(json),
            headers: {
                "X-API-Key": config.apiKey,
                "Content-type": "application/json"

        return response.data;

Proxy configuration

You can configure a proxy connection by injecting your own HttpURLConnectionClient on your client instance and changing the proxy setter value.


const {HttpURLConnectionClient, Client, Config} = require('@adyen/api-library');
const config = new Config();
const client = new Client({ config });
const httpClient = new HttpURLConnectionClient();
httpClient.proxy = { host: "http://google.com", port: 8888,  };

client.httpClient = httpClient;


$ npm run test


If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our support team.


We strongly encourage you to join us in contributing to this repository so everyone can benefit from:

  • New features and functionality
  • Resolved bug fixes and issues
  • Any general improvements

Read our contribution guidelines to find out how.


MIT license. For more information, see the LICENSE file.