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

Article # 5291

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