/retool-integration

Adyen and Retool: Complete Integration Guide 2024

Learn how to integrate Retool with Adyen for seamless payment management, featuring a step-by-step setup guide, API queries, and error handling tips.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Retool apps with your growth in mind.

Book a free No-Code consultation

How to integrate Retool with Adyen?

 

Integrating Retool with Adyen

 

Integrating Retool with Adyen involves connecting the two platforms to enable seamless payment management and transaction processing through Retool’s user interface. This guide provides a detailed technical walkthrough of the integration process.

 

Prerequisites

 

  • Ensure you have a Retool account and access to the project where the integration will occur.
  • Have an active Adyen account with API access credentials (API key and Merchant Account).
  • Basic understanding of Retool’s interface and Adyen’s API documentation.

 

Setting Up Your Adyen Account

 

  • Log in to your Adyen account and navigate to the Customer Area.
  • Ensure API credentials are set up: Go to Account > API credentials and create a new API credential if necessary.
  • Note the API key and Merchant Account information you will use in Retool.
  • In the API & Webhooks section, ensure the correct endpoints are enabled for the environment you are working in (e.g., test or live).

 

Configuring a Resource in Retool to Connect to Adyen

 

  • Log in to your Retool account and access the project where you want to integrate Adyen.
  • Navigate to Resources in the left menu and select Create New.
  • Choose REST API as your resource type since Adyen’s integration will primarily be through REST API calls.
  • Enter a name for your Adyen resource for easy identification.
  • In the Base URL field, add the Adyen endpoint. For testing purposes, you might use "https://checkout-test.adyen.com/v49/payments" or the appropriate live endpoint for production.
  • Add authentication headers: Use the Headers tab to input your API key, formatted as: Authorization: Bearer YOURAPIKEY.
  • Save the resource configuration.

 

Building API Queries in Retool

 

  • In your Retool app, navigate to the Query Editor to start creating queries using the Adyen resource you configured.
  • Create a new query, select the Adyen resource, and specify the HTTP method needed for your operation, such as POST for making a payment.
  • Construct the body of your API request: Include necessary fields per Adyen’s API documentation, such as amount, currency, and paymentMethod.
  • Use Retool variables or form inputs to dynamically fill the request body with user-provided data.
  • Example request body for initiating a payment:
        {
          "merchantAccount": "YOURMERCHANTACCOUNT",
          "amount": {
            "currency": "EUR",
            "value": 1000
          },
          "paymentMethod": {
            "type": "scheme",
            "number": "4111111111111111",
            "expiryMonth": "03",
            "expiryYear": "2030",
            "cvc": "737"
          },
          "reference": "YOURORDERREFERENCE"
        }
        

 

Handling Responses and Errors

 

  • Within the Retool query editor, use scripting to handle the Adyen responses. Capture the response to check for transaction success or errors.
  • Parse the response JSON to retrieve information such as resultCode and pspReference for tracking transactions.
  • Utilize Retool’s {{ }} templating to display statuses or error messages on your Retool application UI.

 

Testing the Integration

 

  • Ensure your application is in testing mode, and run your Retool app to initiate test transactions through Adyen.
  • Verify that all queries execute correctly and that transactions are properly logged and handled in both Retool and Adyen.
  • Troubleshoot and resolve any API errors by referring to Retool's logs and Adyen’s API documentation.

 

Deploying the Integrated Application

 

  • Once tests are successful, prepare your Retool app for deployment, ensuring all API keys and environment settings are correctly configured for a production setup.
  • Monitor the transactions post-deployment to ensure consistent functionality and address any issues that arise in your Retool interface or Adyen integration.

 

By following these steps, you can integrate Retool with Adyen successfully, enabling you to manage Adyen payments directly within your Retool applications. This integration leverages Retool’s powerful UI capabilities with Adyen’s payment processing robustness.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022