esewa_maui.epay
1.0.0
dotnet add package esewa_maui.epay --version 1.0.0
NuGet\Install-Package esewa_maui.epay -Version 1.0.0
<PackageReference Include="esewa_maui.epay" Version="1.0.0" />
<PackageVersion Include="esewa_maui.epay" Version="1.0.0" />
<PackageReference Include="esewa_maui.epay" />
paket add esewa_maui.epay --version 1.0.0
#r "nuget: esewa_maui.epay, 1.0.0"
#:package esewa_maui.epay@1.0.0
#addin nuget:?package=esewa_maui.epay&version=1.0.0
#tool nuget:?package=esewa_maui.epay&version=1.0.0
esewa_maui.epay
Accept eSewa payments in your .NET MAUI app via eSewa's current ePay v2
hosted checkout — a lightweight, pure C# library (no native SDK binding, no
AAR/xcframework). It signs the request, opens the hosted eSewa page in a
WebView, and verifies the signed result behind one cross-platform call.
using Plugin.Esewa.Epay;
var result = await EsewaEpay.Current.PayAsync(new EsewaEpayRequest
{
Amount = 100,
ProductCode = "<your-merchant-code>", // "EPAYTEST" in sandbox
SecretKey = "<your-merchant-secret>",
Environment = EsewaEpayEnvironment.Production,
});
if (result.IsSuccess)
await DisplayAlert("Success", $"ref {result.TransactionCode}", "OK");
Requirements
| Framework | .NET MAUI (.NET 10+) |
| Android | API 24+ |
| iOS | 13.0+ |
Installation
dotnet add package esewa_maui.epay
No manifest edits, no URL-scheme registration — nothing extra to set up.
How it works
- Builds the ePay v2 form (
amount,total_amount,transaction_uuid,product_code, HMAC-SHA256signature, …). - Auto-submits it to the hosted eSewa checkout inside a WebView.
- Intercepts the success / failure redirect and decodes the signed response.
- When
VerifyStatusis enabled (default), confirms the outcome via the eSewa transaction status API — the authoritative source of truth.
API
| Member | Description |
|---|---|
EsewaEpay.Current.PayAsync(request) |
Runs the hosted checkout, returns a normalized result. |
EsewaEpayRequest |
Amount (+ TaxAmount/ServiceCharge/DeliveryCharge), ProductCode, SecretKey, TransactionUuid?, Environment, SuccessUrl/FailureUrl, VerifyStatus. |
EsewaEpayResult |
Status, TransactionUuid, TransactionCode, TotalAmount, ProductCode, Message, Details. |
EsewaEpayStatus |
Complete, Pending, Cancelled, Failed, Refunded, Unknown. |
Sandbox
ProductCode = "EPAYTEST", SecretKey = "8gBm/:&EnhH.1/q", and
Environment = EsewaEpayEnvironment.Sandbox. See
https://developer.esewa.com.np/ for merchant onboarding and the latest ePay v2
reference.
License
MIT. The library talks to eSewa's public ePay v2 API; eSewa and its gateway are operated by eSewa — see https://developer.esewa.com.np/.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. net10.0-ios26.0 is compatible. |
-
net10.0-android36.0
- No dependencies.
-
net10.0-ios26.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.0 | 144 | 7/15/2026 |
Initial release: eSewa ePay v2 hosted checkout (WebView) for Android and iOS.