Skip to main content
This release is 8 versions behind 0.3.2 — the latest version of @kravets/t-kassa-api. Jump to latest

Built and signed on GitHub Actions

SDK для Т-Кассы (тинькофф платежи)

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
94%
Published
3 months ago (0.1.1)
interface operations

Сгенерированные из OpenAPI типы для operations

Properties

Init: { requestBody: { content: { application/json: components["schemas"]["Init_FULL"] | components["schemas"]["Init_SDK"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["Response"]; }; }; }; }
InitPayments: { requestBody: { content: { application/json: components["schemas"]["InitPayments"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["InitPaymentsResponse"]; }; }; }; }
Check3dsVersion: { requestBody: { content: { application/json: { PaymentId: string; TerminalKey: string; CardData: unknown; Token: string; }; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: { Version: string; TdsServerTransID?: string; ThreeDSMethodURL?: string; PaymentSystem: string; Success: boolean; ErrorCode: string; Message?: string; Details?: string; }; }; }; }; }
FinishAuthorize: { requestBody: { content: { application/json: components["schemas"]["FinishAuthorize_FULL"] | components["schemas"]["FinishAuthorize_SDK"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json:
components["schemas"]["Without3DS"]
| components["schemas"]["With3DS"]
| components["schemas"]["With3DSv2APP"]
| components["schemas"]["With3DSv2BRW"]
; }
; }
; }
; }
Confirm: { requestBody: { content: { application/json: components["schemas"]["Confirm"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["Confirm-2"]; }; }; }; }
Cancel: { requestBody: { content: { application/json: components["schemas"]["Cancel"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["Cancel-2"]; }; }; }; }
ChargePCI: { requestBody: { content: { application/json: components["schemas"]["Charge_FULL"] | components["schemas"]["Charge_SDK"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: { TerminalKey: string; Amount: number; OrderId: string; Success: boolean; Status: string; PaymentId: string; ErrorCode: string; Message?: string; Details?: string; }; }; }; }; }
GetState: { requestBody: { content: { application/json: components["schemas"]["GetState_FULL"] | components["schemas"]["GetState_SDK"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: { TerminalKey: string; Amount: number; OrderId: string; Success: boolean; Status: string; PaymentId: string; ErrorCode: string; Message?: string; Details?: string; Params?: components["schemas"]["Items_Params"][]; }; }; }; }; }
AddCustomer: { requestBody: { content: { application/json: components["schemas"]["AddCustomer"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["AddCustomerResponse"]; }; }; }; }
GetCustomer: { requestBody: { content: { application/json: components["schemas"]["GetOrRemoveCustomer"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["GetCustomerResponse"]; }; }; }; }
RemoveCustomer: { requestBody: { content: { application/json: components["schemas"]["GetOrRemoveCustomer"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["RemoveCustomerResponse"]; }; }; }; }
AddCard: { requestBody: { content: { application/json: components["schemas"]["AddCard_FULL"] | components["schemas"]["AddCard_SDK"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["AddCardResponse_FULL"] | components["schemas"]["AddCardResponse_SDK"]; }; }; }; }
AttachCard: { requestBody: { content: { application/json: components["schemas"]["AttachCard"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["AttachCardResponse"]; }; }; }; }
GetAddCardState: { requestBody: { content: { application/json: components["schemas"]["GetAddCardState"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["GetAddCardStateResponse"]; }; }; }; }
GetCardList: { requestBody: { content: { application/json: components["schemas"]["GetCardList_FULL"] | components["schemas"]["GetCardList_SDK"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: { CardId: string; Pan: string; Status:
"A"
| "I"
| "D"
; RebillId?: string; CardType:
0
| 1
| 2
; ExpDate?: string; }[]
; }
; }
; }
; }
RemoveCard: { requestBody: { content: { application/json: components["schemas"]["RemoveCard"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["RemoveCardResponse"]; }; }; }; }
GetQr: { requestBody: { content: { application/json: components["schemas"]["GetQr"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["QrResponse_FULL"] | components["schemas"]["QrResponse_SDK"]; }; }; }; }
SubmitRandomAmount: { requestBody: { content: { application/json: { TerminalKey: string; RequestKey: string; Amount: number; Token: string; }; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: { TerminalKey: string; CustomerKey: string; RequestKey: string; RebillId?: string; CardId: string; Success: boolean; ErrorCode: string; Message?: string; Details?: string; Status?: string; }; }; }; }; }
Submit3DSAuthorization: { requestBody: { content: { application/x-www-form-urlencoded: { MD: string; PaRes: string; PaymentId?: string; TerminalKey?: string; Token?: string; }; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: { TerminalKey: string; OrderId: string; Success: boolean; Status: string; PaymentId: string; ErrorCode: string; Message?: string; Details?: string; }; }; }; }; }
Submit3DSAuthorizationV2: { requestBody: { content: { application/x-www-form-urlencoded: { PaymentId: string; TerminalKey: string; Token: string; }; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: { OrderId: string; TerminalKey: string; Status: string; PaymentId: string; Success: boolean; ErrorCode: string; Message?: string; Details?: string; }; }; }; }; }
Status: { parameters: { path: { TerminalKey: string; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: { Params: { Allowed: boolean; Version?: string; }; Success: boolean; ErrorCode: string; Message?: string; Details?: string; }; }; }; }; }
QR: { parameters: { path: { paymentId: number; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { image/svg: unknown; }; }; }; }
SberPayQR: { parameters: { path: { paymentId: string; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { image/svg: unknown; }; }; }; }
T-PayEvent: { requestBody: { content: { application/json: components["schemas"]["T-PayEvent"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: { Success: true | false; ErrorCode: string; Message?: string; Details?: string; }; }; }; }; }
QrMembersList: { requestBody: { content: { application/json: { TerminalKey: string; PaymentId: string; Token: string; }; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: { Members?: components["schemas"]["Member"][]; OrderId: string; Success: boolean; ErrorCode: string; Message?: string; }; }; }; }; }
AddAccountQr: { requestBody: { content: { application/json: components["schemas"]["AddAccountQr"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["AddAccountQrResponse"]; }; }; }; }
GetAddAccountQrState: { requestBody?: { content: { application/json: components["schemas"]["GetAddAccountQrState"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["GetAddAccountQrStateResponse"]; }; }; }; }
GetAccountQrList: { requestBody?: { content: { application/json: components["schemas"]["GetAccountQrList"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["GetAccountQrListResponse"]; }; }; }; }
ChargeQr: { requestBody: { content: { application/json: components["schemas"]["ChargeQr"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["ChargeQrResponse"]; }; }; }; }
SbpPayTest: { requestBody: { content: { application/json: components["schemas"]["SbpPayTest"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["SbpPayTestResponse"]; }; }; }; }
GetQRState: { requestBody: { content: { application/json: { TerminalKey: string; PaymentId: string; Token: string; }; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["GetQRStateResponse_FULL"] | components["schemas"]["GetQRStateResponse_SDK"]; }; }; }; }
CheckOrder: { requestBody: { content: { application/json: components["schemas"]["CheckOrder"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["CheckOrder-2"]; }; }; }; }
SendClosingReceipt: { requestBody: { content: { application/json: components["schemas"]["SendClosingReceipt"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["SendClosingReceipt-2"]; }; }; }; }
GetTerminalPayMethods: { requestBody: { content: { application/json: components["schemas"]["GetTerminalPayMethods"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["GetTerminalPayMethodsResponse"]; }; }; }; }
GetConfirmOperation: { requestBody?: { content: { application/json: components["schemas"]["by_url"] | components["schemas"]["by_email"]; }; }; responses: { 200: { headers: { [name: string]: unknown; }; content: { application/json: components["schemas"]["response_by_url"] | components["schemas"]["response_by_email"]; }; }; }; }
Notification: { requestBody?: { content: { application/json:
components["schemas"]["NotificationPayment"]
| components["schemas"]["NotificationAddCard"]
| components["schemas"]["NotificationFiscalization"]
| components["schemas"]["NotificationQr"]
; }
; }
; responses: { 200: { headers: { [name: string]: unknown; }; }; }; }

Add Package

deno add jsr:@kravets/t-kassa-api

Import symbol

import { type operations } from "@kravets/t-kassa-api/openapi";

---- OR ----

Import directly with a jsr specifier

import { type operations } from "jsr:@kravets/t-kassa-api/openapi";

Add Package

npx jsr add @kravets/t-kassa-api

Import symbol

import { type operations } from "@kravets/t-kassa-api/openapi";

Add Package

yarn dlx jsr add @kravets/t-kassa-api

Import symbol

import { type operations } from "@kravets/t-kassa-api/openapi";

Add Package

pnpm dlx jsr add @kravets/t-kassa-api

Import symbol

import { type operations } from "@kravets/t-kassa-api/openapi";

Add Package

bunx jsr add @kravets/t-kassa-api

Import symbol

import { type operations } from "@kravets/t-kassa-api/openapi";