I am working on a Blazor-based payment interface, and I am exploring Telerik UI for Blazor components for handling payment-form inputs.
I am particularly interested in using the Telerik MaskedTextBox component for formatting card-number fields and handling input validation.
My main concern is how to structure the form so that sensitive payment information is not unnecessarily retained in the application. I understand that an input mask only controls the displayed input format and does not provide payment-data security by itself.
What would be the recommended approach for integrating MaskedTextBox with EditForm and server-side validation while keeping sensitive payment information out of application logs?
I would appreciate any technical guidance or relevant examples.
Hi Zhang,
A possible approach is to not include the card number in the Form Model. The MaskedTextBox Value parameter must not be set either, and you will have to obtain and validate the value with JavaScript.
Generally, the tighter the security, the more you need to use custom logic instead of built-in component and Blazor features.