Skip to content

CardDetails — @gj-kit/toss-payments

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

import { CardDetails } from '@gj-kit/toss-payments/server';
interface CardDetails {
readonly amount: number;
readonly issuerCode: string;
readonly acquirerCode: string | null;
/** 마스킹된 카드번호. */
readonly number: string;
readonly installmentPlanMonths: number;
readonly approveNo: string;
readonly useCardPoint: boolean;
readonly cardType: '신용' | '체크' | '기프트' | '미확인';
readonly ownerType: '개인' | '법인' | '미확인';
readonly acquireStatus: string;
readonly isInterestFree: boolean;
readonly interestPayer: string | null;
}

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: ./server
  • Source: GitHub