K Khay logo
K Khay
Get Started
NuGet: Kkhayv1.0.4.NET 8.0 & Standard 2.1

.NET & C# SDK

The official .NET and C# SDK for K Khay Gateway. Supports .NET 8.0 and .NET Standard 2.1 for ASP.NET Core, Blazor, and enterprise microservices with native System.Text.Json and dependency injection.

1. Installation

NuGet Package
$dotnet add package Kkhay

2. Invoice Creation Example

Program.cs
using Kkhay;
using Kkhay.Models;
var client = new KkhayClient("kkhay_live_YOUR_API_KEY");
var invoice = await client.CreateInvoiceAsync(new CreateInvoiceRequest
{
Amount = 99.99m,
Currency = "USD",
PayNetwork = "bsc",
PayToken = "USDT",
OrderId = "NET-ORDER-001",
Title = "Enterprise Cloud License",
CustomerEmail = "dev@enterprise.net",
RedirectUrl = "https://enterprise.net/billing/success"
});
Console.WriteLine($"Invoice ID: {invoice.Id}");
Console.WriteLine($"Checkout URL: {invoice.HostedUrl}");