Closed mzohrab closed 1 year ago
Hi @mzohrab
There are a few ways how it can be achieved:
PaymentFormStyle
with a theme, as you have done, PaymentFormStyleProvider.provide(CustomPaymentFormTheme.providePaymentFormTheme())
and after it, each field style can be updated in a more detailed way. F.e. to change the error message for card number you need: PaymentFormStyle.paymentDetailsStyle.cardNumberStyle.inputStyle.errorMessageStyle.textId
. The InputComponentStyle
and TextLabelStyle
are immutable, .copy()
function should help with it.
Hello Checkout Team, We are trying to localise checkout form, but validation error messages still stay as default. Is there anyway to set custom validation error message on PaymentFormComponentBuilder? Currently com.checkout.frames.style.theme.PaymentFormComponentBuilder does not contain any method to set validation error messages.
Thank you a lot!