Skip to content

generateOrderId — @gj-kit/toss-payments

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

import { generateOrderId } from '@gj-kit/toss-payments';
/**
* 항상 유효한 OrderId 생성 — `${prefix}${epoch36}${rand}`.
* 6–64자 보장: 코어(epoch36 8자 + 난수 10자 = 18자)가 하한을 채우고,
* prefix는 허용 외 문자 제거 후 총 64자를 넘지 않게 절단한다.
*/
declare function generateOrderId(prefix?: string): OrderId;

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