RenderedTossWidgets — @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.
Verified import example
Section titled “Verified import example”import { RenderedTossWidgets } from '@gj-kit/toss-payments/browser';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** 상태 2: 렌더 완료 — 여기서만 결제 요청이 가능하다. */interface RenderedTossWidgets { requestPayment(request: WidgetPaymentRequest): Promise<Result<PaymentRequestOutcome, SdkError>>; setAmount(amount: WidgetAmount): Promise<Result<RenderedTossWidgets, WidgetError>>; getSelectedPaymentMethod(): Promise<Result<{ readonly code: string; }, WidgetError>>; /** * 결제수단 선택 이벤트 구독. 반환 함수로 구독을 해제한다 — * SDK on()은 해제를 제공하지 않으므로 래퍼가 활성 플래그로 전달을 중단한다. */ on(event: 'paymentMethodSelect', handler: (m: { code: string; }) => void): () => void; destroy(): Promise<void>;}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.
Release context
Section titled “Release context”- Package:
@gj-kit/toss-payments - Version:
0.6.1 - Public entry:
./browser - Source: GitHub