Parbad
Parbad is a free and open-source online payment library for .NET. It connects web applications to Iranian online payment gateways: it requests a payment, sends the customer to the bank, verifies the payment when the customer comes back, and can refund it.
How it works

- Your application asks Parbad for a payment (an invoice: amount, callback URL, gateway).
- Parbad registers the payment with the bank and sends the customer to the bank's payment page.
- The bank sends the customer back to your callback URL.
- Parbad fetches the payment; you check your order (stock, price, ...).
- Parbad verifies the payment with the bank. Only then is the money really taken.
Parbad stores the state of every payment, so a payment is verified only once, even when the callback page is refreshed or the same payment is verified on two servers at the same time.
Features
- Free and open-source
- One API for every gateway
- Virtual Gateway: a simulated bank for development and tests
- ASP.NET Core, ASP.NET MVC 5 and WebForms
- Storage in your own database with EF Core, in a cache, or in your own implementation
Gateways
| Gateway | Package |
|---|---|
| Mellat, Melli, Saman, Pasargad, Parsian, Asan Pardakht | Parbad |
| Iran Kish | Parbad.Gateway.IranKish |
| Sepehr | Parbad.Gateway.Sepehr |
| ZarinPal | Parbad.Gateway.ZarinPal |
| Pay.ir | Parbad.Gateway.PayIr |
| IDPay | Parbad.Gateway.IdPay |
| YekPay | Parbad.Gateway.YekPay |
| PayPing | Parbad.Gateway.PayPing |
| Zibal | Parbad.Gateway.Zibal |
| FanAva | Parbad.Gateway.FanAva |
Next: Getting started.