convert credit card numbers to *** (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


mfalk -> convert credit card numbers to *** (5/15/2003 16:02:56)

Does anyone know how to make it so on certain pages, i can make credit card numbers appear as ***********1234? just the last four digits show, but the rest are *?

id want the person processing the cards to see the number, but noone else.

thanks in advance.

Mark




Spooky -> RE: convert credit card numbers to *** (5/16/2003 7:30:13)

Use something like :
<%=" **********-" &Right(INPUT,4)%>




mjmtravel -> RE: convert credit card numbers to *** (2/6/2008 20:25:35)

What about doing the same thing when your updating a database and showing results on another page?

<input NAME="CCNumber" SIZE="40" VALUE="<%=FP_FieldHTML(fp_rs,"CCNumber")%>" tabindex="23"></td>

Can you replace this <%=FP_FieldHTML(fp_rs,"CCNumber")%>"
with this somehow.
<%=" **********-" &Right(INPUT,4)%>




BobbyDouglas -> RE: convert credit card numbers to *** (2/6/2008 21:45:19)

Mark,

Not sure if you already do this or not, but figured I would mention it anyways. [8|]

You should think about using some sort of encryption within your database if you plan to store credit cards.

Credit card companies have specific requirements you need to follow if you want to be compliant (meaning, if you don't want to be fined). Also, keep in mind that the number on the back of the CC cannot be stored in the database.




Spooky -> RE: convert credit card numbers to *** (2/7/2008 13:59:59)

Id agree, personally Id rather not store them at all




mjmtravel -> RE: convert credit card numbers to *** (2/7/2008 17:21:46)

I realize that and none of the numbers will be stored in the database for more than 2 hours. The site will have ssl certificate and a database that is password protected and encrypted.

Now for the question at hand. Can this be done?




Spooky -> RE: convert credit card numbers to *** (2/10/2008 16:54:52)

Like so :)

<%="**********-"& Right(FP_Field(fp_rs,"CCNumber"),4)%>"





mjmtravel -> RE: convert credit card numbers to *** (2/10/2008 18:16:07)

Thank you, that works beautifully.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.09375