FinBaze for Platforms

Components

Kind: view (fills its container) · Session key: paymentBatches · React: <FinBazePaymentBatches />

Create the session#

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

Requirements#

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

Component features#

Switch these off per session with components.paymentBatches.features.

FeatureDefault
requestPaymenton

Options#

Passed to instance.create("payment-batches", options) or as props.

OptionType
batchIdstringOpen this batch instead of the list.

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

Events#

EventReact prop
readyonReady
navigateonNavigate
erroronError
payment.requestedonPaymentRequested
payment_batch.selectedonPaymentBatchSelected

Use it#

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

<FinBazePaymentBatches />
const component = instance.create("payment-batches");
component.mount("#finbaze");