- Don't require "check_type" field
[Business-OnlinePayment-AuthorizeNet.git] / AuthorizeNet.pm
index b69d3f0..9ed5082 100644 (file)
@@ -107,7 +107,7 @@ sub submit {
         expiration     => 'x_Exp_Date',
         cvv2           => 'x_Card_Code',
         check_type     => 'x_Echeck_Type',
-       account_name   => 'x_Bank_Account_Name',
+       account_name   => 'x_Bank_Acct_Name',
         account_number => 'x_Bank_Acct_Num',
         account_type   => 'x_Bank_Acct_Type',
         bank_name      => 'x_Bank_Name',
@@ -123,12 +123,12 @@ sub submit {
         if ($self->{_content}->{customer_org} ne '') {
             $self->required_fields(qw/type login password amount routing_code
                                   account_number account_type bank_name
-                                  account_name account_type check_type
+                                  account_name account_type
                                   customer_org customer_ssn/);
         } else {
             $self->required_fields(qw/type login password amount routing_code
                                   account_number account_type bank_name
-                                  account_name account_type check_type
+                                  account_name account_type
                                   license_num license_state license_dob/);
         }
     } elsif ($self->transaction_type() eq 'CC' ) {