Skip to content

TossWidgetsWithAmount — @gj-kit/toss-payments

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

import { TossWidgetsWithAmount } from '@gj-kit/toss-payments/browser';
/** 상태 1: 금액 설정됨 — 렌더링 가능. setAmount는 쿠폰 등 금액 변경용으로 남는다. */
interface TossWidgetsWithAmount {
renderPaymentMethods(options: {
readonly selector: string;
readonly variantKey?: string;
}): Promise<Result<RenderedTossWidgets, WidgetError>>;
renderAgreement(options: {
readonly selector: string;
readonly variantKey?: string;
}): Promise<Result<AgreementWidget, WidgetError>>;
setAmount(amount: WidgetAmount): Promise<Result<TossWidgetsWithAmount, WidgetError>>;
}

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