Skip to content

PaymentRequestOutcome — @gj-kit/toss-payments

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

import { PaymentRequestOutcome } from '@gj-kit/toss-payments/browser';
/**
* 결제 요청 결과 — 사용자 취소는 에러가 아니다.
* 리다이렉트 모드 고정: 프로미스 모드는 모바일 미지원(문서 근거)이라 제공하지 않는다.
*/
type PaymentRequestOutcome = {
readonly kind: 'redirecting';
} | {
readonly kind: 'user-canceled';
readonly code: 'USER_CANCEL' | 'PAY_PROCESS_CANCELED';
readonly message: 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: ./browser
  • Source: GitHub