Skip to content

recoverBillingKeyRecord — @gj-kit/toss-payments

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

import { recoverBillingKeyRecord } from '@gj-kit/toss-payments/server';
/**
* store-save-failed 에러에 동봉된 봉인 record에서 원본 {@link BillingKeyRecord}를 회수한다 —
* 반환된 record는 열거 가능한 billingKey 평문을 담으므로 **로그에 남기지 말고** store.save
* 재시도에만 사용할 것. 스프레드/직렬화 복제본은 봉인이 소실되어 Err('record-detached')다.
*/
declare function recoverBillingKeyRecord(sealed: SealedBillingKeyRecord): Result<BillingKeyRecord, {
readonly source: 'library';
readonly kind: 'record-detached';
readonly customerKey: 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