@checkout-kit/core / ProviderContext
Interface: ProviderContext<TConfig>
Type Parameters
| Type Parameter |
|---|
TConfig |
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
config | readonly | TConfig | - |
fetch | readonly | (input, init?) => Promise<Response> | The plugin builds its own HTTP client from this (see @checkout-kit/core/http). Passing fetch rather than a ready-made client is what lets plugins speak different wire formats. |
log | readonly | Logger | - |
now | readonly | () => number | - |
uuid | readonly | () => string | Injected, so tests get deterministic ids and the core stays free of crypto. |