Skip to content

@checkout-kit/react / CheckoutProvider

Variable: CheckoutProvider ​

ts
const CheckoutProvider: ({ engine, children }) => ReactElement;

Puts one engine in scope. The engine is created by the host - usually once, at the composition root - because it owns state that must outlive any component: an intent in flight, a pending action, a payment that is mid-redirect.

Parameters ​

ParameterType
{ engine, children }CheckoutProviderProps

Returns ​

ReactElement

Apache-2.0 · Headless engine, provider adapters and runnable examples.