Skip to content

createPgDepositSecretStore — @gj-kit/toss-payments-postgresql

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

import { createPgDepositSecretStore } from '@gj-kit/toss-payments-postgresql';
/**
* DepositSecretStore PostgreSQL 구현 (설계 §3.2).
*
* 코어 계약의 핵심 불변식:
* - `saveSecret`은 **upsert 시맨틱 계약**이다(코어 TSDoc) — 기존 수동 저장과 병용해도
* 이중 저장이 무해해야 한다.
* - 한 객체가 confirm측 자동 저장 + 웹훅측 getSecret 대조 양쪽에 배선된다 — 저장 누락
* → DEPOSIT_CALLBACK 전부 unknown-order 거부가 되는 사고를 구조로 막는 §3.1 seam.
* - ⚠ secret 값은 어떤 에러 메시지·로그에도 싣지 않는다.
*/
declare function createPgDepositSecretStore(sql: SqlExecutor, options: PgSensitiveStoreOptions): DepositSecretStore;

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-postgresql
  • Version: 0.5.1
  • Public entry: .
  • Source: GitHub