@delopay/sdk 0.154.0 → 0.155.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-CRR4YKJV.js → chunk-GV7R45LR.js} +373 -1
- package/dist/chunk-GV7R45LR.js.map +1 -0
- package/dist/index.cjs +393 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +110 -1
- package/dist/index.d.ts +110 -1
- package/dist/index.js +43 -1
- package/dist/internal.cjs +393 -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 +43 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-CRR4YKJV.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -33,12 +33,18 @@ __export(index_exports, {
|
|
|
33
33
|
ALL_CUSTOM_FIELD_CONDITION_SOURCES: () => ALL_CUSTOM_FIELD_CONDITION_SOURCES,
|
|
34
34
|
ALL_CUSTOM_FIELD_OPERATORS: () => ALL_CUSTOM_FIELD_OPERATORS,
|
|
35
35
|
ALL_CUSTOM_FIELD_TYPES: () => ALL_CUSTOM_FIELD_TYPES,
|
|
36
|
+
APPLE_PAY_BUTTON_STYLES: () => APPLE_PAY_BUTTON_STYLES,
|
|
37
|
+
APPLE_PAY_BUTTON_TYPES: () => APPLE_PAY_BUTTON_TYPES,
|
|
36
38
|
Analytics: () => Analytics,
|
|
37
39
|
AnalyticsDashboard: () => AnalyticsDashboard,
|
|
38
40
|
Audit: () => Audit,
|
|
39
41
|
AvailabilityOverrides: () => AvailabilityOverrides,
|
|
40
42
|
BRANDING_EXPORT_FORMAT: () => BRANDING_EXPORT_FORMAT,
|
|
41
43
|
BRANDING_EXPORT_VERSION: () => BRANDING_EXPORT_VERSION,
|
|
44
|
+
CARD_FIELD_CHROMES: () => CARD_FIELD_CHROMES,
|
|
45
|
+
CARD_FIELD_FONT_SIZES: () => CARD_FIELD_FONT_SIZES,
|
|
46
|
+
CARD_FIELD_WEIGHTS: () => CARD_FIELD_WEIGHTS,
|
|
47
|
+
CARD_FOCUS_RINGS: () => CARD_FOCUS_RINGS,
|
|
42
48
|
CHECKBOX_CHECKED: () => CHECKBOX_CHECKED,
|
|
43
49
|
CHECKBOX_UNCHECKED: () => CHECKBOX_UNCHECKED,
|
|
44
50
|
CHECKOUT_EVENT_KINDS: () => CHECKOUT_EVENT_KINDS,
|
|
@@ -64,6 +70,8 @@ __export(index_exports, {
|
|
|
64
70
|
FeeProgramBuilder: () => FeeProgramBuilder,
|
|
65
71
|
Files: () => Files,
|
|
66
72
|
Forex: () => Forex,
|
|
73
|
+
GOOGLE_PAY_BUTTON_COLORS: () => GOOGLE_PAY_BUTTON_COLORS,
|
|
74
|
+
GOOGLE_PAY_BUTTON_TYPES: () => GOOGLE_PAY_BUTTON_TYPES,
|
|
67
75
|
LOCALIZABLE_COPY_FIELDS: () => LOCALIZABLE_COPY_FIELDS,
|
|
68
76
|
MAX_SECTION_LABEL_LENGTH: () => MAX_SECTION_LABEL_LENGTH,
|
|
69
77
|
MAX_SECTION_ORDER: () => MAX_SECTION_ORDER,
|
|
@@ -73,10 +81,13 @@ __export(index_exports, {
|
|
|
73
81
|
NATIVE_PANES_MAX: () => NATIVE_PANES_MAX,
|
|
74
82
|
NATIVE_PANE_CATEGORY_KEYS: () => NATIVE_PANE_CATEGORY_KEYS,
|
|
75
83
|
NATIVE_PANE_ICON_KEYS: () => NATIVE_PANE_ICON_KEYS,
|
|
84
|
+
NOMUPAY_FORM_STYLES: () => NOMUPAY_FORM_STYLES,
|
|
76
85
|
OperationLimits: () => OperationLimits,
|
|
77
86
|
PANES_MAX: () => PANES_MAX,
|
|
78
87
|
PANE_CATEGORY_KEYS: () => PANE_CATEGORY_KEYS,
|
|
79
88
|
PANE_ICON_KEYS: () => PANE_ICON_KEYS,
|
|
89
|
+
PAYPAL_CARD_LAYOUTS: () => PAYPAL_CARD_LAYOUTS,
|
|
90
|
+
PAYPAL_LABEL_STYLES: () => PAYPAL_LABEL_STYLES,
|
|
80
91
|
PaypalDisputes: () => PaypalDisputes,
|
|
81
92
|
RTL_CHECKOUT_LOCALES: () => RTL_CHECKOUT_LOCALES,
|
|
82
93
|
Regions: () => Regions,
|
|
@@ -84,7 +95,11 @@ __export(index_exports, {
|
|
|
84
95
|
SECTION_ALIASES: () => SECTION_ALIASES,
|
|
85
96
|
STRIPE_FALLBACK_PANE_CATALOG: () => STRIPE_FALLBACK_PANE_CATALOG,
|
|
86
97
|
STRIPE_FALLBACK_PANE_METHODS: () => STRIPE_FALLBACK_PANE_METHODS,
|
|
98
|
+
STRIPE_INPUT_STYLES: () => STRIPE_INPUT_STYLES,
|
|
99
|
+
STRIPE_LABEL_PLACEMENTS: () => STRIPE_LABEL_PLACEMENTS,
|
|
87
100
|
STRIPE_NATIVE_PANE_METHODS: () => STRIPE_NATIVE_PANE_METHODS,
|
|
101
|
+
STRIPE_SPACINGS: () => STRIPE_SPACINGS,
|
|
102
|
+
STRIPE_THEMES: () => STRIPE_THEMES,
|
|
88
103
|
SURCHARGE_BORDER_STYLES: () => SURCHARGE_BORDER_STYLES,
|
|
89
104
|
SURCHARGE_BORDER_WIDTHS: () => SURCHARGE_BORDER_WIDTHS,
|
|
90
105
|
SURCHARGE_FIGURE_MODES: () => SURCHARGE_FIGURE_MODES,
|
|
@@ -114,6 +129,8 @@ __export(index_exports, {
|
|
|
114
129
|
buildBrandingExport: () => buildBrandingExport,
|
|
115
130
|
buttonPadValue: () => buttonPadValue,
|
|
116
131
|
canonicalSectionId: () => canonicalSectionId,
|
|
132
|
+
cardFieldFontPx: () => cardFieldFontPx,
|
|
133
|
+
cardFieldWeightValue: () => cardFieldWeightValue,
|
|
117
134
|
checkoutCopy: () => checkoutCopy,
|
|
118
135
|
checkoutLocaleDir: () => checkoutLocaleDir,
|
|
119
136
|
cloneBranding: () => cloneBranding,
|
|
@@ -177,11 +194,15 @@ __export(index_exports, {
|
|
|
177
194
|
readableInkOn: () => readableInkOn,
|
|
178
195
|
resolveAirwallexCardPreset: () => resolveAirwallexCardPreset,
|
|
179
196
|
resolveAirwallexLabelStyle: () => resolveAirwallexLabelStyle,
|
|
197
|
+
resolveApplePayButtonStyle: () => resolveApplePayButtonStyle,
|
|
198
|
+
resolveGooglePayButtonColor: () => resolveGooglePayButtonColor,
|
|
199
|
+
resolveStripeTheme: () => resolveStripeTheme,
|
|
180
200
|
ruleMatchToTree: () => ruleMatchToTree,
|
|
181
201
|
sanitizeCustomCss: () => sanitizeCustomCss,
|
|
182
202
|
sectionLabel: () => sectionLabel,
|
|
183
203
|
sectionOrderOf: () => sectionOrderOf,
|
|
184
204
|
shadowFor: () => shadowFor,
|
|
205
|
+
stripeSpacingValues: () => stripeSpacingValues,
|
|
185
206
|
surchargeFigurePlan: () => surchargeFigurePlan,
|
|
186
207
|
surchargeShowsLabel: () => surchargeShowsLabel,
|
|
187
208
|
surchargeStyleDrawsAShape: () => surchargeStyleDrawsAShape,
|
|
@@ -6049,6 +6070,72 @@ function airwallexFieldWeightValue(weight) {
|
|
|
6049
6070
|
}
|
|
6050
6071
|
var AIRWALLEX_NETWORK_MARKS = ["visa", "mastercard", "amex", "discover"];
|
|
6051
6072
|
|
|
6073
|
+
// src/cardFormStyles.ts
|
|
6074
|
+
var CARD_FIELD_CHROMES = AIRWALLEX_FIELD_CHROMES;
|
|
6075
|
+
var CARD_FIELD_FONT_SIZES = AIRWALLEX_FIELD_FONT_SIZES;
|
|
6076
|
+
var CARD_FIELD_WEIGHTS = AIRWALLEX_FIELD_WEIGHTS;
|
|
6077
|
+
var CARD_FOCUS_RINGS = AIRWALLEX_FOCUS_RINGS;
|
|
6078
|
+
function cardFieldFontPx(size) {
|
|
6079
|
+
return size === "sm" ? 14 : size === "lg" ? 18 : 16;
|
|
6080
|
+
}
|
|
6081
|
+
function cardFieldWeightValue(weight) {
|
|
6082
|
+
return weight === "regular" ? 400 : weight === "semibold" ? 600 : 500;
|
|
6083
|
+
}
|
|
6084
|
+
var STRIPE_THEMES = ["auto", "stripe", "flat", "night"];
|
|
6085
|
+
function resolveStripeTheme(theme, dark) {
|
|
6086
|
+
if (theme === "auto") return dark ? "night" : "stripe";
|
|
6087
|
+
return theme;
|
|
6088
|
+
}
|
|
6089
|
+
var STRIPE_INPUT_STYLES = ["spaced", "condensed"];
|
|
6090
|
+
var STRIPE_LABEL_PLACEMENTS = ["above", "floating"];
|
|
6091
|
+
var STRIPE_SPACINGS = ["compact", "comfortable", "spacious"];
|
|
6092
|
+
function stripeSpacingValues(spacing) {
|
|
6093
|
+
if (spacing === "compact") return { spacingUnit: "3px", gridRowSpacing: "8px" };
|
|
6094
|
+
if (spacing === "spacious") return { spacingUnit: "5px", gridRowSpacing: "16px" };
|
|
6095
|
+
return { spacingUnit: "4px", gridRowSpacing: "12px" };
|
|
6096
|
+
}
|
|
6097
|
+
var PAYPAL_CARD_LAYOUTS = ["split", "stacked"];
|
|
6098
|
+
var PAYPAL_LABEL_STYLES = ["above", "none"];
|
|
6099
|
+
var NOMUPAY_FORM_STYLES = ["plain", "card"];
|
|
6100
|
+
var APPLE_PAY_BUTTON_STYLES = ["auto", "black", "white", "white-outline"];
|
|
6101
|
+
function resolveApplePayButtonStyle(style, dark) {
|
|
6102
|
+
if (style === "auto") return dark ? "white" : "black";
|
|
6103
|
+
return style;
|
|
6104
|
+
}
|
|
6105
|
+
var APPLE_PAY_BUTTON_TYPES = [
|
|
6106
|
+
"pay",
|
|
6107
|
+
"plain",
|
|
6108
|
+
"buy",
|
|
6109
|
+
"check-out",
|
|
6110
|
+
"continue",
|
|
6111
|
+
"book",
|
|
6112
|
+
"order",
|
|
6113
|
+
"subscribe",
|
|
6114
|
+
"donate",
|
|
6115
|
+
"contribute",
|
|
6116
|
+
"support",
|
|
6117
|
+
"tip",
|
|
6118
|
+
"add-money",
|
|
6119
|
+
"top-up",
|
|
6120
|
+
"reload",
|
|
6121
|
+
"rent"
|
|
6122
|
+
];
|
|
6123
|
+
var GOOGLE_PAY_BUTTON_COLORS = ["auto", "default", "black", "white"];
|
|
6124
|
+
function resolveGooglePayButtonColor(color, dark) {
|
|
6125
|
+
if (color === "auto") return dark ? "white" : "black";
|
|
6126
|
+
return color;
|
|
6127
|
+
}
|
|
6128
|
+
var GOOGLE_PAY_BUTTON_TYPES = [
|
|
6129
|
+
"pay",
|
|
6130
|
+
"plain",
|
|
6131
|
+
"buy",
|
|
6132
|
+
"checkout",
|
|
6133
|
+
"book",
|
|
6134
|
+
"order",
|
|
6135
|
+
"subscribe",
|
|
6136
|
+
"donate"
|
|
6137
|
+
];
|
|
6138
|
+
|
|
6052
6139
|
// src/branding.ts
|
|
6053
6140
|
function surchargeShowsLabel(labelMode, style, position) {
|
|
6054
6141
|
if (labelMode !== "labelled") return false;
|
|
@@ -6612,6 +6699,34 @@ var DEFAULT_BRANDING_BASE = {
|
|
|
6612
6699
|
airwallexAutofill: "system",
|
|
6613
6700
|
airwallexValidTint: false,
|
|
6614
6701
|
airwallexNetworkMarks: false,
|
|
6702
|
+
// Every card-form field below starts on what its pane drew before the
|
|
6703
|
+
// setting existed, so a merchant who never opens a section sees no change.
|
|
6704
|
+
stripeTheme: "auto",
|
|
6705
|
+
stripeInputs: "spaced",
|
|
6706
|
+
stripeLabels: "above",
|
|
6707
|
+
stripeSpacing: "comfortable",
|
|
6708
|
+
stripeFieldFontSize: "md",
|
|
6709
|
+
stripeFieldWeight: "medium",
|
|
6710
|
+
stripeFocusRing: "strong",
|
|
6711
|
+
stripeDisableAnimations: false,
|
|
6712
|
+
paypalCardLayout: "split",
|
|
6713
|
+
paypalLabelStyle: "above",
|
|
6714
|
+
paypalFieldChrome: "outlined",
|
|
6715
|
+
paypalFieldFontSize: "md",
|
|
6716
|
+
paypalFieldWeight: "regular",
|
|
6717
|
+
paypalFocusRing: "strong",
|
|
6718
|
+
paypalValidTint: false,
|
|
6719
|
+
nomupayFormStyle: "plain",
|
|
6720
|
+
nomupayShowLabels: true,
|
|
6721
|
+
nomupayShowPlaceholders: true,
|
|
6722
|
+
nomupayShowCvvHint: false,
|
|
6723
|
+
nomupayFieldChrome: "outlined",
|
|
6724
|
+
nomupayFieldFontSize: "md",
|
|
6725
|
+
nomupayFocusRing: "none",
|
|
6726
|
+
nomupayApplePayButtonStyle: "auto",
|
|
6727
|
+
nomupayApplePayButtonType: "pay",
|
|
6728
|
+
nomupayGooglePayButtonColor: "auto",
|
|
6729
|
+
nomupayGooglePayButtonType: "pay",
|
|
6615
6730
|
customCss: ""
|
|
6616
6731
|
};
|
|
6617
6732
|
var DEFAULT_BRANDING = {
|
|
@@ -7350,6 +7465,125 @@ function decodeBranding(source) {
|
|
|
7350
7465
|
extras["airwallexNetworkMarks"],
|
|
7351
7466
|
DEFAULT_BRANDING.airwallexNetworkMarks
|
|
7352
7467
|
),
|
|
7468
|
+
stripeTheme: pickEnum(
|
|
7469
|
+
extras["stripeTheme"],
|
|
7470
|
+
STRIPE_THEMES,
|
|
7471
|
+
DEFAULT_BRANDING.stripeTheme
|
|
7472
|
+
),
|
|
7473
|
+
stripeInputs: pickEnum(
|
|
7474
|
+
extras["stripeInputs"],
|
|
7475
|
+
STRIPE_INPUT_STYLES,
|
|
7476
|
+
DEFAULT_BRANDING.stripeInputs
|
|
7477
|
+
),
|
|
7478
|
+
stripeLabels: pickEnum(
|
|
7479
|
+
extras["stripeLabels"],
|
|
7480
|
+
STRIPE_LABEL_PLACEMENTS,
|
|
7481
|
+
DEFAULT_BRANDING.stripeLabels
|
|
7482
|
+
),
|
|
7483
|
+
stripeSpacing: pickEnum(
|
|
7484
|
+
extras["stripeSpacing"],
|
|
7485
|
+
STRIPE_SPACINGS,
|
|
7486
|
+
DEFAULT_BRANDING.stripeSpacing
|
|
7487
|
+
),
|
|
7488
|
+
stripeFieldFontSize: pickEnum(
|
|
7489
|
+
extras["stripeFieldFontSize"],
|
|
7490
|
+
CARD_FIELD_FONT_SIZES,
|
|
7491
|
+
DEFAULT_BRANDING.stripeFieldFontSize
|
|
7492
|
+
),
|
|
7493
|
+
stripeFieldWeight: pickEnum(
|
|
7494
|
+
extras["stripeFieldWeight"],
|
|
7495
|
+
CARD_FIELD_WEIGHTS,
|
|
7496
|
+
DEFAULT_BRANDING.stripeFieldWeight
|
|
7497
|
+
),
|
|
7498
|
+
stripeFocusRing: pickEnum(
|
|
7499
|
+
extras["stripeFocusRing"],
|
|
7500
|
+
CARD_FOCUS_RINGS,
|
|
7501
|
+
DEFAULT_BRANDING.stripeFocusRing
|
|
7502
|
+
),
|
|
7503
|
+
stripeDisableAnimations: parseBool(
|
|
7504
|
+
extras["stripeDisableAnimations"],
|
|
7505
|
+
DEFAULT_BRANDING.stripeDisableAnimations
|
|
7506
|
+
),
|
|
7507
|
+
paypalCardLayout: pickEnum(
|
|
7508
|
+
extras["paypalCardLayout"],
|
|
7509
|
+
PAYPAL_CARD_LAYOUTS,
|
|
7510
|
+
DEFAULT_BRANDING.paypalCardLayout
|
|
7511
|
+
),
|
|
7512
|
+
paypalLabelStyle: pickEnum(
|
|
7513
|
+
extras["paypalLabelStyle"],
|
|
7514
|
+
PAYPAL_LABEL_STYLES,
|
|
7515
|
+
DEFAULT_BRANDING.paypalLabelStyle
|
|
7516
|
+
),
|
|
7517
|
+
paypalFieldChrome: pickEnum(
|
|
7518
|
+
extras["paypalFieldChrome"],
|
|
7519
|
+
CARD_FIELD_CHROMES,
|
|
7520
|
+
DEFAULT_BRANDING.paypalFieldChrome
|
|
7521
|
+
),
|
|
7522
|
+
paypalFieldFontSize: pickEnum(
|
|
7523
|
+
extras["paypalFieldFontSize"],
|
|
7524
|
+
CARD_FIELD_FONT_SIZES,
|
|
7525
|
+
DEFAULT_BRANDING.paypalFieldFontSize
|
|
7526
|
+
),
|
|
7527
|
+
paypalFieldWeight: pickEnum(
|
|
7528
|
+
extras["paypalFieldWeight"],
|
|
7529
|
+
CARD_FIELD_WEIGHTS,
|
|
7530
|
+
DEFAULT_BRANDING.paypalFieldWeight
|
|
7531
|
+
),
|
|
7532
|
+
paypalFocusRing: pickEnum(
|
|
7533
|
+
extras["paypalFocusRing"],
|
|
7534
|
+
CARD_FOCUS_RINGS,
|
|
7535
|
+
DEFAULT_BRANDING.paypalFocusRing
|
|
7536
|
+
),
|
|
7537
|
+
paypalValidTint: parseBool(extras["paypalValidTint"], DEFAULT_BRANDING.paypalValidTint),
|
|
7538
|
+
nomupayFormStyle: pickEnum(
|
|
7539
|
+
extras["nomupayFormStyle"],
|
|
7540
|
+
NOMUPAY_FORM_STYLES,
|
|
7541
|
+
DEFAULT_BRANDING.nomupayFormStyle
|
|
7542
|
+
),
|
|
7543
|
+
nomupayShowLabels: parseBool(extras["nomupayShowLabels"], DEFAULT_BRANDING.nomupayShowLabels),
|
|
7544
|
+
nomupayShowPlaceholders: parseBool(
|
|
7545
|
+
extras["nomupayShowPlaceholders"],
|
|
7546
|
+
DEFAULT_BRANDING.nomupayShowPlaceholders
|
|
7547
|
+
),
|
|
7548
|
+
nomupayShowCvvHint: parseBool(
|
|
7549
|
+
extras["nomupayShowCvvHint"],
|
|
7550
|
+
DEFAULT_BRANDING.nomupayShowCvvHint
|
|
7551
|
+
),
|
|
7552
|
+
nomupayFieldChrome: pickEnum(
|
|
7553
|
+
extras["nomupayFieldChrome"],
|
|
7554
|
+
CARD_FIELD_CHROMES,
|
|
7555
|
+
DEFAULT_BRANDING.nomupayFieldChrome
|
|
7556
|
+
),
|
|
7557
|
+
nomupayFieldFontSize: pickEnum(
|
|
7558
|
+
extras["nomupayFieldFontSize"],
|
|
7559
|
+
CARD_FIELD_FONT_SIZES,
|
|
7560
|
+
DEFAULT_BRANDING.nomupayFieldFontSize
|
|
7561
|
+
),
|
|
7562
|
+
nomupayFocusRing: pickEnum(
|
|
7563
|
+
extras["nomupayFocusRing"],
|
|
7564
|
+
CARD_FOCUS_RINGS,
|
|
7565
|
+
DEFAULT_BRANDING.nomupayFocusRing
|
|
7566
|
+
),
|
|
7567
|
+
nomupayApplePayButtonStyle: pickEnum(
|
|
7568
|
+
extras["nomupayApplePayButtonStyle"],
|
|
7569
|
+
APPLE_PAY_BUTTON_STYLES,
|
|
7570
|
+
DEFAULT_BRANDING.nomupayApplePayButtonStyle
|
|
7571
|
+
),
|
|
7572
|
+
nomupayApplePayButtonType: pickEnum(
|
|
7573
|
+
extras["nomupayApplePayButtonType"],
|
|
7574
|
+
APPLE_PAY_BUTTON_TYPES,
|
|
7575
|
+
DEFAULT_BRANDING.nomupayApplePayButtonType
|
|
7576
|
+
),
|
|
7577
|
+
nomupayGooglePayButtonColor: pickEnum(
|
|
7578
|
+
extras["nomupayGooglePayButtonColor"],
|
|
7579
|
+
GOOGLE_PAY_BUTTON_COLORS,
|
|
7580
|
+
DEFAULT_BRANDING.nomupayGooglePayButtonColor
|
|
7581
|
+
),
|
|
7582
|
+
nomupayGooglePayButtonType: pickEnum(
|
|
7583
|
+
extras["nomupayGooglePayButtonType"],
|
|
7584
|
+
GOOGLE_PAY_BUTTON_TYPES,
|
|
7585
|
+
DEFAULT_BRANDING.nomupayGooglePayButtonType
|
|
7586
|
+
),
|
|
7353
7587
|
customCss: s(extras["customCss"])
|
|
7354
7588
|
};
|
|
7355
7589
|
}
|
|
@@ -7422,6 +7656,32 @@ function encodeBranding(branding, base) {
|
|
|
7422
7656
|
airwallexAutofill: branding.airwallexAutofill,
|
|
7423
7657
|
airwallexValidTint: String(branding.airwallexValidTint),
|
|
7424
7658
|
airwallexNetworkMarks: String(branding.airwallexNetworkMarks),
|
|
7659
|
+
stripeTheme: branding.stripeTheme,
|
|
7660
|
+
stripeInputs: branding.stripeInputs,
|
|
7661
|
+
stripeLabels: branding.stripeLabels,
|
|
7662
|
+
stripeSpacing: branding.stripeSpacing,
|
|
7663
|
+
stripeFieldFontSize: branding.stripeFieldFontSize,
|
|
7664
|
+
stripeFieldWeight: branding.stripeFieldWeight,
|
|
7665
|
+
stripeFocusRing: branding.stripeFocusRing,
|
|
7666
|
+
stripeDisableAnimations: String(branding.stripeDisableAnimations),
|
|
7667
|
+
paypalCardLayout: branding.paypalCardLayout,
|
|
7668
|
+
paypalLabelStyle: branding.paypalLabelStyle,
|
|
7669
|
+
paypalFieldChrome: branding.paypalFieldChrome,
|
|
7670
|
+
paypalFieldFontSize: branding.paypalFieldFontSize,
|
|
7671
|
+
paypalFieldWeight: branding.paypalFieldWeight,
|
|
7672
|
+
paypalFocusRing: branding.paypalFocusRing,
|
|
7673
|
+
paypalValidTint: String(branding.paypalValidTint),
|
|
7674
|
+
nomupayFormStyle: branding.nomupayFormStyle,
|
|
7675
|
+
nomupayShowLabels: String(branding.nomupayShowLabels),
|
|
7676
|
+
nomupayShowPlaceholders: String(branding.nomupayShowPlaceholders),
|
|
7677
|
+
nomupayShowCvvHint: String(branding.nomupayShowCvvHint),
|
|
7678
|
+
nomupayFieldChrome: branding.nomupayFieldChrome,
|
|
7679
|
+
nomupayFieldFontSize: branding.nomupayFieldFontSize,
|
|
7680
|
+
nomupayFocusRing: branding.nomupayFocusRing,
|
|
7681
|
+
nomupayApplePayButtonStyle: branding.nomupayApplePayButtonStyle,
|
|
7682
|
+
nomupayApplePayButtonType: branding.nomupayApplePayButtonType,
|
|
7683
|
+
nomupayGooglePayButtonColor: branding.nomupayGooglePayButtonColor,
|
|
7684
|
+
nomupayGooglePayButtonType: branding.nomupayGooglePayButtonType,
|
|
7425
7685
|
trustBadges: encodeBadges(branding.trustBadges),
|
|
7426
7686
|
[METHOD_SECTION_ORDER_KEY]: encodeMethodSectionOrder(branding.methodSectionOrder)
|
|
7427
7687
|
};
|
|
@@ -7692,6 +7952,118 @@ function parseImportedBranding(raw) {
|
|
|
7692
7952
|
),
|
|
7693
7953
|
airwallexValidTint: parseBool(root["airwallexValidTint"], dflt.airwallexValidTint),
|
|
7694
7954
|
airwallexNetworkMarks: parseBool(root["airwallexNetworkMarks"], dflt.airwallexNetworkMarks),
|
|
7955
|
+
stripeTheme: pickEnum(root["stripeTheme"], STRIPE_THEMES, dflt.stripeTheme),
|
|
7956
|
+
stripeInputs: pickEnum(
|
|
7957
|
+
root["stripeInputs"],
|
|
7958
|
+
STRIPE_INPUT_STYLES,
|
|
7959
|
+
dflt.stripeInputs
|
|
7960
|
+
),
|
|
7961
|
+
stripeLabels: pickEnum(
|
|
7962
|
+
root["stripeLabels"],
|
|
7963
|
+
STRIPE_LABEL_PLACEMENTS,
|
|
7964
|
+
dflt.stripeLabels
|
|
7965
|
+
),
|
|
7966
|
+
stripeSpacing: pickEnum(
|
|
7967
|
+
root["stripeSpacing"],
|
|
7968
|
+
STRIPE_SPACINGS,
|
|
7969
|
+
dflt.stripeSpacing
|
|
7970
|
+
),
|
|
7971
|
+
stripeFieldFontSize: pickEnum(
|
|
7972
|
+
root["stripeFieldFontSize"],
|
|
7973
|
+
CARD_FIELD_FONT_SIZES,
|
|
7974
|
+
dflt.stripeFieldFontSize
|
|
7975
|
+
),
|
|
7976
|
+
stripeFieldWeight: pickEnum(
|
|
7977
|
+
root["stripeFieldWeight"],
|
|
7978
|
+
CARD_FIELD_WEIGHTS,
|
|
7979
|
+
dflt.stripeFieldWeight
|
|
7980
|
+
),
|
|
7981
|
+
stripeFocusRing: pickEnum(
|
|
7982
|
+
root["stripeFocusRing"],
|
|
7983
|
+
CARD_FOCUS_RINGS,
|
|
7984
|
+
dflt.stripeFocusRing
|
|
7985
|
+
),
|
|
7986
|
+
stripeDisableAnimations: parseBool(
|
|
7987
|
+
root["stripeDisableAnimations"],
|
|
7988
|
+
dflt.stripeDisableAnimations
|
|
7989
|
+
),
|
|
7990
|
+
paypalCardLayout: pickEnum(
|
|
7991
|
+
root["paypalCardLayout"],
|
|
7992
|
+
PAYPAL_CARD_LAYOUTS,
|
|
7993
|
+
dflt.paypalCardLayout
|
|
7994
|
+
),
|
|
7995
|
+
paypalLabelStyle: pickEnum(
|
|
7996
|
+
root["paypalLabelStyle"],
|
|
7997
|
+
PAYPAL_LABEL_STYLES,
|
|
7998
|
+
dflt.paypalLabelStyle
|
|
7999
|
+
),
|
|
8000
|
+
paypalFieldChrome: pickEnum(
|
|
8001
|
+
root["paypalFieldChrome"],
|
|
8002
|
+
CARD_FIELD_CHROMES,
|
|
8003
|
+
dflt.paypalFieldChrome
|
|
8004
|
+
),
|
|
8005
|
+
paypalFieldFontSize: pickEnum(
|
|
8006
|
+
root["paypalFieldFontSize"],
|
|
8007
|
+
CARD_FIELD_FONT_SIZES,
|
|
8008
|
+
dflt.paypalFieldFontSize
|
|
8009
|
+
),
|
|
8010
|
+
paypalFieldWeight: pickEnum(
|
|
8011
|
+
root["paypalFieldWeight"],
|
|
8012
|
+
CARD_FIELD_WEIGHTS,
|
|
8013
|
+
dflt.paypalFieldWeight
|
|
8014
|
+
),
|
|
8015
|
+
paypalFocusRing: pickEnum(
|
|
8016
|
+
root["paypalFocusRing"],
|
|
8017
|
+
CARD_FOCUS_RINGS,
|
|
8018
|
+
dflt.paypalFocusRing
|
|
8019
|
+
),
|
|
8020
|
+
paypalValidTint: parseBool(root["paypalValidTint"], dflt.paypalValidTint),
|
|
8021
|
+
nomupayFormStyle: pickEnum(
|
|
8022
|
+
root["nomupayFormStyle"],
|
|
8023
|
+
NOMUPAY_FORM_STYLES,
|
|
8024
|
+
dflt.nomupayFormStyle
|
|
8025
|
+
),
|
|
8026
|
+
nomupayShowLabels: parseBool(root["nomupayShowLabels"], dflt.nomupayShowLabels),
|
|
8027
|
+
nomupayShowPlaceholders: parseBool(
|
|
8028
|
+
root["nomupayShowPlaceholders"],
|
|
8029
|
+
dflt.nomupayShowPlaceholders
|
|
8030
|
+
),
|
|
8031
|
+
nomupayShowCvvHint: parseBool(root["nomupayShowCvvHint"], dflt.nomupayShowCvvHint),
|
|
8032
|
+
nomupayFieldChrome: pickEnum(
|
|
8033
|
+
root["nomupayFieldChrome"],
|
|
8034
|
+
CARD_FIELD_CHROMES,
|
|
8035
|
+
dflt.nomupayFieldChrome
|
|
8036
|
+
),
|
|
8037
|
+
nomupayFieldFontSize: pickEnum(
|
|
8038
|
+
root["nomupayFieldFontSize"],
|
|
8039
|
+
CARD_FIELD_FONT_SIZES,
|
|
8040
|
+
dflt.nomupayFieldFontSize
|
|
8041
|
+
),
|
|
8042
|
+
nomupayFocusRing: pickEnum(
|
|
8043
|
+
root["nomupayFocusRing"],
|
|
8044
|
+
CARD_FOCUS_RINGS,
|
|
8045
|
+
dflt.nomupayFocusRing
|
|
8046
|
+
),
|
|
8047
|
+
nomupayApplePayButtonStyle: pickEnum(
|
|
8048
|
+
root["nomupayApplePayButtonStyle"],
|
|
8049
|
+
APPLE_PAY_BUTTON_STYLES,
|
|
8050
|
+
dflt.nomupayApplePayButtonStyle
|
|
8051
|
+
),
|
|
8052
|
+
nomupayApplePayButtonType: pickEnum(
|
|
8053
|
+
root["nomupayApplePayButtonType"],
|
|
8054
|
+
APPLE_PAY_BUTTON_TYPES,
|
|
8055
|
+
dflt.nomupayApplePayButtonType
|
|
8056
|
+
),
|
|
8057
|
+
nomupayGooglePayButtonColor: pickEnum(
|
|
8058
|
+
root["nomupayGooglePayButtonColor"],
|
|
8059
|
+
GOOGLE_PAY_BUTTON_COLORS,
|
|
8060
|
+
dflt.nomupayGooglePayButtonColor
|
|
8061
|
+
),
|
|
8062
|
+
nomupayGooglePayButtonType: pickEnum(
|
|
8063
|
+
root["nomupayGooglePayButtonType"],
|
|
8064
|
+
GOOGLE_PAY_BUTTON_TYPES,
|
|
8065
|
+
dflt.nomupayGooglePayButtonType
|
|
8066
|
+
),
|
|
7695
8067
|
customCss: sStr(root["customCss"], dflt.customCss).slice(0, CUSTOM_CSS_MAX_LENGTH)
|
|
7696
8068
|
};
|
|
7697
8069
|
}
|
|
@@ -8577,12 +8949,18 @@ var encodeNativePanes = encodePanes;
|
|
|
8577
8949
|
ALL_CUSTOM_FIELD_CONDITION_SOURCES,
|
|
8578
8950
|
ALL_CUSTOM_FIELD_OPERATORS,
|
|
8579
8951
|
ALL_CUSTOM_FIELD_TYPES,
|
|
8952
|
+
APPLE_PAY_BUTTON_STYLES,
|
|
8953
|
+
APPLE_PAY_BUTTON_TYPES,
|
|
8580
8954
|
Analytics,
|
|
8581
8955
|
AnalyticsDashboard,
|
|
8582
8956
|
Audit,
|
|
8583
8957
|
AvailabilityOverrides,
|
|
8584
8958
|
BRANDING_EXPORT_FORMAT,
|
|
8585
8959
|
BRANDING_EXPORT_VERSION,
|
|
8960
|
+
CARD_FIELD_CHROMES,
|
|
8961
|
+
CARD_FIELD_FONT_SIZES,
|
|
8962
|
+
CARD_FIELD_WEIGHTS,
|
|
8963
|
+
CARD_FOCUS_RINGS,
|
|
8586
8964
|
CHECKBOX_CHECKED,
|
|
8587
8965
|
CHECKBOX_UNCHECKED,
|
|
8588
8966
|
CHECKOUT_EVENT_KINDS,
|
|
@@ -8608,6 +8986,8 @@ var encodeNativePanes = encodePanes;
|
|
|
8608
8986
|
FeeProgramBuilder,
|
|
8609
8987
|
Files,
|
|
8610
8988
|
Forex,
|
|
8989
|
+
GOOGLE_PAY_BUTTON_COLORS,
|
|
8990
|
+
GOOGLE_PAY_BUTTON_TYPES,
|
|
8611
8991
|
LOCALIZABLE_COPY_FIELDS,
|
|
8612
8992
|
MAX_SECTION_LABEL_LENGTH,
|
|
8613
8993
|
MAX_SECTION_ORDER,
|
|
@@ -8617,10 +8997,13 @@ var encodeNativePanes = encodePanes;
|
|
|
8617
8997
|
NATIVE_PANES_MAX,
|
|
8618
8998
|
NATIVE_PANE_CATEGORY_KEYS,
|
|
8619
8999
|
NATIVE_PANE_ICON_KEYS,
|
|
9000
|
+
NOMUPAY_FORM_STYLES,
|
|
8620
9001
|
OperationLimits,
|
|
8621
9002
|
PANES_MAX,
|
|
8622
9003
|
PANE_CATEGORY_KEYS,
|
|
8623
9004
|
PANE_ICON_KEYS,
|
|
9005
|
+
PAYPAL_CARD_LAYOUTS,
|
|
9006
|
+
PAYPAL_LABEL_STYLES,
|
|
8624
9007
|
PaypalDisputes,
|
|
8625
9008
|
RTL_CHECKOUT_LOCALES,
|
|
8626
9009
|
Regions,
|
|
@@ -8628,7 +9011,11 @@ var encodeNativePanes = encodePanes;
|
|
|
8628
9011
|
SECTION_ALIASES,
|
|
8629
9012
|
STRIPE_FALLBACK_PANE_CATALOG,
|
|
8630
9013
|
STRIPE_FALLBACK_PANE_METHODS,
|
|
9014
|
+
STRIPE_INPUT_STYLES,
|
|
9015
|
+
STRIPE_LABEL_PLACEMENTS,
|
|
8631
9016
|
STRIPE_NATIVE_PANE_METHODS,
|
|
9017
|
+
STRIPE_SPACINGS,
|
|
9018
|
+
STRIPE_THEMES,
|
|
8632
9019
|
SURCHARGE_BORDER_STYLES,
|
|
8633
9020
|
SURCHARGE_BORDER_WIDTHS,
|
|
8634
9021
|
SURCHARGE_FIGURE_MODES,
|
|
@@ -8658,6 +9045,8 @@ var encodeNativePanes = encodePanes;
|
|
|
8658
9045
|
buildBrandingExport,
|
|
8659
9046
|
buttonPadValue,
|
|
8660
9047
|
canonicalSectionId,
|
|
9048
|
+
cardFieldFontPx,
|
|
9049
|
+
cardFieldWeightValue,
|
|
8661
9050
|
checkoutCopy,
|
|
8662
9051
|
checkoutLocaleDir,
|
|
8663
9052
|
cloneBranding,
|
|
@@ -8721,11 +9110,15 @@ var encodeNativePanes = encodePanes;
|
|
|
8721
9110
|
readableInkOn,
|
|
8722
9111
|
resolveAirwallexCardPreset,
|
|
8723
9112
|
resolveAirwallexLabelStyle,
|
|
9113
|
+
resolveApplePayButtonStyle,
|
|
9114
|
+
resolveGooglePayButtonColor,
|
|
9115
|
+
resolveStripeTheme,
|
|
8724
9116
|
ruleMatchToTree,
|
|
8725
9117
|
sanitizeCustomCss,
|
|
8726
9118
|
sectionLabel,
|
|
8727
9119
|
sectionOrderOf,
|
|
8728
9120
|
shadowFor,
|
|
9121
|
+
stripeSpacingValues,
|
|
8729
9122
|
surchargeFigurePlan,
|
|
8730
9123
|
surchargeShowsLabel,
|
|
8731
9124
|
surchargeStyleDrawsAShape,
|