Components
Kind: element (inline) · Session key: bookingChip · React: <FinBazeBookingChip />
Create the session#
mutation {
createEmbedSession(input: {
companyId: "…"
user: { externalUserId: "…" }
components: { bookingChip: { enabled: true } }
}) { clientSecret }
}
Requirements#
The company must have these features effective: banking. A hidden feature makes createEmbedSession fail with FEATURE_DISABLED.
Component features#
Switch these off per session with components.bookingChip.features.
| Feature | Default |
|---|---|
edit | on |
Options#
Passed to instance.create("booking-chip", options) or as props.
| Option | Type | |
|---|---|---|
| `transactionId | bankAccountId + externalId` | string |
size | "sm" | "md" | Chip size. |
Every component also takes appearance and navigation ("internal" or "external").
Events#
| Event | React prop |
|---|---|
ready | onReady |
navigate | onNavigate |
error | onError |
booking.changed | onBookingChanged |
Use it#
import { FinBazeBookingChip } from "@finbaze/embed-react";
<FinBazeBookingChip />
const component = instance.create("booking-chip");
component.mount("#finbaze");