summaryrefslogtreecommitdiff
path: root/PayflowPro.pm
diff options
context:
space:
mode:
authorplobbes <plobbes>2009-09-22 21:15:44 +0000
committerplobbes <plobbes>2009-09-22 21:15:44 +0000
commita1e29f0c0180cfe72774d8454580113a5ead75c7 (patch)
tree3f581f493dd3fc024ddae8d2c281bf60fc20da37 /PayflowPro.pm
parent0cd63fdf0f05f7cf304d07707ddd2dae1cce268a (diff)
- version 1.01: rt.cpan.org#49349: Fix Reference TransactionsHEADmaster
Diffstat (limited to 'PayflowPro.pm')
-rw-r--r--PayflowPro.pm12
1 files changed, 5 insertions, 7 deletions
diff --git a/PayflowPro.pm b/PayflowPro.pm
index 6f49649..d95affc 100644
--- a/PayflowPro.pm
+++ b/PayflowPro.pm
@@ -8,7 +8,7 @@ use Business::OnlinePayment::HTTPS 0.06;
use base qw(Business::OnlinePayment::HTTPS);
-$VERSION = '1.00';
+$VERSION = '1.01';
$VERSION = eval $VERSION;
$DEBUG = 0;
@@ -222,19 +222,17 @@ sub submit {
%content = $self->content;
my @required = qw( TRXTYPE TENDER PARTNER VENDOR USER PWD );
+
+ # NOTE: we croak above if transaction_type ne 'C'
if ( $self->transaction_type() eq 'C' ) { # credit card
- if ( $content{'action'} =~ /^[CDV]$/
- && defined( $content{'ORIGID'} )
- && length( $content{'ORIGID'} ) )
- {
+ if ( defined( $content{'ORIGID'} ) && length( $content{'ORIGID'} ) ) {
push @required, qw(ORIGID);
}
else {
-
- # never get here, we croak above if transaction_type ne 'C'
push @required, qw(AMT ACCT EXPDATE);
}
}
+
$self->required_fields(@required);
my %params = $self->get_fields(