Acquiring
TBankAcquiringNet
.NET SDK for T-Bank (Tinkoff) acquiring
netstandard2.0net8.0net10.0
Features
- Init / GetState / Confirm / Cancel
- Refunds and order checks
- QR and SBP: status, bank list, account linking
- Payment-status notification verification
- Automatic SHA-256 token generation
Installation
dotnet add package TBankAcquiringNetQuick start
using TBankAcquiringNet;
using var httpClient = new HttpClient();
var client = new TBankPaymentsClient(httpClient, new TBankPaymentsClientOptions
{
TerminalKey = "TinkoffBankTest",
Password = "YOUR_TERMINAL_PASSWORD",
Environment = TBankAcquiringEnvironment.Test,
});
var response = await client.InitAsync(new TBankInitPaymentRequest
{
OrderId = $"order-{Guid.NewGuid():N}",
Amount = TBankAmount.FromMinorUnits(15000), // 150.00 RUB
Description = "Test payment",
});
if (response.Success)
Console.WriteLine(response.PaymentURL);Key methods
InitAsyncInitialise a paymentGetStateAsyncCurrent payment statusConfirmAsyncConfirm a paymentCancelAsyncCancel or refundGetQrAsyncQR / SBP paymentREADMEgithub.com/ai-iskuzhin/TBankAcquiringNet
Loading README from the repository…