how to mask the credit card verification code

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
hubsun
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Mon Nov 10, 2008 4:01 am

how to mask the credit card verification code

Post by hubsun » Sun Jun 12, 2011 11:56 pm

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: how to mask the credit card verification code

Post by mazhar » Mon Jun 13, 2011 4:33 am

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>

hubsun
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Mon Nov 10, 2008 4:01 am

Re: how to mask the credit card verification code

Post by hubsun » Mon Jun 13, 2011 11:44 pm

Thanks Mazhar

Post Reply