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
                    
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="esewa_maui.epay" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="esewa_maui.epay" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="esewa_maui.epay" />
                    
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 esewa_maui.epay --version 1.0.0
                    
#r "nuget: esewa_maui.epay, 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.
#:package esewa_maui.epay@1.0.0
                    
#: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=esewa_maui.epay&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=esewa_maui.epay&version=1.0.0
                    
Install as a Cake Tool

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

  1. Builds the ePay v2 form (amount, total_amount, transaction_uuid, product_code, HMAC-SHA256 signature, …).
  2. Auto-submits it to the hosted eSewa checkout inside a WebView.
  3. Intercepts the success / failure redirect and decodes the signed response.
  4. When VerifyStatus is 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 Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible.  net10.0-ios26.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.