Reevit

SDKs

SDKs Overview

Official client libraries for integrating Reevit payments

SDKs

Official client libraries for integrating Reevit payments into your applications.


Frontend SDKs (UI Components)

Pre-built checkout widgets with customizable themes for React, Vue, and Svelte.

PackageNPMGitHub
@reevit/reactnpmReevit-Platform/react-sdk
@reevit/vuenpmReevit-Platform/vue-sdk
@reevit/sveltenpmReevit-Platform/svelte-sdk
@reevit/corenpmReevit-Platform/core

Features

  • ✅ Pre-built checkout UI with modal
  • ✅ PSP bridge integrations (Paystack, Stripe, Flutterwave, Monnify, M-Pesa)
  • ✅ Theming and dark mode support
  • ✅ Mobile-responsive design
  • ✅ TypeScript support

Backend SDKs (API Clients)

Server-side libraries for the Reevit REST API with full type safety.

LanguagePackageGitHub
TypeScript/Node.js@reevit/nodeReevit-Platform/node
PythonreevitReevit-Platform/python
Gogithub.com/Reevit-Platform/goReevit-Platform/go
PHPreevit/reevit-phpReevit-Platform/php

Features

  • ✅ Full API coverage (Payments, Connections, Subscriptions, Webhooks)
  • ✅ Type safety (TypeScript types, Python hints, Go structs)
  • ✅ Automatic retries with exponential backoff
  • ✅ Idempotency key support
  • ✅ Webhook signature verification

Supported Payment Providers

All SDKs support the following payment providers:

ProviderCountriesPayment Methods
PaystackNG, GH, ZA, KECard, Mobile Money, Bank
FlutterwaveNG, GH, KE, ZA+Card, Mobile Money, Bank
HubtelGHMobile Money
StripeGlobal (50+)Card, Apple Pay, Google Pay
MonnifyNGCard, Bank Transfer, USSD
M-PesaKE, TZMobile Money (STK Push)

Quick Start

Frontend (React)

npm install @reevit/react
import { ReevitCheckout } from '@reevit/react';
import '@reevit/react/styles.css';

<ReevitCheckout
  publicKey="pfk_test_xxx"
  amount={5000}
  currency="GHS"
  reference="ORD-12345"
  metadata={{
    org_id: "your_org_id",
    connection_id: "your_connection_id",
    payment_id: "ORD-12345"
  }}
  onSuccess={(result) => console.log('Paid!', result)}
>
  <button>Pay Now</button>
</ReevitCheckout>

Backend (Node.js)

npm install @reevit/node
import { Reevit } from '@reevit/node';

const client = new Reevit('pfk_live_xxx', 'org_123');

const payment = await client.payments.createIntent({
  amount: 5000,
  currency: 'GHS',
  method: 'momo',
  country: 'GH',
  reference: 'ORD-12345',
  metadata: {
    org_id: 'your_org_id',
    connection_id: 'your_connection_id',
    payment_id: 'ORD-12345'
  }
});

Configuration Options

OptionDescriptionDefault
apiKey / publicKeyYour API keyRequired
orgIdOrganization ID (backend only)Required
baseUrl / apiBaseUrlAPI base URLhttps://api.reevit.io
timeoutRequest timeout30s