Skip to main content
Before you start building a point-of-sale integration with Adyen-provided payment terminals, you need to choose between local or cloud communications. This determines how your POS system —also referred to as cash register— connects to the Adyen payment terminals and the Adyen payments platform. This section of the documentation explains what to do if you have decided to use local communications.

Requirements

Before you begin, take into account the following information.

How it works

With local communications, your POS system sends an API request over the local network to the IP address of the payment terminal. When the shopper completes the transaction on the terminal, the terminal routes the request to the Adyen payments platform for processing. Optionally you can set up display notifications to inform your staff on the progress of the transaction and the result. You receive the API response synchronously. To build a local integration, you need to:
  1. Configure your network. To allow outgoing HTTPS traffic, you need to add Adyen domains to your firewall’s allowlist, and you need to open certain network ports.
  2. Optionally install an API library. This step can save you development time.
  3. Protect local communications. This step involves validating the terminal certificate against the Adyen root certificate, and adding code to encrypt API requests and decrypt API responses.
  4. Build the payment flow. For example, ensure your POS app can send Terminal API payment requests and other requests, and receive the synchronous response.
  5. Learn how to handle network issues.

1. Configure your network

To enable your POS app to connect directly to the terminal:
  1. Add Adyen’s domains to your firewall’s allowlist.
    Configure your firewall to allow outgoing HTTPS traffic from the IP addresses of your POS apps and terminals to:
    • *.adyen.com
    • *.adyenpayments.com
    Allowlisting should be based on the DNS name of these URLs. Your firewall should dynamically check for IP address updates, at least every 60 seconds. Do not hard-code Adyen’s IP addresses, because these can change over time. We do not share a list of our IP addresses publicly.
  2. Open the ports:
    • tcp/443 to the internet.
    • tcp/8443 on your LAN.
  3. Use the correct Transport Layer Security (TLS) version and ciphers.
  4. To assign IP addresses to your terminals, use DHC reservation (recommended), or manually configure static IP addresses. Optionally you can get notified about changes in terminal IP addresses.
For more information and recommendations, see Network and connectivity.

2. (Optional) Install an API library

On our GitHub, we provide server-side API libraries in several languages. Installing a GitHub library is not required, but can save you development time. The libraries include all Terminal API models so you can use these to create requests. Most libraries also send requests to Adyen using a built-in HTTP client, construct the correct test and live endpoints, and help to protect local communications. The following Adyen GitHub libraries are available for a local Terminal API integration: These GitHub libraries work with Terminal API and are completely separate from the classic libraries, which have been deprecated.

3. Protect local communications

While you are building a test integration, we do not enforce this step. This allows you to develop the functional and security aspects in parallel. However, you will not be able to process live transactions until you have secured the requests between your POS app and your terminal. If your integration uses local communications, you need to protect your integration against man-in-the-middle attacks, eavesdropping, and tampering. The steps you need to take are:
  1. Install Adyen’s root certificate.
  2. Set up a shared key.
  3. Add code to validate the terminal certificate against the root certificate and encrypt communications using the shared key.

Install Adyen’s root certificate

The root certificate contains information about Adyen’s public key, which is used to sign other certificates such as the certificate on the terminal. To verify the certificate on the terminal against the public key, you have to add Adyen’s root certificate to a trust store that is available to your POS app. The instructions differ depending on the operating system. Select one of the tabs below.
  1. Download the Adyen public root certificates: If your system requires another format, such as .crt or .cer, you can use OpenSSL commands to convert the certificates. For example:
  2. Verify that the SHA-256 fingerprint (also called thumbprint) of the root certificates matches the following:
    • Test root certificate: 3A 33 C3 34 C3 0F 69 46 E9 75 4B 6B B1 67 2B 54 6F BA A9 66 FB 6A 4B 58 AA 4E 3A BE 80 A7 EC BE
    • Live root certificate: 06 D4 86 41 95 4B 95 7D 7A F5 F5 E4 5A 58 D8 61 DB 0D E3 CC ED BB 98 36 60 BB 01 6C E6 14 2D A1
    To get the SHA-256 fingerprint, you can use the following OpenSSL command: .pem files
    .crt or .cer files
  3. Install the Adyen root certificates in the trust store of your POS app, following your vendor’s instructions. You can add root certificates to the user or system trust store. At the user level, it is easier to import a certificate.