straumur-web-component 2.0.0-alpha.20 → 2.0.0-alpha.21
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/dist/index.cjs +15 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +17 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -11,6 +11,8 @@ declare const translations: {
|
|
|
11
11
|
"cards.saveCardDetails": string;
|
|
12
12
|
"googlePay.title": string;
|
|
13
13
|
"applePay.title": string;
|
|
14
|
+
"kortalan.title": string;
|
|
15
|
+
"kortalan.payButton": string;
|
|
14
16
|
"stored-cards.expiryDate": string;
|
|
15
17
|
"stored-cards.securityCode3Digits": string;
|
|
16
18
|
"stored-cards.securityCode3DigitsOptional": string;
|
|
@@ -47,6 +49,8 @@ declare const translations: {
|
|
|
47
49
|
"cards.saveCardDetails": string;
|
|
48
50
|
"googlePay.title": string;
|
|
49
51
|
"applePay.title": string;
|
|
52
|
+
"kortalan.title": string;
|
|
53
|
+
"kortalan.payButton": string;
|
|
50
54
|
"stored-cards.expiryDate": string;
|
|
51
55
|
"stored-cards.securityCode3Digits": string;
|
|
52
56
|
"stored-cards.securityCode3DigitsOptional": string;
|
|
@@ -78,7 +82,7 @@ type TranslationKey = keyof (typeof translations)["en-US"] | keyof (typeof trans
|
|
|
78
82
|
/** The locale vocabulary of the public API: short codes only. */
|
|
79
83
|
type PublicLocale = "is" | "en";
|
|
80
84
|
|
|
81
|
-
type PaymentMethod = "card" | "storedcard" | "googlepay" | "applepay";
|
|
85
|
+
type PaymentMethod = "card" | "storedcard" | "googlepay" | "applepay" | "kortalan";
|
|
82
86
|
/**
|
|
83
87
|
* A slot in the rendered payment-method list: a standalone method, or "instantpayments" for the
|
|
84
88
|
* express wallet row. Used to order the options via `orderPaymentMethods`.
|
|
@@ -116,6 +120,7 @@ interface BrowserInfo {
|
|
|
116
120
|
}
|
|
117
121
|
interface ICreateDetailsBody {
|
|
118
122
|
sessionId: string;
|
|
123
|
+
paymentCheckoutReference?: string;
|
|
119
124
|
details: {
|
|
120
125
|
redirectResult?: string;
|
|
121
126
|
threeDSResult?: string;
|
|
@@ -239,7 +244,6 @@ type Placeholders = Partial<Record<PlaceholderKeys, string>>;
|
|
|
239
244
|
|
|
240
245
|
declare class StraumurCheckout {
|
|
241
246
|
private configuration;
|
|
242
|
-
private advancedConfiguration;
|
|
243
247
|
private paymentMethods;
|
|
244
248
|
private mountElement;
|
|
245
249
|
private i18n;
|
|
@@ -250,8 +254,7 @@ declare class StraumurCheckout {
|
|
|
250
254
|
private renderComponent;
|
|
251
255
|
handleSuccess(message: ResultMessage): void;
|
|
252
256
|
handleError(message: ResultMessage): void;
|
|
253
|
-
|
|
254
|
-
submitDetails(redirectResult: string, selector?: HTMLElement | string): Promise<void>;
|
|
257
|
+
submitDetails(redirectResult: string, paymentCheckoutReference?: string, selector?: HTMLElement | string): Promise<void>;
|
|
255
258
|
updateConfig(newConfig: StraumurCheckoutUpdateOptions): void;
|
|
256
259
|
setLanguage(locale: PublicLocale): void;
|
|
257
260
|
destroy(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ declare const translations: {
|
|
|
11
11
|
"cards.saveCardDetails": string;
|
|
12
12
|
"googlePay.title": string;
|
|
13
13
|
"applePay.title": string;
|
|
14
|
+
"kortalan.title": string;
|
|
15
|
+
"kortalan.payButton": string;
|
|
14
16
|
"stored-cards.expiryDate": string;
|
|
15
17
|
"stored-cards.securityCode3Digits": string;
|
|
16
18
|
"stored-cards.securityCode3DigitsOptional": string;
|
|
@@ -47,6 +49,8 @@ declare const translations: {
|
|
|
47
49
|
"cards.saveCardDetails": string;
|
|
48
50
|
"googlePay.title": string;
|
|
49
51
|
"applePay.title": string;
|
|
52
|
+
"kortalan.title": string;
|
|
53
|
+
"kortalan.payButton": string;
|
|
50
54
|
"stored-cards.expiryDate": string;
|
|
51
55
|
"stored-cards.securityCode3Digits": string;
|
|
52
56
|
"stored-cards.securityCode3DigitsOptional": string;
|
|
@@ -78,7 +82,7 @@ type TranslationKey = keyof (typeof translations)["en-US"] | keyof (typeof trans
|
|
|
78
82
|
/** The locale vocabulary of the public API: short codes only. */
|
|
79
83
|
type PublicLocale = "is" | "en";
|
|
80
84
|
|
|
81
|
-
type PaymentMethod = "card" | "storedcard" | "googlepay" | "applepay";
|
|
85
|
+
type PaymentMethod = "card" | "storedcard" | "googlepay" | "applepay" | "kortalan";
|
|
82
86
|
/**
|
|
83
87
|
* A slot in the rendered payment-method list: a standalone method, or "instantpayments" for the
|
|
84
88
|
* express wallet row. Used to order the options via `orderPaymentMethods`.
|
|
@@ -116,6 +120,7 @@ interface BrowserInfo {
|
|
|
116
120
|
}
|
|
117
121
|
interface ICreateDetailsBody {
|
|
118
122
|
sessionId: string;
|
|
123
|
+
paymentCheckoutReference?: string;
|
|
119
124
|
details: {
|
|
120
125
|
redirectResult?: string;
|
|
121
126
|
threeDSResult?: string;
|
|
@@ -239,7 +244,6 @@ type Placeholders = Partial<Record<PlaceholderKeys, string>>;
|
|
|
239
244
|
|
|
240
245
|
declare class StraumurCheckout {
|
|
241
246
|
private configuration;
|
|
242
|
-
private advancedConfiguration;
|
|
243
247
|
private paymentMethods;
|
|
244
248
|
private mountElement;
|
|
245
249
|
private i18n;
|
|
@@ -250,8 +254,7 @@ declare class StraumurCheckout {
|
|
|
250
254
|
private renderComponent;
|
|
251
255
|
handleSuccess(message: ResultMessage): void;
|
|
252
256
|
handleError(message: ResultMessage): void;
|
|
253
|
-
|
|
254
|
-
submitDetails(redirectResult: string, selector?: HTMLElement | string): Promise<void>;
|
|
257
|
+
submitDetails(redirectResult: string, paymentCheckoutReference?: string, selector?: HTMLElement | string): Promise<void>;
|
|
255
258
|
updateConfig(newConfig: StraumurCheckoutUpdateOptions): void;
|
|
256
259
|
setLanguage(locale: PublicLocale): void;
|
|
257
260
|
destroy(): void;
|