Skip to content

ConfirmedPayment — @gj-kit/toss-payments

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

import { ConfirmedPayment } from '@gj-kit/toss-payments/server';
/**
* 승인 API가 직접 반환한 결제.
*
* 일반 조회의 가상계좌 `secret`은 `null`일 수 있지만, confirm 성공으로 반환하는 가상계좌는
* DEPOSIT_CALLBACK을 검증할 non-empty secret을 반드시 포함한다. 이 좁힘은 2xx 응답의
* runtime 검사 뒤에만 부여된다.
*/
type ConfirmedPayment = (Exclude<Payment, VirtualAccountPayment> & {
readonly status: ConfirmedStatus;
}) | (VirtualAccountPayment & {
readonly status: ConfirmedStatus;
readonly secret: string;
});

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