@adyen/adyen-web 5.20.0 → 5.23.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.
Files changed (146) hide show
  1. package/dist/adyen.css +14 -5
  2. package/dist/adyen.css.map +1 -1
  3. package/dist/adyen.js +1 -1
  4. package/dist/adyen.js.map +1 -1
  5. package/dist/cjs/adyen.css +14 -5
  6. package/dist/cjs/adyen.css.map +1 -1
  7. package/dist/cjs/index.js +1 -1
  8. package/dist/es/adyen.css +14 -5
  9. package/dist/es/adyen.css.map +1 -1
  10. package/dist/es/ar.js +1 -1
  11. package/dist/es/cs-CZ.js +1 -1
  12. package/dist/es/da-DK.js +1 -1
  13. package/dist/es/de-DE.js +1 -1
  14. package/dist/es/el-GR.js +1 -1
  15. package/dist/es/es-ES.js +1 -1
  16. package/dist/es/fi-FI.js +1 -1
  17. package/dist/es/fr-FR.js +1 -1
  18. package/dist/es/hr-HR.js +1 -1
  19. package/dist/es/hu-HU.js +1 -1
  20. package/dist/es/index.js +1 -1
  21. package/dist/es/it-IT.js +1 -1
  22. package/dist/es/ja-JP.js +1 -1
  23. package/dist/es/ko-KR.js +1 -1
  24. package/dist/es/nl-NL.js +1 -1
  25. package/dist/es/no-NO.js +1 -1
  26. package/dist/es/pl-PL.js +1 -1
  27. package/dist/es/pt-BR.js +1 -1
  28. package/dist/es/pt-PT.js +1 -1
  29. package/dist/es/ro-RO.js +1 -1
  30. package/dist/es/ru-RU.js +1 -1
  31. package/dist/es/sk-SK.js +1 -1
  32. package/dist/es/sl-SI.js +1 -1
  33. package/dist/es/sv-SE.js +1 -1
  34. package/dist/es/zh-CN.js +1 -1
  35. package/dist/es/zh-TW.js +1 -1
  36. package/dist/es.modern/adyen.css +14 -5
  37. package/dist/es.modern/adyen.css.map +1 -1
  38. package/dist/es.modern/ar.js +1 -1
  39. package/dist/es.modern/cs-CZ.js +1 -1
  40. package/dist/es.modern/da-DK.js +1 -1
  41. package/dist/es.modern/de-DE.js +1 -1
  42. package/dist/es.modern/el-GR.js +1 -1
  43. package/dist/es.modern/es-ES.js +1 -1
  44. package/dist/es.modern/fi-FI.js +1 -1
  45. package/dist/es.modern/fr-FR.js +1 -1
  46. package/dist/es.modern/hr-HR.js +1 -1
  47. package/dist/es.modern/hu-HU.js +1 -1
  48. package/dist/es.modern/index.js +1 -1
  49. package/dist/es.modern/it-IT.js +1 -1
  50. package/dist/es.modern/ja-JP.js +1 -1
  51. package/dist/es.modern/ko-KR.js +1 -1
  52. package/dist/es.modern/nl-NL.js +1 -1
  53. package/dist/es.modern/no-NO.js +1 -1
  54. package/dist/es.modern/pl-PL.js +1 -1
  55. package/dist/es.modern/pt-BR.js +1 -1
  56. package/dist/es.modern/pt-PT.js +1 -1
  57. package/dist/es.modern/ro-RO.js +1 -1
  58. package/dist/es.modern/ru-RU.js +1 -1
  59. package/dist/es.modern/sk-SK.js +1 -1
  60. package/dist/es.modern/sl-SI.js +1 -1
  61. package/dist/es.modern/sv-SE.js +1 -1
  62. package/dist/es.modern/zh-CN.js +1 -1
  63. package/dist/es.modern/zh-TW.js +1 -1
  64. package/dist/types/components/BcmcMobile/BcmcMobile.d.ts +1 -0
  65. package/dist/types/components/Card/Bancontact.d.ts +13 -0
  66. package/dist/types/components/Card/Card.d.ts +29 -1
  67. package/dist/types/components/Card/ClickToPayHolder.d.ts +6 -0
  68. package/dist/types/components/Card/ClickToPayWrapper.d.ts +4 -0
  69. package/dist/types/components/Card/components/CardInput/defaultProps.d.ts +1 -0
  70. package/dist/types/components/Card/components/CardInput/types.d.ts +1 -0
  71. package/dist/types/components/Card/components/ClickToPay/ClickToPayComponent.d.ts +6 -0
  72. package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCards.d.ts +7 -0
  73. package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.d.ts +8 -0
  74. package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCardsList/index.d.ts +1 -0
  75. package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPEmptyCardsList/CtPEmptyCardsList.d.ts +6 -0
  76. package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPEmptyCardsList/index.d.ts +1 -0
  77. package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPSingleCard/CtPSingleCard.d.ts +8 -0
  78. package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPSingleCard/index.d.ts +1 -0
  79. package/dist/types/components/Card/components/ClickToPay/components/CtPCards/index.d.ts +1 -0
  80. package/dist/types/components/Card/components/ClickToPay/components/CtPLoader/CtPLoader.d.ts +4 -0
  81. package/dist/types/components/Card/components/ClickToPay/components/CtPLoader/index.d.ts +1 -0
  82. package/dist/types/components/Card/components/ClickToPay/components/CtPLogin/CtPLogin.d.ts +4 -0
  83. package/dist/types/components/Card/components/ClickToPay/components/CtPLogin/CtPLoginInput.d.ts +18 -0
  84. package/dist/types/components/Card/components/ClickToPay/components/CtPLogin/index.d.ts +1 -0
  85. package/dist/types/components/Card/components/ClickToPay/components/CtPLogin/validate.d.ts +2 -0
  86. package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePassword.d.ts +4 -0
  87. package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPOneTimePasswordInput.d.ts +20 -0
  88. package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPResendOtpLink.d.ts +7 -0
  89. package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/index.d.ts +1 -0
  90. package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/validate.d.ts +2 -0
  91. package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/index.d.ts +1 -0
  92. package/dist/types/components/Card/components/ClickToPay/components/CtPSection/CtPLogoutLink.d.ts +4 -0
  93. package/dist/types/components/Card/components/ClickToPay/components/CtPSection/CtPSection.d.ts +7 -0
  94. package/dist/types/components/Card/components/ClickToPay/components/CtPSection/index.d.ts +1 -0
  95. package/dist/types/components/Card/components/ClickToPay/context/ClickToPayContext.d.ts +22 -0
  96. package/dist/types/components/Card/components/ClickToPay/context/ClickToPayProvider.d.ts +16 -0
  97. package/dist/types/components/Card/components/ClickToPay/context/useClickToPayContext.d.ts +3 -0
  98. package/dist/types/components/Card/components/ClickToPay/index.d.ts +1 -0
  99. package/dist/types/components/Card/components/ClickToPay/models/ShopperCard.d.ts +15 -0
  100. package/dist/types/components/Card/components/ClickToPay/services/ClickToPayService.d.ts +79 -0
  101. package/dist/types/components/Card/components/ClickToPay/services/sdks/AbstractSrcInitiator.d.ts +75 -0
  102. package/dist/types/components/Card/components/ClickToPay/services/sdks/MastercardSdk.d.ts +13 -0
  103. package/dist/types/components/Card/components/ClickToPay/services/sdks/SrcSdkLoader.d.ts +12 -0
  104. package/dist/types/components/Card/components/ClickToPay/services/sdks/SrciError.d.ts +16 -0
  105. package/dist/types/components/Card/components/ClickToPay/services/sdks/VisaSdk.d.ts +13 -0
  106. package/dist/types/components/Card/components/ClickToPay/services/sdks/config.d.ts +28 -0
  107. package/dist/types/components/Card/components/ClickToPay/services/sdks/types.d.ts +46 -0
  108. package/dist/types/components/Card/components/ClickToPay/services/sdks/utils.d.ts +5 -0
  109. package/dist/types/components/Card/components/ClickToPay/services/types.d.ts +39 -0
  110. package/dist/types/components/Card/components/ClickToPay/services/utils.d.ts +6 -0
  111. package/dist/types/components/Card/components/ClickToPay/utils.d.ts +7 -0
  112. package/dist/types/components/Card/types.d.ts +26 -0
  113. package/dist/types/components/Dragonpay/Dragonpay.d.ts +1 -0
  114. package/dist/types/components/Dropin/Dropin.d.ts +1 -0
  115. package/dist/types/components/Giftcard/Giftcard.d.ts +1 -0
  116. package/dist/types/components/OnlineBankingCZ/index.d.ts +7 -0
  117. package/dist/types/components/OnlineBankingSK/index.d.ts +7 -0
  118. package/dist/types/components/Pix/Pix.d.ts +1 -0
  119. package/dist/types/components/Swish/Swish.d.ts +1 -0
  120. package/dist/types/components/UIElement.d.ts +1 -0
  121. package/dist/types/components/WeChat/WeChat.d.ts +1 -0
  122. package/dist/types/components/index.d.ts +5 -0
  123. package/dist/types/components/internal/Button/types.d.ts +3 -1
  124. package/dist/types/components/internal/ContentSeparator/ContentSeparator.d.ts +2 -1
  125. package/dist/types/components/internal/FormFields/Field/types.d.ts +2 -1
  126. package/dist/types/components/internal/FormFields/Select/Select.d.ts +1 -1
  127. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +1 -1
  128. package/dist/types/components/internal/FormFields/Select/types.d.ts +4 -0
  129. package/dist/types/components/internal/Icon/Icon.d.ts +3 -1
  130. package/dist/types/components/internal/IssuerList/types.d.ts +1 -0
  131. package/dist/types/components/internal/PayButton/PayButton.d.ts +7 -6
  132. package/dist/types/components/internal/PayButton/components/SecondaryButtonLabel.d.ts +6 -0
  133. package/dist/types/components/internal/PayButton/utils.d.ts +7 -0
  134. package/dist/types/components/internal/SecuredFields/lib/CSF/AbstractCSF.d.ts +2 -2
  135. package/dist/types/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.d.ts +8 -3
  136. package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +1 -1
  137. package/dist/types/components/types.d.ts +3 -1
  138. package/dist/types/components/utils.d.ts +2 -2
  139. package/dist/types/core/CheckoutSession/CheckoutSession.d.ts +2 -1
  140. package/dist/types/core/types.d.ts +6 -2
  141. package/dist/types/index.d.ts +2 -1
  142. package/dist/types/language/config.d.ts +34 -0
  143. package/dist/types/language/locales/index.d.ts +118 -0
  144. package/dist/types/language/utils.d.ts +8 -0
  145. package/dist/types/types/index.d.ts +13 -0
  146. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import Language from '../../../language';
2
+ import { PaymentAmountExtended } from '../../../types';
3
+ export declare const PAY_BTN_DIVIDER = "/ ";
4
+ declare const amountLabel: (i18n: any, amount: PaymentAmountExtended) => any;
5
+ declare const payAmountLabel: (i18n: Language, amount: PaymentAmountExtended) => string;
6
+ declare const secondaryAmountLabel: (i18n: Language, secondaryAmount: PaymentAmountExtended) => string;
7
+ export { payAmountLabel, amountLabel, secondaryAmountLabel };
@@ -12,8 +12,8 @@ declare abstract class AbstractCSF {
12
12
  protected handleBrandFromBinLookup: typeof handleBrandFromBinLookup;
13
13
  protected callbacksHandler: (callbacksObj: object) => void;
14
14
  protected configHandler: () => void;
15
- protected createCardSecuredFields: (securedFields: HTMLElement[]) => number;
16
- protected createNonCardSecuredFields: (securedFields: HTMLElement[]) => number;
15
+ protected createCardSecuredFields: (securedFields: HTMLElement[]) => Promise<any>;
16
+ protected createNonCardSecuredFields: (securedFields: HTMLElement[]) => Promise<any>;
17
17
  protected createSecuredFields: typeof createSecuredFields;
18
18
  protected destroySecuredFields: () => void;
19
19
  protected handleIOSTouchEvents: () => void;
@@ -3,6 +3,11 @@
3
3
  * Handles specific functionality related to configuring & creating SecuredFields
4
4
  */
5
5
  export declare function createSecuredFields(): number;
6
- export declare function createNonCardSecuredFields(securedFields: HTMLElement[]): number;
7
- export declare function createCardSecuredFields(securedFields: HTMLElement[]): number;
8
- export declare function setupSecuredField(pItem: HTMLElement): void;
6
+ /**
7
+ * i.e. giftcard and ach fields
8
+ *
9
+ * Create a new SecuredField for each detected holding element
10
+ */
11
+ export declare function createNonCardSecuredFields(securedFields: HTMLElement[]): Promise<any>;
12
+ export declare function createCardSecuredFields(securedFields: HTMLElement[]): Promise<any>;
13
+ export declare function setupSecuredField(pItem: HTMLElement): Promise<any>;
@@ -11,7 +11,7 @@ export declare const ENCRYPTED_BANK_LOCATION_FIELD = "encryptedBankLocationId";
11
11
  export declare const ENCRYPTED_SECURITY_CODE_3_DIGITS = "encryptedSecurityCode3digits";
12
12
  export declare const ENCRYPTED_SECURITY_CODE_4_DIGITS = "encryptedSecurityCode4digits";
13
13
  export declare const GIFT_CARD = "giftcard";
14
- export declare const SF_VERSION = "4.1.0";
14
+ export declare const SF_VERSION = "4.1.1";
15
15
  export declare const DEFAULT_CARD_GROUP_TYPES: string[];
16
16
  export declare const NON_CREDIT_CARD_TYPE_SECURED_FIELDS: string[];
17
17
  export declare const CREDIT_CARD_SF_FIELDS: string[];
@@ -1,4 +1,4 @@
1
- import { Order, PaymentAction, PaymentAmount } from '../types';
1
+ import { Order, PaymentAction, PaymentAmount, PaymentAmountExtended } from '../types';
2
2
  import UIElement from './UIElement';
3
3
  import Core from '../core';
4
4
  import Analytics from '../core/Analytics';
@@ -30,6 +30,7 @@ export interface IUIElement {
30
30
  type: string;
31
31
  elementRef: any;
32
32
  submit(): void;
33
+ setElementStatus(status: UIElementStatus, props: any): UIElement;
33
34
  setStatus(status: UIElementStatus, props?: {
34
35
  message?: string;
35
36
  [key: string]: any;
@@ -56,6 +57,7 @@ export interface UIElementProps extends BaseElementProps {
56
57
  name?: string;
57
58
  icon?: string;
58
59
  amount?: PaymentAmount;
60
+ secondaryAmount?: PaymentAmountExtended;
59
61
  /**
60
62
  * Show/Hide pay button
61
63
  * @defaultValue true
@@ -1,3 +1,3 @@
1
- import { PaymentResponse, RawPaymentResponse } from './types';
1
+ import { PaymentResponse, RawPaymentResponse, UIElementStatus } from './types';
2
2
  export declare function getSanitizedResponse(response: RawPaymentResponse): PaymentResponse;
3
- export declare function resolveFinalResult(result: PaymentResponse): string[];
3
+ export declare function resolveFinalResult(result: PaymentResponse): [status: UIElementStatus, statusProps?: any];
@@ -1,10 +1,11 @@
1
- import { CheckoutSession, CheckoutSessionBalanceResponse, CheckoutSessionDetailsResponse, CheckoutSessionOrdersResponse, CheckoutSessionPaymentResponse, CheckoutSessionSetupResponse } from '../../types';
1
+ import { CheckoutSession, CheckoutSessionBalanceResponse, CheckoutSessionDetailsResponse, CheckoutSessionOrdersResponse, CheckoutSessionPaymentResponse, CheckoutSessionSetupResponse, SessionConfiguration } from '../../types';
2
2
  import { onOrderCancelData } from "../../components/Dropin/types";
3
3
  declare class Session {
4
4
  private readonly session;
5
5
  private readonly storage;
6
6
  readonly clientKey: string;
7
7
  readonly loadingContext: string;
8
+ configuration: SessionConfiguration;
8
9
  constructor(rawSession: CheckoutSession, clientKey: string, loadingContext: string);
9
10
  get id(): string;
10
11
  get data(): string;
@@ -1,5 +1,5 @@
1
1
  import { CustomTranslations, Locales } from '../language/types';
2
- import { PaymentAmount, PaymentMethods, PaymentMethodOptions, PaymentActionsType } from '../types';
2
+ import { PaymentMethods, PaymentMethodOptions, PaymentActionsType, PaymentAmountExtended } from '../types';
3
3
  import { AnalyticsOptions } from './Analytics/types';
4
4
  import { PaymentMethodsResponseObject } from './ProcessResponse/PaymentMethodsResponse/types';
5
5
  import { RiskModuleOptions } from './RiskModule/RiskModule';
@@ -32,7 +32,11 @@ export interface CoreOptions {
32
32
  /**
33
33
  * Amount of the payment
34
34
  */
35
- amount?: PaymentAmount;
35
+ amount?: PaymentAmountExtended;
36
+ /**
37
+ * Secondary amount of the payment - alternative currency & value converted according to rate
38
+ */
39
+ secondaryAmount?: PaymentAmountExtended;
36
40
  /**
37
41
  * The shopper's country code. A valid value is an ISO two-character country code (e.g. 'NL').
38
42
  */
@@ -1,3 +1,4 @@
1
+ import { CoreOptions } from './core/types';
1
2
  import Checkout from './core';
2
- declare function AdyenCheckout(props: any): Promise<Checkout>;
3
+ declare function AdyenCheckout(props: CoreOptions): Promise<Checkout>;
3
4
  export default AdyenCheckout;
@@ -5,6 +5,7 @@ export declare const FALLBACK_LOCALE = "en-US";
5
5
  export declare const defaultTranslation: {
6
6
  payButton: string;
7
7
  "payButton.redirecting": string;
8
+ "payButton.with": string;
8
9
  storeDetails: string;
9
10
  "creditCard.holderName": string;
10
11
  "creditCard.holderName.placeholder": string;
@@ -221,4 +222,37 @@ export declare const defaultTranslation: {
221
222
  invalidFormatExpects: string;
222
223
  "upi.qrCodeWaitingMessage": string;
223
224
  "upi.vpaWaitingMessage": string;
225
+ "onlineBanking.termsAndConditions": string;
226
+ "ctp.loading.poweredByCtp": string;
227
+ "ctp.loading.intro": string;
228
+ "ctp.login.title": string;
229
+ "ctp.login.subtitle": string;
230
+ "ctp.login.inputLabel": string;
231
+ "ctp.logout.notYou": string;
232
+ "ctp.logout.notYouCards": string;
233
+ "ctp.otp.fieldLabel": string;
234
+ "ctp.otp.resendCode": string;
235
+ "ctp.otp.codeResent": string;
236
+ "ctp.otp.title": string;
237
+ "ctp.otp.subtitle": string;
238
+ "ctp.emptyCardsView.title": string;
239
+ "ctp.emptyCardsView.subtitle": string;
240
+ "ctp.emptyCardsView.button": string;
241
+ "ctp.separatorText": string;
242
+ "ctp.cards.title": string;
243
+ "ctp.cards.subtitle": string;
244
+ "ctp.cards.cardSelector": string;
245
+ "ctp.manualCardEntry": string;
246
+ "ctp.errors.AUTH_INVALID": string;
247
+ "ctp.errors.NOT_FOUND": string;
248
+ "ctp.errors.ID_FORMAT_UNSUPPORTED": string;
249
+ "ctp.errors.FRAUD": string;
250
+ "ctp.errors.CONSUMER_ID_MISSING": string;
251
+ "ctp.errors.ACCT_INACCESSIBLE": string;
252
+ "ctp.errors.UNKNOWN_ERROR": string;
253
+ "ctp.errors.CODE_INVALID": string;
254
+ "ctp.errors.CODE_EXPIRED": string;
255
+ "ctp.errors.INVALID_PARAMETER": string;
256
+ "ctp.errors.RETRIES_EXCEEDED": string;
257
+ "ctp.errors.OTP_SEND_FAILED": string;
224
258
  };
@@ -218,6 +218,7 @@ declare const _default: {
218
218
  invalidFormatExpects: string;
219
219
  "upi.qrCodeWaitingMessage": string;
220
220
  "upi.vpaWaitingMessage": string;
221
+ "onlineBanking.termsAndConditions": string;
221
222
  };
222
223
  payButton: string;
223
224
  "payButton.redirecting": string;
@@ -436,6 +437,7 @@ declare const _default: {
436
437
  invalidFormatExpects: string;
437
438
  "upi.qrCodeWaitingMessage": string;
438
439
  "upi.vpaWaitingMessage": string;
440
+ "onlineBanking.termsAndConditions": string;
439
441
  }>;
440
442
  'cs-CZ': () => Promise<{
441
443
  default: {
@@ -655,6 +657,7 @@ declare const _default: {
655
657
  invalidFormatExpects: string;
656
658
  "upi.qrCodeWaitingMessage": string;
657
659
  "upi.vpaWaitingMessage": string;
660
+ "onlineBanking.termsAndConditions": string;
658
661
  };
659
662
  payButton: string;
660
663
  "payButton.redirecting": string;
@@ -872,6 +875,7 @@ declare const _default: {
872
875
  invalidFormatExpects: string;
873
876
  "upi.qrCodeWaitingMessage": string;
874
877
  "upi.vpaWaitingMessage": string;
878
+ "onlineBanking.termsAndConditions": string;
875
879
  }>;
876
880
  'da-DK': () => Promise<{
877
881
  default: {
@@ -1092,6 +1096,7 @@ declare const _default: {
1092
1096
  invalidFormatExpects: string;
1093
1097
  "upi.qrCodeWaitingMessage": string;
1094
1098
  "upi.vpaWaitingMessage": string;
1099
+ "onlineBanking.termsAndConditions": string;
1095
1100
  };
1096
1101
  payButton: string;
1097
1102
  "payButton.redirecting": string;
@@ -1310,6 +1315,7 @@ declare const _default: {
1310
1315
  invalidFormatExpects: string;
1311
1316
  "upi.qrCodeWaitingMessage": string;
1312
1317
  "upi.vpaWaitingMessage": string;
1318
+ "onlineBanking.termsAndConditions": string;
1313
1319
  }>;
1314
1320
  'de-DE': () => Promise<{
1315
1321
  default: {
@@ -1529,6 +1535,7 @@ declare const _default: {
1529
1535
  invalidFormatExpects: string;
1530
1536
  "upi.qrCodeWaitingMessage": string;
1531
1537
  "upi.vpaWaitingMessage": string;
1538
+ "onlineBanking.termsAndConditions": string;
1532
1539
  };
1533
1540
  payButton: string;
1534
1541
  "payButton.redirecting": string;
@@ -1746,6 +1753,7 @@ declare const _default: {
1746
1753
  invalidFormatExpects: string;
1747
1754
  "upi.qrCodeWaitingMessage": string;
1748
1755
  "upi.vpaWaitingMessage": string;
1756
+ "onlineBanking.termsAndConditions": string;
1749
1757
  }>;
1750
1758
  'el-GR': () => Promise<{
1751
1759
  default: {
@@ -1965,6 +1973,7 @@ declare const _default: {
1965
1973
  invalidFormatExpects: string;
1966
1974
  "upi.qrCodeWaitingMessage": string;
1967
1975
  "upi.vpaWaitingMessage": string;
1976
+ "onlineBanking.termsAndConditions": string;
1968
1977
  };
1969
1978
  payButton: string;
1970
1979
  "payButton.redirecting": string;
@@ -2182,11 +2191,13 @@ declare const _default: {
2182
2191
  invalidFormatExpects: string;
2183
2192
  "upi.qrCodeWaitingMessage": string;
2184
2193
  "upi.vpaWaitingMessage": string;
2194
+ "onlineBanking.termsAndConditions": string;
2185
2195
  }>;
2186
2196
  'en-US': () => Promise<{
2187
2197
  default: {
2188
2198
  payButton: string;
2189
2199
  "payButton.redirecting": string;
2200
+ "payButton.with": string;
2190
2201
  storeDetails: string;
2191
2202
  "creditCard.holderName": string;
2192
2203
  "creditCard.holderName.placeholder": string;
@@ -2403,9 +2414,43 @@ declare const _default: {
2403
2414
  invalidFormatExpects: string;
2404
2415
  "upi.qrCodeWaitingMessage": string;
2405
2416
  "upi.vpaWaitingMessage": string;
2417
+ "onlineBanking.termsAndConditions": string;
2418
+ "ctp.loading.poweredByCtp": string;
2419
+ "ctp.loading.intro": string;
2420
+ "ctp.login.title": string;
2421
+ "ctp.login.subtitle": string;
2422
+ "ctp.login.inputLabel": string;
2423
+ "ctp.logout.notYou": string;
2424
+ "ctp.logout.notYouCards": string;
2425
+ "ctp.otp.fieldLabel": string;
2426
+ "ctp.otp.resendCode": string;
2427
+ "ctp.otp.codeResent": string;
2428
+ "ctp.otp.title": string;
2429
+ "ctp.otp.subtitle": string;
2430
+ "ctp.emptyCardsView.title": string;
2431
+ "ctp.emptyCardsView.subtitle": string;
2432
+ "ctp.emptyCardsView.button": string;
2433
+ "ctp.separatorText": string;
2434
+ "ctp.cards.title": string;
2435
+ "ctp.cards.subtitle": string;
2436
+ "ctp.cards.cardSelector": string;
2437
+ "ctp.manualCardEntry": string;
2438
+ "ctp.errors.AUTH_INVALID": string;
2439
+ "ctp.errors.NOT_FOUND": string;
2440
+ "ctp.errors.ID_FORMAT_UNSUPPORTED": string;
2441
+ "ctp.errors.FRAUD": string;
2442
+ "ctp.errors.CONSUMER_ID_MISSING": string;
2443
+ "ctp.errors.ACCT_INACCESSIBLE": string;
2444
+ "ctp.errors.UNKNOWN_ERROR": string;
2445
+ "ctp.errors.CODE_INVALID": string;
2446
+ "ctp.errors.CODE_EXPIRED": string;
2447
+ "ctp.errors.INVALID_PARAMETER": string;
2448
+ "ctp.errors.RETRIES_EXCEEDED": string;
2449
+ "ctp.errors.OTP_SEND_FAILED": string;
2406
2450
  };
2407
2451
  payButton: string;
2408
2452
  "payButton.redirecting": string;
2453
+ "payButton.with": string;
2409
2454
  storeDetails: string;
2410
2455
  "creditCard.holderName": string;
2411
2456
  "creditCard.holderName.placeholder": string;
@@ -2622,6 +2667,39 @@ declare const _default: {
2622
2667
  invalidFormatExpects: string;
2623
2668
  "upi.qrCodeWaitingMessage": string;
2624
2669
  "upi.vpaWaitingMessage": string;
2670
+ "onlineBanking.termsAndConditions": string;
2671
+ "ctp.loading.poweredByCtp": string;
2672
+ "ctp.loading.intro": string;
2673
+ "ctp.login.title": string;
2674
+ "ctp.login.subtitle": string;
2675
+ "ctp.login.inputLabel": string;
2676
+ "ctp.logout.notYou": string;
2677
+ "ctp.logout.notYouCards": string;
2678
+ "ctp.otp.fieldLabel": string;
2679
+ "ctp.otp.resendCode": string;
2680
+ "ctp.otp.codeResent": string;
2681
+ "ctp.otp.title": string;
2682
+ "ctp.otp.subtitle": string;
2683
+ "ctp.emptyCardsView.title": string;
2684
+ "ctp.emptyCardsView.subtitle": string;
2685
+ "ctp.emptyCardsView.button": string;
2686
+ "ctp.separatorText": string;
2687
+ "ctp.cards.title": string;
2688
+ "ctp.cards.subtitle": string;
2689
+ "ctp.cards.cardSelector": string;
2690
+ "ctp.manualCardEntry": string;
2691
+ "ctp.errors.AUTH_INVALID": string;
2692
+ "ctp.errors.NOT_FOUND": string;
2693
+ "ctp.errors.ID_FORMAT_UNSUPPORTED": string;
2694
+ "ctp.errors.FRAUD": string;
2695
+ "ctp.errors.CONSUMER_ID_MISSING": string;
2696
+ "ctp.errors.ACCT_INACCESSIBLE": string;
2697
+ "ctp.errors.UNKNOWN_ERROR": string;
2698
+ "ctp.errors.CODE_INVALID": string;
2699
+ "ctp.errors.CODE_EXPIRED": string;
2700
+ "ctp.errors.INVALID_PARAMETER": string;
2701
+ "ctp.errors.RETRIES_EXCEEDED": string;
2702
+ "ctp.errors.OTP_SEND_FAILED": string;
2625
2703
  }>;
2626
2704
  'es-ES': () => Promise<{
2627
2705
  default: {
@@ -2836,6 +2914,7 @@ declare const _default: {
2836
2914
  invalidFormatExpects: string;
2837
2915
  "upi.qrCodeWaitingMessage": string;
2838
2916
  "upi.vpaWaitingMessage": string;
2917
+ "onlineBanking.termsAndConditions": string;
2839
2918
  };
2840
2919
  payButton: string;
2841
2920
  "payButton.redirecting": string;
@@ -3048,6 +3127,7 @@ declare const _default: {
3048
3127
  invalidFormatExpects: string;
3049
3128
  "upi.qrCodeWaitingMessage": string;
3050
3129
  "upi.vpaWaitingMessage": string;
3130
+ "onlineBanking.termsAndConditions": string;
3051
3131
  }>;
3052
3132
  'fi-FI': () => Promise<{
3053
3133
  default: {
@@ -3267,6 +3347,7 @@ declare const _default: {
3267
3347
  invalidFormatExpects: string;
3268
3348
  "upi.qrCodeWaitingMessage": string;
3269
3349
  "upi.vpaWaitingMessage": string;
3350
+ "onlineBanking.termsAndConditions": string;
3270
3351
  };
3271
3352
  payButton: string;
3272
3353
  "payButton.redirecting": string;
@@ -3484,6 +3565,7 @@ declare const _default: {
3484
3565
  invalidFormatExpects: string;
3485
3566
  "upi.qrCodeWaitingMessage": string;
3486
3567
  "upi.vpaWaitingMessage": string;
3568
+ "onlineBanking.termsAndConditions": string;
3487
3569
  }>;
3488
3570
  'fr-FR': () => Promise<{
3489
3571
  default: {
@@ -3703,6 +3785,7 @@ declare const _default: {
3703
3785
  invalidFormatExpects: string;
3704
3786
  "upi.qrCodeWaitingMessage": string;
3705
3787
  "upi.vpaWaitingMessage": string;
3788
+ "onlineBanking.termsAndConditions": string;
3706
3789
  };
3707
3790
  payButton: string;
3708
3791
  "payButton.redirecting": string;
@@ -3920,6 +4003,7 @@ declare const _default: {
3920
4003
  invalidFormatExpects: string;
3921
4004
  "upi.qrCodeWaitingMessage": string;
3922
4005
  "upi.vpaWaitingMessage": string;
4006
+ "onlineBanking.termsAndConditions": string;
3923
4007
  }>;
3924
4008
  'hr-HR': () => Promise<{
3925
4009
  default: {
@@ -4139,6 +4223,7 @@ declare const _default: {
4139
4223
  invalidFormatExpects: string;
4140
4224
  "upi.qrCodeWaitingMessage": string;
4141
4225
  "upi.vpaWaitingMessage": string;
4226
+ "onlineBanking.termsAndConditions": string;
4142
4227
  };
4143
4228
  payButton: string;
4144
4229
  "payButton.redirecting": string;
@@ -4356,6 +4441,7 @@ declare const _default: {
4356
4441
  invalidFormatExpects: string;
4357
4442
  "upi.qrCodeWaitingMessage": string;
4358
4443
  "upi.vpaWaitingMessage": string;
4444
+ "onlineBanking.termsAndConditions": string;
4359
4445
  }>;
4360
4446
  'hu-HU': () => Promise<{
4361
4447
  default: {
@@ -4575,6 +4661,7 @@ declare const _default: {
4575
4661
  invalidFormatExpects: string;
4576
4662
  "upi.qrCodeWaitingMessage": string;
4577
4663
  "upi.vpaWaitingMessage": string;
4664
+ "onlineBanking.termsAndConditions": string;
4578
4665
  };
4579
4666
  payButton: string;
4580
4667
  "payButton.redirecting": string;
@@ -4792,6 +4879,7 @@ declare const _default: {
4792
4879
  invalidFormatExpects: string;
4793
4880
  "upi.qrCodeWaitingMessage": string;
4794
4881
  "upi.vpaWaitingMessage": string;
4882
+ "onlineBanking.termsAndConditions": string;
4795
4883
  }>;
4796
4884
  'it-IT': () => Promise<{
4797
4885
  default: {
@@ -5009,6 +5097,7 @@ declare const _default: {
5009
5097
  invalidFormatExpects: string;
5010
5098
  "upi.qrCodeWaitingMessage": string;
5011
5099
  "upi.vpaWaitingMessage": string;
5100
+ "onlineBanking.termsAndConditions": string;
5012
5101
  };
5013
5102
  payButton: string;
5014
5103
  "payButton.redirecting": string;
@@ -5224,6 +5313,7 @@ declare const _default: {
5224
5313
  invalidFormatExpects: string;
5225
5314
  "upi.qrCodeWaitingMessage": string;
5226
5315
  "upi.vpaWaitingMessage": string;
5316
+ "onlineBanking.termsAndConditions": string;
5227
5317
  }>;
5228
5318
  'ja-JP': () => Promise<{
5229
5319
  default: {
@@ -5443,6 +5533,7 @@ declare const _default: {
5443
5533
  invalidFormatExpects: string;
5444
5534
  "upi.qrCodeWaitingMessage": string;
5445
5535
  "upi.vpaWaitingMessage": string;
5536
+ "onlineBanking.termsAndConditions": string;
5446
5537
  };
5447
5538
  payButton: string;
5448
5539
  "payButton.redirecting": string;
@@ -5660,6 +5751,7 @@ declare const _default: {
5660
5751
  invalidFormatExpects: string;
5661
5752
  "upi.qrCodeWaitingMessage": string;
5662
5753
  "upi.vpaWaitingMessage": string;
5754
+ "onlineBanking.termsAndConditions": string;
5663
5755
  }>;
5664
5756
  'ko-KR': () => Promise<{
5665
5757
  default: {
@@ -5879,6 +5971,7 @@ declare const _default: {
5879
5971
  invalidFormatExpects: string;
5880
5972
  "upi.qrCodeWaitingMessage": string;
5881
5973
  "upi.vpaWaitingMessage": string;
5974
+ "onlineBanking.termsAndConditions": string;
5882
5975
  };
5883
5976
  payButton: string;
5884
5977
  "payButton.redirecting": string;
@@ -6096,6 +6189,7 @@ declare const _default: {
6096
6189
  invalidFormatExpects: string;
6097
6190
  "upi.qrCodeWaitingMessage": string;
6098
6191
  "upi.vpaWaitingMessage": string;
6192
+ "onlineBanking.termsAndConditions": string;
6099
6193
  }>;
6100
6194
  'nl-NL': () => Promise<{
6101
6195
  default: {
@@ -6315,6 +6409,7 @@ declare const _default: {
6315
6409
  invalidFormatExpects: string;
6316
6410
  "upi.qrCodeWaitingMessage": string;
6317
6411
  "upi.vpaWaitingMessage": string;
6412
+ "onlineBanking.termsAndConditions": string;
6318
6413
  };
6319
6414
  payButton: string;
6320
6415
  "payButton.redirecting": string;
@@ -6532,6 +6627,7 @@ declare const _default: {
6532
6627
  invalidFormatExpects: string;
6533
6628
  "upi.qrCodeWaitingMessage": string;
6534
6629
  "upi.vpaWaitingMessage": string;
6630
+ "onlineBanking.termsAndConditions": string;
6535
6631
  }>;
6536
6632
  'no-NO': () => Promise<{
6537
6633
  default: {
@@ -6751,6 +6847,7 @@ declare const _default: {
6751
6847
  invalidFormatExpects: string;
6752
6848
  "upi.qrCodeWaitingMessage": string;
6753
6849
  "upi.vpaWaitingMessage": string;
6850
+ "onlineBanking.termsAndConditions": string;
6754
6851
  };
6755
6852
  payButton: string;
6756
6853
  "payButton.redirecting": string;
@@ -6968,6 +7065,7 @@ declare const _default: {
6968
7065
  invalidFormatExpects: string;
6969
7066
  "upi.qrCodeWaitingMessage": string;
6970
7067
  "upi.vpaWaitingMessage": string;
7068
+ "onlineBanking.termsAndConditions": string;
6971
7069
  }>;
6972
7070
  'pl-PL': () => Promise<{
6973
7071
  default: {
@@ -7187,6 +7285,7 @@ declare const _default: {
7187
7285
  invalidFormatExpects: string;
7188
7286
  "upi.qrCodeWaitingMessage": string;
7189
7287
  "upi.vpaWaitingMessage": string;
7288
+ "onlineBanking.termsAndConditions": string;
7190
7289
  };
7191
7290
  payButton: string;
7192
7291
  "payButton.redirecting": string;
@@ -7404,6 +7503,7 @@ declare const _default: {
7404
7503
  invalidFormatExpects: string;
7405
7504
  "upi.qrCodeWaitingMessage": string;
7406
7505
  "upi.vpaWaitingMessage": string;
7506
+ "onlineBanking.termsAndConditions": string;
7407
7507
  }>;
7408
7508
  'pt-BR': () => Promise<{
7409
7509
  default: {
@@ -7621,6 +7721,7 @@ declare const _default: {
7621
7721
  invalidFormatExpects: string;
7622
7722
  "upi.qrCodeWaitingMessage": string;
7623
7723
  "upi.vpaWaitingMessage": string;
7724
+ "onlineBanking.termsAndConditions": string;
7624
7725
  };
7625
7726
  payButton: string;
7626
7727
  "payButton.redirecting": string;
@@ -7836,6 +7937,7 @@ declare const _default: {
7836
7937
  invalidFormatExpects: string;
7837
7938
  "upi.qrCodeWaitingMessage": string;
7838
7939
  "upi.vpaWaitingMessage": string;
7940
+ "onlineBanking.termsAndConditions": string;
7839
7941
  }>;
7840
7942
  'pt-PT': () => Promise<{
7841
7943
  default: {
@@ -8057,6 +8159,7 @@ declare const _default: {
8057
8159
  invalidFormatExpects: string;
8058
8160
  "upi.qrCodeWaitingMessage": string;
8059
8161
  "upi.vpaWaitingMessage": string;
8162
+ "onlineBanking.termsAndConditions": string;
8060
8163
  };
8061
8164
  payButton: string;
8062
8165
  "payButton.redirecting": string;
@@ -8276,6 +8379,7 @@ declare const _default: {
8276
8379
  invalidFormatExpects: string;
8277
8380
  "upi.qrCodeWaitingMessage": string;
8278
8381
  "upi.vpaWaitingMessage": string;
8382
+ "onlineBanking.termsAndConditions": string;
8279
8383
  }>;
8280
8384
  'ro-RO': () => Promise<{
8281
8385
  default: {
@@ -8495,6 +8599,7 @@ declare const _default: {
8495
8599
  invalidFormatExpects: string;
8496
8600
  "upi.qrCodeWaitingMessage": string;
8497
8601
  "upi.vpaWaitingMessage": string;
8602
+ "onlineBanking.termsAndConditions": string;
8498
8603
  };
8499
8604
  payButton: string;
8500
8605
  "payButton.redirecting": string;
@@ -8712,6 +8817,7 @@ declare const _default: {
8712
8817
  invalidFormatExpects: string;
8713
8818
  "upi.qrCodeWaitingMessage": string;
8714
8819
  "upi.vpaWaitingMessage": string;
8820
+ "onlineBanking.termsAndConditions": string;
8715
8821
  }>;
8716
8822
  'ru-RU': () => Promise<{
8717
8823
  default: {
@@ -8928,6 +9034,7 @@ declare const _default: {
8928
9034
  invalidFormatExpects: string;
8929
9035
  "upi.qrCodeWaitingMessage": string;
8930
9036
  "upi.vpaWaitingMessage": string;
9037
+ "onlineBanking.termsAndConditions": string;
8931
9038
  };
8932
9039
  payButton: string;
8933
9040
  "payButton.redirecting": string;
@@ -9142,6 +9249,7 @@ declare const _default: {
9142
9249
  invalidFormatExpects: string;
9143
9250
  "upi.qrCodeWaitingMessage": string;
9144
9251
  "upi.vpaWaitingMessage": string;
9252
+ "onlineBanking.termsAndConditions": string;
9145
9253
  }>;
9146
9254
  'sk-SK': () => Promise<{
9147
9255
  default: {
@@ -9361,6 +9469,7 @@ declare const _default: {
9361
9469
  invalidFormatExpects: string;
9362
9470
  "upi.qrCodeWaitingMessage": string;
9363
9471
  "upi.vpaWaitingMessage": string;
9472
+ "onlineBanking.termsAndConditions": string;
9364
9473
  };
9365
9474
  payButton: string;
9366
9475
  "payButton.redirecting": string;
@@ -9578,6 +9687,7 @@ declare const _default: {
9578
9687
  invalidFormatExpects: string;
9579
9688
  "upi.qrCodeWaitingMessage": string;
9580
9689
  "upi.vpaWaitingMessage": string;
9690
+ "onlineBanking.termsAndConditions": string;
9581
9691
  }>;
9582
9692
  'sl-SI': () => Promise<{
9583
9693
  default: {
@@ -9797,6 +9907,7 @@ declare const _default: {
9797
9907
  invalidFormatExpects: string;
9798
9908
  "upi.qrCodeWaitingMessage": string;
9799
9909
  "upi.vpaWaitingMessage": string;
9910
+ "onlineBanking.termsAndConditions": string;
9800
9911
  };
9801
9912
  payButton: string;
9802
9913
  "payButton.redirecting": string;
@@ -10014,6 +10125,7 @@ declare const _default: {
10014
10125
  invalidFormatExpects: string;
10015
10126
  "upi.qrCodeWaitingMessage": string;
10016
10127
  "upi.vpaWaitingMessage": string;
10128
+ "onlineBanking.termsAndConditions": string;
10017
10129
  }>;
10018
10130
  'sv-SE': () => Promise<{
10019
10131
  default: {
@@ -10233,6 +10345,7 @@ declare const _default: {
10233
10345
  invalidFormatExpects: string;
10234
10346
  "upi.qrCodeWaitingMessage": string;
10235
10347
  "upi.vpaWaitingMessage": string;
10348
+ "onlineBanking.termsAndConditions": string;
10236
10349
  };
10237
10350
  payButton: string;
10238
10351
  "payButton.redirecting": string;
@@ -10450,6 +10563,7 @@ declare const _default: {
10450
10563
  invalidFormatExpects: string;
10451
10564
  "upi.qrCodeWaitingMessage": string;
10452
10565
  "upi.vpaWaitingMessage": string;
10566
+ "onlineBanking.termsAndConditions": string;
10453
10567
  }>;
10454
10568
  'zh-CN': () => Promise<{
10455
10569
  default: {
@@ -10668,6 +10782,7 @@ declare const _default: {
10668
10782
  invalidFormatExpects: string;
10669
10783
  "upi.qrCodeWaitingMessage": string;
10670
10784
  "upi.vpaWaitingMessage": string;
10785
+ "onlineBanking.termsAndConditions": string;
10671
10786
  };
10672
10787
  payButton: string;
10673
10788
  "payButton.redirecting": string;
@@ -10884,6 +10999,7 @@ declare const _default: {
10884
10999
  invalidFormatExpects: string;
10885
11000
  "upi.qrCodeWaitingMessage": string;
10886
11001
  "upi.vpaWaitingMessage": string;
11002
+ "onlineBanking.termsAndConditions": string;
10887
11003
  }>;
10888
11004
  'zh-TW': () => Promise<{
10889
11005
  default: {
@@ -11103,6 +11219,7 @@ declare const _default: {
11103
11219
  invalidFormatExpects: string;
11104
11220
  "upi.qrCodeWaitingMessage": string;
11105
11221
  "upi.vpaWaitingMessage": string;
11222
+ "onlineBanking.termsAndConditions": string;
11106
11223
  };
11107
11224
  payButton: string;
11108
11225
  "payButton.redirecting": string;
@@ -11320,6 +11437,7 @@ declare const _default: {
11320
11437
  invalidFormatExpects: string;
11321
11438
  "upi.qrCodeWaitingMessage": string;
11322
11439
  "upi.vpaWaitingMessage": string;
11440
+ "onlineBanking.termsAndConditions": string;
11323
11441
  }>;
11324
11442
  };
11325
11443
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { h } from 'preact';
1
2
  /**
2
3
  * Matches a string with one of the locales
3
4
  * @param locale -
@@ -37,3 +38,10 @@ export declare function formatCustomTranslations(customTranslations: object, sup
37
38
  * @param customTranslations -
38
39
  */
39
40
  export declare const loadTranslations: (locale: string, customTranslations?: object) => Promise<any>;
41
+ /**
42
+ * Injects JSX elements in a middle of a translation and returns a JSX array
43
+ * The input string should use %# as the token to know where to insert the component
44
+ * @param translation - Translation string
45
+ * @param renderFunctions - An array function that renders JSX elements
46
+ */
47
+ export declare const interpolateElement: (translation: string, renderFunctions: ((translation: string) => h.JSX.Element)[]) => (string | h.JSX.Element)[];