Skip to content

requestBillingAuth — @gj-kit/toss-payments

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

import { requestBillingAuth } from '@gj-kit/toss-payments/browser';
/**
* 자동결제(빌링) 등록 인증창을 연다. 성공 시 successUrl로 리다이렉트되며
* 서버에서 parseBillingAuthCallback → confirmPendingAuth → issue로 이어진다.
* 사용자 취소(USER_CANCEL / PAY_PROCESS_CANCELED)는 에러가 아닌 user-canceled variant다.
*/
declare function requestBillingAuth(clientKey: ApiClientKey, customer: WidgetCustomerKey, request: BillingAuthRequest): Promise<Result<PaymentRequestOutcome, SdkError>>;

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