@tosspayments/tosspayments-sdk 2.3.0 → 2.3.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,17 @@
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.3.1](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/tosspayments-sdk@2.3.0...@tosspayments/tosspayments-sdk@2.3.1) (2024-09-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **tosspayments-sdk:** @tosspayments/standard-public-interfaces 버전업 ([#125](https://github.com/tosspayments/browser-sdk/issues/125)) ([923d41f](https://github.com/tosspayments/browser-sdk/commit/923d41fd79bc41304ef08f553d98c09b76db6650))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.3.0](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/tosspayments-sdk@2.2.4...@tosspayments/tosspayments-sdk@2.3.0) (2024-09-03)
7
18
 
8
19
 
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.3.0",
4
+ "version": "2.3.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.17",
24
+ "@tosspayments/standard-public-interfaces": "2.0.20",
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": "58f8d7998a1b5d0021a770173dff9b023907e3f8"
41
+ "gitHead": "a7b40fa8e970d261b4c3b925191ba023195606d7"
42
42
  }
package/types/index.d.ts CHANGED
@@ -444,6 +444,7 @@ type RenderAgreement = (params: {
444
444
  * @throws {@link PublicError.Widgets.InvalidMethodTransactionError} 이미 다른 명령을 수행 중인 경우
445
445
  * @throws {@link PublicError.Widgets.InvalidMetadataError} metadata가 올바르지 않은 경우
446
446
  * @throws {@link PublicError.Widgets.InvalidParametersError} 파라미터가 올바르지 않은 경우
447
+ * @throws {@link PublicError.Widgets.BelowZeroAmountError} 결제 금액이 0원 미만인 경우
447
448
  * @throws {@link PublicError.Widgets.UnknownError} 알 수 없는 오류가 발생한 경우
448
449
  */
449
450
  type RequestPayment$2 = RequestPaymentWithPromise$1 & RequestPaymentWithRedirection$1;
@@ -510,7 +511,6 @@ type RequestPaymentWithRedirection$1 = (paymentRequest: WithRedirection<WidgetPa
510
511
  *
511
512
  * @throws {@link PublicError.Widgets.InvalidAmountValueError} 결제 금액이 유효하지 않은 경우
512
513
  * @throws {@link PublicError.Widgets.InvalidAmountCurrencyError} 결제 금액의 통화가 유효하지 않은 경우
513
- * @throws {@link PublicError.Widgets.BelowZeroAmountError} 결제 금액이 0원 이하인 경우
514
514
  * @throws {@link PublicError.Widgets.InvalidParametersError} 파라미터가 올바르지 않은 경우
515
515
  * @throws {@link PublicError.Widgets.UnknownError} 알 수 없는 오류가 발생한 경우
516
516
  */
@@ -597,7 +597,7 @@ interface BrandpayRequestPaymentResult {
597
597
  *
598
598
  * @throws {@link PublicError.Brandpay.UserCancelError} 사용자가 결제를 취소한 경우
599
599
  * @throws {@link PublicError.Brandpay.InvalidAmountValueError} 결제 금액이 유효하지 않은 경우
600
- * @throws {@link PublicError.Brandpay.BelowZeroAmountError} 결제 금액이 0 미만인 경우
600
+ * @throws {@link PublicError.Brandpay.BelowZeroAmountError} 결제 금액이 0원 미만인 경우
601
601
  * @throws {@link PublicError.Brandpay.IncorrectSuccessUrlFormatError} successUrl이 유효하지 않은 경우
602
602
  * @throws {@link PublicError.Brandpay.IncorrectFailUrlFormatError} failUrl이 유효하지 않은 경우
603
603
  * @throws {@link PublicError.Brandpay.PaymentRequestFailError} 결제 요청에 실패한 경우
@@ -937,6 +937,10 @@ interface CardPaymentRequest extends PaymentRequest {
937
937
  */
938
938
  quantity?: number;
939
939
  }>;
940
+ /**
941
+ * 해외카드(Visa, MasterCard, JCB, UnionPay 등) 결제 여부입니다. `true`로 설정하면 해외카드 결제가 가능한 [다국어 결제창](/resources/glossary/payment-window#다국어-결제창)이 열립니다.
942
+ */
943
+ useInternationalCardOnly?: boolean;
940
944
  };
941
945
  }
942
946
 
@@ -1235,7 +1239,7 @@ interface BillingAuthRequest {
1235
1239
  * @throws {@link PublicError.Payment.UserCancelError} 사용자가 결제창을 닫은 경우
1236
1240
  * @throws {@link PublicError.Payment.InvalidAmountValueError} 결제 금액이 유효하지 않은 경우
1237
1241
  * @throws {@link PublicError.Payment.InvalidAmountCurrencyError} 결제 금액의 통화가 유효하지 않은 경우
1238
- * @throws {@link PublicError.Payment.BelowZeroAmountError} 결제 금액이 0 미만인 경우
1242
+ * @throws {@link PublicError.Payment.BelowZeroAmountError} 결제 금액이 0원 미만인 경우
1239
1243
  * @throws {@link PublicError.Payment.NotSupportedPromiseError} promise 방식을 지원하지 않는 환경인 경우
1240
1244
  * @throws {@link PublicError.Payment.NotSupportedMethodError} 가맹점에서 정의되지 않은 method를 넘겨준 경우
1241
1245
  * @throws {@link PublicError.Payment.IncorrectSuccessUrlFormatError} 가맹점에서 유효하지 않은 successUrl을 넘겨준 경우
@@ -1671,6 +1675,7 @@ interface TossPaymentsSDK {
1671
1675
  * @throw {@link PublicError.Widgets.InvalidClientKeyError} clientKey가 올바르지 않은 경우
1672
1676
  * @throw {@link PublicError.Widgets.InvalidCustomerKeyError} customerKey가 올바르지 않은 경우
1673
1677
  * @throw {@link PublicError.Widgets.InsecureKeyUsageError} customerKey에 시크릿키를 사용한 경우
1678
+ * @throw {@link PublicError.Widgets.NotSupportedAPIIndividualKeyError} API 개별 연동 키를 clientKey로 사용한 경우
1674
1679
  * @throw {@link PublicError.Widgets.UnknownError} 알 수 없는 오류가 발생한 경우
1675
1680
  * @returns 아래 메서드를 호출할 수 있는 결제위젯 객체를 반환합니다.
1676
1681
  * @example
@@ -1695,6 +1700,7 @@ interface TossPaymentsSDK {
1695
1700
  * @throw {@link PublicError.Brandpay.InvalidClientKeyError} clientKey가 올바르지 않은 경우
1696
1701
  * @throw {@link PublicError.Brandpay.InvalidCustomerKeyError} customerKey가 올바르지 않은 경우
1697
1702
  * @throw {@link PublicError.Brandpay.InsecureKeyUsageError} customerKey에 시크릿키를 사용한 경우
1703
+ * @throw {@link PublicError.Brandpay.NotSupportedWidgetKeyError} 결제위젯 연동 키를 clientKey로 사용한 경우
1698
1704
  * @throw {@link PublicError.Brandpay.UnknownError} 알 수 없는 오류가 발생한 경우
1699
1705
  * @example
1700
1706
  * ```javascript
@@ -1714,6 +1720,7 @@ interface TossPaymentsSDK {
1714
1720
  * @throw {@link PublicError.Payment.InvalidClientKeyError} clientKey가 올바르지 않은 경우
1715
1721
  * @throw {@link PublicError.Payment.InvalidCustomerKeyError} customerKey가 올바르지 않은 경우
1716
1722
  * @throw {@link PublicError.Payment.InsecureKeyUsageError} customerKey에 시크릿키를 사용한 경우
1723
+ * @throw {@link PublicError.Payment.NotSupportedWidgetKeyError} 결제위젯 연동 키를 clientKey로 사용한 경우
1717
1724
  * @throw {@link PublicError.Payment.UnknownError} 알 수 없는 오류가 발생한 경우
1718
1725
  * @example
1719
1726
  * ```javascript