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.
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
Would it be possible to post your URL please ?
Offline
Site does 2 million hits a year, but they won't pay for any graphic work. Oh well.....
Thanks!
Offline
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.
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 ?
Offline
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
In this case, go in : ste_gw_offline.txt file and
replace this :
<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 :
<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.
Offline
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?
<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
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).
Offline
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:
$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
Offline
Whoops, sorry. The above code is in the file: ste_order.pl in cgi-bin\library\modules
Thanks!
Offline
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.
Offline
I understand. Thanks for all your input.
Nick???? Help???
Offline
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
Offline
Brains,
will the $tracking_expire set an obligation to fill up the credit card number field ?
Offline
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
Offline
You all rock! Can't thank you enough for your help.
Offline
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.
Offline