---
title: "@noaignite/react-centra-checkout: Context"
sidebarTitle: "Context"
---

### `ProviderProps`

[See source on Github](https://github.com/noaignite/accelerator/tree/main/packages/react-centra-checkout/src/Context.tsx)

The prop types that CentraProvider accepts
### `CentraProvider`

[See source on Github](https://github.com/noaignite/accelerator/tree/main/packages/react-centra-checkout/src/Context.tsx)

React Context provider that is required to use the `useCentra` and `useCentraHandlers` hooks.
Provides state management and related handlers of the users current Centra selection via the Checkout API.
The handlers could be used for adding products to the selection and making purchases, for example.
### `useCentraSelection`

[See source on Github](https://github.com/noaignite/accelerator/tree/main/packages/react-centra-checkout/src/Context.tsx)

This hook returns the centra selection
### `useCentraHandlers`

[See source on Github](https://github.com/noaignite/accelerator/tree/main/packages/react-centra-checkout/src/Context.tsx)

This hook returns update handlers
### `useCentraReceipt`

[See source on Github](https://github.com/noaignite/accelerator/tree/main/packages/react-centra-checkout/src/Context.tsx)

Returns the latest order receipt given a selection token
### `useCentraOrders`

[See source on Github](https://github.com/noaignite/accelerator/tree/main/packages/react-centra-checkout/src/Context.tsx)

Returns the latest orders for the currently logged in user
- @param `from` - Display orders from this index. Defaults to 0.
- @param `size` - Display this many orders. Defaults lists all orders.
