diff options
author | ivan <ivan> | 2007-07-11 20:56:49 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-07-11 20:56:49 +0000 |
commit | c8481e1aaa97e8301807c94cbae36c0eef284c2b (patch) | |
tree | 5e13d1ec51984ad5f0febeb2749e3d4a79c00b3e | |
parent | e4f4e9e92f7620ee23f2c7347104c56dd93ff704 (diff) |
fix non-numeric trimming
-rw-r--r-- | LinkPoint.pm | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/LinkPoint.pm b/LinkPoint.pm index 6bf9a83..5411169 100644 --- a/LinkPoint.pm +++ b/LinkPoint.pm @@ -6,7 +6,7 @@ use Carp qw(croak); use Business::OnlinePayment; @ISA = qw(Business::OnlinePayment); -$VERSION = '0.09_01'; +$VERSION = '0.09_02'; $VERSION = eval $VERSION; # modperlstyle: convert the string into a number $DEBUG = 0; @@ -135,11 +135,6 @@ sub submit { $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 ) { @@ -147,6 +142,8 @@ sub submit { $content{$field} =~ s/\D//g; } } + # stuff it back into %content + $self->content(%content); $self->revmap_fields( host => \( $self->server ), @@ -203,6 +200,11 @@ sub submit { $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'}; |