@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
|
@@ -9112,9 +9112,13 @@ var DEFAULT_BRANDING_BASE = {
|
|
|
9112
9112
|
paypalCardLayout: "split",
|
|
9113
9113
|
paypalLabelStyle: "above",
|
|
9114
9114
|
paypalFieldChrome: "outlined",
|
|
9115
|
+
mollieFieldChrome: "outlined",
|
|
9115
9116
|
paypalFieldFontSize: "md",
|
|
9117
|
+
mollieFieldFontSize: "md",
|
|
9116
9118
|
paypalFieldWeight: "regular",
|
|
9119
|
+
mollieFieldWeight: "regular",
|
|
9117
9120
|
paypalFocusRing: "strong",
|
|
9121
|
+
mollieFocusRing: "strong",
|
|
9118
9122
|
paypalValidTint: false,
|
|
9119
9123
|
nomupayFormStyle: "plain",
|
|
9120
9124
|
nomupayShowLabels: true,
|
|
@@ -10014,21 +10018,41 @@ function decodeBranding(source) {
|
|
|
10014
10018
|
CARD_FIELD_CHROMES,
|
|
10015
10019
|
DEFAULT_BRANDING.paypalFieldChrome
|
|
10016
10020
|
),
|
|
10021
|
+
mollieFieldChrome: pickEnum(
|
|
10022
|
+
extras["mollieFieldChrome"],
|
|
10023
|
+
CARD_FIELD_CHROMES,
|
|
10024
|
+
DEFAULT_BRANDING.mollieFieldChrome
|
|
10025
|
+
),
|
|
10017
10026
|
paypalFieldFontSize: pickEnum(
|
|
10018
10027
|
extras["paypalFieldFontSize"],
|
|
10019
10028
|
CARD_FIELD_FONT_SIZES,
|
|
10020
10029
|
DEFAULT_BRANDING.paypalFieldFontSize
|
|
10021
10030
|
),
|
|
10031
|
+
mollieFieldFontSize: pickEnum(
|
|
10032
|
+
extras["mollieFieldFontSize"],
|
|
10033
|
+
CARD_FIELD_FONT_SIZES,
|
|
10034
|
+
DEFAULT_BRANDING.mollieFieldFontSize
|
|
10035
|
+
),
|
|
10022
10036
|
paypalFieldWeight: pickEnum(
|
|
10023
10037
|
extras["paypalFieldWeight"],
|
|
10024
10038
|
CARD_FIELD_WEIGHTS,
|
|
10025
10039
|
DEFAULT_BRANDING.paypalFieldWeight
|
|
10026
10040
|
),
|
|
10041
|
+
mollieFieldWeight: pickEnum(
|
|
10042
|
+
extras["mollieFieldWeight"],
|
|
10043
|
+
CARD_FIELD_WEIGHTS,
|
|
10044
|
+
DEFAULT_BRANDING.mollieFieldWeight
|
|
10045
|
+
),
|
|
10027
10046
|
paypalFocusRing: pickEnum(
|
|
10028
10047
|
extras["paypalFocusRing"],
|
|
10029
10048
|
CARD_FOCUS_RINGS,
|
|
10030
10049
|
DEFAULT_BRANDING.paypalFocusRing
|
|
10031
10050
|
),
|
|
10051
|
+
mollieFocusRing: pickEnum(
|
|
10052
|
+
extras["mollieFocusRing"],
|
|
10053
|
+
CARD_FOCUS_RINGS,
|
|
10054
|
+
DEFAULT_BRANDING.mollieFocusRing
|
|
10055
|
+
),
|
|
10032
10056
|
paypalValidTint: parseBool(extras["paypalValidTint"], DEFAULT_BRANDING.paypalValidTint),
|
|
10033
10057
|
nomupayFormStyle: pickEnum(
|
|
10034
10058
|
extras["nomupayFormStyle"],
|
|
@@ -10165,9 +10189,13 @@ function encodeBranding(branding, base) {
|
|
|
10165
10189
|
paypalCardLayout: branding.paypalCardLayout,
|
|
10166
10190
|
paypalLabelStyle: branding.paypalLabelStyle,
|
|
10167
10191
|
paypalFieldChrome: branding.paypalFieldChrome,
|
|
10192
|
+
mollieFieldChrome: branding.mollieFieldChrome,
|
|
10168
10193
|
paypalFieldFontSize: branding.paypalFieldFontSize,
|
|
10194
|
+
mollieFieldFontSize: branding.mollieFieldFontSize,
|
|
10169
10195
|
paypalFieldWeight: branding.paypalFieldWeight,
|
|
10196
|
+
mollieFieldWeight: branding.mollieFieldWeight,
|
|
10170
10197
|
paypalFocusRing: branding.paypalFocusRing,
|
|
10198
|
+
mollieFocusRing: branding.mollieFocusRing,
|
|
10171
10199
|
paypalValidTint: String(branding.paypalValidTint),
|
|
10172
10200
|
nomupayFormStyle: branding.nomupayFormStyle,
|
|
10173
10201
|
nomupayShowLabels: String(branding.nomupayShowLabels),
|
|
@@ -10520,21 +10548,41 @@ function parseImportedBranding(raw) {
|
|
|
10520
10548
|
CARD_FIELD_CHROMES,
|
|
10521
10549
|
dflt.paypalFieldChrome
|
|
10522
10550
|
),
|
|
10551
|
+
mollieFieldChrome: pickEnum(
|
|
10552
|
+
root["mollieFieldChrome"],
|
|
10553
|
+
CARD_FIELD_CHROMES,
|
|
10554
|
+
dflt.mollieFieldChrome
|
|
10555
|
+
),
|
|
10523
10556
|
paypalFieldFontSize: pickEnum(
|
|
10524
10557
|
root["paypalFieldFontSize"],
|
|
10525
10558
|
CARD_FIELD_FONT_SIZES,
|
|
10526
10559
|
dflt.paypalFieldFontSize
|
|
10527
10560
|
),
|
|
10561
|
+
mollieFieldFontSize: pickEnum(
|
|
10562
|
+
root["mollieFieldFontSize"],
|
|
10563
|
+
CARD_FIELD_FONT_SIZES,
|
|
10564
|
+
dflt.mollieFieldFontSize
|
|
10565
|
+
),
|
|
10528
10566
|
paypalFieldWeight: pickEnum(
|
|
10529
10567
|
root["paypalFieldWeight"],
|
|
10530
10568
|
CARD_FIELD_WEIGHTS,
|
|
10531
10569
|
dflt.paypalFieldWeight
|
|
10532
10570
|
),
|
|
10571
|
+
mollieFieldWeight: pickEnum(
|
|
10572
|
+
root["mollieFieldWeight"],
|
|
10573
|
+
CARD_FIELD_WEIGHTS,
|
|
10574
|
+
dflt.mollieFieldWeight
|
|
10575
|
+
),
|
|
10533
10576
|
paypalFocusRing: pickEnum(
|
|
10534
10577
|
root["paypalFocusRing"],
|
|
10535
10578
|
CARD_FOCUS_RINGS,
|
|
10536
10579
|
dflt.paypalFocusRing
|
|
10537
10580
|
),
|
|
10581
|
+
mollieFocusRing: pickEnum(
|
|
10582
|
+
root["mollieFocusRing"],
|
|
10583
|
+
CARD_FOCUS_RINGS,
|
|
10584
|
+
dflt.mollieFocusRing
|
|
10585
|
+
),
|
|
10538
10586
|
paypalValidTint: parseBool(root["paypalValidTint"], dflt.paypalValidTint),
|
|
10539
10587
|
nomupayFormStyle: pickEnum(
|
|
10540
10588
|
root["nomupayFormStyle"],
|
|
@@ -11026,6 +11074,17 @@ var CheckoutSession = class {
|
|
|
11026
11074
|
return void 0;
|
|
11027
11075
|
}
|
|
11028
11076
|
}
|
|
11077
|
+
/** Create a new Apple merchant-validation session for a payable Mollie checkout.
|
|
11078
|
+
* Requires a live Mollie validation key even for a test payment; never charges.
|
|
11079
|
+
* Browser Origin must match the configured checkout domain.
|
|
11080
|
+
*/
|
|
11081
|
+
async mollieApplePaySession(params, options) {
|
|
11082
|
+
return this.client.request("POST", `${this.linkBase}/mollie/apple-pay-session`, {
|
|
11083
|
+
...options,
|
|
11084
|
+
body: params,
|
|
11085
|
+
headers: this.bearerHeaders(options?.headers)
|
|
11086
|
+
});
|
|
11087
|
+
}
|
|
11029
11088
|
/**
|
|
11030
11089
|
* A short-lived VGS Collect session for browser-side card capture.
|
|
11031
11090
|
*
|
|
@@ -11879,4 +11938,4 @@ export {
|
|
|
11879
11938
|
decodeNativePanes,
|
|
11880
11939
|
encodeNativePanes
|
|
11881
11940
|
};
|
|
11882
|
-
//# sourceMappingURL=chunk-
|
|
11941
|
+
//# sourceMappingURL=chunk-TNEV5OYF.js.map
|