A simple and efficient Node.js wrapper for the SquadCo Payment Gateway API.
✅ Easy Integration – Simple API for handling payments
✅ TypeScript Support – Fully typed for better development experience
✅ Lightweight – No unnecessary dependencies
Using pnpm:
pnpm add squad-gatewayUsing npm:
npm install squad-gatewayUsing yarn:
yarn add squad-gatewayimport SquadGateway from 'squad-gateway'
const squad = new SquadGateway('your-api-key')const payment = await squad.initializePayment({
amount: 5000,
currency: 'NGN',
email: 'customer@example.com'
})
console.log(payment) // Response from SquadCoconst verification = await squad.verifyPayment('transaction-reference')
console.log(verification)| Method | Description |
|---|---|
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! 🚀
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')- 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
This project is licensed under the MIT License.
- 📧 Email: agency@haqqman.com
- 📝 Open an issue