Pesepay 1.0.1

dotnet add package Pesepay --version 1.0.1
                    
NuGet\Install-Package Pesepay -Version 1.0.1
                    
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="Pesepay" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pesepay" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Pesepay" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Pesepay --version 1.0.1
                    
#r "nuget: Pesepay, 1.0.1"
                    
#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.
#:package Pesepay@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Pesepay&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Pesepay&version=1.0.1
                    
Install as a Cake Tool

Pesepay (.NET)

A .NET client for the PesePay payment API, developed and maintained by Innocent Tauzeni, .NET developer.

Repository: https://github.com/innotauzeni/pesepay

This library is a separate .NET implementation based on the API behavior of the PHP SDK in this repository. The original PHP SDK and its original authors remain covered by the repository's MIT license.

Supported frameworks

The package targets .NET Framework 4.8 and .NET 6, 7, 8, 9, and 10. It uses the compatible System.Text.Json package dependency and a transport implementation that works across all supported targets.

Install

dotnet add package Pesepay

Example

using Pesepay;

using var pesepay = new Pesepay("INTEGRATION_KEY", "ENCRYPTION_KEY", isSandbox: true);
pesepay.ResultUrl = "https://example.com/gateway/result";
pesepay.ReturnUrl = "https://example.com/gateway/return";

var transaction = pesepay.CreateTransaction(25.00m, "USD", "Online Transaction", "ORDER-123");
var response = await pesepay.InitiateTransactionAsync(transaction);

if (response is PaymentResponse payment)
{
    Console.WriteLine(payment.RedirectUrl);
    Console.WriteLine(payment.ReferenceNumber);
}
else if (response is ErrorResponse error)
{
    Console.WriteLine(error.Message);
}

Use CreatePayment and MakeSeamlessPaymentAsync for seamless payments. Use CheckPaymentAsync(reference) or PollTransactionAsync(pollUrl) to check status. SetSplitPayment accepts PRINCIPAL, PRINCIPAL_AMOUNT, ADD_ON, ADDON, ADDED_ON_TOP, and ON_TOP.

The client preserves the PHP SDK's AES-256-CBC format: Base64-encoded ciphertext, an IV made from the first 16 UTF-8 bytes of the encryption key, and PHP-compatible zero padding for 16- and 24-byte keys.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 is compatible.  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 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net48 is compatible.  net481 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.1 126 8/7/2026