Payment GatewaysAdyen

Adyen

Connect Adyen to PayLexer to accept cards, wallets, and local payment methods worldwide through an embedded checkout with full refund support.

Adyen is a global payment platform supporting cards, local payment methods, and omnichannel commerce. Through PayLexer, Adyen renders an embedded checkout (Adyen Web Drop-in) directly on your website - shoppers complete payment without being redirected to an external page. The integration supports one-time payments, refunds, and separate Test and Live environments so you can validate the full payment flow before going live.

  • Supported Regions (Merchant Accounts): Global - Europe, North America, Asia-Pacific, Latin America, Middle East, and Africa

  • Supported Currencies: 100+ currencies including USD, EUR, GBP, AUD, AED, SAR, INR, JPY, and BRL - view full list

Supported Features

  • Card, wallet, and local payment methods via Adyen's embedded Web Drop-in checkout

  • Full and partial refunds, synced to PayLexer automatically via webhooks

  • Test and Live environments with isolated credentials

  • Real-time payment status updates through Adyen webhooks

  • One-time payments only - subscriptions are not supported through PayLexer for Adyen

Before You Start

Make sure you have:

Looking for a different payment processor? View all supported gateways →

Configuring Adyen

You need a Merchant Account, API Key, Client Key, Live Endpoint URL Prefix, and HMAC Key from Adyen for this integration:

Adyen has separate Customer Areas for each environment: the Test Customer Area and the Live Customer Area. Credentials from one environment do not work in the other.

Getting API Credentials

The retrieval flow is identical in both the Test and Live Customer Areas - only the URL differs. Repeat these steps for each environment.

Note your Merchant Account

Log in to your Adyen Customer Area. Your Merchant Account code is shown in the account selector at the top of the page (for example, YourCompanyECOM). Copy it exactly as displayed - it is case-sensitive.

Open API credentials

Go to Developers → API credentials and select your web service user credential. If you don't have one yet, click Create new credential and choose Web service user.

Generate and copy your API Key

Under Server settings → Authentication, select the API key tab, click Generate API key, copy the value, then click Save changes.

The API Key is shown only when it is generated. Paste it into PayLexer immediately, or store it in a secure password manager. If you lose it, generate a new one and update PayLexer.

Generate your Client Key and add allowed origins

Under Client settings → Authentication, select the Client key tab and click Generate client key. Copy the value.

Under Add allowed origins, enter the PayLexer payment processor domain https://processor.paylexer.com and click Add, then Save changes. PayLexer renders the Adyen checkout from this domain, not from your website's domain.

The Client Key is a public, browser-safe key used to render the embedded checkout. The checkout will not load on domains that are not in your allowed origins list.

Copy your Live Endpoint URL Prefix (Live only)

In the Live Customer Area, go to Developers → API URLs and copy your live endpoint URL prefix (for example, 1797a841fbb37ca7-YourCompany). This is not needed for the Test environment.

Adding Credentials to PayLexer

Open PayLexer Dashboard

Log in to your PayLexer dashboard and navigate to Payment Gateways → Adyen.

Enter your credentials

Paste your Live and Test credentials into the respective fields:

  • Merchant Account (Live and Test) - your merchant account code from each Customer Area

  • API Key (Live and Test) - the API key generated in each Customer Area

  • Client Key (Live and Test) - the client key generated in each Customer Area

  • Live Endpoint URL Prefix (Live only) - from Developers → API URLs in the Live Customer Area

Understanding Live/Production and Sandbox Settings:

EnvironmentPurpose
Live / Production (Mandatory)Used for real transactions. Cannot be empty, even when testing.
Test / Sandbox (Optional)Used for testing only. No real money is processed.

How PayLexer selects credentials:

  • Debug/Test mode ON → Test credentials are used

  • Debug/Test mode OFF → Live credentials are used

Test and save

Click Test Connection to verify your credentials, then click Save Configuration.

Credentials saved. Next, configure webhooks - they are mandatory for Adyen.

Configuring Webhooks (Mandatory)

Webhooks enable real-time payment updates and significantly improve reliability.

Benefits of Webhooks:

  • Instant payment status updates

  • Automatic refund processing

  • Reliable order confirmation for every payment

Webhooks are mandatory for Adyen. PayLexer relies on Adyen's webhook notifications to confirm payments and sync refunds - without a webhook, orders will never be marked as paid.

Copy the webhook URL from PayLexer

On the Payment Gateways → Adyen page in PayLexer, copy the Webhook URL displayed for your account.

Create a Standard webhook in Adyen

In your Adyen Customer Area, go to Developers → Webhooks, click + Webhook, and choose Standard webhook.

Under Server configuration, paste the webhook URL you copied from PayLexer.

Generate and copy the HMAC Key

In the webhook's Security settings, click Generate HMAC key and copy the value, then save the webhook.

The Test and Live Customer Areas issue different HMAC keys. When you switch from test to live, generate a new HMAC key in the Live Customer Area webhook and update PayLexer with the new value.

Add the HMAC Key to PayLexer

Back in PayLexer, paste the value into the HMAC Key field on the Adyen configuration page and click Save.

Test the webhook

In the Adyen Customer Area, open your webhook and use Test configuration to send a test notification. A successful test confirms Adyen can reach PayLexer.

Webhook configured. Payment and refund events will now sync to PayLexer automatically.

Integrate Adyen to Your Website

If you have already added and configured your site, you can enable Adyen in your existing setup.

Go to Websites

Navigate to Websites in your PayLexer dashboard.

Edit your website

Click the Edit Icon of your added website.

Enable Adyen

Click the checkbox to enable Adyen for the website.

Adyen is now active for this website. Run a test transaction before switching off Debug/Test mode.

If you haven't added a website yet, Continue to Add Your Website →

Refunds

Refunds are supported for Adyen and sync to PayLexer automatically.

  • Issue full or partial refunds from your Adyen Customer Area (find the payment under Transactions → Payments and select Refund).

  • When Adyen processes the refund, it sends a webhook to PayLexer, which marks the order as Refunded and updates your connected platform automatically.

  • Adyen processes refunds asynchronously - allow some time for the status to update after issuing the refund.

Troubleshooting

Best Practices

  • Run at least one full test transaction before switching Debug/Test mode off. Use your platform's Test Mode toggle together with your Test credentials and Adyen's test card numbers.

  • Configure the webhook and HMAC Key before taking any payments - Adyen orders are confirmed only through webhooks.

  • Keep your API Key and HMAC Key masked at all times. Never paste them into chat, email, or a support ticket. The Client Key is browser-safe, but restrict it with allowed origins.

  • When you go live, generate fresh credentials in the Live Customer Area - including a new HMAC key for the live webhook - and update PayLexer.

  • Confirm the checkout currency is enabled on your Adyen merchant account. Adyen rejects charges in currencies your account is not configured for.

FAQs

Still Have Questions?

For Adyen API references and advanced configuration, see the Adyen documentation.