Skip to content

VirtualAccountPayment — @gj-kit/toss-payments

A public interface from @gj-kit/toss-payments. The signature below is taken directly from the 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;
}

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