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 {