项目作者: imaun

项目描述 :
Online payment library for Iranian IPG providers.
高级语言: C#
项目地址: git://github.com/imaun/paymun.git
创建时间: 2020-12-24T15:16:14Z
项目社区:https://github.com/imaun/paymun

开源协议:GNU General Public License v3.0

下载


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 :

    1. services.AddMellatPaymentGateway(new MellatGatewayOptions
    2. {
    3. Name = "Mellat",
    4. TerminalId = "TerminalId",
    5. Password = "password",
    6. TestTerminal = false,
    7. UserName = "username"
    8. });