npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

remit-pay-sdk

v0.0.2

Published

demo payment sdk

Readme

📦 Remit Pay SDK

Remit Pay SDK is a cross-platform React Native widget library that provides an embeddable and customizable remittance payment flow. With just a few lines of code, you can integrate a fully functional remittance interface into your mobile app.


✨ Features

  • 💸 Simple money sending flow
  • 🌐 Supports cross-currency remittance (e.g., USD ➡️ NGN)
  • 🌙 Light/Dark theming
  • ✅ Success & error callbacks
  • 🧪 Test mode for sandbox simulation
  • 🔒 API key-based secure initialization

📦 Installation

Using Yarn:

yarn add remit-pay-sdk

Or using npm:

npm install remit-pay-sdk

Make sure your project is React Native 0.60+.


🛠️ Usage

import RemitWidgt, {
  type Transaction,
  type TransactionError,
} from 'remit-pay-sdk';

Example App

Exanple app can be found in ./example/src

const App: React.FC = () => {
  const [theme, setTheme] = useState<'light' | 'dark'>('light');

  const handleSuccess = (transaction: Transaction) => {
    console.log('Transaction successful:', transaction);
  };

  const handleError = (error: TransactionError) => {
    Alert.alert('Error', error.message);
  };

  const handleCancel = () => {
    console.log('Transaction cancelled');
  };

  return (
    <>
      <SafeAreaView style={styles.container}>
        <TouchableOpacity onPress={() => RemitWidgt.open()}>
          <Text>Send Money</Text>
        </TouchableOpacity>
      </SafeAreaView>

      <RemitWidgt
        apiKey="YOUR_API_KEY"
        onSuccess={handleSuccess}
        onError={handleError}
        onCancel={handleCancel}
        customTheme={theme}
        defaultSendCurrency="USD"
        defaultReceiveCurrency="NGN"
        testMode={true}
      />
    </>
  );
};

⚙️ Props

| Prop | Type | Required | Description | | ------------------------ | ------------------------------------ | -------- | ------------------------------------------------------ | ------------------------------------------------------ | | apiKey | string | ✅ | Your API key for authentication. | | onSuccess | (transaction: Transaction) => void | ✅ | Callback when a transaction is completed successfully. | | onError | (error: TransactionError) => void | ✅ | Callback for handling errors. | | onCancel | () => void | ❌ | Callback when the user cancels the transaction. | | customTheme | 'light' | 'dark' | ❌ | Sets the widget's visual theme. Defaults to 'light'. | | defaultSendCurrency | string | ❌ | Default currency to send from (e.g., 'USD'). | | defaultReceiveCurrency | string | ❌ | Default currency to receive into (e.g., 'NGN'). | | testMode | boolean | ❌ | If true, enables sandbox/test environment. |


🧾 Types

RemitWidgetProps

Defined in index.ts:

export interface RemitWidgetProps {
  apiKey: string;
  onSuccess: (transaction: Transaction) => void;
  onError: (error: TransactionError) => void;
  onCancel?: () => void;
  customTheme?: 'light' | 'dark' | Theme;
  defaultSendCurrency?: string;
  defaultReceiveCurrency?: string;
  enabledCountries?: string[];
  testMode?: boolean;
  openPayWidget?: (params?: WidgetOpenParams) => void;
  closePayWidget?: (params?: WidgetCloseParams) => void;
}

Transaction

Defined in transaction.types.ts:

export interface Transaction {
  id: string;
  amount: number;
  currency: string;
  status: 'success' | 'pending' | 'failed';
  sender: User;
  receiver: User;
  reference: string;
  timestamp: string;
}

TransactionError

export interface TransactionError {
  code: string;
  message: string;
}

User

Defined in user.types.ts:

export interface User {
  id: string;
  name: string;
  email: string;
  country: string;
}

🎨 Theming

Pass customTheme="dark" or "light" to enable dark/light mode.
You can dynamically toggle this based on user preferences.


📸 UI Preview

Widget Screenshot

Image is a placeholder. Replace with a screenshot of the widget UI.