0.03
[Business-OnlinePayment-OpenECHO.git] / t / check.t
index c68c442..3db3a2c 100644 (file)
--- a/t/check.t
+++ b/t/check.t
@@ -1,5 +1,7 @@
 BEGIN { $| = 1; print "1..1\n"; }
 
+print "ok 1 # Skipped: testing account won't accept ACH transactions\n"; exit;
+
 eval "use Net::SSLeay;";
 if ( $@ ) {
   print "ok 1 # Skipped: Net::SSLeay is not installed\n"; exit;
@@ -7,10 +9,18 @@ if ( $@ ) {
 
 use Business::OnlinePayment;
 
-# checks are broken it seems
-my $ctx = new Business::OnlinePayment("OpenECHO");
+my $ctx = new Business::OnlinePayment( "OpenECHO", 
+  'payee' => 'Tofu Heavy Enterprises, GmbH',
+);
+
+#$Business::OnlinePayment::HTTPS::DEBUG = 1;
+#$Business::OnlinePayment::HTTPS::DEBUG = 1;
+#$Business::OnlinePayment::OpenECHO::DEBUG = 1;
+#$Business::OnlinePayment::OpenECHO::DEBUG = 1;
+
+# checks are broken it seems?
 $ctx->content(
-    type           => 'CHECK',
+    type           => 'ECHECK',
     'login'        => '123>4685706',
     'password'     => '09437869',
     action         => 'Normal Authorization',
@@ -23,7 +33,7 @@ $ctx->content(
     routing_code   => '026009593',
     bank_name      => 'First National Test Bank',
     phone          => '420-420-5454',
-    payee          => 'Tofu Heavy Enterprises, GmbH',
+    #payee          => 'Tofu Heavy Enterprises, GmbH',
     check_number   => '420',
 );
 $ctx->test_transaction(1); # test, dont really charge