Connect your app to Adyen
Connect your Adyen merchant account to Lovable to accept payments, create checkout forms, send payment links, and issue refunds directly in your app. All payments process through your existing Adyen account rather than Lovable.
Anyone who already has an Adyen business account and wants to take payments, send invoice links, or process refunds in their Lovable project.
Do this, in order
- 1
Sign in to your Adyen Customer Area (use Test for development or Live for production) and find your Merchant Account code.
Lovable needs your specific merchant code to direct payments to the right account.
- 2
Under Developers > API credentials in Adyen, create a new Web service user credential, generate an API key, and copy it immediately.
This key authorizes Lovable to talk to Adyen, and Adyen only reveals the API key once.
- 3
If you want customers to pay directly in your app, generate a Client key in that same credential and add your Lovable app's web address under allowed origins.
Without a client key and approved origin URL, your app cannot embed the checkout form and must send users to a payment link instead.
- 4
In Lovable, navigate to Connectors, select Adyen, and click Connect.
This opens the configuration screen to link your credentials.
- 5
Select your environment (Test or Live), paste your API key and Merchant Account code, and enter your Client key, Live URL prefix, or HMAC key if needed, then click Connect.
Lovable verifies your credentials with Adyen and saves the connection so your projects can use it.
- 6
Open your Lovable project chat and ask Lovable to link your project to the Adyen connection and set up your checkout or webhook.
This enables your specific app to start creating checkout sessions, handling payments, and listening for confirmation events.
Paste this into your project
Use my connected Adyen account to build a checkout flow for my store. Display an in-page Drop-in checkout session that allows customers to pay with card or digital wallets, and mark orders as paid once Adyen confirms the transaction.
Words decoded
- Drop-in
- Adyen's pre-built payment form embedded directly on your webpage so users can pay without leaving your site.
- Webhook
- An automated notification Adyen sends to your app to notify you when a payment succeeds, fails, or changes status.
- HMAC key
- A secret security code used to verify that payment notifications actually came from Adyen and not an imposter.
Where people get stuck
- Mixing environments: your API key, merchant account code, and environment setting (Test vs. Live) must all come from the exact same Adyen account environment.
- IP blocking: if your Adyen API key uses IP restrictions, you must whitelist Lovable's IP addresses or the connection test will fail.
- Missing client key or origin: forgetting to generate a client key or forgetting to add your Lovable app URL to allowed origins will prevent Drop-in in-page checkout forms from loading.
- Prefix formatting: when entering the Live URL prefix, enter only the label prefix (do not enter the full URL, slashes, or dots).
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.