tonder-web-sdk 1.12.0-beta.5 → 1.12.0-beta.7
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/.idea/workspace.xml
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
<change beforePath="$PROJECT_DIR$/src/helpers/utils.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/helpers/utils.js" afterDir="false" />
|
|
26
26
|
<change beforePath="$PROJECT_DIR$/src/index-dev.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/index-dev.js" afterDir="false" />
|
|
27
27
|
<change beforePath="$PROJECT_DIR$/src/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.html" afterDir="false" />
|
|
28
|
+
<change beforePath="$PROJECT_DIR$/src/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.js" afterDir="false" />
|
|
28
29
|
<change beforePath="$PROJECT_DIR$/v1/bundle.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/v1/bundle.min.js" afterDir="false" />
|
|
29
30
|
</list>
|
|
30
31
|
<option name="SHOW_DIALOG" value="false" />
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
<workItem from="1723774667217" duration="11739000" />
|
|
111
112
|
<workItem from="1723855727317" duration="20341000" />
|
|
112
113
|
<workItem from="1723952592527" duration="17418000" />
|
|
113
|
-
<workItem from="1724247675743" duration="
|
|
114
|
+
<workItem from="1724247675743" duration="29930000" />
|
|
114
115
|
</task>
|
|
115
116
|
<servers />
|
|
116
117
|
</component>
|
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ export class BaseInlineCheckout {
|
|
|
58
58
|
/**
|
|
59
59
|
* Processes a payment.
|
|
60
60
|
* @param {import("../../types").IProcessPaymentRequest} data - Payment data including customer, cart, and other relevant information.
|
|
61
|
-
* @returns {Promise<import("../../types").IStartCheckoutResponse>
|
|
61
|
+
* @returns {Promise<import("../../types").IStartCheckoutResponse>} A promise that resolves with the payment response or 3DS redirect or is rejected with an error.
|
|
62
62
|
*
|
|
63
63
|
* @throws {Error} Throws an error if the checkout process fails. The error object contains
|
|
64
64
|
* additional `details` property with the response from the server if available.
|
package/src/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {IConfigureCheckout, IInlineCheckoutBaseOptions} from "./common";
|
|
2
|
+
import {IProcessPaymentRequest, IStartCheckoutResponse} from "./checkout";
|
|
3
|
+
import {ITransaction} from "./transaction";
|
|
2
4
|
|
|
3
5
|
export class InlineCheckout {
|
|
4
6
|
constructor(options: IInlineCheckoutOptions);
|
|
@@ -7,9 +9,9 @@ export class InlineCheckout {
|
|
|
7
9
|
|
|
8
10
|
injectCheckout(): Promise<void>;
|
|
9
11
|
|
|
10
|
-
payment(): Promise<
|
|
12
|
+
payment(data: IProcessPaymentRequest): Promise<IStartCheckoutResponse>;
|
|
11
13
|
|
|
12
|
-
verify3dsTransaction(): Promise<void>;
|
|
14
|
+
verify3dsTransaction(): Promise<ITransaction | void>;
|
|
13
15
|
|
|
14
16
|
removeCheckout(): void;
|
|
15
17
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {IConfigureCheckout, IInlineCheckoutBaseOptions} from "./common";
|
|
2
2
|
import {ICustomerCardsResponse, ISaveCardRequest, ISaveCardResponse} from "./card";
|
|
3
3
|
import {IPaymentMethod} from "./paymentMethod";
|
|
4
|
+
import {IProcessPaymentRequest, IStartCheckoutResponse} from "./checkout";
|
|
5
|
+
import {ITransaction} from "./transaction";
|
|
4
6
|
|
|
5
7
|
export class LiteInlineCheckout {
|
|
6
8
|
constructor(options: IInlineLiteCheckoutOptions);
|
|
@@ -9,9 +11,9 @@ export class LiteInlineCheckout {
|
|
|
9
11
|
|
|
10
12
|
injectCheckout(): Promise<void>;
|
|
11
13
|
|
|
12
|
-
payment(): Promise<
|
|
14
|
+
payment(data: IProcessPaymentRequest): Promise<IStartCheckoutResponse>;
|
|
13
15
|
|
|
14
|
-
verify3dsTransaction(): Promise<void>;
|
|
16
|
+
verify3dsTransaction(): Promise<ITransaction | void>;
|
|
15
17
|
|
|
16
18
|
getCustomerCards(
|
|
17
19
|
authToken: string,
|