Skip to content

KnownCardIssuerCode — @gj-kit/toss-payments

A public type from @gj-kit/toss-payments. The signature below is taken directly from the 0.6.1 release declaration.

import { KnownCardIssuerCode } from '@gj-kit/toss-payments';
/**
* 카드사 두 자리 코드 → 한글 표시명 — 공식 "기관 코드" 표(docs.tosspayments.com/codes/org-codes,
* 문서 ID 118, "카드사 코드" 국내·해외) 전사. 응답 `card.issuerCode` / `card.acquirerCode`는
* 항상 이 두 자리 코드다(한글·영문 코드는 요청 전용).
*
* 표시명은 문서의 "카드사" 열 그대로이되, 우리 계열 두 행의 매입사 괄호("(BC 매입)"/
* "(우리 매입)")만 뗐다 — 화면 표기용이기 때문. 뜻은 문서 참고 문구와 같다:
* `33` 우리BC카드는 BC 매입, `W1` 우리카드는 우리 매입(응답 전용 코드).
*/
/**
* Card issuer/acquirer codes that Toss documents on its "기관 코드" page (`/codes/org-codes`,
* "카드사 코드" — domestic and overseas). Responses (`card.issuerCode`, `card.acquirerCode`)
* always carry one of these two-character codes; the Korean/English aliases are request-only.
*
* This union is a documentation aid for exhaustive tables; {@link cardIssuerName} accepts any
* string so a code Toss adds later degrades to `undefined`, not to a compile error.
*/
type KnownCardIssuerCode = '3K' | '46' | '71' | '30' | '31' | '51' | '38' | '41' | '62' | '36' | '33' | 'W1' | '37' | '39' | '35' | '42' | '15' | '3A' | '24' | '21' | '61' | '11' | '91' | '34' | '6D' | '4M' | '3C' | '7A' | '4J' | '4V';

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/toss-payments
  • Version: 0.6.1
  • Public entry: .
  • Source: GitHub