Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Hide Credit Card Number At Checkout

   X-Cart forums > X-Cart 4 > Changing and adding new features
Thread Tools Search this Thread
Old 08-18-2003, 03:30 AM is offline

Join Date: Jul 2003
Posts: 15

Default Hide Credit Card Number At Checkout

I have looked all over the forum for a way to mask the credit card numbers when a customer checks out to prevent unathorized use of their cc info and I had no luck so I came up with another solution and thought I would pass it along if anyone else is worried about the same problem.

The fix will not mask the numbers but instead will totally hide the numbers from the customer but it still shows up in the admin and database.
The only drawback is the customer will have to enter their credit card everytime they checkout but I think it's worth the trouble for the added security.

If anyone else has a better idea I wish they would let me know.

In the Skin1/ Main/ folder find the register_ccinfo.tpl


<input type=text name=card_number size=32 maxlength=20 value="{$userinfo.card_number}">

change to

<input type=text name=card_number size=32 maxlength=20 value="">


<input type=text name=card_expire size=4 maxlength=4 value="{$userinfo.card_expire}">

change to

<input type=text name=card_expire size=4 maxlength=4 value="">


<input type=text name=card_cvv2 size=4 maxlength=4 value="{$userinfo.card_cvv2}">

change to

<input type=text name=card_cvv2 size=4 maxlength=4 value="">

That's it if anyone is interested.
Reply With Quote
Old 08-20-2003, 07:35 AM
  lildawg's Avatar 
lildawg lildawg is offline

Join Date: Jan 2003
Location: Utah
Posts: 686


I have a better idea. At least it is what I do. After an order is placed I log-in to my database and delete the info. I DO NOT trust it being on the web and neither should anyone. No matter how secure we think our info is hackers CAN GET IT. I try to remove as much info as possible as then and only then do you know your customerБ─≥s info is protected. It only takes 30 seconds to fix. Just one time login to your mysql database (or whatever you use) I then create a link in my favorites so all I have to do is click it next time. Then just go to your Customers Table and then on that customer REMOVE THE CC INFO then click save. As said it only takes about 30 seconds and if you really care about your customerБ─≥s security this is the only SURE way to get it off of a vulnerable computer. Would you be happy in knowing that your info (especially CC info) was being stored on the web by some company where a hacker could come get it or would you feel more secure knowing that it is only stored in the companies Accounting software away from the web and a vulnerable server. If your customers get upset about entering a total of 20 numbers (16 for the card and 4 for the expiration date) then man has this world ever become lazy. Anyway this was just my suggestion for securing the info.
Reply With Quote
Old 08-20-2003, 01:45 PM
  shan's Avatar 
shan shan is offline

Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163


or when you go to process the order and view the cc info in the order page delete it from the order info text area before you change the status to processed
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
Old 08-20-2003, 01:53 PM is offline

Join Date: Jul 2003
Posts: 15

Default Great idea

Great idea if you instantly process it as soon as the order is placed but what about the few hours that pass until then. I do not like the idea that if someone accesses the account until you delete it the customers cc iinfo shows up at checkout.
Reply With Quote
Old 11-16-2003, 08:51 PM
  rubberneck's Avatar 
rubberneck rubberneck is offline

Senior Member
Join Date: Feb 2003
Posts: 161

Default success yet?

Anyone make this work yet?
Reply With Quote
   X-Cart forums > X-Cart 4 > Changing and adding new features

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -8. The time now is 02:41 AM.


X-Cart forums © 2001-2020