Skip to main content
The modal embed displays the Orchard investment flow in a dialog on top of your page, so users can invest without leaving the content they are viewing. The setup matches the Inline Embed; only the mode changes.
1

Install the package

Install Orchard with npm:
2

Set your environment variables

Add your credentials to your .env file:
.env
3

Add the flow element

Add the flow element with mode="modal":
4

Create the client and attach it

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

Flow element methods

On small screens, the modal expands to fill the screen so the flow stays easy to use on mobile.