Skip to content

RefundPlanErrorReason — @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 { RefundPlanErrorReason } from '@gj-kit/toss-payments/server';
type RefundPlanErrorReason = "invalid-quote" | "payment-key-mismatch" | "order-id-mismatch" | "currency-mismatch" | "stale-quote" | "expired-quote" | "payment-state-mismatch" | "pending-cancellation" | "partial-refund-not-allowed" | "partial-refund-before-deposit" | "forged-plan" | "forged-attempt" | "plan-metadata-mismatch" | "attempt-metadata-mismatch" | "missing-idempotency-key" | "invalid-request" | "refund-account-required" | "refund-account-not-allowed" | "tax-free-amount-not-allowed";

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