INFO How do I mask the credit card number to display only the last four digits?

Article # 5291 Print Article Print Article

The information in this article applies to this particular SalesCart Product(s): 
STD, PRO, SQL


SYMPTOMS
This is an informational article describing how to modify the merchant and customer email to display only the last four digits of the customer's credit card number.

CAUSE
This is an informational article.

RESOLUTION
Open sendemail.asp located in the cgi-bin folder. Find the line:

CardNumber=RS("cardnumber")

and replace with:

CardNumber="***********" & Right(RS("cardnumber"),4)

With this change, the customer will receive their email with only the last four digits of their credit card number showing. Perform the same tasks for merc-conf.asp located in the cgi-bin folder if you want the merchant email to have the same feature.

SUMMARY
This is an informational article describing how to modify the merchant and customer email to display only the last four digits of the customer's credit card number.

STATUS
This is an informational article.

REFERENCE
No references


Additional Query Words: credit card, four digits, email

Active/inactive: Active
Author:
 WS
Date:
 06/13/05


* If you have an older version of SalesCart Standard, PRO, SQL and didn't find what you are looking for try the FAQ's archive. Click here!


ComCity® and SalesCart™ are trademarks of ComCity LLC. All other products mentioned are registered trademarks or trademarks of their respective companies.
Copyright © 1995-2014 ComCity LLC. All rights reserved.
  Last modified: Thursday May 29, 2014