TBankAcquiringNet.Payments 0.2.0-preview.3

Suggested Alternatives

TBankAcquiringNet

Additional Details

Упростили наименование библиотеки для удобного использования, TBankAcquiringNet без .Payments

This is a prerelease version of TBankAcquiringNet.Payments.
dotnet add package TBankAcquiringNet.Payments --version 0.2.0-preview.3
                    
NuGet\Install-Package TBankAcquiringNet.Payments -Version 0.2.0-preview.3
                    
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="TBankAcquiringNet.Payments" Version="0.2.0-preview.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TBankAcquiringNet.Payments" Version="0.2.0-preview.3" />
                    
Directory.Packages.props
<PackageReference Include="TBankAcquiringNet.Payments" />
                    
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 TBankAcquiringNet.Payments --version 0.2.0-preview.3
                    
#r "nuget: TBankAcquiringNet.Payments, 0.2.0-preview.3"
                    
#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 TBankAcquiringNet.Payments@0.2.0-preview.3
                    
#: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=TBankAcquiringNet.Payments&version=0.2.0-preview.3&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TBankAcquiringNet.Payments&version=0.2.0-preview.3&prerelease
                    
Install as a Cake Tool

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:

  • Init
  • GetState
  • CheckOrder
  • Cancel
  • Confirm
  • GetQr
  • ChargeQr
  • payment status notifications
  • account binding notifications
  • SHA-256 Token generation 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:

https://github.com/ai-iskuzhin/TBankAcquiringNet

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.3 is deprecated because it is no longer maintained.
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