Skip to main content

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
100%
Published
a week ago (0.1.1)
interface components

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

Properties

schemas: { Common: { additionalProperties?: string; OperationInitiatorType?:
"0"
| "1"
| "2"
| "R"
| "I"
; }
; T-Pay: { Device?:
"SDK"
| "Desktop"
| "MobileWeb"
; DeviceOs?: string; DeviceWebView?: boolean; DeviceBrowser?: string; TinkoffPayWeb?: boolean; }
; YandexPay: { YandexPayWeb: boolean; }; LongPay1: { ticketNumber?: string; ticketReservationNumber?: string; ticketSystem?: string; ticketAgencyCode?: string; ticketAgencyName?: string; ticketRestricted?: string; }; LongPay2: { ticketPassengerSurname%: string; ticketPassengerFirstname%: string; passengerPassport%?: string; passengerCountry%?: string; ticketPassengerBirthDate%?: string; }; LongPay3: { triplegDate#: string; triplegTime#?: string; triplegCarrier#: string; triplegFlightNumber#?: string; triplegClass#?: string; triplegDestinationFrom#: string; triplegDestinationTo#: string; triplegCountryFrom#?: string; triplegCountryTo#?: string; triplegStopover#?: string; triplegFareBasisCode#?: string; }; LongPay: { Параметры билета?: components["schemas"]["LongPay1"]; Параметры пассажира?: components["schemas"]["LongPay2"]; Параметры перелета?: components["schemas"]["LongPay3"]; }; AgentData: { AgentSign?: string; OperationName?: string; Phones?: string[]; ReceiverPhones?: unknown; TransferPhones?: unknown; OperatorName?: string; OperatorAddress?: string; OperatorInn?: string; }; SupplierInfo: { Phones?: string[]; Name?: string; Inn?: string; }; Items_FFD_105: { Name: string; Price: number; Quantity: number; Amount: number; PaymentMethod:
"full_prepayment"
| "prepayment"
| "advance"
| "full_payment"
| "partial_payment"
| "credit"
| "credit_payment"
; PaymentObject:
"commodity"
| "excise"
| "job"
| "service"
| "gambling_bet"
| "gambling_prize"
| "lottery"
| "lottery_prize"
| "intellectual_activity"
| "payment"
| "agent_commission"
| "composite"
| "another"
; Tax:
"none"
| "vat0"
| "vat10"
| "vat20"
| "vat110"
| "vat120"
; Ean13?: string; ShopCode?: string; AgentData?: components["schemas"]["AgentData"]; SupplierInfo?: components["schemas"]["SupplierInfo"]; }
; Payments: { Cash?: number; Electronic: number; AdvancePayment?: number; Credit?: number; Provision?: number; }; Receipt_FFD_105: { Items: components["schemas"]["Items_FFD_105"][]; FfdVersion: string; Email?: string; Phone?: string; Taxation:
"osn"
| "usn_income"
| "usn_income_outcome"
| "envd"
| "esn"
| "patent"
; Payments?: components["schemas"]["Payments"]; }
; ClientInfo: { Birthdate?: string; Citizenship?: string; DocumentСode?: string; DocumentData?: string; Address?: string; }; MarkCode: { MarkCodeType: string; Value: string; }; MarkQuantity: { Numerator?: number; Denominator?: number; }; SectoralItemProps: { FederalId: string; Date: string; Number: string; Value: string; }; Items_FFD_12: { AgentData?: components["schemas"]["AgentData"]; SupplierInfo?: components["schemas"]["SupplierInfo"]; Name: string; Price: number; Quantity: number; Amount: number; Tax:
"none"
| "vat0"
| "vat10"
| "vat20"
| "vat110"
| "vat120"
; PaymentMethod:
"full_prepayment"
| "prepayment"
| "advance"
| "full_payment"
| "partial_payment"
| "credit"
| "credit_payment"
; PaymentObject:
"commodity"
| "excise"
| "job"
| "service"
| "gambling_bet"
| "gambling_prize"
| "lottery"
| "lottery_prize"
| "intellectual_activity"
| "payment"
| "agent_commission"
| "contribution"
| "property_rights"
| "unrealization"
| "tax_reduction"
| "trade_fee"
| "resort_tax"
| "pledge"
| "income_decrease"
| "ie_pension_insurance_without_payments"
| "ie_pension_insurance_with_payments"
| "ie_medical_insurance_without_payments"
| "ie_medical_insurance_with_payments"
| "social_insurance"
| "casino_chips"
| "agent_payment"
| "excisable_goods_without_marking_code"
| "excisable_goods_with_marking_code"
| "goods_without_marking_code"
| "goods_with_marking_code"
| "another"
; UserData?: string; Excise?: string; CountryCode?: string; DeclarationNumber?: string; MeasurementUnit: string; MarkProcessingMode?: string; MarkCode?: components["schemas"]["MarkCode"]; MarkQuantity?: components["schemas"]["MarkQuantity"]; SectoralItemProps?: components["schemas"]["SectoralItemProps"]; }
; Receipt_FFD_12: { FfdVersion: string; ClientInfo?: components["schemas"]["ClientInfo"]; Taxation:
"osn"
| "usn_income"
| "usn_income_outcome"
| "envd"
| "esn"
| "patent"
; Email?: string; Phone?: string; Customer?: string; CustomerInn?: string; Items: components["schemas"]["Items_FFD_12"]; Payments?: components["schemas"]["Payments"]; }
; Shops: { ShopCode: string; Amount: number; Name?: string; Fee?: string; }; Init_FULL: { TerminalKey: string; Amount: number; OrderId: string; Token: string; Description?: string; CustomerKey?: string; Recurrent?: string; PayType?: "O" | "T"; Language?: string; NotificationURL?: string; SuccessURL?: string; FailURL?: string; RedirectDueDate?: unknown; DATA?:
components["schemas"]["Common"]
| components["schemas"]["T-Pay"]
| components["schemas"]["YandexPay"]
| components["schemas"]["LongPay"]
; Receipt?: components["schemas"]["Receipt_FFD_105"] | components["schemas"]["Receipt_FFD_12"]; Shops?: components["schemas"]["Shops"][]; Descriptor?: string; }
; Init_SDK: { TerminalKey: string; Amount: number; OrderId: string; Token: string; Description?: string; CustomerKey?: string; Recurrent?: string; PayType?: "O" | "T"; Language?: "ru" | "en"; NotificationURL?: string; SuccessURL?: string; FailURL?: string; RedirectDueDate?: string; DATA?:
components["schemas"]["Common"]
| components["schemas"]["T-Pay"]
| components["schemas"]["YandexPay"]
| components["schemas"]["LongPay"]
; Receipt?: components["schemas"]["Receipt_FFD_105"] | components["schemas"]["Receipt_FFD_12"]; Shops?: components["schemas"]["Shops"][]; }
; Response: { TerminalKey: string; Amount: number; OrderId: string; Success: boolean; Status: string; PaymentId: string; ErrorCode: string; PaymentURL?: string; Message?: string; Details?: string; }; PaymentData: { TerminalKey: string; Amount: number; OrderId?: string; Description?: string; DATA?: Record<string, never>; Receipt?: components["schemas"]["Receipt_FFD_105"]; }; PaymentInfos: { InfoEmail?: string; PaymentData: components["schemas"]["PaymentData"]; }; PaymentItem: { container: string; paymentInfo: components["schemas"]["PaymentInfos"]; }; T-Payweb: { TinkoffPay?: Record<string, never>; }; TbankFps: { TinkoffPay?: Record<string, never>; }; InitPayments: { container?: string; TerminalKey: string; paymentInfo?: components["schemas"]["PaymentInfos"]; paymentItems?: [components["schemas"]["PaymentItem"]]; paymentSystems?: components["schemas"]["T-Payweb"] | components["schemas"]["TbankFps"]; }; InitPaymentsResponse: { Success?: true | false; }; 3DSv2: { threeDSCompInd: string; language: string; timezone: string; screen_height: string; screen_width: string; cresCallbackUrl: string; colorDepth: string; javaEnabled: string; }; FinishAuthorize_FULL: { TerminalKey: string; PaymentId: string; Token: string; IP?: string; SendEmail?: boolean; Source?:
"cards"
| "beeline"
| "mts"
| "tele2"
| "megafon"
| "einvoicing"
| "webmoney"
| "YandexPay"
; DATA?: components["schemas"]["3DSv2"] | { [key: string]: string | undefined; }; InfoEmail?: string; EncryptedPaymentData?: string; CardData: string; Amount?: number; deviceChannel?: string; Route?:
"ACQ"
| "MC"
| "EINV"
| "WM"
; }
; 3DSv2SDK: { sdkAppID: string; sdkEncData: string; sdkEphemPubKey: string; sdkMaxTimeout: string; sdkReferenceNumber: string; sdkTransID: string; sdkInterface: string; sdkUiType: string; }; FinishAuthorize_SDK: { TerminalKey: string; PaymentId: string; Token: string; IP?: string; SendEmail?: boolean; Source?:
"cards"
| "einvoicing"
| "Installment"
| "qrsbp"
| "Bnpl"
| "MC"
| "RC"
| "VC"
| "TinkoffPay"
| "TinkoffWallet"
| "YandexPay"
| "UP"
; DATA?: components["schemas"]["3DSv2SDK"] | { [key: string]: string | undefined; }; InfoEmail?: string; EncryptedPaymentData?: string; CardData: string; }
; FinishAuthorize: { TerminalKey: string; Amount: number; OrderId: string; Success: boolean; Status: string; PaymentId?: string; ErrorCode: string; Message?: string; Details?: string; RebillId?: string; CardId?: string; }; Without3DS: components["schemas"]["FinishAuthorize"] & { CardId?: string; }; With3DS: components["schemas"]["FinishAuthorize"] & { MD?: string; PaReq?: string; ACSUrl?: string; }; With3DSv2APP:
components["schemas"]["FinishAuthorize"]
& Record<string, never>
& { TdsServerTransId: string; AcsTransId: string; AcsInterface?: string; AcsUiTemplate?: string; AcsSignedContent?: string; AcsReferenceNumber: string; SdkTransID: string; }
; With3DSv2BRW:
components["schemas"]["FinishAuthorize"]
& Record<string, never>
& { TdsServerTransId: string; AcsTransId: string; ACSUrl?: string; }
; Confirm: { TerminalKey: string; PaymentId: string; Token: string; IP?: string; Amount?: number; Receipt?: components["schemas"]["Receipt_FFD_12"] | components["schemas"]["Receipt_FFD_105"]; Shops?: components["schemas"]["Shops"][]; Route?: "TCB" | "BNPL"; Source?: "installment" | "BNPL"; }; Items_Params: { Route?:
"ACQ"
| "BNPL"
| "TCB"
| "SBER"
; Source?:
"BNPL"
| "cards"
| "Installment"
| "MirPay"
| "qrsbp"
| "SberPay"
| "TinkoffPay"
| "YandexPay"
; CreditAmount?: number; }
; Confirm-2: { TerminalKey: string; OrderId: string; Success: boolean; Status:
"NEW"
| "AUTHORIZING"
| "AUTHORIZED"
| "AUTH_FAIL"
| "CANCELED"
| "CHECKING"
| "CHECKED"
| "COMPLETING"
| "COMPLETED"
| "CONFIRMING"
| "CONFIRMED"
| "DEADLINE_EXPIRED"
| "FORM_SHOWED"
| "PARTIAL_REFUNDED"
| "PREAUTHORIZING"
| "PROCESSING"
| "3DS_CHECKING"
| "3DS_CHECKED"
| "REVERSING"
| "REVERSED"
| "REFUNDING"
| "REFUNDED"
| "REJECTED"
| "UNKNOWN"
; PaymentId: string; ErrorCode: string; Message?: string; Details?: string; Params?: components["schemas"]["Items_Params"][]; }
; ShopsCancel: { ShopCode: string; Amount: number; Name?: string; }; Cancel: { TerminalKey: string; PaymentId: string; Token: string; IP?: string; Amount?: number; Receipt?: components["schemas"]["Receipt_FFD_12"] | components["schemas"]["Receipt_FFD_105"]; Shops?: components["schemas"]["ShopsCancel"][]; QrMemberId?: string; Route?: "TCB" | "BNPL"; Source?: "installment" | "BNPL"; ExternalRequestId?: string; }; Cancel-2: { TerminalKey: string; OrderId: string; Success: boolean; Status: string; OriginalAmount: number; NewAmount: number; PaymentId: string; ErrorCode: string; Message?: string; Details?: string; ExternalRequestId?: string; }; Charge_FULL: { TerminalKey: string; PaymentId: string; RebillId: string; Token: string; IP?: string; SendEmail?: boolean; InfoEmail?: string; }; Charge_SDK: { TerminalKey: string; PaymentId: string; RebillId: string; Token: string; }; GetState_FULL: { TerminalKey: string; PaymentId: string; Token: string; IP?: string; }; GetState_SDK: { TerminalKey: string; PaymentId: string; Token: string; }; AddCustomer: { TerminalKey: string; CustomerKey: string; Token: string; IP?: string; Email?: string; Phone?: string; }; AddCustomerResponse: { TerminalKey: string; CustomerKey: string; ErrorCode: string; Success: boolean; Message?: string; Details?: string; }; GetOrRemoveCustomer: { TerminalKey: string; CustomerKey: string; Token: string; IP?: string; }; GetCustomerResponse: { TerminalKey: string; CustomerKey: string; ErrorCode: string; Success: boolean; Message?: string; Details?: string; Email?: string; Phone?: string; }; RemoveCustomerResponse: { TerminalKey: string; CustomerKey: string; ErrorCode: string; Success: boolean; Message?: string; Details?: string; }; AddCard_FULL: { TerminalKey: string; CustomerKey: string; Token: string; CheckType?:
"NO"
| "HOLD"
| "3DS"
| "3DSHOLD"
; IP?: string; ResidentState?: boolean; }
; AddCard_SDK: { TerminalKey: string; CustomerKey: string; Token: string; CheckType?:
"NO"
| "HOLD"
| "3DS"
| "3DSHOLD"
; }
; AddCardResponse_FULL: { PaymentId: string; TerminalKey: string; CustomerKey: string; RequestKey: string; ErrorCode: string; Success: boolean; Message?: string; Details?: string; PaymentURL: string; }; AddCardResponse_SDK: { PaymentId: string; TerminalKey: string; CustomerKey: string; RequestKey: string; ErrorCode: string; Success: boolean; Message?: string; Details?: string; }; AttachCard: { TerminalKey: string; RequestKey: string; CardData: string; DATA?: { [key: string]: string | undefined; } | components["schemas"]["3DSv2"]; Token: string; }; AttachCardResponse: { TerminalKey: string; CustomerKey: string; RequestKey: string; CardId: string; Success: boolean; ErrorCode: string; Status?:
"NEW"
| "FORM_SHOWED"
| "3DS_CHECKING"
| "3DS_CHECKED"
| "AUTHORIZING"
| "AUTHORIZED"
| "COMPLETED"
| "REJECTED"
; RebillId?: string; Message?: string; Details?: string; ACSUrl?: string; MD?: string; PaReq?: string; }
; GetAddCardState: { TerminalKey: string; RequestKey: string; Token: string; }; GetAddCardStateResponse: { TerminalKey: string; RequestKey: string; Status:
"NEW"
| "FORM_SHOWED"
| "3DS_CHECKING"
| "3DS_CHECKED"
| "AUTHORIZING"
| "AUTHORIZED"
| "COMPLETED"
| "REJECTED"
; Success: boolean; CardId?: string; RebillId?: string; ErrorCode?: string; Message?: string; Details?: string; CustomerKey?: string; }
; GetCardList_FULL: { TerminalKey: string; CustomerKey: string; SavedCard?: boolean; Token: string; IP?: string; }; GetCardList_SDK: { TerminalKey: string; CustomerKey: string; SavedCard?: boolean; Token: string; }; RemoveCard: { TerminalKey: string; CustomerKey: string; CardId: string; Token: string; IP?: string; }; RemoveCardResponse: { TerminalKey: string; Status: string; CustomerKey: string; CardId: string; CardType:
0
| 1
| 2
; Success: boolean; ErrorCode: string; Message?: string; Details?: string; }
; GetQr: { TerminalKey: string; PaymentId: string; DataType: "PAYLOAD" | "IMAGE"; Token: string; }; QrResponse_FULL: { TerminalKey: string; OrderId: string; Success: boolean; Data: string; PaymentId: string; ErrorCode: string; Message?: string; Details?: string; RequestKey: string; }; QrResponse_SDK: { TerminalKey: string; OrderId: string; Success: boolean; Data: string; PaymentId: string; ErrorCode: string; Message?: string; Details?: string; RequestKey: string; }; EventData: { SessionId?: string; Type?: string; AccessToken?: string; AccountId?: string; EventSessionId?: string; }; T-PayEvent: { TerminalKey: string; EventData: components["schemas"]["EventData"]; PaymentId?: string; Token: string; }; Member: { MemberId: string; MemberName: string; IsPayee: boolean; }; AddAccountQr: { TerminalKey: string; Description: string; DataType: "PAYLOAD" | "IMAGE"; Data?: { [key: string]: string | undefined; }; RedirectDueDate?: string; Token: string; }; AddAccountQrResponse: { TerminalKey: string; Data: string; RequestKey: string; ErrorCode: string; Success: boolean; Message?: string; }; GetAddAccountQrState: { RequestKey: string; TerminalKey: string; Token: string; }; GetAddAccountQrStateResponse: { TerminalKey: string; RequestKey: string; BankMemberId?: string; BankMemberName?: string; AccountToken?: string; Success: boolean; Status:
"NEW"
| "PROCESSING"
| "ACTIVE"
| "INACTIVE"
; ErrorCode: string; Message?: string; }
; GetAccountQrList: { TerminalKey: string; Token: string; }; GetAccountQrListResponse: { TerminalKey: string; Success: boolean; ErrorCode: string; Message?: string; AccountTokens?: { RequestKey?: string; Status?:
"NEW"
| "PROCESSING"
| "ACTIVE"
| "INACTIVE"
; AccountToken?: string; BankMemberId?: string; BankMemberName?: string; }
; }
; ChargeQr: { TerminalKey: string; PaymentId: string; AccountToken: string; Token: string; IP?: string; SendEmail?: boolean; InfoEmail?: string; }; ChargeQrResponse: { TerminalKey: string; Amount: number; OrderId: string; Success: boolean; Status?: "CONFIRMED" | "REJECTED"; PaymentId: string; ErrorCode: string; Message?: string; Details?: string; Currency?: number; }; SbpPayTest: { TerminalKey: string; PaymentId: string; Token: string; IsDeadlineExpired?: boolean; IsRejected?: boolean; }; SbpPayTestResponse: { Success: boolean; ErrorCode: string; Message: string; Details: string; }; GetQRStateResponse_FULL: { Success: true | false; ErrorCode: string; Status?: string; QrCancelCode?: string; QrCancelMessage?: string; OrderId?: string; Amount?: number; Message?: string; }; GetQRStateResponse_SDK: { Success: true | false; ErrorCode: string; Status?: string; QrCancelCode?: string; QrCancelMessage?: string; OrderId?: string; Amount?: number; Message?: string; }; CheckOrder: { TerminalKey: string; OrderId: string; Token: string; }; PaymentsCheckOrder: { PaymentId: string; Amount?: number; Status: string; RRN?: string; Success: string; ErrorCode: number; Message: string; }; CheckOrder-2: { TerminalKey: string; OrderId: string; Success: boolean; ErrorCode: string; Message?: string; Details?: string; Payments: components["schemas"]["PaymentsCheckOrder"][]; }; SendClosingReceipt: { TerminalKey: string; PaymentId: string; Receipt: components["schemas"]["Receipt_FFD_12"] | components["schemas"]["Receipt_FFD_105"]; Token: string; }; SendClosingReceipt-2: { Success: boolean; ErrorCode: string; Message?: string; }; DataNotification: { Route?: "TCB"; Source?: "Installment"; CreditAmount?: number; }; NotificationPayment: { TerminalKey?: string; Amount?: number; OrderId?: string; Success?: boolean; Status?: string; PaymentId?: string; ErrorCode?: string; Message?: string; Details?: string; RebillId?: number; CardId?: number; Pan?: string; ExpDate?: string; Token?: string; DATA?: components["schemas"]["DataNotification"]; }; NotificationAddCard: { TerminalKey?: string; CustomerKey?: string; RequestKey?: string; Success?: boolean; Status?: "COMPLETED" | "REJECTED"; PaymentId?: string; ErrorCode?: string; RebillId?: string; CardId?: string; Pan?: string; ExpDate?: string; Token?: string; }; Receipt_FFD_12-2: { FfdVersion?: string; ClientInfo?: components["schemas"]["ClientInfo"]; Taxation?:
"osn"
| "usn_income"
| "usn_income_outcome"
| "envd"
| "esn"
| "patent"
; Email?: string; Phone?: string; Customer?: string; CustomerInn?: string; Items?: components["schemas"]["Items_FFD_12"][]; Payments?: components["schemas"]["Payments"][]; }
; Receipt_FFD_105-2: { Items?: components["schemas"]["Items_FFD_105"][]; FfdVersion: string; Email?: string; Phone?: string; Taxation?:
"osn"
| "usn_income"
| "usn_income_outcome"
| "envd"
| "esn"
| "patent"
; Payments?: components["schemas"]["Payments"][]; }
; NotificationFiscalization: { TerminalKey?: string; OrderId?: string; Success?: boolean; Status: string; PaymentId?: string; ErrorCode?: string; ErrorMessage?: string; Amount?: number; FiscalNumber?: number; ShiftNumber?: number; ReceiptDatetime?: string; FnNumber?: string; EcrRegNumber?: string; FiscalDocumentNumber?: number; FiscalDocumentAttribute?: number; Receipt?: components["schemas"]["Receipt_FFD_12-2"] | components["schemas"]["Receipt_FFD_105-2"]; Type?: string; Token?: string; Ofd?: string; Url?: string; QrCodeUrl?: string; CalculationPlace?: string; CashierName?: string; SettlePlace?: string; }; NotificationQr: { TerminalKey: string; RequestKey: string; AccountToken?: string; BankMemberId?: string; BankMemberName?: string; NotificationType: string; Success: boolean; ErrorCode: string; Message?: string; Token: string; Status: string; }; GetDeepLink: { TerminalKey: string; PaymentId: string; Token: string; }; GetDeepLinkResponse: { Success: true | false; ErrorCode: string; Deeplink?: string; Message?: string; Details?: string; }; GetTerminalPayMethods: { TerminalKey: string; Paysource: string; }; Paymethod: { PayMethod: string; Params?: Record<string, never>; }; GetTerminalPayMethodsResponse: { Success: true | false; ErrorCode: string; Message?: string; Details?: string; TerminalInfo: Record<string, never>; TerminalInfo.Paymethods?: components["schemas"]["Paymethod"][]; TerminalInfo.AddCardScheme: true | false; TerminalInfo.TokenRequired: true | false; TerminalInfo.InitTokenRequired: true | false; }; by_url: { TerminalKey: string; CallbackUrl: string; PaymentIdList: number[]; Token: string; }; by_email: { TerminalKey: string; PaymentIdList: number[]; EmailList: string[]; Token: string; }; PaymentIdListForGCO: { Success: boolean; ErrorCode: string; Message: string; PaymentId: string; }; response_by_url: { Success: boolean; ErrorCode: string; Message?: string; PaymentIdList: components["schemas"]["PaymentIdListForGCO"][]; }; response_by_email: { Success: boolean; ErrorCode: string; Message?: string; PaymentIdList: components["schemas"]["PaymentIdListForGCO"][]; }; }

Add Package

deno add @kravets/t-kassa-api

Import symbol

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

Add Package

npx jsr add @kravets/t-kassa-api

Import symbol

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

Add Package

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

Import symbol

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

Add Package

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

Import symbol

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

Add Package

bunx jsr add @kravets/t-kassa-api

Import symbol

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