Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

zarinpal-node-sdk

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zarinpal-node-sdk

A Node.js SDK for ZarinPal payment services

latest
npmnpm
Version
2.2.0
Version published
Weekly downloads
275
12.7%
Maintainers
1
Weekly downloads
 
Created
Source

ZarinPal Node.js SDK

npm version

Official npm package: zarinpal-node-sdk on npm

A modern Node.js SDK for integrating with the ZarinPal payment gateway. Easily create payment requests, verify transactions, calculate fees, handle refunds, and more with a simple and robust API.

Features

  • Create and manage payment requests
  • Calculate transaction fees before payment
  • Verify and inquire transactions
  • Refund and reverse payments
  • TypeScript support
  • Easy to use and extend

Installation

Install via npm:

npm install zarinpal-node-sdk

For more installation options and usage examples, see the official documentation:

ZarinPal Node.js SDK Documentation

API Overview

  • zarinpal.payments.create(data) – Create a new payment request
  • zarinpal.payments.getRedirectUrl(authority) – Get the payment gateway redirect URL
  • zarinpal.payments.feeCalculation(data) – Calculate the transaction fee
  • zarinpal.verifications.verify(data) – Verify a payment
  • zarinpal.inquiries.inquire(data) – Inquire about a transaction
  • zarinpal.refunds.create(data) – Request a refund
  • zarinpal.reversals.reverse(data) – Reverse a transaction
  • zarinpal.unverified.list() – List unverified payments

Testing

Run the test suite using:

npm test

Contributing

Contributions are welcome! Please open issues and submit pull requests for new features, bug fixes, or improvements.

License

MIT

FAQs

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