@tosspayments/tosspayments-sdk 2.1.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.1](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/tosspayments-sdk@2.2.0...@tosspayments/tosspayments-sdk@2.2.1) (2024-07-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **tosspayments-sdk:** 위젯 연동시 필요한 type export ([#116](https://github.com/tosspayments/browser-sdk/issues/116)) ([724501c](https://github.com/tosspayments/browser-sdk/commit/724501c8ad79e395d29b0b11191d6e296d0f8134))
12
+
13
+
14
+
15
+
16
+
17
+ # [2.2.0](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/tosspayments-sdk@2.1.0...@tosspayments/tosspayments-sdk@2.2.0) (2024-07-03)
18
+
19
+
20
+ ### Features
21
+
22
+ * ANONYMOUS 상수 함께 내보내기 ([#115](https://github.com/tosspayments/browser-sdk/issues/115)) ([3a6c7b3](https://github.com/tosspayments/browser-sdk/commit/3a6c7b37decc5b7c912430342206eb2c098c868c))
23
+
24
+
25
+
26
+
27
+
6
28
  # [2.1.0](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/tosspayments-sdk@2.0.0...@tosspayments/tosspayments-sdk@2.1.0) (2024-07-02)
7
29
 
8
30
 
package/dist/index.cjs.js CHANGED
@@ -280,5 +280,8 @@ function loadTossPayments(clientKey) {
280
280
  });
281
281
  }
282
282
 
283
+ var ANONYMOUS = '@@ANONYMOUS';
284
+
285
+ exports.ANONYMOUS = ANONYMOUS;
283
286
  exports.clearTossPayments = clearTossPayments;
284
287
  exports.loadTossPayments = loadTossPayments;
package/dist/index.esm.js CHANGED
@@ -276,4 +276,6 @@ function loadTossPayments(clientKey) {
276
276
  });
277
277
  }
278
278
 
279
- export { clearTossPayments, loadTossPayments };
279
+ var ANONYMOUS = '@@ANONYMOUS';
280
+
281
+ export { ANONYMOUS, clearTossPayments, loadTossPayments };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tosspayments/tosspayments-sdk",
3
3
  "description": "TossPayments.js Tosspayments SDK.",
4
- "version": "2.1.0",
4
+ "version": "2.2.1",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "types/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "@rollup/plugin-commonjs": "^21.0.1",
22
22
  "@rollup/plugin-typescript": "^8.3.0",
23
23
  "@tosspayments/sdk-loader": "2.0.1",
24
- "@tosspayments/standard-public-interfaces": "^2.0.0",
24
+ "@tosspayments/standard-public-interfaces": "2.0.2",
25
25
  "happy-dom": "^14.12.3",
26
26
  "prettier": "^2.0.2",
27
27
  "rollup": "^2.60.0",
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "26276eb5e26fe37934baa77eb68e8a4ab55d1e19"
41
+ "gitHead": "32f15f03267096258d766409ce4c69f572cd5828"
42
42
  }
package/types/index.d.ts CHANGED
@@ -14,18 +14,18 @@ interface WidgetPaymentMethodWidget {
14
14
  *
15
15
  * @example
16
16
  * ```javascript
17
- * widgets.on('paymentMethodSelect', selectedPaymentMethod => {
18
- if (paymentMethodSelected.code === '문화바우처') {
19
- // 문화바우처 안내사항 노출
20
- }
21
-
22
- if (paymentMethodSelected.code === '카드') {
17
+ * paymentMethodWidget.on('paymentMethodSelect', selectedPaymentMethod => {
18
+ if (selectedPaymentMethod.code === '카드') {
23
19
  // 카드 안내사항 노출
24
20
  }
21
+ if (selectedPaymentMethod.code === '문화바우처') {
22
+ // 커스텀 결제수단 (결제위젯 Pro 플랜 기능)
23
+ // 문화바우처 안내사항 노출
24
+ }
25
25
  });
26
26
  * ```
27
27
  *
28
- * @param {'paymentMethodSelect'} eventName 구독할 이벤트입니다. `paymentMethodSelect` 이벤트로 구매자가 선택한 결제수단 정보를 확인하세요.
28
+ * @param {'paymentMethodSelect'} eventName 구독할 이벤트입니다. `paymentMethodSelect` 이벤트로 구매자가 선택한 결제수단 코드를 확인하세요. 일반결제는 [결제수단 ENUM 코드](/codes/enum-codes#결제수단-타입)가 응답돼요. 결제위젯 Pro 플랜으로 [커스텀 결제수단](/guides/v2/payment-widget/pro/integration-custom)을 연동했다면 결제위젯 어드민에서 설정한 `key` 값이 응답돼요.
29
29
  * @param {function} callback 이벤트가 일어나면 호출되는 콜백 함수입니다.
30
30
  *
31
31
  * @throws {@link PublicError.Widgets.InvalidEventParameterError} eventName이 유효하지 않은 경우
@@ -216,6 +216,9 @@ interface WidgetPaymentRequest {
216
216
  * 구매자가 해외간편결제를 선택하면 결제에 적용되는 옵션입니다.
217
217
  */
218
218
  foreignEasyPay?: {
219
+ /**
220
+ * 구매자가 위치한 국가입니다. ISO-3166의 두 자리 국가 코드를 입력하세요.
221
+ */
219
222
  country: string;
220
223
  /**
221
224
  * 구매 상품 정보입니다. 여러 가지의 상품을 결제했다면 각 상품의 정보를 입력하세요. 예를 들어, 구매자가 세 가지 종류의 상품을 구매했다면 배열의 길이는 3이어야 합니다.
@@ -307,7 +310,7 @@ interface Amount {
307
310
  */
308
311
  value: number;
309
312
  /**
310
- * 결제 통화입니다.
313
+ * 결제 통화입니다. 일반결제는 `KRW`만 지원합니다. 해외 간편결제(PayPal)는 `USD`만 지원합니다.
311
314
  */
312
315
  currency: string;
313
316
  }
@@ -458,9 +461,9 @@ type RequestPaymentWithPromise$1 = (paymentRequest: WidgetPaymentRequest) => Pro
458
461
  /**
459
462
  * @docsAlias Redirect 방식
460
463
  *
461
- * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
464
+ * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 메서드 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
462
465
  * ```plain theme="grey" copyable="false"
463
- * {successUrl}?amount={AMOUNT}&orderId={ORDER_ID}&paymentKey={PAYMENT_KEY}
466
+ * {successUrl}?paymentType={PAYMENT_TYPE}&amount={AMOUNT}&orderId={ORDER_ID}&paymentKey={PAYMENT_KEY}
464
467
  * ```
465
468
  * 결제 요청이 실패하면 파라미터로 설정한 `failUrl`로 이동해요. 쿼리 파라미터로 에러 코드와 메시지를 확인하세요.
466
469
  * ```plain theme="grey" copyable="false"
@@ -526,6 +529,9 @@ interface TossPaymentsWidgets {
526
529
  }
527
530
 
528
531
  interface BrandpayAmount extends Amount {
532
+ /**
533
+ * 결제 통화입니다. 브랜드페이는 `KRW` 결제만 지원합니다.
534
+ */
529
535
  currency: 'KRW';
530
536
  }
531
537
 
@@ -565,6 +571,9 @@ interface BrandpayRequestPaymentResult {
565
571
  * 주문번호입니다. 결제를 요청할 때 호출한 `requestPayment()` 메서드로 넘긴 `orderId` 값과 같은지 확인하세요.
566
572
  */
567
573
  orderId: string;
574
+ /**
575
+ * 결제 금액 정보입니다. `requestPayment()` 메서드로 넘긴 `amount` 값과 같은지 확인하세요.
576
+ */
568
577
  amount: BrandpayAmount;
569
578
  }
570
579
 
@@ -588,7 +597,7 @@ interface BrandpayRequestPaymentResult {
588
597
  type RequestPayment$1 = RequestPaymentWithRedirection & RequestPaymentWithPromise;
589
598
  /**
590
599
  * @docsAlias Redirect 방식
591
- * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [브랜드페이 결제 승인 API](/reference/brandpay#결제-승인)를 호출해서 결제를 완료하세요.
600
+ * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 메서드 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [브랜드페이 결제 승인 API](/reference/brandpay#결제-승인)를 호출해서 결제를 완료하세요.
592
601
  * ```plain theme="grey" copyable="false"
593
602
  * {successUrl}?amount={AMOUNT}&orderId={ORDER_ID}&paymentKey={PAYMENT_KEY}
594
603
  * ```
@@ -799,7 +808,8 @@ interface PaymentRequest {
799
808
  taxFreeAmount?: number;
800
809
  /**
801
810
  * 결제창이 열리는 프레임입니다.
802
- * `iframe` 또는 현재 브라우저 화면(`self`)에서 등록창을 열 수 있어요. 기본 값은 `iframe`입니다.
811
+ * `iframe` 또는 현재 브라우저 화면(`self`)에서 결제창을 열 수 있어요. 기본 값은 `iframe`입니다.
812
+ * 모바일 웹에서는 `windowTarget` 값이 작동하지 않고 화면이 이동합니다.
803
813
  */
804
814
  windowTarget?: 'iframe' | 'self';
805
815
  }
@@ -1065,7 +1075,7 @@ interface ForeignEasyPayPaymentRequest extends PaymentRequest {
1065
1075
  */
1066
1076
  provider: string;
1067
1077
  /**
1068
- * 구매자가 결제한 국가입니다. ISO-3166의 두 자리 국가 코드를 입력하세요.
1078
+ * 구매자가 위치한 국가입니다. ISO-3166의 두 자리 국가 코드를 입력하세요.
1069
1079
  */
1070
1080
  country: string;
1071
1081
  /**
@@ -1194,8 +1204,9 @@ interface BillingAuthRequest {
1194
1204
  */
1195
1205
  customerEmail?: string;
1196
1206
  /**
1197
- * 카드 등록창이 열리는 프레임입니다. iframe 또는 현재 브라우저 화면(self)에서 등록창을 열 수 있습니다. 기본 값은 `iframe`입니다.
1198
- * 모바일 웹에서는 windowTarget 값과 상관없이 항상 새로운 결제창으로 이동합니다.
1207
+ * 결제창이 열리는 프레임입니다.
1208
+ * `iframe` 또는 현재 브라우저 화면(`self`)에서 등록창을 열 수 있어요. 기본 값은 `iframe`입니다.
1209
+ * 모바일 웹에서는 `windowTarget` 값이 작동하지 않고 화면이 이동합니다.
1199
1210
  *
1200
1211
  * @default 'iframe'
1201
1212
  */
@@ -1249,7 +1260,7 @@ type RequestPayment = RequestCardPaymentWithRedirection & RequestCardPaymentWith
1249
1260
  type RequestCardPaymentWithPromise = (paymentRequest: CardPaymentRequest) => Promise<RequestPaymentResult>;
1250
1261
  /**
1251
1262
  * @docsAlias 카드(Redirect 방식)
1252
- * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1263
+ * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 메서드 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1253
1264
  * ```plain theme="grey" copyable="false"
1254
1265
  * {successUrl}?amount={AMOUNT}&orderId={ORDER_ID}&paymentKey={PAYMENT_KEY}
1255
1266
  * ```
@@ -1318,7 +1329,7 @@ type RequestCardPaymentWithRedirection = (paymentRequest: WithRedirection<CardPa
1318
1329
  type RequestVirtualAccountPaymentWithPromise = (paymentRequest: VirtualAccountPaymentRequest) => Promise<RequestPaymentResult>;
1319
1330
  /**
1320
1331
  * @docsAlias 가상계좌(Redirect 방식)
1321
- * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1332
+ * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 메서드 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1322
1333
  * ```plain theme="grey" copyable="false"
1323
1334
  * {successUrl}?amount={AMOUNT}&orderId={ORDER_ID}&paymentKey={PAYMENT_KEY}
1324
1335
  * ```
@@ -1386,7 +1397,7 @@ type RequestVirtualAccountPaymentWithRedirection = (paymentRequest: WithRedirect
1386
1397
  type RequestTransferPaymentWithPromise = (paymentRequest: TransferPaymentRequest) => Promise<RequestPaymentResult>;
1387
1398
  /**
1388
1399
  * @docsAlias 계좌이체(Redirect 방식)
1389
- * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1400
+ * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 메서드 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1390
1401
  * ```plain theme="grey" copyable="false"
1391
1402
  * {successUrl}?amount={AMOUNT}&orderId={ORDER_ID}&paymentKey={PAYMENT_KEY}
1392
1403
  * ```
@@ -1447,7 +1458,7 @@ type RequestTransferPaymentWithRedirection = (paymentRequest: WithRedirection<Tr
1447
1458
  type RequestMobilePhonePaymentWithPromise = (paymentRequest: MobilePhonePaymentRequest) => Promise<RequestPaymentResult>;
1448
1459
  /**
1449
1460
  * @docsAlias 휴대폰 결제(Redirect 방식)
1450
- * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1461
+ * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 메서드 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1451
1462
  * ```plain theme="grey" copyable="false"
1452
1463
  * {successUrl}?amount={AMOUNT}&orderId={ORDER_ID}&paymentKey={PAYMENT_KEY}
1453
1464
  * ```
@@ -1502,7 +1513,7 @@ type RequestMobilePhonePaymentWithRedirection = (paymentRequest: WithRedirection
1502
1513
  type RequestGiftCertificatePaymentWithPromise = (paymentRequest: GiftCertificatePaymentRequest) => Promise<RequestPaymentResult>;
1503
1514
  /**
1504
1515
  * @docsAlias 상품권(Redirect 방식)
1505
- * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1516
+ * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 메서드 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1506
1517
  * ```plain theme="grey" copyable="false"
1507
1518
  * {successUrl}?amount={AMOUNT}&orderId={ORDER_ID}&paymentKey={PAYMENT_KEY}
1508
1519
  * ```
@@ -1561,7 +1572,7 @@ type RequestGiftCertificatePaymentWithRedirection = (paymentRequest: WithRedirec
1561
1572
  type RequestForeignEasyPayPaymentWithPromise = (paymentRequest: ForeignEasyPayPaymentRequest) => Promise<RequestPaymentResult>;
1562
1573
  /**
1563
1574
  * @docsAlias 해외 간편결제(Redirect 방식)
1564
- * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1575
+ * @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 메서드 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해서 결제를 완료하세요.
1565
1576
  * ```plain theme="grey" copyable="false"
1566
1577
  * {successUrl}?amount={AMOUNT}&orderId={ORDER_ID}&paymentKey={PAYMENT_KEY}
1567
1578
  * ```
@@ -1652,8 +1663,13 @@ interface TossPaymentsInstance {
1652
1663
  * ```javascript
1653
1664
  * // 회원 결제
1654
1665
  * const widgets = tossPayments.widgets({ customerKey });
1666
+ *
1655
1667
  * // 비회원 결제
1656
- * // const payment = tossPayments.widgets({ customerKey: TossPayments.ANONYMOUS });
1668
+ * // 스크립트 태그 연동방식
1669
+ * const widgets = tossPayments.widgets({ customerKey: TossPayments.ANONYMOUS });
1670
+ * // 모듈 임포트 연동방식
1671
+ * import { ANONYMOUS } from "@tosspayments/tosspayments-sdk";
1672
+ * const widgets = tossPayments.widgets({ customerKey: ANONYMOUS });
1657
1673
  * ```
1658
1674
  * @param {WidgetSDKInitParams} params 결제위젯 초기화 정보입니다.
1659
1675
  *
@@ -1687,14 +1703,10 @@ interface TossPaymentsInstance {
1687
1703
  * @throw {@link PublicError.Brandpay.UnknownError} 알 수 없는 오류가 발생한 경우
1688
1704
  * @example
1689
1705
  * ```javascript
1690
- * // 회원 결제
1691
1706
  * const payment = tossPayments.payment({ customerKey });
1692
- *
1693
- * //비회원 결제
1694
- * // const payment = tossPayments.payment({ customerKey: TossPayments.ANONYMOUS });
1695
1707
  * ```
1708
+ * @param {PaymentGatewaySDKInitParams} params 결제창 초기화 정보입니다.
1696
1709
  * @returns 아래 메서드를 호출할 수 있는 결제창 객체를 반환합니다.
1697
- * @param {PaymentGatewaySDKInitParams} 결제창 초기화 정보입니다.
1698
1710
  *
1699
1711
  */
1700
1712
  payment: (params: PaymentGatewaySDKInitParams) => TossPaymentsPaymentGateway;
@@ -1702,8 +1714,14 @@ interface TossPaymentsInstance {
1702
1714
  /**
1703
1715
  * @example
1704
1716
  * ```javascript
1717
+ * // 스크립트 태그 연동방식
1705
1718
  * const tossPayments = TossPayments("<WidgetClientKey />");
1719
+ *
1720
+ * // 모듈 임포트 연동방식
1721
+ * import { loadTossPayments } from "@tosspayments/tosspayments-sdk"
1722
+ * const tossPayments = await loadTossPayments("<WidgetClientKey />");
1706
1723
  * ```
1724
+ *
1707
1725
  * @param {string} clientKey 토스페이먼츠 발급하는 클라이언트 키입니다. 개발자센터의 [API 키 메뉴](https://developers.tosspayments.com/my/api-keys)에서 확인할 수 있어요.
1708
1726
  *
1709
1727
  * 결제위젯을 연동한다면 [결제위젯 연동 키](/reference/using-api/api-keys#결제위젯-연동-키)를 사용하세요. 결제창, 자동결제(빌링)을 연동한다면 [API 개별 연동 키](/reference/using-api/api-keys#api-개별-연동-키)를 사용하세요.
@@ -1722,7 +1740,7 @@ interface BrandpaySDKInitParams {
1722
1740
  /**
1723
1741
  * 브랜드페이 결제 과정에서 [Access Token 발급](/guides/v2/brandpay/auth)을 위해 필요한 URL입니다. Access Token은 브랜드페이 고객을 식별하고 고객의 결제 권한을 증명합니다. 값을 넣지 않으면 개발자센터의 브랜드페이 메뉴에 최초로 등록한 리다이렉트 URL이 기본값으로 들어갑니다.
1724
1742
  *
1725
- * \* 브랜드페이 메뉴에 두 개 이상의 리다이렉트 URL을 등록한 상점은 각 도메인에 맞는 redirectUrl 값을 필수로 추가하세요.
1743
+ * \* 브랜드페이 메뉴에 두 개 이상의 리다이렉트 URL을 등록한 상점은 각 도메인에 맞는 `redirectUrl` 값을 필수로 추가하세요.
1726
1744
  */
1727
1745
  redirectUrl?: string;
1728
1746
  }
@@ -1743,7 +1761,7 @@ interface WidgetSDKInitParams {
1743
1761
  /**
1744
1762
  * 브랜드페이 결제 과정에서 [Access Token 발급](/guides/v2/brandpay/auth)을 위해 필요한 URL입니다. Access Token은 브랜드페이 고객을 식별하고 고객의 결제 권한을 증명합니다. 값을 넣지 않으면 개발자센터의 브랜드페이 메뉴에 최초로 등록한 리다이렉트 URL이 기본값으로 들어갑니다.
1745
1763
  *
1746
- * \* 브랜드페이 메뉴에 두 개 이상의 리다이렉트 URL을 등록한 상점은 각 도메인에 맞는 redirectUrl 값을 필수로 추가하세요.
1764
+ * \* 브랜드페이 메뉴에 두 개 이상의 리다이렉트 URL을 등록한 상점은 각 도메인에 맞는 `redirectUrl` 값을 필수로 추가하세요.
1747
1765
  */
1748
1766
  redirectUrl?: string;
1749
1767
  };
@@ -1762,4 +1780,6 @@ declare function loadTossPayments(clientKey: TosspaymentsParams[0], loadOptions?
1762
1780
  src?: string;
1763
1781
  }): Promise<TossPaymentsInstance>;
1764
1782
 
1765
- export { clearTossPayments, loadTossPayments };
1783
+ declare const ANONYMOUS = "@@ANONYMOUS";
1784
+
1785
+ export { ANONYMOUS, type WidgetAgreementStatus, type WidgetAgreementWidget, type WidgetPaymentMethodWidget, type WidgetSelectedPaymentMethod, clearTossPayments, loadTossPayments };