Added <Authorization> element.
authormark <mark>
Sat, 6 Jun 2009 01:17:30 +0000 (01:17 +0000)
committermark <mark>
Sat, 6 Jun 2009 01:17:30 +0000 (01:17 +0000)
lib/Business/OnlinePayment/WesternACH.pm
t/check.t

index 52090d9..0173601 100644 (file)
@@ -19,6 +19,7 @@ my $defaults = {
   sec_code     => 'WEB',
   tender_type  => 'check',
   check_number => 9999,
+  schedule     => 'live',
 };
 
 # Structure of the XML request document
@@ -51,6 +52,7 @@ TransactionRequest => {
           type         => '_check_type',
           verification => 'check_ver',
         },
+        Authorization => { schedule => 'schedule' },
         SECCode => { value => 'sec_code' },
       },
     },
index 661c1a7..a81e788 100644 (file)
--- a/t/check.t
+++ b/t/check.t
@@ -15,7 +15,7 @@ $tx->content(
   password  =>  $password, 
   action    =>  'Normal Authorization',
   description => 'Business::OnlinePayment checking test',
-  amount    =>  '40.18',
+  amount    =>  '10.00',
   invoice_number => '10999',
   customer_id => 'nobody',
   first_name  => 'John',
@@ -25,8 +25,9 @@ $tx->content(
   state     => 'CA',
   zip       => '95824',
   account_number => '100012345678',
-  routing_code  => '111000025',
+  routing_code  => '307070005',
   account_type  => 'Checking',
+  check_number => '1277'
 );
 $tx->submit();