Skip to main content

Learn more

View our repository on GitHub Try it out with a live demo Explore the latest updates This page provides guidance on integrating the capital components into your portal’s user interface (UI). The guidance and features available may differ based on the library version in use. We recommend using the latest library version to take advantage of the newest features and improvements. Ensure you select a version in the next section before starting your integration.

Capital components

Use Platform Experience components to offer business financing to your users.

Requirements

Before you begin, take into account the following requirements, limitations, and preparations.

Methods And Parameters

Component instance methods and parameters

By default, the Capital Offer component is embedded in the Capital Overview component, creating a standard user flow. This flow consists of a series of interactive screens that users engage with, all rendered within a single component element on the same portal’s UI page. You can modify this standard user flow to create a more tailored and relevant experience for your users. For example, you may want to show a message about their eligibility for a grant on one page while directing users to complete the remaining steps on another page in your portal’s UI. To do this, you can use additional methods and parameters that enable you to register and unregister events, making it easier to manage multiple instances of components. There are various approaches you can take for each of the components. When integrating the Capital Overview component, you can:
  • Decide whether to render the component based on its state. For example, if the state is isUnqualified, you can choose not to render the component.
  • Interrupt the standard user flow at certain points to redirect a user to a different page in your interface to continue their flow.
When integrating the Capital Offer component, you can:
  • Render it as standalone component and place it on a separate page in your portal’s UI.
  • Configure the component to only show a specific screen.
You can specify the necessary methods and parameters when initializing components. Refer to the use case examples for more details.

How it works

The integration of components involves both server-side and client-side processes. You can find more details on the Component libraries page.

Integration steps

Follow these steps to integrate the component(s):
  1. Create an authentication session from your server
  2. Install component library in your front end
  3. Initialize components
  4. Optional: Localize components
  5. Optional: Customize component appearance

Create A Session

1. Create an authentication session from your server

To ensure secure communication between components and Adyen server, you must configure your server for authentication and create a session token. To create the token:
  1. From your server, make a POST /sessions request specifying the following parameters: To make this API request, your API key must have the Capital Component: Manage role in your Customer Area. Read more in Requirements. Here is an example request for creating a session token. Create a session token
  2. Note the API response. Later, when initializing the components, you need to create and call a function that passes the entire session object from the response to your front end. Session token created

Install Component Library

2. Install component library in your front end

Use the Adyen Web npm package, or embed the Adyen Platform Experience script and stylesheet into your HTML file: