projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add -t flag to bulk void for payment type, RT#73413
[freeside.git]
/
FS
/
FS
/
payinfo_transaction_Mixin.pm
diff --git
a/FS/FS/payinfo_transaction_Mixin.pm
b/FS/FS/payinfo_transaction_Mixin.pm
index
093891e
..
6e4b511
100644
(file)
--- a/
FS/FS/payinfo_transaction_Mixin.pm
+++ b/
FS/FS/payinfo_transaction_Mixin.pm
@@
-73,10
+73,7
@@
sub _parse_paybatch {
my $payment_gateway =
qsearchs('payment_gateway', { 'gatewaynum' => $gatewaynum } );
my $payment_gateway =
qsearchs('payment_gateway', { 'gatewaynum' => $gatewaynum } );
- die "payment gateway $gatewaynum not found" #?
- unless $payment_gateway;
-
- $processor = $payment_gateway->gateway_module;
+ $processor = $payment_gateway->gateway_module if $payment_gateway;
}
}
@@
-105,7
+102,11
@@
auth, and order_number) as well as payby and payinfo
sub payinfo_check {
my $self = shift;
sub payinfo_check {
my $self = shift;
- # All of these can be null, so in principle this could go in payinfo_Mixin.
+ my $conf = new FS::Conf;
+
+ # allow masked payinfo if we never save card numbers
+ local $FS::payinfo_Mixin::ignore_masked_payinfo =
+ $conf->exists('no_saved_cardnumbers') ? 1 : $FS::payinfo_Mixin::ignore_masked_payinfo;
$self->SUPER::payinfo_check()
|| $self->ut_numbern('gatewaynum')
$self->SUPER::payinfo_check()
|| $self->ut_numbern('gatewaynum')