Page 1 of 1

how to mask the credit card verification code

Posted: Sun Jun 12, 2011 11:56 pm
by hubsun
Hi,

We have a requirement to mask the credit card verification code. Right now in the payment page this in plain text. Is there a way to mask this verification code text box?

Thanks in advance,
Regards,
Sunil

Re: how to mask the credit card verification code

Posted: Mon Jun 13, 2011 4:33 am
by mazhar
Edit your Website/Checkout/PaymentFroms/CreditCardPaymentForm.ascx file and locate following code

Code: Select all

<asp:TextBox ID="SecurityCode" runat="server" Columns="4" MaxLength="4" ValidationGroup="CreditCard" AutoCompleteType="Disabled"></asp:TextBox>
and update it like this

Code: Select all

<asp:TextBox ID="SecurityCode" runat="server" Columns="4" MaxLength="4" ValidationGroup="CreditCard" AutoCompleteType="Disabled" TextMode="Password"></asp:TextBox>

Re: how to mask the credit card verification code

Posted: Mon Jun 13, 2011 11:44 pm
by hubsun
Thanks Mazhar