.NET SDK
Official .NET (C#) SDK for the Wire payment API.
The official .NET (C#) SDK for Wire.
- Repository: github.com/buildry-wire/wire-dotnet
- NuGet: nuget.org/packages/Wirepayment
Install
dotnet add package WirepaymentFirst call
using Wire;
using var wire = new WireClient("sk_live_...");
// Amounts are whole tögrög (15000 = 15,000 ₮). Without allowed_operators every operator switched on for your project is used.
var pi = await wire.PaymentIntents.CreateAsync(new PaymentIntentCreateParams
{
Amount = 15000,
Currency = "MNT",
Description = "Order #1001", // transaction description (optional)
});
var confirmed = await wire.PaymentIntents.ConfirmAsync(pi.Id);
Console.WriteLine($"{confirmed.Id} {confirmed.Status}");