Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ paymun Public

.NET Online payment library for Iranian IPG providers.

License

Notifications You must be signed in to change notification settings

imaun/paymun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :
services.AddMellatPaymentGateway(new MellatGatewayOptions
{
   Name = "Mellat",
   TerminalId = "TerminalId",
   Password = "password",
   TestTerminal = false,
   UserName = "username"
});```

Releases

No releases published

Packages

No packages published

Languages