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:
- 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.
- Optionally install an API library. This step can save you development time.
- 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.
- Build the payment flow. For example, ensure your POS app can send Terminal API payment requests and other requests, and receive the synchronous response.
- Learn how to handle network issues.
1. Configure your network
To enable your POS app to connect directly to the terminal:-
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
-
Open the ports:
- tcp/443 to the internet.
- tcp/8443 on your LAN.
- Use the correct Transport Layer Security (TLS) version and ciphers.
- 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.
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:- .NET - adyen-dotnet-api-library
- iOS - adyen-terminal-api-ios
- Java - adyen-java-api-library
- Node - adyen-node-api-library
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:- Install Adyen’s root certificate.
- Set up a shared key.
- 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.- General instructions
- Windows
- iOS
-
Download the Adyen public root certificates:
-
adyen-terminalfleet-test.pem. This is the test root certificate for validating the certificate on test terminals. -
adyen-terminalfleet-live.pem. This is the live root certificate for validating the certificate on live terminals.
-
-
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
.crt or .cer files -
Test root certificate:
- 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.
