@tosspayments/tosspayments-sdk 2.2.3 → 2.2.4
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 +11 -0
- package/package.json +3 -3
- package/types/index.d.ts +2 -2
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.2.4](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/tosspayments-sdk@2.2.3...@tosspayments/tosspayments-sdk@2.2.4) (2024-07-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **tosspayments-sdk:** requestPayment 의 타입이 정상적으로 추론되지 않는 버그 수정 ([#119](https://github.com/tosspayments/browser-sdk/issues/119)) ([6d42b8c](https://github.com/tosspayments/browser-sdk/commit/6d42b8cc26f10a73bb001a64c7483faed4cf7948))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.2.3](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/tosspayments-sdk@2.2.2...@tosspayments/tosspayments-sdk@2.2.3) (2024-07-17)
|
|
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.2.
|
|
4
|
+
"version": "2.2.4",
|
|
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.7",
|
|
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": "e9ddfc2f54498c25c9c7ffa621e933ab26fc3a8c"
|
|
42
42
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -440,7 +440,7 @@ type RenderAgreement = (params: {
|
|
|
440
440
|
* @throws {@link PublicError.Widgets.InvalidParametersError} 파라미터가 올바르지 않은 경우
|
|
441
441
|
* @throws {@link PublicError.Widgets.UnknownError} 알 수 없는 오류가 발생한 경우
|
|
442
442
|
*/
|
|
443
|
-
type RequestPayment$2 =
|
|
443
|
+
type RequestPayment$2 = RequestPaymentWithPromise$1 & RequestPaymentWithRedirection$1;
|
|
444
444
|
/**
|
|
445
445
|
* @docsAlias Promise 방식
|
|
446
446
|
* @returns `WidgetPaymentResult` 객체가 응답됩니다. 객체 필드를 확인하고 [결제 승인 API](/reference#결제-승인)를 호출해야 결제가 최종적으로 완료돼요.
|
|
@@ -595,7 +595,7 @@ interface BrandpayRequestPaymentResult {
|
|
|
595
595
|
* @throws {@link PublicError.Brandpay.InvalidParametersError} 파라미터가 올바르지 않은 경우
|
|
596
596
|
* @throws {@link PublicError.Brandpay.UnknownError} 알 수 없는 오류가 발생한 경우
|
|
597
597
|
*/
|
|
598
|
-
type RequestPayment$1 =
|
|
598
|
+
type RequestPayment$1 = RequestPaymentWithPromise & RequestPaymentWithRedirection;
|
|
599
599
|
/**
|
|
600
600
|
* @docsAlias Redirect 방식
|
|
601
601
|
* @returns 결제 요청이 성공하면 파라미터로 설정한 `successUrl`로 이동해요. 쿼리 파라미터의 `amount` 값이 메서드 파라미터로 설정한 `amount`와 같은지 반드시 확인하고 [브랜드페이 결제 승인 API](/reference/brandpay#결제-승인)를 호출해서 결제를 완료하세요.
|