@tosspayments/tosspayments-sdk 2.3.0 → 2.3.2
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 +22 -0
- package/package.json +3 -3
- package/types/index.d.ts +18 -3
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.3.2](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/tosspayments-sdk@2.3.1...@tosspayments/tosspayments-sdk@2.3.2) (2024-09-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **tosspayments-sdk:** @tosspayments/standard-public-interfaces 버전업 ([#126](https://github.com/tosspayments/browser-sdk/issues/126)) ([e33cec4](https://github.com/tosspayments/browser-sdk/commit/e33cec49d14dbaffb92396eb4873a016ca314999))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [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)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **tosspayments-sdk:** @tosspayments/standard-public-interfaces 버전업 ([#125](https://github.com/tosspayments/browser-sdk/issues/125)) ([923d41f](https://github.com/tosspayments/browser-sdk/commit/923d41fd79bc41304ef08f553d98c09b76db6650))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [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
29
|
|
|
8
30
|
|
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.
|
|
4
|
+
"version": "2.3.2",
|
|
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.
|
|
24
|
+
"@tosspayments/standard-public-interfaces": "2.0.22",
|
|
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": "
|
|
41
|
+
"gitHead": "54049b225d20dc37905dc955d4a04d476efd54cd"
|
|
42
42
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -131,6 +131,10 @@ interface WidgetPaymentRequest {
|
|
|
131
131
|
* 결제 금액 중 면세 금액입니다. 면세 상점 혹은 복합 과세 상점으로 계약된 상점만 사용하세요. 자세한 내용은 세금 처리 가이드에서 확인하세요.
|
|
132
132
|
*/
|
|
133
133
|
taxFreeAmount?: number;
|
|
134
|
+
/**
|
|
135
|
+
* 중국 및 동남아 간편결제(비동기)의 결제 요청이 완료되면 리다이렉트되는 URL입니다. 반드시 오리진을 포함해야 합니다.
|
|
136
|
+
*/
|
|
137
|
+
pendingUrl?: string;
|
|
134
138
|
/**
|
|
135
139
|
* 결제 관련 정보를 추가할 수 있는 객체입니다. 최대 5개의 키-값(key-value) 쌍을 자유롭게 추가해주세요. 키는 `[` , `]` 를 사용하지 않는 최대 40자의 문자열, 값은 최대 500자의 문자열입니다.
|
|
136
140
|
*/
|
|
@@ -444,6 +448,7 @@ type RenderAgreement = (params: {
|
|
|
444
448
|
* @throws {@link PublicError.Widgets.InvalidMethodTransactionError} 이미 다른 명령을 수행 중인 경우
|
|
445
449
|
* @throws {@link PublicError.Widgets.InvalidMetadataError} metadata가 올바르지 않은 경우
|
|
446
450
|
* @throws {@link PublicError.Widgets.InvalidParametersError} 파라미터가 올바르지 않은 경우
|
|
451
|
+
* @throws {@link PublicError.Widgets.BelowZeroAmountError} 결제 금액이 0원 미만인 경우
|
|
447
452
|
* @throws {@link PublicError.Widgets.UnknownError} 알 수 없는 오류가 발생한 경우
|
|
448
453
|
*/
|
|
449
454
|
type RequestPayment$2 = RequestPaymentWithPromise$1 & RequestPaymentWithRedirection$1;
|
|
@@ -510,7 +515,6 @@ type RequestPaymentWithRedirection$1 = (paymentRequest: WithRedirection<WidgetPa
|
|
|
510
515
|
*
|
|
511
516
|
* @throws {@link PublicError.Widgets.InvalidAmountValueError} 결제 금액이 유효하지 않은 경우
|
|
512
517
|
* @throws {@link PublicError.Widgets.InvalidAmountCurrencyError} 결제 금액의 통화가 유효하지 않은 경우
|
|
513
|
-
* @throws {@link PublicError.Widgets.BelowZeroAmountError} 결제 금액이 0원 이하인 경우
|
|
514
518
|
* @throws {@link PublicError.Widgets.InvalidParametersError} 파라미터가 올바르지 않은 경우
|
|
515
519
|
* @throws {@link PublicError.Widgets.UnknownError} 알 수 없는 오류가 발생한 경우
|
|
516
520
|
*/
|
|
@@ -597,7 +601,7 @@ interface BrandpayRequestPaymentResult {
|
|
|
597
601
|
*
|
|
598
602
|
* @throws {@link PublicError.Brandpay.UserCancelError} 사용자가 결제를 취소한 경우
|
|
599
603
|
* @throws {@link PublicError.Brandpay.InvalidAmountValueError} 결제 금액이 유효하지 않은 경우
|
|
600
|
-
* @throws {@link PublicError.Brandpay.BelowZeroAmountError} 결제 금액이 0 미만인 경우
|
|
604
|
+
* @throws {@link PublicError.Brandpay.BelowZeroAmountError} 결제 금액이 0원 미만인 경우
|
|
601
605
|
* @throws {@link PublicError.Brandpay.IncorrectSuccessUrlFormatError} successUrl이 유효하지 않은 경우
|
|
602
606
|
* @throws {@link PublicError.Brandpay.IncorrectFailUrlFormatError} failUrl이 유효하지 않은 경우
|
|
603
607
|
* @throws {@link PublicError.Brandpay.PaymentRequestFailError} 결제 요청에 실패한 경우
|
|
@@ -825,6 +829,10 @@ interface PaymentRequest {
|
|
|
825
829
|
* \- `iframe`은 iframe에서 결제창이 열려요. PC 환경에서 기본 값입니다. **모바일 환경에서는 `iframe`을 사용할 수 없습니다.**
|
|
826
830
|
*/
|
|
827
831
|
windowTarget?: 'iframe' | 'self';
|
|
832
|
+
/**
|
|
833
|
+
* 중국 및 동남아 간편결제(비동기)의 결제 요청이 완료되면 리다이렉트되는 URL입니다. 반드시 오리진을 포함해야 합니다.
|
|
834
|
+
*/
|
|
835
|
+
pendingUrl?: string;
|
|
828
836
|
/**
|
|
829
837
|
* 결제 관련 정보를 추가할 수 있는 객체입니다. 최대 5개의 키-값(key-value) 쌍을 자유롭게 추가해주세요. 키는 `[` , `]` 를 사용하지 않는 최대 40자의 문자열, 값은 최대 500자의 문자열입니다.
|
|
830
838
|
*/
|
|
@@ -937,6 +945,10 @@ interface CardPaymentRequest extends PaymentRequest {
|
|
|
937
945
|
*/
|
|
938
946
|
quantity?: number;
|
|
939
947
|
}>;
|
|
948
|
+
/**
|
|
949
|
+
* 해외카드(Visa, MasterCard, JCB, UnionPay 등) 결제 여부입니다. `true`로 설정하면 해외카드 결제가 가능한 [다국어 결제창](/resources/glossary/payment-window#다국어-결제창)이 열립니다.
|
|
950
|
+
*/
|
|
951
|
+
useInternationalCardOnly?: boolean;
|
|
940
952
|
};
|
|
941
953
|
}
|
|
942
954
|
|
|
@@ -1235,7 +1247,7 @@ interface BillingAuthRequest {
|
|
|
1235
1247
|
* @throws {@link PublicError.Payment.UserCancelError} 사용자가 결제창을 닫은 경우
|
|
1236
1248
|
* @throws {@link PublicError.Payment.InvalidAmountValueError} 결제 금액이 유효하지 않은 경우
|
|
1237
1249
|
* @throws {@link PublicError.Payment.InvalidAmountCurrencyError} 결제 금액의 통화가 유효하지 않은 경우
|
|
1238
|
-
* @throws {@link PublicError.Payment.BelowZeroAmountError} 결제 금액이 0 미만인 경우
|
|
1250
|
+
* @throws {@link PublicError.Payment.BelowZeroAmountError} 결제 금액이 0원 미만인 경우
|
|
1239
1251
|
* @throws {@link PublicError.Payment.NotSupportedPromiseError} promise 방식을 지원하지 않는 환경인 경우
|
|
1240
1252
|
* @throws {@link PublicError.Payment.NotSupportedMethodError} 가맹점에서 정의되지 않은 method를 넘겨준 경우
|
|
1241
1253
|
* @throws {@link PublicError.Payment.IncorrectSuccessUrlFormatError} 가맹점에서 유효하지 않은 successUrl을 넘겨준 경우
|
|
@@ -1671,6 +1683,7 @@ interface TossPaymentsSDK {
|
|
|
1671
1683
|
* @throw {@link PublicError.Widgets.InvalidClientKeyError} clientKey가 올바르지 않은 경우
|
|
1672
1684
|
* @throw {@link PublicError.Widgets.InvalidCustomerKeyError} customerKey가 올바르지 않은 경우
|
|
1673
1685
|
* @throw {@link PublicError.Widgets.InsecureKeyUsageError} customerKey에 시크릿키를 사용한 경우
|
|
1686
|
+
* @throw {@link PublicError.Widgets.NotSupportedAPIIndividualKeyError} API 개별 연동 키를 clientKey로 사용한 경우
|
|
1674
1687
|
* @throw {@link PublicError.Widgets.UnknownError} 알 수 없는 오류가 발생한 경우
|
|
1675
1688
|
* @returns 아래 메서드를 호출할 수 있는 결제위젯 객체를 반환합니다.
|
|
1676
1689
|
* @example
|
|
@@ -1695,6 +1708,7 @@ interface TossPaymentsSDK {
|
|
|
1695
1708
|
* @throw {@link PublicError.Brandpay.InvalidClientKeyError} clientKey가 올바르지 않은 경우
|
|
1696
1709
|
* @throw {@link PublicError.Brandpay.InvalidCustomerKeyError} customerKey가 올바르지 않은 경우
|
|
1697
1710
|
* @throw {@link PublicError.Brandpay.InsecureKeyUsageError} customerKey에 시크릿키를 사용한 경우
|
|
1711
|
+
* @throw {@link PublicError.Brandpay.NotSupportedWidgetKeyError} 결제위젯 연동 키를 clientKey로 사용한 경우
|
|
1698
1712
|
* @throw {@link PublicError.Brandpay.UnknownError} 알 수 없는 오류가 발생한 경우
|
|
1699
1713
|
* @example
|
|
1700
1714
|
* ```javascript
|
|
@@ -1714,6 +1728,7 @@ interface TossPaymentsSDK {
|
|
|
1714
1728
|
* @throw {@link PublicError.Payment.InvalidClientKeyError} clientKey가 올바르지 않은 경우
|
|
1715
1729
|
* @throw {@link PublicError.Payment.InvalidCustomerKeyError} customerKey가 올바르지 않은 경우
|
|
1716
1730
|
* @throw {@link PublicError.Payment.InsecureKeyUsageError} customerKey에 시크릿키를 사용한 경우
|
|
1731
|
+
* @throw {@link PublicError.Payment.NotSupportedWidgetKeyError} 결제위젯 연동 키를 clientKey로 사용한 경우
|
|
1717
1732
|
* @throw {@link PublicError.Payment.UnknownError} 알 수 없는 오류가 발생한 경우
|
|
1718
1733
|
* @example
|
|
1719
1734
|
* ```javascript
|