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 # checks are broken it seems
13 my $ctx = new Business::OnlinePayment("OpenECHO",
14 payee => 'Tofu Heavy Enterprises, GmbH',
18 'login' => '123>4685706',
19 'password' => '09437869',
20 action => 'Normal Authorization',
22 invoice_number => '100100',
26 account_number => '12345',
27 routing_code => '026009593',
28 bank_name => 'First National Test Bank',
29 phone => '420-420-5454',
30 #payee => 'Tofu Heavy Enterprises, GmbH',
31 check_number => '420',
33 $ctx->test_transaction(1); # test, dont really charge
36 print $ctx->is_success()."\n";
38 if($ctx->is_success()) {
39 #warn $ctx->error_message();
40 print "not ok 1 (".$ctx->error_message().")\n";