MokaPos 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package MokaPos --version 1.0.0                
NuGet\Install-Package MokaPos -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MokaPos" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MokaPos --version 1.0.0                
#r "nuget: MokaPos, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MokaPos as a Cake Addin
#addin nuget:?package=MokaPos&version=1.0.0

// Install MokaPos as a Cake Tool
#tool nuget:?package=MokaPos&version=1.0.0                

MokaPos Client Library for .Net Framework and .Net Core

Unofficial MokaPos client library

Supports .NET Framework, .NET Core 1.1, .NET Core 2.0, .NET Core 2.1, .NET Core 3.0, .NET Core 3.1, .NET Core 5.0, .NET Core 6.0, .NET Core 7.0 runtimes

Installation

To install MokaPos, run the following command in the Package Manager Console

Install-Package MokaPos

Usage

string baseUrl = "";
            var dealerAuth = new PaymentDealerAuthentication()
            {
                DealerCode = "",
                Username = "",
                Password = ""
            };
            dealerAuth.SetCheckKey();
              BaseResponse<DirectPaymentResponse> response = DirectPayment.Create(new DirectPaymentRequest()
               {
                   BaseUrl = baseUrl,
                   PaymentDealerAuthentication = dealerAuth,
                   PaymentDealerRequest = new DirectPaymentDealerRequest()
                   {
                       CardHolderFullName = "Ahmet Y",
                       CardNumber = "4715091122223339",
                       ExpYear = "2022",
                       ExpMonth = "12",
                       CvcNumber = "000",
                       Amount = 0.1m,
                       Currency = "TL",
                       InstallmentNumber = 1,
                       ClientIP = "10.10.10.10",
                       OtherTrxCode="Mütabakat sağlamak için kendi Unique ",
                       IsPoolPayment=0,// havuz mu
                       IsTokenized=1,// kart saklama
                       Software="Edvido",
                       Description = "",
                       IsPreAuth=0,// ön ödeme mi
                       BuyerInformation = new BuyerInformation()
                       {
                           BuyerAddress = "istanbul",
                           BuyerEmail = "y@gmail.com",
                           BuyerFullName = "Yagiz Can",
                           BuyerGsmNumber = ""
                       },
                       CustomerInformation = new CustomerInformation()
                       {
                           Address = "istanbul",
                           BirthDate = "",
                           CardName = "benim kartım",
                           Email = "y@gmail.com",
                           FirstName = "Yagiz",
                           LastName = "Can",
                           CustomerCode="123456",//Bu müşterinin, sizin sisteminizdeki Unique ID si.
                           DealerCustomerId = ""//Daha önceden bu müşteri Moka sistemine kaydedilmişse, Moka sistemindeki bu müşterinin Unique ID si.
                       }
                   }
               });
    BaseResponse<ThreedPaymentResponse> responseThreeD = ThreedPayment.Create(new ThreeDPaymentRequest()
            {
                BaseUrl = baseUrl,
                PaymentDealerAuthentication = dealerAuth,
                PaymentDealerRequest = new ThreeDPaymentDealerRequest()
                {
                    CardHolderFullName = "Ahmet Y",
                    CardNumber = "4715091122223339",
                    ExpYear = "2022",
                    ExpMonth = "12",
                    CvcNumber = "000",
                    Amount = 0.1m,
                    Currency = "TL",
                    InstallmentNumber = 1,
                    ClientIP = "10.10.10.10",
                    OtherTrxCode = "Mütabakat sağlamak için kendi Unique ",
                    IsPoolPayment = 0, // havuz mu
                    IsTokenized = 1, // kart saklama
                    Software = "Edvido",
                    Description = "",
                    IsPreAuth = 0, // ön ödeme mi
                    CardToken = "",
                    RedirectType =
                        0, //Opsiyonel alandır. Default değeri 0 (sıfır) dır. Ödeme işleminin sonucu servisi çağıran web sitesinde ana sayfaya yönlendirme yapar. IFrame içerisinden bu servis çağrılmışsa ve sonuç IFrame içine redirect yapılsın isteniyorsa, bu alana 1 yazılmalıdır
                    RedirectUrl = "",
                    BuyerInformation = new BuyerInformation()
                    {
                        BuyerAddress = "istanbul",
                        BuyerEmail = "yy@gmail.com",
                        BuyerFullName = "Yagiz Can",
                        BuyerGsmNumber = ""
                    },
                    CustomerInformation = new CustomerInformation()
                    {
                        Address = "istanbul",
                        BirthDate = "",
                        CardName = "benim kartım" ,
                        Email = "yy@gmail.com",
                        FirstName = "Yagiz",
                        LastName = "Can",
                        CustomerCode = "1234567", //Bu müşterinin, sizin sisteminizdeki Unique ID si.
                        DealerCustomerId =
                            "" //Daha önceden bu müşteri Moka sistemine kaydedilmişse, Moka sistemindeki bu müşterinin Unique ID si.
                    }
                }
            });
	// To check threed payment is success
			ThreedPayment.CheckHashValue("BA811DF7-EADF-4498-B626-C32E5212367F",
                "f73d6d0d888d21a73fdd1b854dde003e39b5cbc01df8dd09b7e8b4f4691c0064");
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 220 4/8/2023
1.0.2 185 4/7/2023
1.0.1 181 4/7/2023
1.0.0 222 12/11/2022