@nordhealth/provet-pay-elements 0.18.0 → 0.19.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 +28 -0
- package/README.md +28 -6
- package/dist/loader/provet-pay-elements.mjs +1400 -1310
- package/dist/loader/provet-pay-elements.mjs.map +1 -1
- package/dist/loader/provet-pay-elements.umd.js +7 -7
- package/dist/loader/provet-pay-elements.umd.js.map +1 -1
- package/dist/types/index.d.mts +7 -3
- package/dist/types/index.d.ts +7 -3
- package/package.json +1 -1
package/dist/types/index.d.mts
CHANGED
|
@@ -113,6 +113,8 @@ interface PayCardTranslations {
|
|
|
113
113
|
'provetPay.errors.network'?: string;
|
|
114
114
|
/** Default: "The card form could not be opened. Try again later." */
|
|
115
115
|
'provetPay.errors.session_error'?: string;
|
|
116
|
+
/** Default: "Your session has expired, please reload the page" */
|
|
117
|
+
'provetPay.errors.session_expired'?: string;
|
|
116
118
|
/** Default: "Something went wrong while setting up the card." */
|
|
117
119
|
'provetPay.errors.technical'?: string;
|
|
118
120
|
/** Default: "Loading the card form" (read by screen readers) */
|
|
@@ -260,7 +262,8 @@ interface MountOptions {
|
|
|
260
262
|
* Something went wrong. When the component cannot go on, the form shows a
|
|
261
263
|
* banner. When Adyen reports an error with its card fields loaded and on the
|
|
262
264
|
* page, such as a failed call during the check, the form stays and the
|
|
263
|
-
* shopper can try again.
|
|
265
|
+
* shopper can try again. A form whose 55 minutes are up ends with a banner
|
|
266
|
+
* too, its card fields cleared.
|
|
264
267
|
*/
|
|
265
268
|
onError?: (error: ElementErrorPayload) => void;
|
|
266
269
|
}
|
|
@@ -273,7 +276,8 @@ interface ElementHandle {
|
|
|
273
276
|
* shopper typed into them is cleared, and `onReady` is called again. An open
|
|
274
277
|
* card session is resumed; one still being opened is not waited for. It
|
|
275
278
|
* does nothing for the locale the form already has, while a card check is
|
|
276
|
-
* running, once the card is saved,
|
|
279
|
+
* running, once the card is saved, after Adyen's attempt limit has ended the
|
|
280
|
+
* form (until "Add a new card" opens a new session), or after `unmount()`.
|
|
277
281
|
*/
|
|
278
282
|
changeLocale(locale?: string): void;
|
|
279
283
|
}
|
|
@@ -281,7 +285,7 @@ declare function mount(container: HTMLElement | string, options: MountOptions):
|
|
|
281
285
|
|
|
282
286
|
/** The locale the component and Adyen get when the consumer passes none, and the component's fallback. */
|
|
283
287
|
declare const DEFAULT_LOCALE = "en-GB";
|
|
284
|
-
/** The component's own text
|
|
288
|
+
/** The component's own English text: every `provetPay.*` key with its source string, which shows wherever a dictionary has none. Read-only. */
|
|
285
289
|
declare const DEFAULT_TRANSLATIONS: Readonly<Required<PayCardTranslations>>;
|
|
286
290
|
|
|
287
291
|
declare const VERSION: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -113,6 +113,8 @@ interface PayCardTranslations {
|
|
|
113
113
|
'provetPay.errors.network'?: string;
|
|
114
114
|
/** Default: "The card form could not be opened. Try again later." */
|
|
115
115
|
'provetPay.errors.session_error'?: string;
|
|
116
|
+
/** Default: "Your session has expired, please reload the page" */
|
|
117
|
+
'provetPay.errors.session_expired'?: string;
|
|
116
118
|
/** Default: "Something went wrong while setting up the card." */
|
|
117
119
|
'provetPay.errors.technical'?: string;
|
|
118
120
|
/** Default: "Loading the card form" (read by screen readers) */
|
|
@@ -260,7 +262,8 @@ interface MountOptions {
|
|
|
260
262
|
* Something went wrong. When the component cannot go on, the form shows a
|
|
261
263
|
* banner. When Adyen reports an error with its card fields loaded and on the
|
|
262
264
|
* page, such as a failed call during the check, the form stays and the
|
|
263
|
-
* shopper can try again.
|
|
265
|
+
* shopper can try again. A form whose 55 minutes are up ends with a banner
|
|
266
|
+
* too, its card fields cleared.
|
|
264
267
|
*/
|
|
265
268
|
onError?: (error: ElementErrorPayload) => void;
|
|
266
269
|
}
|
|
@@ -273,7 +276,8 @@ interface ElementHandle {
|
|
|
273
276
|
* shopper typed into them is cleared, and `onReady` is called again. An open
|
|
274
277
|
* card session is resumed; one still being opened is not waited for. It
|
|
275
278
|
* does nothing for the locale the form already has, while a card check is
|
|
276
|
-
* running, once the card is saved,
|
|
279
|
+
* running, once the card is saved, after Adyen's attempt limit has ended the
|
|
280
|
+
* form (until "Add a new card" opens a new session), or after `unmount()`.
|
|
277
281
|
*/
|
|
278
282
|
changeLocale(locale?: string): void;
|
|
279
283
|
}
|
|
@@ -281,7 +285,7 @@ declare function mount(container: HTMLElement | string, options: MountOptions):
|
|
|
281
285
|
|
|
282
286
|
/** The locale the component and Adyen get when the consumer passes none, and the component's fallback. */
|
|
283
287
|
declare const DEFAULT_LOCALE = "en-GB";
|
|
284
|
-
/** The component's own text
|
|
288
|
+
/** The component's own English text: every `provetPay.*` key with its source string, which shows wherever a dictionary has none. Read-only. */
|
|
285
289
|
declare const DEFAULT_TRANSLATIONS: Readonly<Required<PayCardTranslations>>;
|
|
286
290
|
|
|
287
291
|
declare const VERSION: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordhealth/provet-pay-elements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "Embeddable Provet Pay card tokenizer — the Adyen Web v6 Sessions flow, mounted on the consumer’s own page and backed by Provet.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://gitlab.com/nordhealth/projects/microservices/payment-gateway/pay-js/-/tree/master/provet-pay-elements",
|