Provider

Context provider that initializes checkout state.

BiasProvider

<BiasProvider>

Context provider that initializes checkout state and makes all hooks available to child components.

Props

Name
clientSecret
Type
string | Accessor<string>,
Name
onComplete
Type
() => void,
Name
apiBaseUrl
Type
string,
Name
frameUrl
Type
string,
Name
children
Type
JSX.Element,
import { BiasProvider, PaymentForm } from "@biaspay/solid";

<BiasProvider
    clientSecret="cs_test_..."
    onComplete={() => { /* redirect */ }}
>
    <PaymentForm />
</BiasProvider>