Skip to content

CancelError — @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 { CancelError } from '@gj-kit/toss-payments/server';
type CancelError = TossApiFailure<CancelErrorCode>
/** 응답 유실 — retry(ticket)로 동일 멱등키+동일 body 재실행. */
| (TransportFailure & {
readonly retry: CancelRetryTicket;
}) | CancelPreflightError | {
/** provider가 취소 트랜잭션을 최종 거부했다. 같은 멱등키 재시도로 성공시킬 수 없다. */
readonly source: 'library';
readonly kind: 'cancel-aborted';
readonly paymentKey: PaymentKey;
readonly transactionKey: string;
readonly cancelRequestId: 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