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

ccavenuepaykit

v1.1.0

Published

Custom-owned, secure, zero-runtime-dependency React + TypeScript SDK wrapper for CCAvenue payment gateway integrations.

Readme

CCAvenuePayKit

npm version TypeScript React License: MIT Runtime deps

Custom-owned, secure and fully customizable React + TypeScript SDK for connecting a frontend app with your backend-powered CCAvenue payment flow.

Built by Pradeep Kumar Sheoran (Developer) at BSG Technologies.

Official website: https://bsgtechnologies.com
Contact / WhatsApp: +91-8595147850

CCAvenuePayKit is an unofficial integration SDK. Merchant ID, Access Code, Working Key, encryption and final verification must stay on your backend.

Quickstart

npm install ccavenuepaykit
import { AvenuePayButton, AvenueStartProvider } from "ccavenuepaykit";

export function CheckoutPage() {
  return (
    <AvenueStartProvider
      config={{
        environment: "sandbox",
        createOrderUrl: "/api/payments/ccavenue/create-order",
        verifyPaymentUrl: "/api/payments/ccavenue/verify",
        statusUrl: "/api/payments/ccavenue/status",
        mode: "redirect",
        autoVerify: true,
        timeout: 30000,
      }}
    >
      <AvenuePayButton
        payment={{
          orderId: "ORDER_1001",
          amount: 1500,
          currency: "INR",
          customer: {
            name: "Pradeep Kumar",
            email: "[email protected]",
            phone: "9999999999",
          },
          metadata: {
            applicationId: 16871,
            source: "web-checkout",
          },
        }}
        onSuccess={(response) => console.log("success", response)}
        onFailure={(response) => console.log("failed", response)}
        onCancel={(response) => console.log("cancelled", response)}
        onPending={(response) => console.log("pending", response)}
        onError={(error) => console.log("error", error)}
      >
        Pay with CCAvenue
      </AvenuePayButton>
    </AvenueStartProvider>
  );
}

How It Connects

  1. React calls your backend createOrderUrl.
  2. Your backend validates order ownership and amount from your database.
  3. Your backend encrypts CCAvenue merchant data with the Working Key.
  4. The SDK opens checkout with redirect, popup, iframe or form-submit mode.
  5. CCAvenue posts encrypted response to your backend callback URL.
  6. Your backend decrypts, verifies, stores and returns a normalized response.
  7. React receives a clean success, failed, cancelled, pending or error response.

See the complete wiring in docs/IMPLEMENTATION_GUIDE.md and docs/LIVE_DEMO.md.

Features

  • React provider, hook and customizable payment button.
  • Framework-independent core client for custom UI flows.
  • Redirect, popup, iframe and form-submit checkout modes.
  • Auto verify, manual verify, status polling, timeout and cancellation support.
  • Flexible input normalization for different order/customer naming styles.
  • Normalized gateway responses for frontend and backend consistency.
  • Event emitter for lifecycle monitoring and analytics hooks.
  • Custom headers, metadata, debug logging and render-prop button UI.
  • Secret-key guardrails to stop accidental frontend leakage.
  • ESM, CJS and TypeScript declaration builds.
  • Zero runtime dependencies beyond React peer dependencies.
  • Compatible with React 18 and React 19.

Full list: FEATURES.md

Customization

Use your own UI, labels, mode, headers, metadata, callbacks and verification strategy.

<AvenuePayButton
  className="primary-pay-button"
  loadingText="Opening secure payment..."
  successText="Payment received"
  failureText="Retry payment"
  payment={payment}
>
  {({ loading, start, error }) => (
    <button disabled={loading} onClick={start}>
      {loading ? "Please wait" : error ? "Try again" : "Pay now"}
    </button>
  )}
</AvenuePayButton>

More options: docs/CUSTOMIZATION.md

Backend

Frontend code should never contain CCAvenue secrets.

CCAVENUE_MERCHANT_ID=
CCAVENUE_ACCESS_CODE=
CCAVENUE_WORKING_KEY=
CCAVENUE_ENV=sandbox
CCAVENUE_REDIRECT_URL=
CCAVENUE_CANCEL_URL=

Examples:

Responses

All payment results use one normalized response family:

type AvenuePaymentStatus = "success" | "failed" | "cancelled" | "pending" | "error";

Detailed payloads and examples are in docs/RESPONSE_GUIDE.md.

Donation

If this SDK saves your time, you can support development through UPI.

UPI mobile number: +91-8595147850
Name: Pradeep Kumar Sheoran

More details: DONATION.md

Publish Checks

npm run typecheck
npm run build
npm run pack:dry

Professional Links

  • Official website: https://bsgtechnologies.com
  • Visit here to meet, learn, contribute and discuss new topics with us.
  • Looking for a job change: React.js, React Native, Android Java, Node.js, TypeScript packages and custom scripts.
  • Feature requests and updates: leave a comment on the package repository issue tracker.

Documentation

License

MIT License. Copyright (c) 2026 Pradeep Kumar Sheoran, BSG Technologies.