summaryrefslogtreecommitdiff
path: root/FS/FS/payinfo_Mixin.pm
diff options
context:
space:
mode:
authorivan <ivan>2008-05-05 01:52:58 +0000
committerivan <ivan>2008-05-05 01:52:58 +0000
commitc2e0c1d06e2a9b9146f9b538ce07f57664e16966 (patch)
treef67fc10869974c9b97cf72e6ce2076a08626fc18 /FS/FS/payinfo_Mixin.pm
parent5756baa126e1a349ee1296aba887fc4f3c68e22b (diff)
better fix for using new payment duplicate stuff with cc encryption :)
Diffstat (limited to 'FS/FS/payinfo_Mixin.pm')
-rw-r--r--FS/FS/payinfo_Mixin.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/FS/FS/payinfo_Mixin.pm b/FS/FS/payinfo_Mixin.pm
index 40b97a9..f2edbd2 100644
--- a/FS/FS/payinfo_Mixin.pm
+++ b/FS/FS/payinfo_Mixin.pm
@@ -230,8 +230,14 @@ sub payinfo_check {
$self->payinfo('N/A'); #???
}
} else {
- my $error = $self->ut_textn('payinfo');
- return $error if $error;
+ if ( $self->is_encrypted($self->payinfo) ) {
+ #something better? all it would cause is a decryption error anyway?
+ my $error = $self->ut_anythingn('payinfo');
+ return $error if $error;
+ } else {
+ my $error = $self->ut_textn('payinfo');
+ return $error if $error;
+ }
}
}