From d49cf874685e4460fa4d9edd17f0186c08bf2d90 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 7 Oct 2004 23:38:17 +0000 Subject: [PATCH] action is available in the content, not as a method --- PayflowPro.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PayflowPro.pm b/PayflowPro.pm index 906bce7..86a43a0 100644 --- a/PayflowPro.pm +++ b/PayflowPro.pm @@ -166,7 +166,7 @@ sub submit { my @required = qw( TRXTYPE TENDER PARTNER VENDOR USER PWD ); if ( $self->transaction_type() eq 'C' ) { #credit card - if ( $self->action() =~ /^[CDV]$/ && exists($content{'ORIGID'}) + if ( $content{'action'} =~ /^[CDV]$/ && exists($content{'ORIGID'}) && defined($content{'ORIGID'}) && length($content{'ORIGID'}) ) { push @required, qw(ORIGID); } else { -- 2.11.0