@delopay/sdk 0.154.0 → 0.156.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-IJN66KOR.js} +377 -1
- package/dist/chunk-IJN66KOR.js.map +1 -0
- package/dist/index.cjs +398 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +305 -16
- package/dist/index.d.ts +305 -16
- package/dist/index.js +45 -1
- package/dist/internal.cjs +398 -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 +45 -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,
|
|
@@ -159,6 +176,7 @@ __export(index_exports, {
|
|
|
159
176
|
isCheckboxChecked: () => isCheckboxChecked,
|
|
160
177
|
isDarkSurface: () => isDarkSurface,
|
|
161
178
|
isHexColor: () => isHexColor,
|
|
179
|
+
isSubscriptionDisputeWebhook: () => isSubscriptionDisputeWebhook,
|
|
162
180
|
isSubscriptionLifecycleWebhook: () => isSubscriptionLifecycleWebhook,
|
|
163
181
|
knownSectionLabelKey: () => knownSectionLabelKey,
|
|
164
182
|
leaf: () => leaf,
|
|
@@ -177,11 +195,15 @@ __export(index_exports, {
|
|
|
177
195
|
readableInkOn: () => readableInkOn,
|
|
178
196
|
resolveAirwallexCardPreset: () => resolveAirwallexCardPreset,
|
|
179
197
|
resolveAirwallexLabelStyle: () => resolveAirwallexLabelStyle,
|
|
198
|
+
resolveApplePayButtonStyle: () => resolveApplePayButtonStyle,
|
|
199
|
+
resolveGooglePayButtonColor: () => resolveGooglePayButtonColor,
|
|
200
|
+
resolveStripeTheme: () => resolveStripeTheme,
|
|
180
201
|
ruleMatchToTree: () => ruleMatchToTree,
|
|
181
202
|
sanitizeCustomCss: () => sanitizeCustomCss,
|
|
182
203
|
sectionLabel: () => sectionLabel,
|
|
183
204
|
sectionOrderOf: () => sectionOrderOf,
|
|
184
205
|
shadowFor: () => shadowFor,
|
|
206
|
+
stripeSpacingValues: () => stripeSpacingValues,
|
|
185
207
|
surchargeFigurePlan: () => surchargeFigurePlan,
|
|
186
208
|
surchargeShowsLabel: () => surchargeShowsLabel,
|
|
187
209
|
surchargeStyleDrawsAShape: () => surchargeStyleDrawsAShape,
|
|
@@ -4005,6 +4027,9 @@ var Verification = class {
|
|
|
4005
4027
|
function isSubscriptionLifecycleWebhook(object) {
|
|
4006
4028
|
return typeof object.transition_id === "string";
|
|
4007
4029
|
}
|
|
4030
|
+
function isSubscriptionDisputeWebhook(object) {
|
|
4031
|
+
return typeof object.connector_dispute_id === "string";
|
|
4032
|
+
}
|
|
4008
4033
|
function hexToBytes(hex) {
|
|
4009
4034
|
if (hex.length === 0 || hex.length % 2 !== 0) return null;
|
|
4010
4035
|
const bytes = new Uint8Array(hex.length / 2);
|
|
@@ -6049,6 +6074,72 @@ function airwallexFieldWeightValue(weight) {
|
|
|
6049
6074
|
}
|
|
6050
6075
|
var AIRWALLEX_NETWORK_MARKS = ["visa", "mastercard", "amex", "discover"];
|
|
6051
6076
|
|
|
6077
|
+
// src/cardFormStyles.ts
|
|
6078
|
+
var CARD_FIELD_CHROMES = AIRWALLEX_FIELD_CHROMES;
|
|
6079
|
+
var CARD_FIELD_FONT_SIZES = AIRWALLEX_FIELD_FONT_SIZES;
|
|
6080
|
+
var CARD_FIELD_WEIGHTS = AIRWALLEX_FIELD_WEIGHTS;
|
|
6081
|
+
var CARD_FOCUS_RINGS = AIRWALLEX_FOCUS_RINGS;
|
|
6082
|
+
function cardFieldFontPx(size) {
|
|
6083
|
+
return size === "sm" ? 14 : size === "lg" ? 18 : 16;
|
|
6084
|
+
}
|
|
6085
|
+
function cardFieldWeightValue(weight) {
|
|
6086
|
+
return weight === "regular" ? 400 : weight === "semibold" ? 600 : 500;
|
|
6087
|
+
}
|
|
6088
|
+
var STRIPE_THEMES = ["auto", "stripe", "flat", "night"];
|
|
6089
|
+
function resolveStripeTheme(theme, dark) {
|
|
6090
|
+
if (theme === "auto") return dark ? "night" : "stripe";
|
|
6091
|
+
return theme;
|
|
6092
|
+
}
|
|
6093
|
+
var STRIPE_INPUT_STYLES = ["spaced", "condensed"];
|
|
6094
|
+
var STRIPE_LABEL_PLACEMENTS = ["above", "floating"];
|
|
6095
|
+
var STRIPE_SPACINGS = ["compact", "comfortable", "spacious"];
|
|
6096
|
+
function stripeSpacingValues(spacing) {
|
|
6097
|
+
if (spacing === "compact") return { spacingUnit: "3px", gridRowSpacing: "8px" };
|
|
6098
|
+
if (spacing === "spacious") return { spacingUnit: "5px", gridRowSpacing: "16px" };
|
|
6099
|
+
return { spacingUnit: "4px", gridRowSpacing: "12px" };
|
|
6100
|
+
}
|
|
6101
|
+
var PAYPAL_CARD_LAYOUTS = ["split", "stacked"];
|
|
6102
|
+
var PAYPAL_LABEL_STYLES = ["above", "none"];
|
|
6103
|
+
var NOMUPAY_FORM_STYLES = ["plain", "card"];
|
|
6104
|
+
var APPLE_PAY_BUTTON_STYLES = ["auto", "black", "white", "white-outline"];
|
|
6105
|
+
function resolveApplePayButtonStyle(style, dark) {
|
|
6106
|
+
if (style === "auto") return dark ? "white" : "black";
|
|
6107
|
+
return style;
|
|
6108
|
+
}
|
|
6109
|
+
var APPLE_PAY_BUTTON_TYPES = [
|
|
6110
|
+
"pay",
|
|
6111
|
+
"plain",
|
|
6112
|
+
"buy",
|
|
6113
|
+
"check-out",
|
|
6114
|
+
"continue",
|
|
6115
|
+
"book",
|
|
6116
|
+
"order",
|
|
6117
|
+
"subscribe",
|
|
6118
|
+
"donate",
|
|
6119
|
+
"contribute",
|
|
6120
|
+
"support",
|
|
6121
|
+
"tip",
|
|
6122
|
+
"add-money",
|
|
6123
|
+
"top-up",
|
|
6124
|
+
"reload",
|
|
6125
|
+
"rent"
|
|
6126
|
+
];
|
|
6127
|
+
var GOOGLE_PAY_BUTTON_COLORS = ["auto", "default", "black", "white"];
|
|
6128
|
+
function resolveGooglePayButtonColor(color, dark) {
|
|
6129
|
+
if (color === "auto") return dark ? "white" : "black";
|
|
6130
|
+
return color;
|
|
6131
|
+
}
|
|
6132
|
+
var GOOGLE_PAY_BUTTON_TYPES = [
|
|
6133
|
+
"pay",
|
|
6134
|
+
"plain",
|
|
6135
|
+
"buy",
|
|
6136
|
+
"checkout",
|
|
6137
|
+
"book",
|
|
6138
|
+
"order",
|
|
6139
|
+
"subscribe",
|
|
6140
|
+
"donate"
|
|
6141
|
+
];
|
|
6142
|
+
|
|
6052
6143
|
// src/branding.ts
|
|
6053
6144
|
function surchargeShowsLabel(labelMode, style, position) {
|
|
6054
6145
|
if (labelMode !== "labelled") return false;
|
|
@@ -6612,6 +6703,34 @@ var DEFAULT_BRANDING_BASE = {
|
|
|
6612
6703
|
airwallexAutofill: "system",
|
|
6613
6704
|
airwallexValidTint: false,
|
|
6614
6705
|
airwallexNetworkMarks: false,
|
|
6706
|
+
// Every card-form field below starts on what its pane drew before the
|
|
6707
|
+
// setting existed, so a merchant who never opens a section sees no change.
|
|
6708
|
+
stripeTheme: "auto",
|
|
6709
|
+
stripeInputs: "spaced",
|
|
6710
|
+
stripeLabels: "above",
|
|
6711
|
+
stripeSpacing: "comfortable",
|
|
6712
|
+
stripeFieldFontSize: "md",
|
|
6713
|
+
stripeFieldWeight: "medium",
|
|
6714
|
+
stripeFocusRing: "strong",
|
|
6715
|
+
stripeDisableAnimations: false,
|
|
6716
|
+
paypalCardLayout: "split",
|
|
6717
|
+
paypalLabelStyle: "above",
|
|
6718
|
+
paypalFieldChrome: "outlined",
|
|
6719
|
+
paypalFieldFontSize: "md",
|
|
6720
|
+
paypalFieldWeight: "regular",
|
|
6721
|
+
paypalFocusRing: "strong",
|
|
6722
|
+
paypalValidTint: false,
|
|
6723
|
+
nomupayFormStyle: "plain",
|
|
6724
|
+
nomupayShowLabels: true,
|
|
6725
|
+
nomupayShowPlaceholders: true,
|
|
6726
|
+
nomupayShowCvvHint: false,
|
|
6727
|
+
nomupayFieldChrome: "outlined",
|
|
6728
|
+
nomupayFieldFontSize: "md",
|
|
6729
|
+
nomupayFocusRing: "none",
|
|
6730
|
+
nomupayApplePayButtonStyle: "auto",
|
|
6731
|
+
nomupayApplePayButtonType: "pay",
|
|
6732
|
+
nomupayGooglePayButtonColor: "auto",
|
|
6733
|
+
nomupayGooglePayButtonType: "pay",
|
|
6615
6734
|
customCss: ""
|
|
6616
6735
|
};
|
|
6617
6736
|
var DEFAULT_BRANDING = {
|
|
@@ -7350,6 +7469,125 @@ function decodeBranding(source) {
|
|
|
7350
7469
|
extras["airwallexNetworkMarks"],
|
|
7351
7470
|
DEFAULT_BRANDING.airwallexNetworkMarks
|
|
7352
7471
|
),
|
|
7472
|
+
stripeTheme: pickEnum(
|
|
7473
|
+
extras["stripeTheme"],
|
|
7474
|
+
STRIPE_THEMES,
|
|
7475
|
+
DEFAULT_BRANDING.stripeTheme
|
|
7476
|
+
),
|
|
7477
|
+
stripeInputs: pickEnum(
|
|
7478
|
+
extras["stripeInputs"],
|
|
7479
|
+
STRIPE_INPUT_STYLES,
|
|
7480
|
+
DEFAULT_BRANDING.stripeInputs
|
|
7481
|
+
),
|
|
7482
|
+
stripeLabels: pickEnum(
|
|
7483
|
+
extras["stripeLabels"],
|
|
7484
|
+
STRIPE_LABEL_PLACEMENTS,
|
|
7485
|
+
DEFAULT_BRANDING.stripeLabels
|
|
7486
|
+
),
|
|
7487
|
+
stripeSpacing: pickEnum(
|
|
7488
|
+
extras["stripeSpacing"],
|
|
7489
|
+
STRIPE_SPACINGS,
|
|
7490
|
+
DEFAULT_BRANDING.stripeSpacing
|
|
7491
|
+
),
|
|
7492
|
+
stripeFieldFontSize: pickEnum(
|
|
7493
|
+
extras["stripeFieldFontSize"],
|
|
7494
|
+
CARD_FIELD_FONT_SIZES,
|
|
7495
|
+
DEFAULT_BRANDING.stripeFieldFontSize
|
|
7496
|
+
),
|
|
7497
|
+
stripeFieldWeight: pickEnum(
|
|
7498
|
+
extras["stripeFieldWeight"],
|
|
7499
|
+
CARD_FIELD_WEIGHTS,
|
|
7500
|
+
DEFAULT_BRANDING.stripeFieldWeight
|
|
7501
|
+
),
|
|
7502
|
+
stripeFocusRing: pickEnum(
|
|
7503
|
+
extras["stripeFocusRing"],
|
|
7504
|
+
CARD_FOCUS_RINGS,
|
|
7505
|
+
DEFAULT_BRANDING.stripeFocusRing
|
|
7506
|
+
),
|
|
7507
|
+
stripeDisableAnimations: parseBool(
|
|
7508
|
+
extras["stripeDisableAnimations"],
|
|
7509
|
+
DEFAULT_BRANDING.stripeDisableAnimations
|
|
7510
|
+
),
|
|
7511
|
+
paypalCardLayout: pickEnum(
|
|
7512
|
+
extras["paypalCardLayout"],
|
|
7513
|
+
PAYPAL_CARD_LAYOUTS,
|
|
7514
|
+
DEFAULT_BRANDING.paypalCardLayout
|
|
7515
|
+
),
|
|
7516
|
+
paypalLabelStyle: pickEnum(
|
|
7517
|
+
extras["paypalLabelStyle"],
|
|
7518
|
+
PAYPAL_LABEL_STYLES,
|
|
7519
|
+
DEFAULT_BRANDING.paypalLabelStyle
|
|
7520
|
+
),
|
|
7521
|
+
paypalFieldChrome: pickEnum(
|
|
7522
|
+
extras["paypalFieldChrome"],
|
|
7523
|
+
CARD_FIELD_CHROMES,
|
|
7524
|
+
DEFAULT_BRANDING.paypalFieldChrome
|
|
7525
|
+
),
|
|
7526
|
+
paypalFieldFontSize: pickEnum(
|
|
7527
|
+
extras["paypalFieldFontSize"],
|
|
7528
|
+
CARD_FIELD_FONT_SIZES,
|
|
7529
|
+
DEFAULT_BRANDING.paypalFieldFontSize
|
|
7530
|
+
),
|
|
7531
|
+
paypalFieldWeight: pickEnum(
|
|
7532
|
+
extras["paypalFieldWeight"],
|
|
7533
|
+
CARD_FIELD_WEIGHTS,
|
|
7534
|
+
DEFAULT_BRANDING.paypalFieldWeight
|
|
7535
|
+
),
|
|
7536
|
+
paypalFocusRing: pickEnum(
|
|
7537
|
+
extras["paypalFocusRing"],
|
|
7538
|
+
CARD_FOCUS_RINGS,
|
|
7539
|
+
DEFAULT_BRANDING.paypalFocusRing
|
|
7540
|
+
),
|
|
7541
|
+
paypalValidTint: parseBool(extras["paypalValidTint"], DEFAULT_BRANDING.paypalValidTint),
|
|
7542
|
+
nomupayFormStyle: pickEnum(
|
|
7543
|
+
extras["nomupayFormStyle"],
|
|
7544
|
+
NOMUPAY_FORM_STYLES,
|
|
7545
|
+
DEFAULT_BRANDING.nomupayFormStyle
|
|
7546
|
+
),
|
|
7547
|
+
nomupayShowLabels: parseBool(extras["nomupayShowLabels"], DEFAULT_BRANDING.nomupayShowLabels),
|
|
7548
|
+
nomupayShowPlaceholders: parseBool(
|
|
7549
|
+
extras["nomupayShowPlaceholders"],
|
|
7550
|
+
DEFAULT_BRANDING.nomupayShowPlaceholders
|
|
7551
|
+
),
|
|
7552
|
+
nomupayShowCvvHint: parseBool(
|
|
7553
|
+
extras["nomupayShowCvvHint"],
|
|
7554
|
+
DEFAULT_BRANDING.nomupayShowCvvHint
|
|
7555
|
+
),
|
|
7556
|
+
nomupayFieldChrome: pickEnum(
|
|
7557
|
+
extras["nomupayFieldChrome"],
|
|
7558
|
+
CARD_FIELD_CHROMES,
|
|
7559
|
+
DEFAULT_BRANDING.nomupayFieldChrome
|
|
7560
|
+
),
|
|
7561
|
+
nomupayFieldFontSize: pickEnum(
|
|
7562
|
+
extras["nomupayFieldFontSize"],
|
|
7563
|
+
CARD_FIELD_FONT_SIZES,
|
|
7564
|
+
DEFAULT_BRANDING.nomupayFieldFontSize
|
|
7565
|
+
),
|
|
7566
|
+
nomupayFocusRing: pickEnum(
|
|
7567
|
+
extras["nomupayFocusRing"],
|
|
7568
|
+
CARD_FOCUS_RINGS,
|
|
7569
|
+
DEFAULT_BRANDING.nomupayFocusRing
|
|
7570
|
+
),
|
|
7571
|
+
nomupayApplePayButtonStyle: pickEnum(
|
|
7572
|
+
extras["nomupayApplePayButtonStyle"],
|
|
7573
|
+
APPLE_PAY_BUTTON_STYLES,
|
|
7574
|
+
DEFAULT_BRANDING.nomupayApplePayButtonStyle
|
|
7575
|
+
),
|
|
7576
|
+
nomupayApplePayButtonType: pickEnum(
|
|
7577
|
+
extras["nomupayApplePayButtonType"],
|
|
7578
|
+
APPLE_PAY_BUTTON_TYPES,
|
|
7579
|
+
DEFAULT_BRANDING.nomupayApplePayButtonType
|
|
7580
|
+
),
|
|
7581
|
+
nomupayGooglePayButtonColor: pickEnum(
|
|
7582
|
+
extras["nomupayGooglePayButtonColor"],
|
|
7583
|
+
GOOGLE_PAY_BUTTON_COLORS,
|
|
7584
|
+
DEFAULT_BRANDING.nomupayGooglePayButtonColor
|
|
7585
|
+
),
|
|
7586
|
+
nomupayGooglePayButtonType: pickEnum(
|
|
7587
|
+
extras["nomupayGooglePayButtonType"],
|
|
7588
|
+
GOOGLE_PAY_BUTTON_TYPES,
|
|
7589
|
+
DEFAULT_BRANDING.nomupayGooglePayButtonType
|
|
7590
|
+
),
|
|
7353
7591
|
customCss: s(extras["customCss"])
|
|
7354
7592
|
};
|
|
7355
7593
|
}
|
|
@@ -7422,6 +7660,32 @@ function encodeBranding(branding, base) {
|
|
|
7422
7660
|
airwallexAutofill: branding.airwallexAutofill,
|
|
7423
7661
|
airwallexValidTint: String(branding.airwallexValidTint),
|
|
7424
7662
|
airwallexNetworkMarks: String(branding.airwallexNetworkMarks),
|
|
7663
|
+
stripeTheme: branding.stripeTheme,
|
|
7664
|
+
stripeInputs: branding.stripeInputs,
|
|
7665
|
+
stripeLabels: branding.stripeLabels,
|
|
7666
|
+
stripeSpacing: branding.stripeSpacing,
|
|
7667
|
+
stripeFieldFontSize: branding.stripeFieldFontSize,
|
|
7668
|
+
stripeFieldWeight: branding.stripeFieldWeight,
|
|
7669
|
+
stripeFocusRing: branding.stripeFocusRing,
|
|
7670
|
+
stripeDisableAnimations: String(branding.stripeDisableAnimations),
|
|
7671
|
+
paypalCardLayout: branding.paypalCardLayout,
|
|
7672
|
+
paypalLabelStyle: branding.paypalLabelStyle,
|
|
7673
|
+
paypalFieldChrome: branding.paypalFieldChrome,
|
|
7674
|
+
paypalFieldFontSize: branding.paypalFieldFontSize,
|
|
7675
|
+
paypalFieldWeight: branding.paypalFieldWeight,
|
|
7676
|
+
paypalFocusRing: branding.paypalFocusRing,
|
|
7677
|
+
paypalValidTint: String(branding.paypalValidTint),
|
|
7678
|
+
nomupayFormStyle: branding.nomupayFormStyle,
|
|
7679
|
+
nomupayShowLabels: String(branding.nomupayShowLabels),
|
|
7680
|
+
nomupayShowPlaceholders: String(branding.nomupayShowPlaceholders),
|
|
7681
|
+
nomupayShowCvvHint: String(branding.nomupayShowCvvHint),
|
|
7682
|
+
nomupayFieldChrome: branding.nomupayFieldChrome,
|
|
7683
|
+
nomupayFieldFontSize: branding.nomupayFieldFontSize,
|
|
7684
|
+
nomupayFocusRing: branding.nomupayFocusRing,
|
|
7685
|
+
nomupayApplePayButtonStyle: branding.nomupayApplePayButtonStyle,
|
|
7686
|
+
nomupayApplePayButtonType: branding.nomupayApplePayButtonType,
|
|
7687
|
+
nomupayGooglePayButtonColor: branding.nomupayGooglePayButtonColor,
|
|
7688
|
+
nomupayGooglePayButtonType: branding.nomupayGooglePayButtonType,
|
|
7425
7689
|
trustBadges: encodeBadges(branding.trustBadges),
|
|
7426
7690
|
[METHOD_SECTION_ORDER_KEY]: encodeMethodSectionOrder(branding.methodSectionOrder)
|
|
7427
7691
|
};
|
|
@@ -7692,6 +7956,118 @@ function parseImportedBranding(raw) {
|
|
|
7692
7956
|
),
|
|
7693
7957
|
airwallexValidTint: parseBool(root["airwallexValidTint"], dflt.airwallexValidTint),
|
|
7694
7958
|
airwallexNetworkMarks: parseBool(root["airwallexNetworkMarks"], dflt.airwallexNetworkMarks),
|
|
7959
|
+
stripeTheme: pickEnum(root["stripeTheme"], STRIPE_THEMES, dflt.stripeTheme),
|
|
7960
|
+
stripeInputs: pickEnum(
|
|
7961
|
+
root["stripeInputs"],
|
|
7962
|
+
STRIPE_INPUT_STYLES,
|
|
7963
|
+
dflt.stripeInputs
|
|
7964
|
+
),
|
|
7965
|
+
stripeLabels: pickEnum(
|
|
7966
|
+
root["stripeLabels"],
|
|
7967
|
+
STRIPE_LABEL_PLACEMENTS,
|
|
7968
|
+
dflt.stripeLabels
|
|
7969
|
+
),
|
|
7970
|
+
stripeSpacing: pickEnum(
|
|
7971
|
+
root["stripeSpacing"],
|
|
7972
|
+
STRIPE_SPACINGS,
|
|
7973
|
+
dflt.stripeSpacing
|
|
7974
|
+
),
|
|
7975
|
+
stripeFieldFontSize: pickEnum(
|
|
7976
|
+
root["stripeFieldFontSize"],
|
|
7977
|
+
CARD_FIELD_FONT_SIZES,
|
|
7978
|
+
dflt.stripeFieldFontSize
|
|
7979
|
+
),
|
|
7980
|
+
stripeFieldWeight: pickEnum(
|
|
7981
|
+
root["stripeFieldWeight"],
|
|
7982
|
+
CARD_FIELD_WEIGHTS,
|
|
7983
|
+
dflt.stripeFieldWeight
|
|
7984
|
+
),
|
|
7985
|
+
stripeFocusRing: pickEnum(
|
|
7986
|
+
root["stripeFocusRing"],
|
|
7987
|
+
CARD_FOCUS_RINGS,
|
|
7988
|
+
dflt.stripeFocusRing
|
|
7989
|
+
),
|
|
7990
|
+
stripeDisableAnimations: parseBool(
|
|
7991
|
+
root["stripeDisableAnimations"],
|
|
7992
|
+
dflt.stripeDisableAnimations
|
|
7993
|
+
),
|
|
7994
|
+
paypalCardLayout: pickEnum(
|
|
7995
|
+
root["paypalCardLayout"],
|
|
7996
|
+
PAYPAL_CARD_LAYOUTS,
|
|
7997
|
+
dflt.paypalCardLayout
|
|
7998
|
+
),
|
|
7999
|
+
paypalLabelStyle: pickEnum(
|
|
8000
|
+
root["paypalLabelStyle"],
|
|
8001
|
+
PAYPAL_LABEL_STYLES,
|
|
8002
|
+
dflt.paypalLabelStyle
|
|
8003
|
+
),
|
|
8004
|
+
paypalFieldChrome: pickEnum(
|
|
8005
|
+
root["paypalFieldChrome"],
|
|
8006
|
+
CARD_FIELD_CHROMES,
|
|
8007
|
+
dflt.paypalFieldChrome
|
|
8008
|
+
),
|
|
8009
|
+
paypalFieldFontSize: pickEnum(
|
|
8010
|
+
root["paypalFieldFontSize"],
|
|
8011
|
+
CARD_FIELD_FONT_SIZES,
|
|
8012
|
+
dflt.paypalFieldFontSize
|
|
8013
|
+
),
|
|
8014
|
+
paypalFieldWeight: pickEnum(
|
|
8015
|
+
root["paypalFieldWeight"],
|
|
8016
|
+
CARD_FIELD_WEIGHTS,
|
|
8017
|
+
dflt.paypalFieldWeight
|
|
8018
|
+
),
|
|
8019
|
+
paypalFocusRing: pickEnum(
|
|
8020
|
+
root["paypalFocusRing"],
|
|
8021
|
+
CARD_FOCUS_RINGS,
|
|
8022
|
+
dflt.paypalFocusRing
|
|
8023
|
+
),
|
|
8024
|
+
paypalValidTint: parseBool(root["paypalValidTint"], dflt.paypalValidTint),
|
|
8025
|
+
nomupayFormStyle: pickEnum(
|
|
8026
|
+
root["nomupayFormStyle"],
|
|
8027
|
+
NOMUPAY_FORM_STYLES,
|
|
8028
|
+
dflt.nomupayFormStyle
|
|
8029
|
+
),
|
|
8030
|
+
nomupayShowLabels: parseBool(root["nomupayShowLabels"], dflt.nomupayShowLabels),
|
|
8031
|
+
nomupayShowPlaceholders: parseBool(
|
|
8032
|
+
root["nomupayShowPlaceholders"],
|
|
8033
|
+
dflt.nomupayShowPlaceholders
|
|
8034
|
+
),
|
|
8035
|
+
nomupayShowCvvHint: parseBool(root["nomupayShowCvvHint"], dflt.nomupayShowCvvHint),
|
|
8036
|
+
nomupayFieldChrome: pickEnum(
|
|
8037
|
+
root["nomupayFieldChrome"],
|
|
8038
|
+
CARD_FIELD_CHROMES,
|
|
8039
|
+
dflt.nomupayFieldChrome
|
|
8040
|
+
),
|
|
8041
|
+
nomupayFieldFontSize: pickEnum(
|
|
8042
|
+
root["nomupayFieldFontSize"],
|
|
8043
|
+
CARD_FIELD_FONT_SIZES,
|
|
8044
|
+
dflt.nomupayFieldFontSize
|
|
8045
|
+
),
|
|
8046
|
+
nomupayFocusRing: pickEnum(
|
|
8047
|
+
root["nomupayFocusRing"],
|
|
8048
|
+
CARD_FOCUS_RINGS,
|
|
8049
|
+
dflt.nomupayFocusRing
|
|
8050
|
+
),
|
|
8051
|
+
nomupayApplePayButtonStyle: pickEnum(
|
|
8052
|
+
root["nomupayApplePayButtonStyle"],
|
|
8053
|
+
APPLE_PAY_BUTTON_STYLES,
|
|
8054
|
+
dflt.nomupayApplePayButtonStyle
|
|
8055
|
+
),
|
|
8056
|
+
nomupayApplePayButtonType: pickEnum(
|
|
8057
|
+
root["nomupayApplePayButtonType"],
|
|
8058
|
+
APPLE_PAY_BUTTON_TYPES,
|
|
8059
|
+
dflt.nomupayApplePayButtonType
|
|
8060
|
+
),
|
|
8061
|
+
nomupayGooglePayButtonColor: pickEnum(
|
|
8062
|
+
root["nomupayGooglePayButtonColor"],
|
|
8063
|
+
GOOGLE_PAY_BUTTON_COLORS,
|
|
8064
|
+
dflt.nomupayGooglePayButtonColor
|
|
8065
|
+
),
|
|
8066
|
+
nomupayGooglePayButtonType: pickEnum(
|
|
8067
|
+
root["nomupayGooglePayButtonType"],
|
|
8068
|
+
GOOGLE_PAY_BUTTON_TYPES,
|
|
8069
|
+
dflt.nomupayGooglePayButtonType
|
|
8070
|
+
),
|
|
7695
8071
|
customCss: sStr(root["customCss"], dflt.customCss).slice(0, CUSTOM_CSS_MAX_LENGTH)
|
|
7696
8072
|
};
|
|
7697
8073
|
}
|
|
@@ -8577,12 +8953,18 @@ var encodeNativePanes = encodePanes;
|
|
|
8577
8953
|
ALL_CUSTOM_FIELD_CONDITION_SOURCES,
|
|
8578
8954
|
ALL_CUSTOM_FIELD_OPERATORS,
|
|
8579
8955
|
ALL_CUSTOM_FIELD_TYPES,
|
|
8956
|
+
APPLE_PAY_BUTTON_STYLES,
|
|
8957
|
+
APPLE_PAY_BUTTON_TYPES,
|
|
8580
8958
|
Analytics,
|
|
8581
8959
|
AnalyticsDashboard,
|
|
8582
8960
|
Audit,
|
|
8583
8961
|
AvailabilityOverrides,
|
|
8584
8962
|
BRANDING_EXPORT_FORMAT,
|
|
8585
8963
|
BRANDING_EXPORT_VERSION,
|
|
8964
|
+
CARD_FIELD_CHROMES,
|
|
8965
|
+
CARD_FIELD_FONT_SIZES,
|
|
8966
|
+
CARD_FIELD_WEIGHTS,
|
|
8967
|
+
CARD_FOCUS_RINGS,
|
|
8586
8968
|
CHECKBOX_CHECKED,
|
|
8587
8969
|
CHECKBOX_UNCHECKED,
|
|
8588
8970
|
CHECKOUT_EVENT_KINDS,
|
|
@@ -8608,6 +8990,8 @@ var encodeNativePanes = encodePanes;
|
|
|
8608
8990
|
FeeProgramBuilder,
|
|
8609
8991
|
Files,
|
|
8610
8992
|
Forex,
|
|
8993
|
+
GOOGLE_PAY_BUTTON_COLORS,
|
|
8994
|
+
GOOGLE_PAY_BUTTON_TYPES,
|
|
8611
8995
|
LOCALIZABLE_COPY_FIELDS,
|
|
8612
8996
|
MAX_SECTION_LABEL_LENGTH,
|
|
8613
8997
|
MAX_SECTION_ORDER,
|
|
@@ -8617,10 +9001,13 @@ var encodeNativePanes = encodePanes;
|
|
|
8617
9001
|
NATIVE_PANES_MAX,
|
|
8618
9002
|
NATIVE_PANE_CATEGORY_KEYS,
|
|
8619
9003
|
NATIVE_PANE_ICON_KEYS,
|
|
9004
|
+
NOMUPAY_FORM_STYLES,
|
|
8620
9005
|
OperationLimits,
|
|
8621
9006
|
PANES_MAX,
|
|
8622
9007
|
PANE_CATEGORY_KEYS,
|
|
8623
9008
|
PANE_ICON_KEYS,
|
|
9009
|
+
PAYPAL_CARD_LAYOUTS,
|
|
9010
|
+
PAYPAL_LABEL_STYLES,
|
|
8624
9011
|
PaypalDisputes,
|
|
8625
9012
|
RTL_CHECKOUT_LOCALES,
|
|
8626
9013
|
Regions,
|
|
@@ -8628,7 +9015,11 @@ var encodeNativePanes = encodePanes;
|
|
|
8628
9015
|
SECTION_ALIASES,
|
|
8629
9016
|
STRIPE_FALLBACK_PANE_CATALOG,
|
|
8630
9017
|
STRIPE_FALLBACK_PANE_METHODS,
|
|
9018
|
+
STRIPE_INPUT_STYLES,
|
|
9019
|
+
STRIPE_LABEL_PLACEMENTS,
|
|
8631
9020
|
STRIPE_NATIVE_PANE_METHODS,
|
|
9021
|
+
STRIPE_SPACINGS,
|
|
9022
|
+
STRIPE_THEMES,
|
|
8632
9023
|
SURCHARGE_BORDER_STYLES,
|
|
8633
9024
|
SURCHARGE_BORDER_WIDTHS,
|
|
8634
9025
|
SURCHARGE_FIGURE_MODES,
|
|
@@ -8658,6 +9049,8 @@ var encodeNativePanes = encodePanes;
|
|
|
8658
9049
|
buildBrandingExport,
|
|
8659
9050
|
buttonPadValue,
|
|
8660
9051
|
canonicalSectionId,
|
|
9052
|
+
cardFieldFontPx,
|
|
9053
|
+
cardFieldWeightValue,
|
|
8661
9054
|
checkoutCopy,
|
|
8662
9055
|
checkoutLocaleDir,
|
|
8663
9056
|
cloneBranding,
|
|
@@ -8703,6 +9096,7 @@ var encodeNativePanes = encodePanes;
|
|
|
8703
9096
|
isCheckboxChecked,
|
|
8704
9097
|
isDarkSurface,
|
|
8705
9098
|
isHexColor,
|
|
9099
|
+
isSubscriptionDisputeWebhook,
|
|
8706
9100
|
isSubscriptionLifecycleWebhook,
|
|
8707
9101
|
knownSectionLabelKey,
|
|
8708
9102
|
leaf,
|
|
@@ -8721,11 +9115,15 @@ var encodeNativePanes = encodePanes;
|
|
|
8721
9115
|
readableInkOn,
|
|
8722
9116
|
resolveAirwallexCardPreset,
|
|
8723
9117
|
resolveAirwallexLabelStyle,
|
|
9118
|
+
resolveApplePayButtonStyle,
|
|
9119
|
+
resolveGooglePayButtonColor,
|
|
9120
|
+
resolveStripeTheme,
|
|
8724
9121
|
ruleMatchToTree,
|
|
8725
9122
|
sanitizeCustomCss,
|
|
8726
9123
|
sectionLabel,
|
|
8727
9124
|
sectionOrderOf,
|
|
8728
9125
|
shadowFor,
|
|
9126
|
+
stripeSpacingValues,
|
|
8729
9127
|
surchargeFigurePlan,
|
|
8730
9128
|
surchargeShowsLabel,
|
|
8731
9129
|
surchargeStyleDrawsAShape,
|