Adyen
Swallow's native integration with Adyen allows you to collect payments automatically when new quotes are generated
Last updated
Swallow's native integration with Adyen allows you to collect payments automatically when new quotes are generated
Last updated
Swallow's integration with Adyen offers a wide range of payment options, enabling you to conveniently collect payments from your customers.
Supported payment methods include:
Card payments (Visa, MasterCard, CB)
Apple Pay
Paypal
American Express
Amazon Pay
Google Pay
And many more! With Swallow's native Adyen integration, you can offer your customers a variety of payment options, enhancing their convenience and flexibility during transactions.
Please ensure that you have added payment methods to your Adyen account before setting up the integration ([see Adyen documentation](https://docs.adyen.com/payment-methods/add-payment-methods/)).
To set up the Adyen integration in Swallow from our user interface, follow these steps:
Navigate to the settings section in Swallow
Select the "Integrations" page
Click "Connect to Adyen" to create a connection
Give a name to this connection
Assign a code for identification
Enter the required connection fields (described in the next section); and
Click Connect to Adyen to confirm the integration.
When connecting Swallow to Adyen, you need to provide information for the following fields.
To enable automatic payment capture in your Adyen account, ensure that you have configured the account settings accordingly. Automatic payment capture allows for immediate processing without manual intervention. Refer to Adyen's documentation for instructions on setting up auto capture.
In Adyen, to enable recurring payments for a stored payment method, follow these steps:
Go to Developers > Additional Data;
Check the box for Recurring Details; and
Click Save.
This step is crucial and mandatory for Swallow to receive and process messages from Adyen, enabling functionalities such as customer creation/update, payment processing, and refunds. To configure Adyen webhook and establish communication with Swallow, follow the steps below:
Access your Adyen application and navigate to the Developers section;
Select Webhooks and create a new webhook of type Standard;
In the Server configuration section, locate the General settings; and
Copy and paste the following URL: https://api.llow.io/sw/webhooks/adyen/{{your_company_reference}}?code={{connection_code}}
.
You can find your Company Reference in Swallow under the Developers section in Swallow, specifically in **API keys & ID** > **Company Reference**. To find your **connection code**, navigate to the Integrations section in Swallow and select the appropriate connection code for your Adyen integration.
Please ensure that you complete this setup correctly, as your Adyen integration will not function without this vital step.
In order to facilitate automated payment collection, it is essential for the customer to exist in both the Swallow and Adyen databases. Please note that in Adyen, customers are referred to as Shoppers.
If the customer does not already exist in Adyen, you can create them in Swallow using either the user interface or the API. When providing customer information, please ensure the following:
Set Adyen as the customer's default payment provider;
Select the Adyen connected account;
Keep the field associated with the Adyen Payment Provider Customer ID empty; and
Enable the option to automatically create the customer in Adyen.
Once the customer is added in Swallow, they will be automatically synchronized with Adyen. Adyen will generate a unique Shopper ID, which will be stored in Swallow. Typically, Adyen utilizes the Swallow customer's external_id
as the Shopper ID for seamless integration between the two platforms.
Upon successful customer creation, you will receive two webhook messages to keep you informed:
customer.checkout_url_generated
: This message includes the quote URL that provides access to the default payment method. It allows you to perform a pre-authorization payment and store the payment method securely; and
customer.payment_provider_created
: This message confirms the successful creation of the customer in Adyen, indicating that the customer's details have been added to the Adyen database.
You may need to enable Developers -> Additional Data -> Payment -> Recurring details for the customer to be automatically created. Please note that the customer will be created in Adyen only if the payment method has been stored through the quote URL and pre-authorization payment.
If the customer and direct debit mandate already exist in Adyen, you can create the customer record in Swallow using either the user interface or the API. Follow these steps when adding customer information:
Set Adyen as the default payment provider for the customer in Swallow;
Select the Adyen connected account;
Provide the Adyen Shopper Reference as the Swallow Payment provider customer ID.
Disable the option to automatically create the customer in Adyen.
By following these steps, you can integrate an existing customer from Adyen into Swallow, ensuring synchronization and consistency between the two platforms.
After establishing the connection with Adyen, set a "next button URL" where your end customer will be directed after completing the quote. Please note that if it's not defined, your end customer will be redirected to Adyen's website.
Please note that you can edit or delete the redirect URL, and this will only affect new quote URLs created.
URL defined should always begin with `http://` or `https://`.
When Swallow automatically creates a customer in Adyen, you will receive a quote link from Swallow to facilitate the storage of your customer's payment method information.
The payload sent by Swallow will have the following structure, with the quote link stored under checkout_url
:
Note: The quote link automatically expires after 69 days.
By utilizing this provided quote link, your customers can perform a pre-authorization payment. It's important to note that the pre-authorization payment will not collect any funds from the customer. Once the pre-authorization is confirmed, Swallow will send the payment method details and securely store them into Adyen for future transactions.
In cases where your end customer has not had the opportunity to complete the quote process to inform their payment method or wishes to modify the saved payment information, you can generate a new quote link using the designated endpoint.
Upon successful generation, the new quote link will be available in the endpoint response, and it will not be delivered through a webhook message. It is important to note that the new link will inherit the same expiration setting as the original one.
It is crucial to be aware that if a customer is not associated with any payment provider, the response will contain an error message.
When a customer has Adyen defined as their payment provider, Swallow seamlessly automates the process of triggering payments in Adyen whenever a new quote is generated.
This integration ensures that payments are initiated in Adyen without any manual intervention. Swallow's automatic payment creation saves time and effort, providing a streamlined experience for both you and your customers.
In cases where a customer has Adyen defined as their payment provider, Swallow simplifies the refund process by automatically triggering refunds in Adyen whenever a new refund is initiated through credit notes.
This integration eliminates the need for manual refund processing and ensures that refunds are efficiently handled in Adyen. Swallow's automated refund functionality helps you maintain accurate and timely refund transactions, enhancing customer satisfaction and operational efficiency.
In the event of a lost chargeback (dispute) within Adyen, Swallow initiates an automatic response by marking the relevant quote as disputed lost. This action involves populating the dispute_lost_at
field with the timestamp when the dispute was lost. Following this update:
The quote becomes non-voidable;
Generating a credit note is possible; however, refunding the payment back to the original payment method is not permitted; and
The quote cannot be resent for collection.