FinBaze for Platforms

Components

Kind: element (inline) · Session key: productTaxCodePicker · React: <FinBazeProductTaxCodePicker />

Create the session#

mutation {
  createEmbedSession(input: {
    companyId: "…"
    user: { externalUserId: "…" }
    components: { productTaxCodePicker: { enabled: true } }
  }) { clientSecret }
}

Requirements#

The company must have these features effective: products. A hidden feature makes createEmbedSession fail with FEATURE_DISABLED.

Component features#

None.

Options#

Passed to instance.create("product-tax-code-picker", options) or as props.

OptionType
valuestringThe product chosen at first.
countrystringThe country whose tax code is reported. Defaults to the company's.
labelstringThe field label.
disabledbooleanShow the field but do not allow changes.

Every component also takes appearance and navigation ("internal" or "external").

Events#

EventReact prop
readyonReady
navigateonNavigate
erroronError
changeonChange

Use it#

import { FinBazeProductTaxCodePicker } from "@finbaze/embed-react";

<FinBazeProductTaxCodePicker />
const component = instance.create("product-tax-code-picker");
component.mount("#finbaze");