Skip to content

memoryDepositSecretStore — @gj-kit/toss-payments

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

import { memoryDepositSecretStore } from '@gj-kit/toss-payments/testing';
/**
* orderId 키 인메모리 DepositSecretStore — saveSecret은 같은 orderId를 덮어쓴다(upsert 계약).
* confirm측 자동 저장 + 웹훅측 getSecret 대조를 한 객체로 배선하는 §3.1 인터페이스의
* 테스트용 구현이다.
*/
declare function memoryDepositSecretStore(): DepositSecretStore & {
secretOf(orderId: string): string | undefined;
};

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