projects
/
Business-OnlinePayment-LinkPoint.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e4f4e9e
)
fix non-numeric trimming
author
ivan
<ivan>
Wed, 11 Jul 2007 20:56:49 +0000
(20:56 +0000)
committer
ivan
<ivan>
Wed, 11 Jul 2007 20:56:49 +0000
(20:56 +0000)
LinkPoint.pm
patch
|
blob
|
history
diff --git
a/LinkPoint.pm
b/LinkPoint.pm
index
6bf9a83
..
5411169
100644
(file)
--- a/
LinkPoint.pm
+++ b/
LinkPoint.pm
@@
-6,7
+6,7
@@
use Carp qw(croak);
use Business::OnlinePayment;
@ISA = qw(Business::OnlinePayment);
use Business::OnlinePayment;
@ISA = qw(Business::OnlinePayment);
-$VERSION = '0.09_0
1
';
+$VERSION = '0.09_0
2
';
$VERSION = eval $VERSION; # modperlstyle: convert the string into a number
$DEBUG = 0;
$VERSION = eval $VERSION; # modperlstyle: convert the string into a number
$DEBUG = 0;
@@
-135,11
+135,6
@@
sub submit {
$result ||= 'LIVE';
}
$result ||= 'LIVE';
}
- #docs disagree with lpperl.pm here
- $content{'voidcheck'} = 1
- if ($self->transaction_type() =~ /^e?check$/i
- && $content{'action'} =~ /^VOID$/);
-
#strip phone numbers of non-digits for ACH/echeck
#as per undocumented suggestion from LinkPoint
if ( $self->transaction_type =~ /^e?check$/i ) {
#strip phone numbers of non-digits for ACH/echeck
#as per undocumented suggestion from LinkPoint
if ( $self->transaction_type =~ /^e?check$/i ) {
@@
-147,6
+142,8
@@
sub submit {
$content{$field} =~ s/\D//g;
}
}
$content{$field} =~ s/\D//g;
}
}
+ # stuff it back into %content
+ $self->content(%content);
$self->revmap_fields(
host => \( $self->server ),
$self->revmap_fields(
host => \( $self->server ),
@@
-203,6
+200,11
@@
sub submit {
$post_data{'ordertype'} = $content{action};
$post_data{'ordertype'} = $content{action};
+ #docs disagree with lpperl.pm here
+ $post_data{'voidcheck'} = 1
+ if $self->transaction_type() =~ /^e?check$/i
+ && $post_data{'ordertype'} =~ /^VOID$/;
+
if ( $content{'cvv2'} ) {
$post_data{cvmindicator} = 'provided';
$post_data{cvmvalue} = $content{'cvv2'};
if ( $content{'cvv2'} ) {
$post_data{cvmindicator} = 'provided';
$post_data{cvmvalue} = $content{'cvv2'};