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 🙏

© 2025 – Pkg Stats / Ryan Hefner

pay-sdk-kad6

v1.0.2

Published

A wallet payment form component with live API verification

Readme


Evzone Pay

EVzone Africa is a library designed to simplify the integration of a digital wallet payment system into e-commerce platforms. Built with React and Node.js, it provides a seamless way for developers to enable their customers to make payments using the Evzone Africa digital wallet. This package is lightweight, customizable, and developer-friendly.

Table of Contents

Features

  • Easy integration with e-commerce platforms.
  • Support for React-based frontends.
  • Secure payment processing with EVzone digital wallet.
  • Customizable payment form component with support for transaction details and merchant branding.
  • Comprehensive error handling and validation.
  • Lightweight and optimized for performance.

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (v16 or higher)
  • npm (v8 or higher) or yarn
  • A registered Evzone Africa merchant account (to obtain necessary credentials).

Installation

To install the evzone-alb library, run the following command in your project directory:

npm install pay-sdk-tx5

Usage

Frontend (React)

  1. Import the WalletPaymentForm component into your React application.
  2. Use it within a conditional render to show the payment form when needed (e.g., in a popup or modal).
  3. Pass the required props: customerId, amount, onClose, and onSuccess.
  4. Pass additional props to customize the transaction: type, particulars, currency, merchantName, and merchantLogo.

Here’s an example usage in a shopping cart component:

import React, { useState } from "react";
import WalletPaymentForm from "pay-sdk-tx5/dist/WalletPaymentForm.esm";

const Cart = () => {
  const [showPopup, setShowPopup] = useState(false);
  const cartTotalAmount = 99.99; // Example amount (replace with your cart logic)
  const customerId = "customer123"; // Example customer ID (replace with your auth logic)

  // Transaction details to pass to WalletPaymentForm
  const transactionType = "Cart Purchase";
  const transactionParticulars = "Purchase of Shirt, Pants"; // Example: Dynamically generate based on cart items
  const transactionCurrency = "USD";
  const merchantName = "My Awesome Store";
  const merchantLogo = "https://example.com/merchant-logo.png"; // Replace with your merchant logo URL

  const handlePaymentSuccess = () => {
    console.log("Payment successful");
    // Add logic to clear cart or update order status
    setShowPopup(false);
  };

  const handlePaymentClose = () => {
    console.log("Payment popup closed");
    setShowPopup(false);
  };

  return (
    <div className="cart-container">
      <h2>Shopping Cart</h2>
      <button onClick={() => setShowPopup(true)}>Make Payments</button>
      {showPopup && (
        <WalletPaymentForm
          customerId={customerId}
          amount={cartTotalAmount}
          type={transactionType}
          particulars={transactionParticulars}
          currency={transactionCurrency}
          merchantName={merchantName}
          merchantLogo={merchantLogo}
          onClose={handlePaymentClose}
          onSuccess={handlePaymentSuccess}
        />
      )}
    </div>
  );
};

export default Cart;

Configuration

The WalletPaymentForm component supports the props listed in the API Reference. You can customize the transaction details and merchant branding by passing the optional props (type, particulars, currency, merchantName, merchantLogo). Additional customization (e.g., theming, additional fees) may be added in future updates. Check the latest documentation or release notes for updates.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Support

For questions, issues, or feature requests, please: