industryType => 'EC'
login => 'TESTUSER',
password => 'MYPASS',
+ with_recurringInd => 1,
);
my $result = $processor->submit(@items);
=item industryType - your 2-letter industry type code
+=item with_recurringInd - enable the recurring charge indicator field
+
=back
=cut
required => 1,
);
+has 'with_recurringInd' => (
+ is => 'ro',
+ isa => 'Bool',
+ default => 0,
+);
+
has 'fileDateTime' => (
is => 'ro',
isa => 'Str',
} else {
die "payment type ".$item->type." not supported";
}
- if ( $item->recurring_billing eq 'F' ) {
- push @order, ( recurringInd => 'RF' );
- } elsif ( $item->recurring_billing eq 'S' ) {
- push @order, ( recurringInd => 'RS' );
+ if ( $self->with_recurringInd ) {
+ if ( $item->recurring_billing eq 'F' ) {
+ push @order, ( recurringInd => 'RF' );
+ } elsif ( $item->recurring_billing eq 'S' ) {
+ push @order, ( recurringInd => 'RS' );
+ }
} # else don't send recurringInd at all
push @order, (