TBankAcquiringNet.Payments
0.2.0-preview.3
Упростили наименование библиотеки для удобного использования, TBankAcquiringNet без .Payments
dotnet add package TBankAcquiringNet.Payments --version 0.2.0-preview.3
NuGet\Install-Package TBankAcquiringNet.Payments -Version 0.2.0-preview.3
<PackageReference Include="TBankAcquiringNet.Payments" Version="0.2.0-preview.3" />
<PackageVersion Include="TBankAcquiringNet.Payments" Version="0.2.0-preview.3" />
<PackageReference Include="TBankAcquiringNet.Payments" />
paket add TBankAcquiringNet.Payments --version 0.2.0-preview.3
#r "nuget: TBankAcquiringNet.Payments, 0.2.0-preview.3"
#:package TBankAcquiringNet.Payments@0.2.0-preview.3
#addin nuget:?package=TBankAcquiringNet.Payments&version=0.2.0-preview.3&prerelease
#tool nuget:?package=TBankAcquiringNet.Payments&version=0.2.0-preview.3&prerelease
TBankAcquiringNet.Payments
Dependency-light .NET SDK package for T-Bank acquiring payment flows.
Install
dotnet add package TBankAcquiringNet.Payments --prerelease
Supported API
TBankAcquiringNet.Payments currently includes typed support for:
InitGetStateCheckOrderCancelConfirmGetQrChargeQr- payment status notifications
- account binding notifications
- SHA-256
Tokengeneration and notification validation
Quick Start
using TBankAcquiringNet.Payments;
using var httpClient = new HttpClient();
var client = new TBankPaymentsClient(httpClient, new TBankPaymentsClientOptions
{
TerminalKey = "TinkoffBankTest",
Password = "...",
Environment = TBankAcquiringEnvironment.Test
});
var response = await client.InitAsync(new TBankInitPaymentRequest
{
OrderId = $"order-{Guid.NewGuid():N}",
Amount = TBankAmount.FromMinorUnits(15000),
Description = "Test payment"
});
Console.WriteLine(response.PaymentId);
Console.WriteLine(response.PaymentURL);
TerminalKey and Token are filled automatically before payment requests are sent. The terminal password is used locally to generate the request token and is not sent as a request field.
Notifications
var result = TBankPaymentNotificationValidator.Validate(notification, password);
if (!result.IsValid)
{
return Results.BadRequest();
}
return Results.Text(TBankPaymentNotificationValidator.SuccessResponseBody);
Error Handling
API responses with Success=false are returned as typed response models by default so callers can inspect ErrorCode, Message, Details, PaymentId, and OrderId.
Transport, protocol, and local validation failures are thrown as SDK exceptions.
Repository
Source, issue tracking, and full documentation live in the repository:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.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 | |
|---|---|---|---|
| 0.2.0-preview.3 | 105 | 6/2/2026 | |
| 0.2.0-preview.2 | 69 | 5/29/2026 | |
| 0.2.0-preview.1 | 72 | 5/27/2026 | |
| 0.1.0-preview.2 | 65 | 5/6/2026 |