1 BEGIN { $| = 1; print "1..1\n"; }
3 eval "use Net::SSLeay;";
5 print "ok 1 # Skipped: Net::SSLeay is not installed\n"; exit;
8 use Business::OnlinePayment;
10 # checks are broken it seems
11 my $ctx = new Business::OnlinePayment("OpenECHO",
12 payee => 'Tofu Heavy Enterprises, GmbH',
16 'login' => '123>4685706',
17 'password' => '09437869',
18 action => 'Normal Authorization',
20 invoice_number => '100100',
24 account_number => '12345',
25 routing_code => '026009593',
26 bank_name => 'First National Test Bank',
27 phone => '420-420-5454',
28 #payee => 'Tofu Heavy Enterprises, GmbH',
29 check_number => '420',
31 $ctx->test_transaction(1); # test, dont really charge
34 print $ctx->is_success()."\n";
36 if($ctx->is_success()) {
37 #warn $ctx->error_message();
38 print "not ok 1 (".$ctx->error_message().")\n";