@globalpayments/js 4.1.11 → 4.1.14

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.
Files changed (59) hide show
  1. package/README.md +1 -1
  2. package/config/rollup.js +2 -0
  3. package/package.json +5 -6
  4. package/types/common/constants.d.ts +2 -0
  5. package/types/common/enums.d.ts +41 -3
  6. package/types/credit-card/index.d.ts +1 -1
  7. package/types/internal/built-in-validations/field-validator.d.ts +4 -0
  8. package/types/internal/built-in-validations/helpers.d.ts +1 -0
  9. package/types/internal/built-in-validations/messages.d.ts +21 -0
  10. package/types/internal/gateways/gp-api/get-express-pay-base-url.d.ts +2 -0
  11. package/types/internal/gateways/index.d.ts +1 -0
  12. package/types/internal/lib/bank-selection/helpers.d.ts +6 -0
  13. package/types/internal/lib/card.d.ts +42 -2
  14. package/types/internal/lib/enums.d.ts +15 -2
  15. package/types/internal/lib/styles/bank-selection/common.d.ts +1 -1
  16. package/types/internal/lib/styles/built-in-validations/common.d.ts +2 -2
  17. package/types/internal/lib/styles/built-in-validations/gp-default.d.ts +4 -9
  18. package/types/internal/lib/styles/default.d.ts +40 -2
  19. package/types/internal/lib/styles/gp-default.d.ts +159 -19
  20. package/types/internal/lib/styles/gp-default2.d.ts +1776 -0
  21. package/types/internal/lib/styles/order-information/common.d.ts +1 -1
  22. package/types/internal/lib/styles/payment-methods/common.d.ts +32 -0
  23. package/types/internal/lib/styles/payment-methods/open-banking.d.ts +32 -0
  24. package/types/internal/lib/styles/simple.d.ts +0 -2
  25. package/types/internal/lib/styles/themes/brand-themes/base/base-theme.d.ts +153 -23
  26. package/types/internal/lib/translations/cs.d.ts +16 -0
  27. package/types/internal/lib/translations/de.d.ts +20 -0
  28. package/types/internal/lib/translations/el.d.ts +20 -0
  29. package/types/internal/lib/translations/en.d.ts +20 -0
  30. package/types/internal/lib/translations/es.d.ts +20 -0
  31. package/types/internal/lib/translations/et.d.ts +20 -0
  32. package/types/internal/lib/translations/fr.d.ts +20 -0
  33. package/types/internal/lib/translations/ga.d.ts +20 -0
  34. package/types/internal/lib/translations/hr.d.ts +20 -0
  35. package/types/internal/lib/translations/hu.d.ts +20 -0
  36. package/types/internal/lib/translations/it.d.ts +20 -0
  37. package/types/internal/lib/translations/ja.d.ts +20 -0
  38. package/types/internal/lib/translations/lv.d.ts +20 -0
  39. package/types/internal/lib/translations/mt.d.ts +20 -0
  40. package/types/internal/lib/translations/nl.d.ts +20 -0
  41. package/types/internal/lib/translations/pl.d.ts +20 -0
  42. package/types/internal/lib/translations/pt.d.ts +20 -0
  43. package/types/internal/lib/translations/ro.d.ts +20 -0
  44. package/types/internal/lib/translations/ru.d.ts +20 -0
  45. package/types/internal/lib/translations/sk.d.ts +20 -0
  46. package/types/internal/lib/translations/sl.d.ts +20 -0
  47. package/types/internal/lib/translations/sv.d.ts +20 -0
  48. package/types/internal/lib/translations/tr.d.ts +20 -0
  49. package/types/internal/lib/translations/uk.d.ts +20 -0
  50. package/types/internal/lib/translations/vi.d.ts +20 -0
  51. package/types/internal/lib/translations/zh.d.ts +20 -0
  52. package/types/lib/version.d.ts +1 -1
  53. package/types/tools/configure.d.ts +10 -0
  54. package/types/ui/form/index.d.ts +2033 -83
  55. package/types/ui/iframe-field/action-enable-submit-button.d.ts +1 -0
  56. package/types/ui/iframe-field/action-show-validation.d.ts +1 -1
  57. package/types/ui/iframe-field/action-validate-value.d.ts +1 -1
  58. package/types/ui/iframe-field/index.d.ts +4 -2
  59. package/types/ui/iframe-field/payment-methods/action-add.d.ts +1 -1
package/README.md CHANGED
@@ -24,7 +24,7 @@ This plugin allows you to use online payments (eCommerce) features of a variety
24
24
  ## Usage
25
25
 
26
26
  ```html
27
- <script src="https://js.globalpay.com/4.1.11/globalpayments.js"></script>
27
+ <script src="https://js.globalpay.com/4.1.14/globalpayments.js"></script>
28
28
  ```
29
29
 
30
30
  > Note: Installing via NPM will only provide TypeScript types for type-checking.
package/config/rollup.js CHANGED
@@ -2,6 +2,7 @@ import commonjs from "@rollup/plugin-commonjs";
2
2
  import resolve from "@rollup/plugin-node-resolve";
3
3
  import typescript from "rollup-plugin-typescript2";
4
4
  import { terser } from "rollup-plugin-terser";
5
+ import json from '@rollup/plugin-json';
5
6
 
6
7
  const input = "./src/index.ts";
7
8
 
@@ -18,6 +19,7 @@ const plugins = [
18
19
  typescript: require("typescript"),
19
20
  useTsconfigDeclarationDir: true,
20
21
  }),
22
+ json()
21
23
  ];
22
24
 
23
25
  const onwarn = (warning) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalpayments/js",
3
- "version": "4.1.11",
3
+ "version": "4.1.14",
4
4
  "author": "Heartland Developer Portal <developers@heartland.us>",
5
5
  "license": "GPL-2.0",
6
6
  "repository": {
@@ -17,15 +17,10 @@
17
17
  "clean": "rimraf dist",
18
18
  "cypress:open": "cypress open",
19
19
  "format": "prettier --write config/**/* src/**/* !src/assets/**/* !test/run.sh !test/run.ps1 test/fixtures/**/*.html",
20
-
21
20
  "postbuild": "xcopy src\\assets dist\\ /e/y/h && node bin/replace-gp-ref.js",
22
-
23
21
  "prebuild": "yarn test:lint && node bin/update-version.js",
24
22
  "prepublish": "yarn build",
25
-
26
23
  "test": "cross-os test-cross",
27
-
28
-
29
24
  "test:integration": "cypress run",
30
25
  "test:lint": "tslint --project tsconfig.json",
31
26
  "test:serve": "serve -p 7777"
@@ -41,9 +36,13 @@
41
36
  }
42
37
  },
43
38
  "dependencies": {
39
+ "@rollup/plugin-json": "^6.1.0",
40
+ "country-region-data": "^3.1.0",
41
+ "country-state-city": "^3.2.1",
44
42
  "globalpayments-lib": "^1.8.5"
45
43
  },
46
44
  "devDependencies": {
45
+ "@rollup/plugin-json": "^6.1.0",
47
46
  "rimraf": "*",
48
47
  "rollup": "*"
49
48
  },
@@ -1,3 +1,5 @@
1
1
  export declare const HOSTED_FIELD_NAME_KEYS: string[];
2
+ export declare const HOSTED_FIELDS_ADDITIONAL_KEYS: string[];
3
+ export declare const HOSTED_FIELDS_SHIPPING_KEYS: string[];
2
4
  export declare const HOSTED_FIELD_STYLE_NAMES: string[];
3
5
  export declare const HOSTED_FIELD_BRAND_THEMES_NAMES: string[];
@@ -5,6 +5,26 @@ export declare enum CardFormFieldNames {
5
5
  CardCvv = "card-cvv",
6
6
  CardHolderName = "card-holder-name"
7
7
  }
8
+ export declare enum ExpressPayFieldNames {
9
+ EmailId = "email-id",
10
+ Phone = "phone-number",
11
+ BillingAddress = "billing-address",
12
+ BillingApt = "billing-apt",
13
+ BillingCity = "billing-city",
14
+ BillingState = "billing-state",
15
+ BillingPostalCode = "billing-postal-code",
16
+ Country = "country",
17
+ CountryCode = "country-code",
18
+ EnableSaveCard = "save-card-to-express-pay",
19
+ ShippingSameAsBilling = "shipping-same-as-billing",
20
+ ShippingAddress = "shipping-address",
21
+ ShippingCountry = "shipping-address-country",
22
+ ShippingName = "shipping-name",
23
+ ShippingApt = "shipping-apt",
24
+ ShippingCity = "shipping-city",
25
+ ShippingState = "shipping-state",
26
+ ShippingPostalCode = "shipping-postal-code"
27
+ }
8
28
  export declare enum HostedFieldValidationEvents {
9
29
  SetCustomValidationMessages = "hosted-field-set-custom-validation-messages",
10
30
  BuiltInValidationShow = "hosted-field-built-in-validation-show",
@@ -18,13 +38,30 @@ export declare enum HostedFieldValidationEvents {
18
38
  ValidateForm = "hosted-field-validate-form",
19
39
  ValidateFormValid = "hosted-field-validate-form-valid",
20
40
  ValidateFormInvalid = "hosted-field-validate-form-invalid",
21
- ValidationCurrencyConversionShow = "hosted-field-validation-currency-conversion-show"
41
+ ValidationCurrencyConversionShow = "hosted-field-validation-currency-conversion-show",
42
+ EnableSubmitButton = "hosted-field-enable-submit-button"
22
43
  }
23
44
  export declare enum CardFormFieldValidationTestEvents {
24
45
  CardNumber = "card-number-test",
25
46
  CardExpiration = "card-expiration-test",
26
47
  CardCvv = "card-cvv-test",
27
- CardHolderName = "card-holder-name-test"
48
+ CardHolderName = "card-holder-name-test",
49
+ EmailId = "email-test",
50
+ PhoneNumber = "phone-number-test",
51
+ BillingAddress = "billing-address-test",
52
+ BillingApt = "billing-apt-test",
53
+ BillingCity = "billing-city-test",
54
+ BillingState = "billing-state-test",
55
+ BillingPostalCode = "billing-postal-code-test",
56
+ Country = "country-test",
57
+ CountryCode = "country-code-test",
58
+ ShippingAddress = "shipping-address-test",
59
+ ShippingCountry = "shipping-address-country-test",
60
+ ShippingName = "shipping-name-test",
61
+ ShippingApt = "shipping-apt-test",
62
+ ShippingCity = "shipping-city-test",
63
+ ShippingState = "shipping-state-test",
64
+ ShippingPostalCode = "shipping-postal-code-test"
28
65
  }
29
66
  export declare enum Environments {
30
67
  Local = "local",
@@ -36,5 +73,6 @@ export declare enum HostedFieldStyles {
36
73
  Default = "default",
37
74
  Simple = "simple",
38
75
  Blank = "blank",
39
- GpDefault = "gp-default"
76
+ GpDefault = "gp-default",
77
+ GpDefault2 = "gp-default2"
40
78
  }
@@ -8,7 +8,7 @@ export declare const defaultOptions: IUIFormOptions;
8
8
  * @param formOptions Options for the drop-in form
9
9
  * @returns
10
10
  */
11
- export declare function form(target: string | HTMLElement, formOptions?: IUIFormOptions): UIForm;
11
+ export declare function form(target: string | HTMLElement, formOptions?: IUIFormOptions): UIForm | undefined;
12
12
  /**
13
13
  * Allows integrators to create a drop-in form for accepting
14
14
  * track data from a human interface device (HID).
@@ -2,3 +2,7 @@ export declare const validate: (fieldType: string, value: string, extraData?: an
2
2
  isValid: boolean;
3
3
  message?: string;
4
4
  };
5
+ export declare const expressPayFieldsValidate: (fieldType: string, value: string, extraData?: any) => {
6
+ isValid: boolean;
7
+ message?: string;
8
+ };
@@ -7,3 +7,4 @@ export declare const increaseValidationRoundCounter: () => void;
7
7
  export declare const removeValidationRoundCounter: () => void;
8
8
  export declare const isOpenBankingAvailable: (countryCode: string | undefined, aquirer: string | undefined) => boolean;
9
9
  export declare const isBlikAvailable: (countryCode: string | undefined, currencyCode: string | undefined, options: IApmConfiguration | undefined) => boolean;
10
+ export declare const isExpressPayAvailable: (options: IApmConfiguration | undefined) => boolean | undefined;
@@ -24,4 +24,25 @@ export declare const ValidationMessages: {
24
24
  CurrencyConversion: {
25
25
  Required: any;
26
26
  };
27
+ EmailId: {
28
+ Required: string;
29
+ InvalidEmail: string;
30
+ };
31
+ PhoneNumber: {
32
+ Required: string;
33
+ InvalidPhone: string;
34
+ InvalidLength: string;
35
+ };
36
+ BillingAddress: {
37
+ Required: string;
38
+ CountryRequired: string;
39
+ };
40
+ ShippingAddress: {
41
+ Required: string;
42
+ MandatoryName: string;
43
+ InvalidPostalCode: string;
44
+ MandatoryPostalCode: string;
45
+ MandatoryCity: string;
46
+ MandatoryState: string;
47
+ };
27
48
  };
@@ -0,0 +1,2 @@
1
+ declare const _default: (result: string) => string;
2
+ export default _default;
@@ -31,6 +31,7 @@ export interface ISuccess {
31
31
  cardNumber?: string;
32
32
  cardSecurityCode?: boolean;
33
33
  cardType?: string;
34
+ masked_number_last4?: string;
34
35
  cardholderName?: string;
35
36
  expiryMonth?: string;
36
37
  expiryYear?: string;
@@ -3,4 +3,10 @@ export declare const isBankSelectionAvailable: (countryCode: string, currencyCod
3
3
  export declare const getAvailableBanksByCountry: (countryCode: string | undefined) => IAvailableBankData[];
4
4
  export declare const getAllAvailableBanks: (countryCode: string | undefined, aquirer: string | undefined) => IAvailableBankData[];
5
5
  export declare const getImageUrl: (assetBaseUrl: string, provider: string, countryCode?: string | undefined) => string;
6
+ export declare const addExpressPayDetailsEventListener: () => void;
6
7
  export declare const getCountryForQRPlatbaBank: (countryCode: string) => boolean;
8
+ export declare const getExpressPayDetailsKeys: () => Map<string, string>;
9
+ export declare const getExpressPayQueryParams: (expressPayOptions: any, details?: any) => string;
10
+ export declare const formatBillingAddress: (fields: any, state: string) => string;
11
+ export declare const formatShippingAddress: (fields: any, state: string) => string;
12
+ export declare const addIfValue: (obj: any, key: string, value: any) => void;
@@ -111,7 +111,21 @@ export default class Card {
111
111
  *
112
112
  * @param e
113
113
  */
114
- static validateCardHolderName(e: Event): void;
114
+ static validateCardHolderName(e: Event, field: string): void;
115
+ /**
116
+ * validateCardHolderEmail
117
+ *
118
+ * Validates a target element"s value based on the
119
+ * possible Card Holder Email. Adds a class to the target
120
+ * element to note `valid` or `invalid`.
121
+ *
122
+ * @param e
123
+ */
124
+ static validateEmail(e: Event): void;
125
+ static validatePhone(e: Event): void;
126
+ static validatePostalCode(e: Event, field: string): void;
127
+ static validateBillingAddress(e: Event, field: string): void;
128
+ static validateCountry(e: Event, field: string): void;
115
129
  /**
116
130
  * validateInstallmentFields
117
131
  *
@@ -181,10 +195,36 @@ export default class Card {
181
195
  *
182
196
  * @param selector
183
197
  */
184
- static attachCardHolderNameEvents(selector: string): void;
198
+ static attachCardHolderNameEvents(selector: string, field: string): void;
199
+ /**
200
+ * attachEmailEvents
201
+ *
202
+ * @param selector
203
+ */
204
+ static attachEmailEvents(selector: string): void;
205
+ /**
206
+ * attachPhoneEvents
207
+ *
208
+ * @param selector
209
+ */
210
+ static attachPhoneEvents(selector: string): void;
211
+ /**
212
+ * attachPostalCodeEvents
213
+ *
214
+ * @param selector
215
+ */
216
+ static attachPostalCodeEvents(selector: string, field: string): void;
217
+ static attachAddressEvents(selector: string, field: string): void;
218
+ /**
219
+ * attachCountryEvents
220
+ *
221
+ * @param selector
222
+ */
223
+ static attachCountryEvents(selector: string, field: string): void;
185
224
  private static handleHostedFieldValidation;
186
225
  private static focusOutHostedFieldValidationHandler;
187
226
  private static focusInHostedFieldValidationHandler;
188
227
  private static getFieldEventData;
189
228
  private static getCardType;
229
+ static validateToEnable(eventData: Event, isValid: boolean, fieldName: string): void;
190
230
  }
@@ -11,7 +11,8 @@ export declare enum Apm {
11
11
  OpenBankingPayment = "open-banking",
12
12
  PayPal = "paypal",
13
13
  QRCodePayments = "qr-code-payments",
14
- Blik = "blik"
14
+ Blik = "blik",
15
+ ExpressPay = "express-pay"
15
16
  }
16
17
  export declare enum ApmEvents {
17
18
  PaymentMethodActionDetail = "apm-action-details",
@@ -52,13 +53,25 @@ export declare enum ApmProviders {
52
53
  OpenBanking = "OPEN_BANKING",
53
54
  PayPal = "PayPal",
54
55
  WeChat = "WeChat",
55
- Blik = "blik"
56
+ Blik = "blik",
57
+ ExpressPay = "ExpressPay"
56
58
  }
57
59
  export declare enum QRCodePaymentsWeChatProviderBrands {
58
60
  WeChatBrand = "WeChat",
59
61
  WeChatMethodResponse = "WECHAT",
60
62
  WeChatAccountResponse = "WeChat Pay"
61
63
  }
64
+ export declare const phoneNumberLength = 10;
62
65
  export declare const HostedFieldStyles: typeof HostedFieldStylesAlias;
63
66
  export declare const BrandThemes: typeof BrandThemesAlias;
64
67
  export declare const BankNames: typeof BankDisplayNames;
68
+ export declare enum HostedFieldFooterLinks {
69
+ LearnMore = "learnmore.html",
70
+ Terms = "termsofservice.html",
71
+ PrivacyPolicy = "privacypolicy.html"
72
+ }
73
+ export declare enum ExpressPayEvents {
74
+ ExpressPayActionDetail = "express-pay-action-details"
75
+ }
76
+ export declare const OTPLength = 6;
77
+ export declare const formMaxWidth = 1000;
@@ -1,4 +1,4 @@
1
- declare const styles: (_assetBaseUrl: string) => {
1
+ declare const styles: (_assetBaseUrl: string, theme?: string | undefined) => {
2
2
  ".bank-selection-wrapper": {
3
3
  background: string;
4
4
  padding: string;
@@ -1,4 +1,4 @@
1
- export declare const fieldStyles: (assetBaseUrl: string) => {
1
+ export declare const fieldStyles: (assetBaseUrl: string, theme?: string | undefined) => {
2
2
  "#secure-payment-field[type=text].field-validation-wrapper": {
3
3
  "font-family": string;
4
4
  };
@@ -9,5 +9,5 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
9
9
  border: string;
10
10
  };
11
11
  };
12
- declare const styles: (assetBaseUrl: string) => {};
12
+ declare const styles: (assetBaseUrl: string, theme: string) => {};
13
13
  export default styles;
@@ -1,11 +1,6 @@
1
- export declare const fieldStyles: (assetBaseUrl: string) => {
2
- "img.card-number-icon": {
3
- background: string;
4
- right: string;
5
- top: string;
6
- width: string;
7
- height: string;
8
- "background-size": string;
1
+ export declare const fieldStyles: (assetBaseUrl: string, theme?: string | undefined) => {
2
+ ".secure-payment-form label::after": {
3
+ content: string;
9
4
  };
10
5
  "#secure-payment-field[type=text].field-validation-wrapper": {
11
6
  "font-family": string;
@@ -17,7 +12,7 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
17
12
  border: string;
18
13
  };
19
14
  };
20
- export declare const styles: (assetBaseUrl: string) => {
15
+ export declare const styles: (assetBaseUrl: string, theme?: string | undefined) => {
21
16
  ".secure-payment-form .hf-cvv-tooltip-invalid": {
22
17
  border: string;
23
18
  "border-left": string;
@@ -90,6 +90,14 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
90
90
  color: string;
91
91
  outline: string;
92
92
  };
93
+ "#secure-payment-field.disabled-submit-button[type=button]": {
94
+ "background-color": string;
95
+ color: string;
96
+ };
97
+ "#secure-payment-field.disabled-submit-button[type=button]:hover": {
98
+ "background-color": string;
99
+ color: string;
100
+ };
93
101
  "#secure-payment-field[type=button]:hover": {
94
102
  "background-color": string;
95
103
  };
@@ -378,6 +386,11 @@ export declare const parentStyles: (assetBaseUrl: string) => {
378
386
  "flex-direction": string;
379
387
  "align-items": string;
380
388
  };
389
+ ".secure-payment-form .express-pay-button-wrapper": {
390
+ display: string;
391
+ "flex-direction": string;
392
+ "align-items": string;
393
+ };
381
394
  ".secure-payment-form .open-banking-button::before": {
382
395
  width: string;
383
396
  height: string;
@@ -430,6 +443,33 @@ export declare const parentStyles: (assetBaseUrl: string) => {
430
443
  top: string;
431
444
  right: string;
432
445
  };
446
+ ".secure-payment-form .express-pay-button": {
447
+ "background-color": string;
448
+ border: string;
449
+ "border-radius": string;
450
+ position: string;
451
+ color: string;
452
+ height: string;
453
+ width: string;
454
+ margin: string;
455
+ cursor: string;
456
+ };
457
+ ".secure-payment-form .express-pay-button:hover": {
458
+ "background-color": string;
459
+ };
460
+ ".secure-payment-form .express-pay-button:focus": {
461
+ "background-color": string;
462
+ };
463
+ ".secure-payment-form .express-pay-button::before": {
464
+ width: string;
465
+ height: string;
466
+ position: string;
467
+ top: string;
468
+ right: string;
469
+ };
470
+ ".secure-payment-form .express-pay-button::after": {
471
+ content: string;
472
+ };
433
473
  ".secure-payment-form .link-button": {
434
474
  display: string;
435
475
  "flex-direction": string;
@@ -1079,7 +1119,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
1079
1119
  float: string;
1080
1120
  };
1081
1121
  ".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
1082
- border: string;
1083
1122
  "border-radius": string;
1084
1123
  height: string;
1085
1124
  "text-align": string;
@@ -1090,7 +1129,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
1090
1129
  width: string;
1091
1130
  };
1092
1131
  ".secure-payment-form div[class$='-shield'] .ssl-logo_ico": {
1093
- width: string;
1094
1132
  height: string;
1095
1133
  "margin-left": string;
1096
1134
  "vertical-align": string;
@@ -1,19 +1,6 @@
1
- export declare const fieldStyles: (assetBaseUrl: string) => {
2
- "img.card-number-icon": {
3
- background: string;
4
- right: string;
5
- top: string;
6
- width: string;
7
- height: string;
8
- "background-size": string;
9
- } | {
10
- background: string;
11
- right: string;
12
- top: string;
13
- width: string;
14
- height: string;
15
- "margin-top": string;
16
- "background-size": string;
1
+ export declare const fieldStyles: (assetBaseUrl: string, theme?: string | undefined) => {
2
+ ".secure-payment-form label::after"?: {
3
+ content: string;
17
4
  };
18
5
  "#secure-payment-field[type=text].field-validation-wrapper"?: {
19
6
  "font-family": string;
@@ -76,6 +63,16 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
76
63
  border: string;
77
64
  outline: string;
78
65
  };
66
+ "#secure-payment-field.disabled-submit-button[type=button]": {
67
+ "background-color": string;
68
+ color: string;
69
+ cursor: string;
70
+ };
71
+ "#secure-payment-field.disabled-submit-button[type=button]:hover": {
72
+ "background-color": string;
73
+ color: string;
74
+ cursor: string;
75
+ };
79
76
  "#secure-payment-field[type=button]": {
80
77
  "background-color": string;
81
78
  color: string;
@@ -109,6 +106,15 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
109
106
  ".card-cvv.card-type-amex": {
110
107
  "background-image": string;
111
108
  };
109
+ "img.card-number-icon": {
110
+ background: string;
111
+ right: string;
112
+ top: string;
113
+ width: string;
114
+ height: string;
115
+ "margin-top": string;
116
+ "background-size": string;
117
+ };
112
118
  "img.card-number-icon.card-type-amex": {
113
119
  "background-image": string;
114
120
  };
@@ -134,7 +140,7 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
134
140
  display: string;
135
141
  };
136
142
  };
137
- export declare const parentStyles: (assetBaseUrl: string) => {
143
+ export declare const parentStyles: (assetBaseUrl: string, theme?: string | undefined) => {
138
144
  ".bank-selection-wrapper": {
139
145
  background: string;
140
146
  padding: string;
@@ -344,6 +350,11 @@ export declare const parentStyles: (assetBaseUrl: string) => {
344
350
  "flex-direction": string;
345
351
  "align-items": string;
346
352
  };
353
+ ".secure-payment-form .express-pay-button-wrapper": {
354
+ display: string;
355
+ "flex-direction": string;
356
+ "align-items": string;
357
+ };
347
358
  ".secure-payment-form .open-banking-button::before": {
348
359
  width: string;
349
360
  height: string;
@@ -396,6 +407,33 @@ export declare const parentStyles: (assetBaseUrl: string) => {
396
407
  top: string;
397
408
  right: string;
398
409
  };
410
+ ".secure-payment-form .express-pay-button": {
411
+ "background-color": string;
412
+ border: string;
413
+ "border-radius": string;
414
+ position: string;
415
+ color: string;
416
+ height: string;
417
+ width: string;
418
+ margin: string;
419
+ cursor: string;
420
+ };
421
+ ".secure-payment-form .express-pay-button:hover": {
422
+ "background-color": string;
423
+ };
424
+ ".secure-payment-form .express-pay-button:focus": {
425
+ "background-color": string;
426
+ };
427
+ ".secure-payment-form .express-pay-button::before": {
428
+ width: string;
429
+ height: string;
430
+ position: string;
431
+ top: string;
432
+ right: string;
433
+ };
434
+ ".secure-payment-form .express-pay-button::after": {
435
+ content: string;
436
+ };
399
437
  ".secure-payment-form .link-button": {
400
438
  display: string;
401
439
  "flex-direction": string;
@@ -1392,7 +1430,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
1392
1430
  "margin-right": string;
1393
1431
  };
1394
1432
  ".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
1395
- border: string;
1396
1433
  "border-radius": string;
1397
1434
  height: string;
1398
1435
  "text-align": string;
@@ -1403,7 +1440,6 @@ export declare const parentStyles: (assetBaseUrl: string) => {
1403
1440
  width: string;
1404
1441
  };
1405
1442
  ".secure-payment-form div[class$='-shield'] .ssl-logo_ico": {
1406
- width: string;
1407
1443
  height: string;
1408
1444
  "margin-left": string;
1409
1445
  "vertical-align": string;
@@ -1480,6 +1516,30 @@ export declare const parentStyles: (assetBaseUrl: string) => {
1480
1516
  ".secure-payment-form .hidden": {
1481
1517
  display: string;
1482
1518
  };
1519
+ ".secure-payment-form .credit-card-phone-number label": {
1520
+ visibility: string;
1521
+ };
1522
+ ".phone-number-wrapper, .billing-address-wrapper, .shipping-details-wrapper": {
1523
+ display: string;
1524
+ };
1525
+ ".secure-payment-form .credit-card-country-code": {
1526
+ width: string;
1527
+ "min-width": string;
1528
+ };
1529
+ ".secure-payment-form .credit-card-country-code .label-div": {
1530
+ width: string;
1531
+ };
1532
+ ".secure-payment-form .credit-card-phone-number": {
1533
+ width: string;
1534
+ "margin-left": string;
1535
+ };
1536
+ ".secure-payment-form .credit-card-country": {
1537
+ "margin-left": string;
1538
+ "min-width": string;
1539
+ };
1540
+ ".secure-payment-form .credit-card-billing-address": {
1541
+ width: string;
1542
+ };
1483
1543
  "@media(min-width: 800px)": {
1484
1544
  ".secure-payment-form .credit-card-card-expiration": {
1485
1545
  flex: string;
@@ -1489,5 +1549,85 @@ export declare const parentStyles: (assetBaseUrl: string) => {
1489
1549
  flex: string;
1490
1550
  "margin-left": string;
1491
1551
  };
1552
+ ".secure-payment-form .credit-card-billing-address": {
1553
+ flex: string;
1554
+ };
1555
+ ".secure-payment-form .credit-card-country": {
1556
+ flex: string;
1557
+ "margin-left": string;
1558
+ };
1559
+ ".secure-payment-form .credit-card-country-code": {
1560
+ flex: string;
1561
+ };
1562
+ ".secure-payment-form .credit-card-country-code label": {
1563
+ width: string;
1564
+ };
1565
+ ".secure-payment-form .credit-card-phone-number": {
1566
+ flex: string;
1567
+ "margin-left": string;
1568
+ };
1569
+ ".secure-payment-form .credit-card-phone-number label": {
1570
+ visibility: string;
1571
+ };
1572
+ };
1573
+ ".credit-card-save-enable": {
1574
+ "margin-top": string;
1575
+ "font-family": string;
1576
+ };
1577
+ ".credit-card-save-enable input": {
1578
+ height: string;
1579
+ width: string;
1580
+ };
1581
+ ".credit-card-save-enable span": {
1582
+ "vertical-align": string;
1583
+ "letter-spacing": string;
1584
+ "margin-left": string;
1585
+ };
1586
+ ".credit-card-save-enable .learn-more": {
1587
+ "vertical-align": string;
1588
+ color: string;
1589
+ };
1590
+ ".terms-and-conditions": {
1591
+ "font-size": string;
1592
+ color: string;
1593
+ "margin-top": string;
1594
+ };
1595
+ ".terms-and-conditions a": {
1596
+ color: string;
1597
+ "font-weight": string;
1598
+ "text-decoration": string;
1599
+ };
1600
+ ".credit-card-shipping-same-as-billing": {
1601
+ "margin-top": string;
1602
+ "font-family": string;
1603
+ "margin-bottom": string;
1604
+ };
1605
+ ".credit-card-shipping-same-as-billing input": {
1606
+ height: string;
1607
+ width: string;
1608
+ };
1609
+ ".credit-card-shipping-same-as-billing span": {
1610
+ "vertical-align": string;
1611
+ "letter-spacing": string;
1612
+ color: string;
1613
+ "margin-left": string;
1614
+ "font-size": string;
1615
+ };
1616
+ ".encrypted": {
1617
+ "font-family": string;
1618
+ " text-align": string;
1619
+ "font-size": string;
1620
+ "margin-top": string;
1621
+ color: string;
1622
+ "font-weight": string;
1623
+ "margin-left": string;
1624
+ };
1625
+ ".encrypted-shipping": {
1626
+ "font-size": string;
1627
+ "margin-top": string;
1628
+ color: string;
1629
+ "font-weight": string;
1630
+ float: string;
1631
+ "letter-spacing": string;
1492
1632
  };
1493
1633
  };