@envoyx/widget
v1.0.0
Published
The **EnvoyX Credit Hub** — a drop-in widget that renders the whole borrower financing experience: enrollment, document upload, offers, and repayment. Embed it and ship financing without building a single screen yourself.
Readme
@envoyx/widget
The EnvoyX Credit Hub — a drop-in widget that renders the whole borrower financing experience: enrollment, document upload, offers, and repayment. Embed it and ship financing without building a single screen yourself.
Full docs: docs.tryenvoyx.com/sdk/overview
Install
npm install @envoyx/widgetReact 19 is a peer dependency and is not bundled — install it if your app doesn't already have it.
Usage
import { EnvoyXCreditHub } from '@envoyx/widget'
import '@envoyx/widget/widget.css'
export function Financing({ clientToken }) {
return (
<EnvoyXCreditHub
clientToken={clientToken}
apiUrl="https://api.tryenvoyx.com"
/>
)
}clientToken is a short-lived, single-borrower token — mint it server-side with your secret key
via POST /v1/client-tokens and pass it down. Never ship a secret key to the browser. See
Authentication.
Not using React? mountCreditHub(element, props) mounts imperatively into any DOM node — see the
SDK overview for Vue/Svelte/vanilla usage and the
script-tag loader.
Configuration
Every prop, the theme object, and script-tag attributes are documented at docs.tryenvoyx.com/sdk/configuration.
License
Proprietary — © EnvoyX.
