Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 05-06-2004 18:57:43

BryanT
Member
Registered: 04-12-2002
Posts: 16

Making Cc Validation Number Required

I have a request from a merchant to make the 3 or 4 digit credit card validation numbers a REQUIRED field.  They exist on the form right now, but are optional.  Having a rash of trouble with stolen credit cards and we are hoping this will help. 

Currently use OFFLINE credit card processing.

Thanks for the help!

Offline

 

#2 05-06-2004 21:32:31

scoutch
Banned
Registered: 07-03-2003
Posts: 3167

Re: Making Cc Validation Number Required

Would it be possible to post your URL please ?


______________________________________________

THIS USER HAS BEEN BANNED FROM THIS FORUM.

If this post contains any language related to
code samples, advice, etc., please read this
entire thread before making a decision to use
this post as a basis for any change to your
software installation.
______________________________________________

Offline

 

#3 05-06-2004 21:42:51

BryanT
Member
Registered: 04-12-2002
Posts: 16

Re: Making Cc Validation Number Required



Site does 2 million hits a year, but they won't pay for any graphic work.  Oh well.....

Thanks!

Offline

 

#4 05-06-2004 21:48:09

scoutch
Banned
Registered: 07-03-2003
Posts: 3167

Re: Making Cc Validation Number Required



Site does 2 million hits a year, but they won't pay for any graphic work. Oh well.....

This reminds me of my old site when I used to post news everyday with my partner. At least 25000 hits a day was done. smile

Anyway, back to business.

First, we're talking about a CCP 4.0 here which has been upgraded. Am I right ?

Now, I have visionned your credit card page from your site. What would you like to do exacly (with details) ?

You want to put ' all required fields ' in the credit card table fields inside the 3rd checkout process.

Is this correct ?


______________________________________________

THIS USER HAS BEEN BANNED FROM THIS FORUM.

If this post contains any language related to
code samples, advice, etc., please read this
entire thread before making a decision to use
this post as a basis for any change to your
software installation.
______________________________________________

Offline

 

#5 05-07-2004 00:34:46

BryanT
Member
Registered: 04-12-2002
Posts: 16

Re: Making Cc Validation Number Required

Correct, in the page that collects the credit card number, in the "Payment Information" section I would like all four fields to be required:

Card Type (required now)
Card Number (required now)
(not required currently)
Expiration Date (required now)

Yes, was a 4.0 upgraded to 5.0 CCP

Thanks again!

Offline

 

#6 05-07-2004 08:34:12

scoutch
Banned
Registered: 07-03-2003
Posts: 3167

Re: Making Cc Validation Number Required

In this case, go in : ste_gw_offline.txt file and

replace this :

Code:


<TD VALIGN="TOP"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" COLOR="(CGIVAR)html_small_font_color(/CGIVAR)"><B>Card Verification Number<BR><BR></FONT>

to read :

Code:


<TD VALIGN="TOP"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" COLOR="(CGIVAR)html_small_font_color(/CGIVAR)"><B>Card Verification Number</b><B>(CGIVAR)html_notnull_character(/CGIVAR)</B><BR><BR></FONT>

That should do it.


______________________________________________

THIS USER HAS BEEN BANNED FROM THIS FORUM.

If this post contains any language related to
code samples, advice, etc., please read this
entire thread before making a decision to use
this post as a basis for any change to your
software installation.
______________________________________________

Offline

 

#7 05-08-2004 12:41:39

BryanT
Member
Registered: 04-12-2002
Posts: 16

Re: Making Cc Validation Number Required

Well, the form now shows that it is a required field (red asterick) but if the field is left blank, the order still processes.  Any thoughts?

Code:


<TABLE WIDTH="(CGIVAR)html_content_table_size(/CGIVAR)" BORDER="0" COLS="2" CELLPADDING="10" CELLSPACING="3">

<TR BGCOLOR="(CGIVAR)html_pri_tablerow_color(/CGIVAR)">

<TD VALIGN="TOP"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" 

COLOR="(CGIVAR)html_small_font_color(/CGIVAR)"><B>Card Type <FONT 

COLOR="(CGIVAR)html_notnull_font_color(/CGIVAR)"><B>(CGIVAR)html_notnull_character(/CGIVAR)</B></FONT></B><BR><BR></FONT>

(CGIGET TYPE="SUB" VALUE="ste_order_cctype" PARAMS="ste_gw_offline|tracking_cardtype")</TD>

<TD VALIGN="TOP"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" 

COLOR="(CGIVAR)html_small_font_color(/CGIVAR)"><B>Card Number <FONT 

COLOR="(CGIVAR)html_notnull_font_color(/CGIVAR)"><B>(CGIVAR)html_notnull_character(/CGIVAR)</B></FONT></B><BR><BR></FONT>

<INPUT TYPE="TEXT" NAME="tracking_cardnum" SIZE="20"></TD>

</TR>

<TR BGCOLOR="(CGIVAR)html_alt_tablerow_color(/CGIVAR)">

<TD VALIGN="TOP"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" 

COLOR="(CGIVAR)html_small_font_color(/CGIVAR)"><B>Card Verification Number <FONT 

COLOR="(CGIVAR)html_notnull_font_color(/CGIVAR)"><B>(CGIVAR)html_notnull_character(/CGIVAR)</B></FONT></B><BR><BR></FONT>

<INPUT TYPE="TEXT" NAME="tracking_cvv" SIZE="20"></TD>

<TD VALIGN="TOP"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" 

COLOR="(CGIVAR)html_small_font_color(/CGIVAR)"><B>Expiration Date <FONT 

COLOR="(CGIVAR)html_notnull_font_color(/CGIVAR)"><B>(CGIVAR)html_notnull_character(/CGIVAR)</B></FONT></B><BR><BR></FONT>

(CGIGET TYPE="SUB" VALUE="ste_order_ccexpcomb" PARAMS="tracking_expire|/|MM|YYYY")</TD>

</TR>

</TABLE>

Thanks again for the help!

Offline

 

#8 05-08-2004 12:52:10

scoutch
Banned
Registered: 07-03-2003
Posts: 3167

Re: Making Cc Validation Number Required

Make a backup of your /data/tables/orderbilling.csv file.

Then, in the latest line,

add this :



Once done, upload the file in binary mode and set CHMOD to 777.

Then, make a backup of your tracking.csv file. On the very first row (where you see : tracking_id, tracking_name and the rest), go to the latest part and add the following :



Once done, upload the file in binary mode and set CHMOD to 777.

Then, try your credit card page again (by clearing all your cookies and temp files entries).


______________________________________________

THIS USER HAS BEEN BANNED FROM THIS FORUM.

If this post contains any language related to
code samples, advice, etc., please read this
entire thread before making a decision to use
this post as a basis for any change to your
software installation.
______________________________________________

Offline

 

#9 05-08-2004 13:39:39

BryanT
Member
Registered: 04-12-2002
Posts: 16

Re: Making Cc Validation Number Required

Adding the line indicated to the 'orderbilling.csv' file added the "Required Field For Credit Card" entry to the page that collects customers name, address, phone number etc.  It was required, but just in the wrong spot (not the Credit card area)

Looking through the store files, I stumbled across this information in cgi-bin\library\modules:

Code:

$tracking_cardtype = $q->param('tracking_cardtype');
$tracking_cardnum = $q->param('tracking_cardnum');
$tracking_cvv = $q->param('tracking_cvv');
$tracking_expire = $q->param('tracking_expire');

$tracking_issuedate = $q->param('tracking_issuedate');
$tracking_startdate = $q->param('tracking_startdate');
$tracking_issuenum = $q->param('tracking_issuenum');

#########
######### Check the data to make sure it's all there.
#########

if ($tracking_paymethod eq "" || $tracking_id eq "") {

$payment_accept = "N";

} elsif ($tracking_paymethod ne "ste_gw_offline" && $tracking_paymethod ne "ste_gw_solo") {

$payment_accept = "N";

} elsif (($tracking_paymethod eq "ste_gw_offline") && ($tracking_cardtype eq "" || $tracking_cardnum eq "" || $tracking_expire eq "")) {

$payment_accept = "N";

} elsif (($tracking_paymethod eq "ste_gw_solo") && ($tracking_cardtype eq "" || $tracking_cardnum eq "" || $tracking_startdate eq "")) {

$payment_accept = "N";

Would guess this is where I need to define that if is a null value (no entry) than


We will tackle the custom error message on a later date  wink

Offline

 

#10 05-08-2004 13:41:05

BryanT
Member
Registered: 04-12-2002
Posts: 16

Re: Making Cc Validation Number Required

Whoops, sorry.  The above code is in the file: ste_order.pl in cgi-bin\library\modules

Thanks!

Offline

 

#11 05-08-2004 13:53:14

scoutch
Banned
Registered: 07-03-2003
Posts: 3167

Re: Making Cc Validation Number Required

That is correct. However, since I do not have the exact commands, Nick should be able to give you an answer to apply this MOD.


______________________________________________

THIS USER HAS BEEN BANNED FROM THIS FORUM.

If this post contains any language related to
code samples, advice, etc., please read this
entire thread before making a decision to use
this post as a basis for any change to your
software installation.
______________________________________________

Offline

 

#12 05-08-2004 14:16:02

BryanT
Member
Registered: 04-12-2002
Posts: 16

Re: Making Cc Validation Number Required

I understand.  Thanks for all your input.

Nick????  Help???

Offline

 

#13 05-08-2004 15:20:42

Brains
Member
Registered: 08-22-2003
Posts: 200

Re: Making Cc Validation Number Required

Hi

You can add the check as you stated

If you change :

} elsif (($tracking_paymethod eq "ste_gw_offline") && ($tracking_cardtype eq "" || $tracking_cardnum eq "" || $tracking_expire eq "")) {

to:

} elsif (($tracking_paymethod eq "ste_gw_offline") && ($tracking_cardtype eq "" || $tracking_cardnum eq "" || $tracking_expire eq "" || $tracking_cvv eq "")) {

BRAINS


International Award Winning Professional Web Design
MySQL Database Design, PHP
UK Hosting on Dedicated Servers
As featured in the Financial Times, ISP World and others.

Offline

 

#14 05-08-2004 15:56:58

scoutch
Banned
Registered: 07-03-2003
Posts: 3167

Re: Making Cc Validation Number Required

Brains,

will the $tracking_expire set an obligation to fill up the credit card number field ?


______________________________________________

THIS USER HAS BEEN BANNED FROM THIS FORUM.

If this post contains any language related to
code samples, advice, etc., please read this
entire thread before making a decision to use
this post as a basis for any change to your
software installation.
______________________________________________

Offline

 

#15 05-08-2004 18:01:51

Brains
Member
Registered: 08-22-2003
Posts: 200

Re: Making Cc Validation Number Required

Scoutch

Each of the requirements is independent....i.e. if you dont fill in the CC number then you will get error message, if you dont fill in verification number then you will get the error message etc

BRAINS


International Award Winning Professional Web Design
MySQL Database Design, PHP
UK Hosting on Dedicated Servers
As featured in the Financial Times, ISP World and others.

Offline

 

#16 05-09-2004 12:49:23

BryanT
Member
Registered: 04-12-2002
Posts: 16

Re: Making Cc Validation Number Required

You all rock!  Can't thank you enough for your help.

Offline

 

#17 05-09-2004 13:28:54

scoutch
Banned
Registered: 07-03-2003
Posts: 3167

Re: Making Cc Validation Number Required



Each of the requirements is independent....i.e. if you dont fill in the CC number then you will get error message, if you dont fill in verification number then you will get the error message etc

You are correct Brains. I did not thought of the idea that || $tracking_cvv eq "") could be added in the end of that function.

Cool MOD I might add. smile


______________________________________________

THIS USER HAS BEEN BANNED FROM THIS FORUM.

If this post contains any language related to
code samples, advice, etc., please read this
entire thread before making a decision to use
this post as a basis for any change to your
software installation.
______________________________________________

Offline

 

Board footer