Socket
Book a DemoInstallSign in
Socket

echezona-pop

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

echezona-pop

Echezona merchant payment page popup.

1.2.2
latest
Source
npmnpm
Version published
Weekly downloads
11
-8.33%
Maintainers
3
Weekly downloads
 
Created
Source

Echezona Pay-Pop NPM Library

npm version npm license

A Javasript library for integrating with the Echezona Pop.

Installation

npm install echezona-pop
import EchezonaPayPop from "echezona-pop";

// Initialize echezona Pay pop up
const echezonaPay = new EchezonaPayPop();

// Example: Initialize Payment popup
echezonaPay.newTransaction({
  onSuccess: (transaction) => {
    // Payment complete! transactionId: transaction.transactionId
  },
  onError: (error) => {
    // handleError
  },
  onCancel: () => {
    // user closed popup
  },
  authorizeUrl: "https://checkout-echezona.vercel.app/******",
  request: {
    amount: "2000.00",
    transactionId: Math.floor(Math.random() * 1000000),
    firstname: "John",
    lastname: "Doe",
    email: "sample@mail.com",
    apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxx",
    currency: "NGN",
    isLive: true,
    productId: "1001",
    applyConviniencyCharge: true,
    productDescription: "MTN",
    bodyColor: "#0000",
    buttonColor: "#0000",
    footerText: "Powered by Test Ltd",
    footerLink: "http://test.com",
    footerLogo: "http://test.com/test.png",
    metadata: [
      {
        name: "sample",
        value: "test",
      },
    ],
  },
});

Request for calling Echezona pay popup function.

If you want to implement initialize payment from backend, just pass authorizeUrl and leave request parameter blank

To initialize the transaction, on request parameter you'll need to pass information such as email, first name, last name amount, apiKey, etc. Email and amount are required. You can also pass any other additional information in the metadata object field. Here is the full list of parameters you can pass:

ParamTypeDefaultRequiredDescription
amountstringundefinedtrueAmount you want to debit customer e.g 1000.00, 10.00...
transactionIdstringundefinedtrueUnique case sensitive transaction identification
firstnamestringundefinedtrueFirst name of customer
lastnamestringundefinedtrueLast name of customer
emailstringundefinedtrueEmail address of customer
apiKeystringundefinedtrueYour genral API key from echezona dashboard.
currencystringNGNtrueCurrency charge should be performed in. Allowed only NGN.
productIdstringundefinedfalseunique identification number of the product your customer want to pay to.
applyConviniencyChargebooleanundefinedfalsespecify whether to apply charge for this customer transaction.
productDescriptionstringundefinedfalsedescription number of the product your customer want to pay to.
modestringDebugtrueAllowed values are Debug or Live.
callBackUrlstringyour current url pagefalseCallbackUrl is the url you want your customer to be redirected to when payment is successful. The default url is the page url where customer intialized payment.
bodyColorstringnullfalseyour prefered customized color for the payment page body.
buttonColorstringnullfalseyour prefered customized color for the payment page buttons.
footerTextstringnullfalseyour prefered customized text for the payment page footer.
footerLogostringnullfalseyour prefered customized logo for the payment page footer.
metadataobjectempty objectfalseObject containing any extra information you want recorded with the transaction.

Keywords

echezona

FAQs

Package last updated on 13 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.