The SDK can be used in any runtime where JavaScript is supported, including Node.js and browsers. It is designed to be
lightweight and easy to use, allowing you to quickly integrate Qonto banking features into your web. If used in browsers
the SDK will only download the code you are using, so your end users will have a fast and efficient experience.This is how you can get started with the SDK:
1
Install the SDK
Install the SDK with your package manager of choice:
Copy
Ask AI
npm install @qonto/embed-sdk
or
Copy
Ask AI
pnpm install @qonto/embed-sdk
or
Copy
Ask AI
yarn add @qonto/embed-sdk
2
(If client side usage) Initialize the SDK
Then, initialize the SDK in your code:
Copy
Ask AI
import { initialize } from '@qonto/embed-sdk/common';const accessToken ='An access token you have previously generated from your app';initialize({ accessToken });
Read more about how your users are onboarded and an access token is generated for them in
the docs.
3
Use the SDK!
At this stage, you can access the different namespaces of the SDK:
Copy
Ask AI
import { cards } from '@qonto/embed-sdk/cards';const newCard = cards.orderCard(cardConfig);
Now that you have the SDK installed and initialized, you can start using it. Check
the documentation for each namespace to get up to speed with the
different features available.