DEV Community

ahmad mohammadi
ahmad mohammadi

Posted on

Build Your Own Sadad Payment Gateway Integration in Node.js

Build Your Own Sadad Payment Gateway Integration in Node.js

Hey Devs!

I recently created an open-source package that simplifies working with the Sadad payment gateway for Node.js developers. If you’ve ever worked with Iranian payment providers, you know how tricky and undocumented some of them can be. So I decided to build this tool to make the process much cleaner and developer-friendly.

What is sadad-gateway?

It’s a lightweight library that helps you:
• Send payment requests to Sadad
• Verify transactions
• Handle errors and responses in a structured way

All of this with an easy-to-use API and written in JavaScript.

Why I Built It

I wanted to understand how payment gateways work under the hood, and this was a perfect way to practice real-world integrations, learn more about secure transaction flows, and contribute something useful to the dev community in Iran.

GitHub Repo

You can check out the full code here:
https://github.com/ahmadmohammadi80/sadad-gateway

Stars, feedback, or contributions are super welcome!

Coming Soon

I’m planning to add:
• TypeScript support
• NestJS integration guide
• Examples and full documentation

Let me know what you’d like to see next!

Thanks for reading — and if you’re working with Sadad, this might save you a bunch of time

Top comments (0)