After integrating the payment component, the default user interface (UI) styling is applied.
You can customize the styling to match your brand’s visual identity, including fonts, colors, and layout.
To edit the default styling of the component:
CSS class | What it does |
---|---|
.msp-container-ui |
Selects the payment component |
.msp-ui-payment-form |
Selects the payment form |
.msp-ui-method-header |
Selects the payment .msp-ui-method-image and heading |
.msp-ui-method-image |
Selects the payment method logo |
.msp-ui-form-group |
Contains the .msp-ui-form-control and .msp-ui-form-label |
.msp-ui-form-label |
Selects the field labels in the payment form |
.msp-ui-form-control |
Selects the fields in the payment form |
.msp-ui-row |
Contains two .msp-ui-col-2 elements |
.msp-ui-col-2 |
Contains .msp-ui-form-group |
.msp-ui-separator |
Selects the space before and after the form fields |
Add the following to your CSS to edit the payment component to add a:
border-radius
to the form fieldsfocus
border-radius
to the component containerbackground-color
to the component container.msp-ui-form-control {
border-radius: 5px
}
.msp-ui-form-control:focus {
box-shadow: 0 7px 7px rgba(0, 15, 45, 0.2)
}
.msp-container-ui {
border-radius: 10px;
background-color: #f8f9fa;
}
The payment component now looks like this:
Feedback
Propose a change on GitHub
or
send an email to [email protected]
Other languages
For an explanation in another language, contact your account manager.