<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>SalesCart Forums : removing credt card info</title>
  <link>http://forum.salescart.com/forum/</link>
  <description><![CDATA[This is an XML content feed of; SalesCart Forums : SalesCart Standard / PRO / SQL : removing credt card info]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 09 May 2026 10:49:26 +0000</pubDate>
  <lastBuildDate>Thu, 15 Jul 2004 11:46:00 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.salescart.com/forum/RSS_post_feed.asp?TID=142</WebWizForums:feedURL>
  <image>
   <title><![CDATA[SalesCart Forums]]></title>
   <url>http://forum.salescart.com/forum/forum_images/web_wiz_forums.png</url>
   <link>http://forum.salescart.com/forum/</link>
  </image>
  <item>
   <title><![CDATA[removing credt card info : We also added the following code...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=142&amp;PID=529&amp;title=removing-credt-card-info#529</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=6">lleemon</a><br /><strong>Subject:</strong> 142<br /><strong>Posted:</strong> July/15/04 at 11:46am<br /><br />We also added the following code to the removeCC.asp file (our full file above) so the Security number isn't displayed in our database.  What is displayed is * for every character entered so you at least have an idea of how many they entered.<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'CheckRS is found in IASUtil.asp<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim editSC, iEditSCLen<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do While CheckRS(RS)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editCC = RS("CardNumber")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editSC = RS("CardSecurity")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RS.MoveNext<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loop<br /><br />'.....skipping code here...<br /><br />'start of Replace Security Code with asterick values<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iEditSCLen = Len(editSC)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If iEditSCLen &gt; 0 Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editSC = Replace(Space(iEditSCLen), " ", "*")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SQLStmt = "UPDATE DISTINCTROW &#091;payment&#093; "<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SQLStmt = SQLStmt & "SET CardSecurity='" & editSC & "' "<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SQLStmt = SQLStmt & "WHERE Orderid=" & order & "; "<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set SimpleAdo = New CSimpleAdo<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SimpleAdo.setConnectionString = Session("ConnectionString")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Success = SimpleAdo.ExecuteInsertUpdate(SQLStmt)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set SimpleAdo = Nothing<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'end of Replace Security Code with asterick values<br /></pre></td></tr></table><br /><br />We also put code in this file that will reduce all credit card values over 4 digits to only include the last 4 digits.  After a user has placed an order you can comment this out or remove.<br /><table width="99%"><tr><td><pre class="BBcode"><br />'start of reducing all credit card numbers greater then 4 characters<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set SimpleAdo = New CSimpleAdo<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SimpleAdo.setConnectionString = Session("ConnectionString")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Success = SimpleAdo.ExecuteInsertUpdate("UPDATE payment SET cardnumber = right(cardnumber, 4) WHERE len(cardnumber) &gt; 1;")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set SimpleAdo = Nothing<br />'end of reducing all credit card numbers greater then 4 characters<br /></pre></td></tr></table>]]>
   </description>
   <pubDate>Thu, 15 Jul 2004 11:46:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=142&amp;PID=529&amp;title=removing-credt-card-info#529</guid>
  </item> 
  <item>
   <title><![CDATA[removing credt card info : Looking at the fix for removing...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=142&amp;PID=520&amp;title=removing-credt-card-info#520</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=6">lleemon</a><br /><strong>Subject:</strong> 142<br /><strong>Posted:</strong> July/13/04 at 8:31am<br /><br />Looking at the fix for removing credit card information based on Article #:  5197.<br /><br />We are keeping the last 4 digits and wondering if the following code below will work properly.<br /><table width="99%"><tr><td><pre class="BBcode"><br />&lt;%<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Article #:  5197<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;order = Session("orderid")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SQLStmt = "SELECT CardNumber FROM Payment "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SQLStmt = SQLStmt & "WHERE Orderid=" & order & "; "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set SimpleAdo = New CSimpleAdo<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SimpleAdo.setConnectionString = Session("ConnectionString")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set RS = SimpleAdo.getRecordSet(SQLStmt)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do While CheckRS(RS)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;  'editCC  = Left(RS("CardNumber"),4)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;  editCC = RS("CardNumber")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RS.MoveNext<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loop<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set SimpleAdo = Nothing<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set RS = Nothing<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'editCC = editCC & "************"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim iEditCCLen<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iEditCCLen = Len(editCC)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;editCC = Replace(Space(iEditCCLen-4), " ", "*") & Right(editCC, 4)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SQLStmt = "UPDATE DISTINCTROW &#091;payment&#093; "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SQLStmt = SQLStmt & "SET CardNumber='" & editCC & "' "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SQLStmt = SQLStmt & "WHERE Orderid=" & order & "; "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set SimpleAdo = New CSimpleAdo<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SimpleAdo.setConnectionString = Session("ConnectionString")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Success = SimpleAdo.ExecuteInsertUpdate(SQLStmt)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set SimpleAdo = Nothing<br />%&gt;<br /><br /></pre></td></tr></table><br /><br />The other question I have for all is in the document it says to, 'Open receipt2.asp and place the following line after &lt;!--#include file="merc-conf.asp"--&gt;' but we didn't have this in our receipt2.asp file.  We purchased ours in October 2003 so maybe it was removed.  Not sure.<br />Our includes in original receipt2.asp are:<br /><table width="99%"><tr><td><pre class="BBcode"><br />&lt;!--#include file="codepage.asp"--&gt;<br />&lt;!--#include file="ADOVBS.inc"--&gt;<br />&lt;!--#include file="IASUtil.asp"--&gt;<br /></pre></td></tr></table><br /><br />I guess the other issue with all of this in the receipt2.asp page.  We are assuming all our transactions are approved?  What do we do if they are declined?  Currently all declined transactions will not have the modified card info.  Can we add this to the authfail.asp file as well?  <span style="font-size:10px"><br /><br />Edited by lleemon</span>]]>
   </description>
   <pubDate>Tue, 13 Jul 2004 08:31:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=142&amp;PID=520&amp;title=removing-credt-card-info#520</guid>
  </item> 
 </channel>
</rss>