Bank Account Module

You can customize the Bank Account Module to integrate better with your website's design style. For this, you can use the optional parameters style and labels when calling the window.bankAccountModuleConfig function.

Labels

Using this parameter, you can customize the label and title values of the component. The labels parameter is an object. The table below presents all available labels you can change:

PropertyTypeDescriptionsDefault Value
widgetHeaderTitlestringThe title displayed in the header of the widget container.Add or Update Wire Profile
nextButtonstringLabel for the "Next" button.Next
prevButtonstringLabel for the "Previous" button.Prev
submitButtonstringLabel for the "Submit" button.Submit
stepOptionsarray of stringsLabels for each step in the multi-step form.Account Info and Bank Info. There are a total of 2 steps. Pass an array of strings to override the step labels.

Styles

Using this parameter, you can customize the look and feel of the UI Component. The styles parameter is an object. The table below presents all the available property names you can edit:

Prop NameDefinition
widgetContainerPage container or wrapper.
widgetHeaderWidget header that contains the Add Bank Information label.
widgetHeaderTitleLabel displayed in the widget header.
nextButtonLabel for the "Next" button.
formContainerContainer or wrapper for the form.
formStepContainerA container for form steps. Includes the step labels.
formStepLabelLabel for each step in the form.
formControlsContainerThe container contains the form controls such as input fields, dropdowns, or date pickers.
sectionListMessageContainerContainer for messages related to the section list.
sectionListMessageMessage displayed in the section list.
formControlLabelLabel for form inputs or dropdowns.
inputForm control input field or textbox.
dropdownForm control dropdown.
validationMessageA message displayed for form control validations (e.g., "Invalid account number"). The default color is crimson.

Each property above must receive an object as the value. This value can contain style and cssClass keys:

KeyTypeDescription
styleobjectAn object containing any valid CSS styles to be applied to the property.
cssClassstringA class name to be added to the HTML element.

Below, you can find a quick example of use for both keys:

styles: {
  widgetContainer: {
    style: {
      'border': '2px solid #ccc'
    },
    cssClass: 'my-widget-container'
  },

Full Example

The code below shows a complete example of the window.addBankInformationConfig function, with all available parameters:

window.addBankInformationConfig  = {
  token: 'byuY5QTlEM0UtM0QzQi00RjdELTlGREUtNDE2OUYxQUJFREQ1OjFiM2I1NzhiLWMwYTctNGI5OC1hNjEyLWU4YTA4ZWJjZTY0Ng==',
  beneficiaryReference: "123545745454",
  labels : {
    widgetHeaderTitle: 'Add New Bank Info',
    nextButton: "Next Step",
    prevButton: "Prev Step",
    submitButton: "Final Submit",
    stepOptions: ['Step 1', 'Step 2']
  },
  styles: {
    widgetContainer: {
      style: {
        'border': '2px solid #ccc'
      }
    },
    formContatainer: {
      style: {
        'background-color': 'green'
      }
    },
    formStepContainer:{
      style: {
        'background-color': 'pink'
      }
    },
    formStepLabel:{
      style: {
        'color': 'blue'
      }
    },
    formControlsContainer: {
      style: {
        width: '50%'
      }
    },
    sectionListMessageContainer:{
      style: {
        'list-style-type': 'none'
      }
    },
    sectionListMessage:{
      style: {
        'color': 'crimson',
        'font-style': 'italic'
      }
    },
    input: {
      cssClass: "i-payout-form-control"
    },
    dropdown: {
      cssClass: "i-payout-form-control"
    },
    validationMessage: {
      style: {
        color: 'red'
      }
    }
  }