Prompt
How do I set up Adyen for online card payments?
Latest observation
To set up Adyen for online card payments, you typically need to do four things: create an Adyen account, configure your merchant/payment settings, integrate Adyen’s checkout flow on your site/app, and test before going live.
1) Create and prepare your Adyen account
- Sign up for an Adyen Customer Area account.
- Complete onboarding/KYC for your business.
- Make sure card payments are enabled for your merchant account.
- Configure your payment methods, currencies, and countries you want to accept.
2) Choose your integration method
Adyen supports a few common approaches:
A. Drop-in / Components
Best for most businesses.
- Use Adyen’s Drop-in or Card Component on your frontend.
- Adyen handles much of the payment UI and compliance.
B. API-only integration
Best if you want full custom checkout control.
- You build your own card form.
- Your backend talks directly to Adyen’s APIs.
For most online card payments, Drop-in or Card Component is the quickest path.
3) Set up the frontend
Add Adyen’s web SDK to your checkout page.
Typical frontend steps:
- Load Adyen Web.
- Render the Card or Drop-in component.
- Collect card details securely.
- Tokenize payment data and send it to your backend or Adyen payment API.
Important:
- Use Adyen’s secured components so you don’t directly handle raw card data in your servers.
- If you’re using hosted fields/components, this helps reduce PCI scope.
4) Set up the backend
Your server usually needs to:
- Create a payment session or payment request.
- Call Adyen’s Payments API.
- Handle the result of the payment.
- Process webhooks for async updates like authorizations, captures, refunds, and chargebacks.
Common backend flow:
- Customer enters card details.
- Frontend sends payment data to backend or Adyen session.
- Backend sends payment request to Adyen.
- Adyen returns result:
AuthorisedRefusedRedirectShopper/ 3D Secure requiredPending
- You confirm payment status via webhook.
5) Configure 3D Secure and risk settings
For card payments, set up:
- 3D Secure 2 (recommended/required in many regions)
- Risk rules
- AVS/CVC checks
- Capture settings: immediate or manual capture
3D Secure is often handled automatically by Adyen, but you should ensure your integration supports the flow.
6) Set up webhooks
Webhooks are essential for reliable payment status updates. Common events:
- Authorisation
- Capture
- Refund
- Cancellation
- Chargeback
In Adyen Customer Area:
- Create a webhook endpoint
- Verify webhook signatures
- Make your system idempotent to avoid duplicate processing
7) Test in Adyen’s test environment
Before going live:
- Use Adyen test credentials
- Test successful card payments
- Test declined cards
- Test 3D Secure flows
- Test refunds and partial captures
- Verify webhook handling
8) Go live
When everything works:
- Switch from test API keys/merchant account to live credentials
- Update endpoints and client keys
- Monitor first live transactions closely
Minimal implementation checklist
- Adyen account approved
- Card payments enabled
- Drop-in or Card Component chosen
- Frontend integrated
- Backend payment endpoint created
- 3D Secure enabled
- Webhooks configured
- Test payments completed
- Live credentials switched in
If you want, I can also give you:
- a step-by-step Adyen setup for Shopify/custom website, or
- sample code for Adyen card payments in Node.js, Java, Python, or PHP.
Brands