Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imaun/paymun
.NET Online payment library for Iranian IPG providers.
https://github.com/imaun/paymun
asp-net-core behpardakht ipg iran mellat mellat-bank payment payment-gateway payment-gateways persian zarinpal zarinpal-service
Last synced: 11 days ago
JSON representation
.NET Online payment library for Iranian IPG providers.
- Host: GitHub
- URL: https://github.com/imaun/paymun
- Owner: imaun
- License: gpl-3.0
- Created: 2020-12-24T15:16:14.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T15:09:27.000Z (9 months ago)
- Last Synced: 2024-03-14T16:32:33.665Z (9 months ago)
- Topics: asp-net-core, behpardakht, ipg, iran, mellat, mellat-bank, payment, payment-gateway, payment-gateways, persian, zarinpal, zarinpal-service
- Language: C#
- Homepage:
- Size: 79.1 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Paymun
### Add **Payment** services to your **ASP.NET CORE** web apps.
"Paymun" (in farsi : پیمون) is an online payment library for Iranian IPG (PSP & Banks) providers and payment gateways like Zarinpal.
This library is currently under development and only support **Zarinpal** gateway and **Mellat (BehPardakht)** IPG, I needed them for one of my projects. I think I'm going to develop other IPG & payment gateway services as well :)
### How to use
- Download or clone the repo
- Build the soultion using VisualStudio or by running `dotnet build` command in VsCode or any terminal.
- Reference `Paymun.Core` in your project
#### How to use Zarinpal
- In your `Startup.cs` file, under `ConfigureServices` method add :
```services.AddZarinpalServices(merchantId: "your_merchant_id");```
(Get MerchantID from Zarinpal.com)Now you can use `ZarinpalGateway` class to Create and Verify payment requests with Zarinpal service.
#### How to use Mellat IPG
- In your `Startup.cs` file, under `ConfigureServices` method add :
```cs
services.AddMellatPaymentGateway(new MellatGatewayOptions
{
Name = "Mellat",
TerminalId = "TerminalId",
Password = "password",
TestTerminal = false,
UserName = "username"
});```