@delopay/sdk 0.216.0 → 0.217.0
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/{chunk-2FVZDCET.js → chunk-TNEV5OYF.js} +60 -1
- package/dist/{chunk-2FVZDCET.js.map → chunk-TNEV5OYF.js.map} +1 -1
- package/dist/index.cjs +59 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -1
- package/dist/index.d.ts +33 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +59 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +17 -18
package/dist/index.cjs
CHANGED
|
@@ -9358,9 +9358,13 @@ var DEFAULT_BRANDING_BASE = {
|
|
|
9358
9358
|
paypalCardLayout: "split",
|
|
9359
9359
|
paypalLabelStyle: "above",
|
|
9360
9360
|
paypalFieldChrome: "outlined",
|
|
9361
|
+
mollieFieldChrome: "outlined",
|
|
9361
9362
|
paypalFieldFontSize: "md",
|
|
9363
|
+
mollieFieldFontSize: "md",
|
|
9362
9364
|
paypalFieldWeight: "regular",
|
|
9365
|
+
mollieFieldWeight: "regular",
|
|
9363
9366
|
paypalFocusRing: "strong",
|
|
9367
|
+
mollieFocusRing: "strong",
|
|
9364
9368
|
paypalValidTint: false,
|
|
9365
9369
|
nomupayFormStyle: "plain",
|
|
9366
9370
|
nomupayShowLabels: true,
|
|
@@ -10260,21 +10264,41 @@ function decodeBranding(source) {
|
|
|
10260
10264
|
CARD_FIELD_CHROMES,
|
|
10261
10265
|
DEFAULT_BRANDING.paypalFieldChrome
|
|
10262
10266
|
),
|
|
10267
|
+
mollieFieldChrome: pickEnum(
|
|
10268
|
+
extras["mollieFieldChrome"],
|
|
10269
|
+
CARD_FIELD_CHROMES,
|
|
10270
|
+
DEFAULT_BRANDING.mollieFieldChrome
|
|
10271
|
+
),
|
|
10263
10272
|
paypalFieldFontSize: pickEnum(
|
|
10264
10273
|
extras["paypalFieldFontSize"],
|
|
10265
10274
|
CARD_FIELD_FONT_SIZES,
|
|
10266
10275
|
DEFAULT_BRANDING.paypalFieldFontSize
|
|
10267
10276
|
),
|
|
10277
|
+
mollieFieldFontSize: pickEnum(
|
|
10278
|
+
extras["mollieFieldFontSize"],
|
|
10279
|
+
CARD_FIELD_FONT_SIZES,
|
|
10280
|
+
DEFAULT_BRANDING.mollieFieldFontSize
|
|
10281
|
+
),
|
|
10268
10282
|
paypalFieldWeight: pickEnum(
|
|
10269
10283
|
extras["paypalFieldWeight"],
|
|
10270
10284
|
CARD_FIELD_WEIGHTS,
|
|
10271
10285
|
DEFAULT_BRANDING.paypalFieldWeight
|
|
10272
10286
|
),
|
|
10287
|
+
mollieFieldWeight: pickEnum(
|
|
10288
|
+
extras["mollieFieldWeight"],
|
|
10289
|
+
CARD_FIELD_WEIGHTS,
|
|
10290
|
+
DEFAULT_BRANDING.mollieFieldWeight
|
|
10291
|
+
),
|
|
10273
10292
|
paypalFocusRing: pickEnum(
|
|
10274
10293
|
extras["paypalFocusRing"],
|
|
10275
10294
|
CARD_FOCUS_RINGS,
|
|
10276
10295
|
DEFAULT_BRANDING.paypalFocusRing
|
|
10277
10296
|
),
|
|
10297
|
+
mollieFocusRing: pickEnum(
|
|
10298
|
+
extras["mollieFocusRing"],
|
|
10299
|
+
CARD_FOCUS_RINGS,
|
|
10300
|
+
DEFAULT_BRANDING.mollieFocusRing
|
|
10301
|
+
),
|
|
10278
10302
|
paypalValidTint: parseBool(extras["paypalValidTint"], DEFAULT_BRANDING.paypalValidTint),
|
|
10279
10303
|
nomupayFormStyle: pickEnum(
|
|
10280
10304
|
extras["nomupayFormStyle"],
|
|
@@ -10411,9 +10435,13 @@ function encodeBranding(branding, base) {
|
|
|
10411
10435
|
paypalCardLayout: branding.paypalCardLayout,
|
|
10412
10436
|
paypalLabelStyle: branding.paypalLabelStyle,
|
|
10413
10437
|
paypalFieldChrome: branding.paypalFieldChrome,
|
|
10438
|
+
mollieFieldChrome: branding.mollieFieldChrome,
|
|
10414
10439
|
paypalFieldFontSize: branding.paypalFieldFontSize,
|
|
10440
|
+
mollieFieldFontSize: branding.mollieFieldFontSize,
|
|
10415
10441
|
paypalFieldWeight: branding.paypalFieldWeight,
|
|
10442
|
+
mollieFieldWeight: branding.mollieFieldWeight,
|
|
10416
10443
|
paypalFocusRing: branding.paypalFocusRing,
|
|
10444
|
+
mollieFocusRing: branding.mollieFocusRing,
|
|
10417
10445
|
paypalValidTint: String(branding.paypalValidTint),
|
|
10418
10446
|
nomupayFormStyle: branding.nomupayFormStyle,
|
|
10419
10447
|
nomupayShowLabels: String(branding.nomupayShowLabels),
|
|
@@ -10766,21 +10794,41 @@ function parseImportedBranding(raw) {
|
|
|
10766
10794
|
CARD_FIELD_CHROMES,
|
|
10767
10795
|
dflt.paypalFieldChrome
|
|
10768
10796
|
),
|
|
10797
|
+
mollieFieldChrome: pickEnum(
|
|
10798
|
+
root["mollieFieldChrome"],
|
|
10799
|
+
CARD_FIELD_CHROMES,
|
|
10800
|
+
dflt.mollieFieldChrome
|
|
10801
|
+
),
|
|
10769
10802
|
paypalFieldFontSize: pickEnum(
|
|
10770
10803
|
root["paypalFieldFontSize"],
|
|
10771
10804
|
CARD_FIELD_FONT_SIZES,
|
|
10772
10805
|
dflt.paypalFieldFontSize
|
|
10773
10806
|
),
|
|
10807
|
+
mollieFieldFontSize: pickEnum(
|
|
10808
|
+
root["mollieFieldFontSize"],
|
|
10809
|
+
CARD_FIELD_FONT_SIZES,
|
|
10810
|
+
dflt.mollieFieldFontSize
|
|
10811
|
+
),
|
|
10774
10812
|
paypalFieldWeight: pickEnum(
|
|
10775
10813
|
root["paypalFieldWeight"],
|
|
10776
10814
|
CARD_FIELD_WEIGHTS,
|
|
10777
10815
|
dflt.paypalFieldWeight
|
|
10778
10816
|
),
|
|
10817
|
+
mollieFieldWeight: pickEnum(
|
|
10818
|
+
root["mollieFieldWeight"],
|
|
10819
|
+
CARD_FIELD_WEIGHTS,
|
|
10820
|
+
dflt.mollieFieldWeight
|
|
10821
|
+
),
|
|
10779
10822
|
paypalFocusRing: pickEnum(
|
|
10780
10823
|
root["paypalFocusRing"],
|
|
10781
10824
|
CARD_FOCUS_RINGS,
|
|
10782
10825
|
dflt.paypalFocusRing
|
|
10783
10826
|
),
|
|
10827
|
+
mollieFocusRing: pickEnum(
|
|
10828
|
+
root["mollieFocusRing"],
|
|
10829
|
+
CARD_FOCUS_RINGS,
|
|
10830
|
+
dflt.mollieFocusRing
|
|
10831
|
+
),
|
|
10784
10832
|
paypalValidTint: parseBool(root["paypalValidTint"], dflt.paypalValidTint),
|
|
10785
10833
|
nomupayFormStyle: pickEnum(
|
|
10786
10834
|
root["nomupayFormStyle"],
|
|
@@ -11272,6 +11320,17 @@ var CheckoutSession = class {
|
|
|
11272
11320
|
return void 0;
|
|
11273
11321
|
}
|
|
11274
11322
|
}
|
|
11323
|
+
/** Create a new Apple merchant-validation session for a payable Mollie checkout.
|
|
11324
|
+
* Requires a live Mollie validation key even for a test payment; never charges.
|
|
11325
|
+
* Browser Origin must match the configured checkout domain.
|
|
11326
|
+
*/
|
|
11327
|
+
async mollieApplePaySession(params, options) {
|
|
11328
|
+
return this.client.request("POST", `${this.linkBase}/mollie/apple-pay-session`, {
|
|
11329
|
+
...options,
|
|
11330
|
+
body: params,
|
|
11331
|
+
headers: this.bearerHeaders(options?.headers)
|
|
11332
|
+
});
|
|
11333
|
+
}
|
|
11275
11334
|
/**
|
|
11276
11335
|
* A short-lived VGS Collect session for browser-side card capture.
|
|
11277
11336
|
*
|