Pesepay 1.0.1
dotnet add package Pesepay --version 1.0.1
NuGet\Install-Package Pesepay -Version 1.0.1
<PackageReference Include="Pesepay" Version="1.0.1" />
<PackageVersion Include="Pesepay" Version="1.0.1" />
<PackageReference Include="Pesepay" />
paket add Pesepay --version 1.0.1
#r "nuget: Pesepay, 1.0.1"
#:package Pesepay@1.0.1
#addin nuget:?package=Pesepay&version=1.0.1
#tool nuget:?package=Pesepay&version=1.0.1
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 | Versions 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. |
-
.NETFramework 4.8
- Microsoft.Net.Http (>= 2.2.29)
- System.Text.Json (>= 8.0.5)
-
net10.0
- No dependencies.
-
net6.0
- System.Text.Json (>= 8.0.5)
-
net7.0
- System.Text.Json (>= 8.0.5)
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
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 |