Providers


Context Providers are a core concept in @blocklet/payment-react. They act as wrappers around parts of your application, using React's Context API to pass down essential data and functions to all the components nested within them. This avoids the need to pass props down manually through many levels of your component tree.

To use most of the components in this library, you must wrap your application or relevant pages with the appropriate provider.


The library offers two main providers, each serving a distinct purpose. Choose the one that fits your needs.

Click on a provider above to view its detailed documentation, including required props and setup examples.