X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=LinkPoint.pm;h=17cab8e78deebb722b05fd3b2b32ff117d6e788b;hb=905c3c508e85c7baf978bf5099142322d660e585;hp=88a8ac2428de9573d6528338564ac533f2d30e0f;hpb=9f2d3d1b12812e494ef502ccb4bd9f25b8d76b40;p=Business-OnlinePayment-LinkPoint.git diff --git a/LinkPoint.pm b/LinkPoint.pm index 88a8ac2..17cab8e 100644 --- a/LinkPoint.pm +++ b/LinkPoint.pm @@ -1,6 +1,6 @@ package Business::OnlinePayment::LinkPoint; -# $Id: LinkPoint.pm,v 1.2 2002-02-26 08:24:00 ivan Exp $ +# $Id: LinkPoint.pm,v 1.5 2002-02-27 23:28:28 ivan Exp $ use strict; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); @@ -43,6 +43,15 @@ sub map_fields { $self->content(%content); } +sub build_subs { + my $self = shift; + foreach(@_) { + #no warnings; #not 5.005 + local($^W)=0; + eval "sub $_ { my \$self = shift; if(\@_) { \$self->{$_} = shift; } return \$self->{$_}; }"; + } +} + sub remap_fields { my($self,%map) = @_; @@ -141,7 +150,11 @@ sub submit { #print "$_ => $post_data{$_}\n" foreach keys %post_data; - my %response = $lperl->$action(\%post_data); + my %response; + { + local($^W)=0; + %response = $lperl->$action(\%post_data); + } if ( $response{'statusCode'} == 0 ) { $self->is_success(0);