projects
/
Business-OnlinePayment-Bambora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ced39f8
)
In content, owner is optional if name is specified
author
Mitch Jackson
<mitch@freeside.biz>
Tue, 23 Apr 2019 02:42:48 +0000
(22:42 -0400)
committer
Mitch Jackson
<mitch@freeside.biz>
Tue, 23 Apr 2019 02:42:48 +0000
(22:42 -0400)
lib/Business/OnlinePayment/Bambora.pm
patch
|
blob
|
history
diff --git
a/lib/Business/OnlinePayment/Bambora.pm
b/lib/Business/OnlinePayment/Bambora.pm
index
d872f2c
..
21039f1
100755
(executable)
--- a/
lib/Business/OnlinePayment/Bambora.pm
+++ b/
lib/Business/OnlinePayment/Bambora.pm
@@
-544,6
+544,8
@@
sub jhref_card {
$self->set_expiration;
+ $content->{owner} ||= $content->{name};
+
# Check required input
for my $f (qw/
card_number
@@
-558,9
+560,14
@@
sub jhref_card {
"Cannot parse card payment - missing required content $f"
);
- warn $self->error_message if $DEBUG;
- $self->is_success( 0 );
+ if ( $DEBUG ) {
+ warn Dumper({
+ error_message => $self->error_message,
+ content => $content,
+ });
+ }
+ $self->is_success( 0 );
return {};
}