[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] mv_credit_card_info, [encrypt] tag, etc. Round 2
-----Original Message-----
Sent: Saturday, May 26, 2001 12:43 AM
Subject: [ic] mv_credit_card_info, [encrypt] tag, etc.
Dear List,
IC 4.6.5, RH 6.2, mySQL db.
I'm trying to save encrypted CC# info to the userdb upon clicking a "Save"
or "Refresh" button on the checkout.html page, instead of requiring the
"Place Order" button to be clicked. The reason is that if a person enters a
valid CC# and clicks on Save/Refresh, it loses the info, and they need to
re-enter it.
I've setup a test page to try to figure this out. I'm using the [encrypt]
tag posted to the list a while back. It works when given raw data.
I've setup a test form like below. This is basically a mirror of the
necessary parts of the checkout.html form. This is my code to test for
values:
[value mv_credit_card_type]<br>
[value mv_credit_card_number]<br>
[value mv_credit_card_exp_month]/[value mv_credit_card_exp_year]
This is my theoretical code to create the encrypted mv_credit_card_info
variable upon successful CC# entering:
[if mv_credit_card_valid]
<pre>
[encrypt][value mv_credit_card_type] [value mv_credit_card_number] [value
mv_credit_card_exp_month]/[value mv_credit_card_exp_year][/encrypt]
</pre>
[/if]
Its not working! The mv_credit_card_valid and mv_credit_card_number
variables seem to be non-existant. Where do they go? How can I possibly
encrypt the CC# without putting through an order? I see in the Order.pm
file is the only place CC# encryption can happen. How does this code get
executed? How can I run through this code without clicking on the final
"Place Order" button?
Thanks in advance for your help,
Russ Mann
TEST FORM SETUP:
<form action="[process-target]" method="post" name="checkout">
<input type="hidden" name="mv_session_id" value="[data session id]">
<input type="hidden" name="mv_doit" value="refresh">
<input type="hidden" name="mv_nextpage" value="test">
<input type="text" name="mv_credit_card_number" size="30" maxlength="30">
<select name="mv_credit_card_exp_month">
[loop
lr=1
option=mv_credit_card_exp_month
list="
1 01 - January
2 02 - February
3 03 - March
4 04 - April
5 05 - May
6 06 - June
7 07 - July
8 08 - August
9 09 - September
10 10 - October
11 11 - November
12 12 - December"]
<option value="[loop-code]"> [loop-pos 1]
[/loop]
</select>
<select name="mv_credit_card_exp_year">
[loop option=mv_credit_card_exp_year lr=1 list=`
my $year = $Tag->time( '', { format => '%Y' }, '%Y' );
my $out = '';
for ($year .. $year + 7) {
/\d\d(\d\d)/;
$last_two = $1;
$out .= "$last_two\t$_\n";
}
return $out;
`]
<option value="[loop-code]"> [loop-pos 1]
[/loop]
</select>
<input type="submit" value="Save Information" name="mv_check">
</form>
_______________________________________________