New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

squad-gateway

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

squad-gateway

A Node.js wrapper for SquadCo payment gateway API.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

Squad Gateway

npm version
GitHub issues
GitHub license

A simple and efficient Node.js wrapper for the SquadCo Payment Gateway API.

Features

Easy Integration – Simple API for handling payments
TypeScript Support – Fully typed for better development experience
Lightweight – No unnecessary dependencies

Installation

Using pnpm:

pnpm add squad-gateway

Using npm:

npm install squad-gateway

Using yarn:

yarn add squad-gateway

Usage

1. Import the package

import SquadGateway from 'squad-gateway'

const squad = new SquadGateway('your-api-key')

2. Initialize Payment

const payment = await squad.initializePayment({
  amount: 5000,
  currency: 'NGN',
  email: 'customer@example.com'
})

console.log(payment) // Response from SquadCo

3. Verify Payment

const verification = await squad.verifyPayment('transaction-reference')

console.log(verification)

API Methods

MethodDescription
initializePayment(data)Creates a new payment request
verifyPayment(ref)Verifies a completed transaction
getTransaction(ref)Fetches transaction details
refundTransaction(ref)Initiates a refund process

More features coming soon! 🚀

Configuration

Set your API key via environment variables:

export SQUAD_API_KEY='your-secret-api-key'

Or pass it as a parameter:

const squad = new SquadGateway('your-api-key')

Contributing

  • Fork the repository
  • Create a new branch (git checkout -b feature-name)
  • Commit your changes (git commit -m "Added new feature")
  • Push to your branch (git push origin feature-name)
  • Open a Pull Request

License

This project is licensed under the MIT License.

Support & Contact

Keywords

squad

FAQs

Package last updated on 01 Mar 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