1 BEGIN { $| = 1; print "1..1\n"; }
3 #print "ok 1 # Skipped: testing account won't accept ACH transactions\n"; exit;
5 #eval "use Net::SSLeay;";
7 # print "ok 1 # Skipped: Net::SSLeay is not installed\n"; exit;
10 use Business::OnlinePayment;
12 require "t/lib/test_account.pl";
13 my($login, $regkey) = test_account_or_skip();
15 my $ctx = new Business::OnlinePayment("TransactionCentral");
21 action => 'Normal Authorization',
23 invoice_number => '100100',
26 account_number => '12345',
27 #routing_code => '026009593',
28 routing_code => 'bad_routing_code',
29 bank_name => 'First National Test Bank',
30 phone => '420-420-5454',
31 #payee => 'Tofu Heavy Enterprises, GmbH',
32 check_number => '420',
34 $ctx->test_transaction(1); # test, dont really charge
37 #print $ctx->is_success()."\n";
39 if($ctx->is_success()) {
40 #warn $ctx->error_message();
41 print "not ok 1 (".$ctx->error_message().")\n";