Adyen
Accept card payments with Adyen, with 3D Secure 2 and subscriptions

About this app
Adyen for Swell
Accept card payments in your Swell checkout with Adyen. Shoppers enter their card in Adyen's secure fields, right on the payment step, and the app connects directly to your own Adyen account.
> Upgrading from 1.0.x? One setup step is required. From 1.1.0 the card form loads from the app's own address, so Adyen must allow it. Add your store's payment form origin to your Adyen client key's allowed origins (setup step 4) in both your test and live Customer Areas. Until you do, the card fields show "Invalid origin" and shoppers can't pay.
Features
- Card payments: Visa, Mastercard, American Express and the other card brands enabled on your Adyen account.
- 3D Secure 2: bank verification opens inside the checkout, and shoppers can cancel it. For banks that use a redirect, shoppers continue to their bank's page and come back to the checkout's payment step.
- Authorize, then capture: cards are authorized when the shopper pays and captured when the order is placed. The amount authorized is always the cart total, calculated by the app on the server.
- Refunds: full and partial refunds from the Swell dashboard go through Adyen.
- Subscriptions: the card is saved with Adyen at checkout, and subscription renewals charge it automatically, including subscriptions with shipped or bundle items, which Swell renews as new orders.
- Test and live: switch between Adyen's test and live environments in the app settings.
- Signed webhooks: Adyen notifications are verified with your HMAC key before they're processed. They back up the checkout's payment details and report captures or refunds that Adyen couldn't complete.
Requirements
- An Adyen account with a merchant account for online payments.
- Capture delay set to Manual in that merchant account's settings. The app captures the payment when the order is placed. Subscription renewals are captured straight away.
- For subscriptions: Recurring contract information ticked under Developers → Additional data in the Adyen Customer Area. Adyen then returns the saved card with the first payment.
- For subscriptions: merchant-initiated (recurring) card payments enabled on your Adyen account. Ask Adyen support to turn this on. Until it's on, Adyen declines renewals with "Required field 'cvc' is not provided".
Setup
The full setup guide, with screenshots of every step, is at https://adyen-docs.devkind.com.au.
- Install the app, then open Settings → Payments → Adyen in your Swell dashboard.
- In the Adyen Customer Area, go to Developers → API credentials and open your API credential. Copy its API key and client key.
- Enter in the app settings:
- Adyen API key and Adyen client key
- Adyen merchant account
- Environment: Test or Live
- Live URL prefix: required for Live. Find it in the Adyen Customer Area under Developers → API URLs.
- Don't send error reports to Devkind: optional, see Error reporting.
- Allow the payment form's origin. In the Adyen Customer Area, go to Developers → API credentials → your credential → Allowed origins, add the origin below, and select Save changes.
- The origin has the form
https://----app.swell.store, for examplehttps://mystore--6a6a51e0f713b600120cb472--app.swell.store. - The easiest way to get yours: save the settings with Environment set to Test, open your checkout and select Adyen. If the origin isn't allowed yet, the card form shows the exact origin to add. Copy it into Adyen, then reload.
- Add the same origin to your live credential before going live.
- The origin has the form
- Set up the webhook. Payments, captures and refunds don't depend on it, but it's how the app learns that a capture or refund failed. In the Adyen Customer Area, go to Developers → Webhooks and create a Standard webhook:
- URL:
https://.swell.store/functions/adyen_pay/adyen-webhook, where `` is your Swell store id (the first part of.swell.store). - Method: JSON, with all default events.
- Generate an HMAC key, and paste it into Webhook HMAC key in the app settings.
- URL:
- Save the settings and enable Adyen as a payment method. Place a test order with one of Adyen's test cards before switching to Live.
Going live
Repeat steps 2 to 5 in your live Adyen Customer Area. Live has its own API key, client key, allowed origins and webhook. Then set Environment to Live and enter your Live URL prefix.
Error reporting
When one of the app's functions fails, the error is written to the app's function logs and also reported to Devkind, the app's developer, through Bugsnag, so problems can be found and fixed quickly. Reports contain the error, ids (store, cart, order, payment) and amounts only, never shopper names, emails, addresses or card details.
To turn this off, switch on Don't send error reports to Devkind in the app settings. Errors are then kept in the function logs only.
Release notes
Version 1.3.8 ·
Checkout screenshot without the test store's logo
Release notes
Version 1.3.8 ·
Checkout screenshot without the test store's logo
More apps like this
See all →Gorgias
Swell customers and recent orders in Gorgias, open tickets in Swell
FREE TO INSTALLPrintful
Print-on-demand fulfillment: shipping rates, orders and tracking
FREE TO INSTALLResend
Send Swell email notifications through Resend
FREE TO INSTALLShipStation
Send orders to ShipStation and get tracking back automatically
FREE TO INSTALLBuild an app in Swell
Reach other businesses on Swell. Every app is reviewed before it is published.
