React SDK
Pre-built React components for integrating Reevit payments with beautiful, customizable checkout UI.Installation
Quick Start
The recommended production flow creates a checkout session on your backend and passes its short-livedsession_secret to ReevitCheckout.
Note: Always import the styles CSS file to get the built-in checkout modal styling.
Props Reference
Theming
Customize the checkout widget to match your brand:Theme Options
Controlled Mode
If you prefer to create the payment intent on your backend before opening the checkout, you can use Controlled Mode.For full control over the payment flow, use the
useReevit hook to build your own custom UI.
PSP Bridges
For advanced use cases, use individual PSP bridges directly.Paystack Bridge
The default bridge for card and mobile money payments in Ghana/Nigeria:Stripe Bridge
For card payments including Apple Pay and Google Pay:Monnify Bridge (Nigeria)
For bank transfers and cards in Nigeria:M-Pesa Bridge (Kenya/Tanzania)
M-Pesa uses STK Push - the customer receives a prompt on their phone:Supported Providers
Troubleshooting
CORS Errors
If you see CORS errors when connecting to your local backend:- Ensure your backend includes your frontend origin in
FRONTEND_ALLOWED_ORIGINS - Check that the
apiBaseUrlprop points to the correct backend URL - Verify your API key is valid and registered in the database
Styles Not Loading
Make sure you import the styles:Payment Failed: Network Error
This usually means the SDK cannot reach the backend:- Check your
apiBaseUrlis correct - Ensure the backend is running
- For test keys (
pfk_test_*), the SDK defaults to sandbox API unlessapiBaseUrlis set
Browser Support
- Chrome, Firefox, Safari, Edge (latest 2 versions)
- Mobile Safari and Chrome on Android/iOS

