Skip to main content
The inline embed renders the Orchard investment flow directly inside your page, as part of your layout. You install the @orchard/web-sdk package from npm, create an Orchard client, and attach it to the <orchard-investment-flow> element.
1

Install the package

Install Orchard with npm:
2

Set your environment variables

The example reads credentials from Vite environment variables. Add them to your .env file:
.env
3

Add the flow element

Place the flow element where you want it to appear on the page:
4

Create the client and attach it

Request a session token, create the client, and pass it to the flow element.

Client options

string
required
The Orchard embed API URL.
string
required
The token returned in data.token from POST {apiUrl}/session.
string
required
Your Orchard API key.

Flow element methods

Want the flow to open over your page instead? Use the Modal Embed.