콘텐츠로 이동

VirtualAccountPayment — @gj-kit/toss-payments

@gj-kit/toss-payments에서 공개하는 interface입니다. package version 0.6.1의 release declaration을 그대로 표시합니다.

import { VirtualAccountPayment } from '@gj-kit/toss-payments';
interface VirtualAccountPayment extends PaymentBase {
readonly method: '가상계좌';
readonly virtualAccount: VirtualAccountDetails;
/**
* 가상계좌 승인 응답에서만 내려오는 DEPOSIT_CALLBACK 대조값.
*
* 결제 조회 API는 같은 가상계좌 결제라도 `null`을 반환할 수 있다. 따라서 일반
* `Payment` 조회 결과에서 이 값을 복구할 수 있다고 가정하면 안 된다. confirm 응답에서
* secret을 보장해야 하는 코드는 server의 `ConfirmedPayment`를 사용한다.
*/
readonly secret: string | null;
readonly card: null;
}

이 선언은 매개변수, optionality, 제네릭, 반환값, 공개 union/type 계약의 정본입니다. 호출 전 필요한 환경·권한·오류 경계는 패키지 Golden path와 이 subpath의 import 조건을 함께 확인하세요.

  • 패키지: @gj-kit/toss-payments
  • 버전: 0.6.1
  • 공개 entry: .
  • 소스: GitHub