Learn more
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.
- 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.
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):- Create an authentication session from your server
- Install component library in your front end
- Initialize components
- Optional: Localize components
- 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:-
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
-
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:- npm (recommended)
- Embed script and stylesheet
- Capital Overview component
- Capital Offer component
- Capital Overview component
- Capital Offer component
- Capital Overview component
- Capital Offer component
- Example 1: Override CSS variables
- Example 2: Update CSS class settings
Install the Adyen Platform Experience library in your front-end application as follows:
-
Install the npm package.
-
Import the library, the components, and the style sheet.
