1 BEGIN { $| = 1; print "1..1\n"; }
3 use Business::OnlinePayment;
5 my $ctx = new Business::OnlinePayment("PaymentsGateway");
9 password => 'merchant4demo',
10 action => 'Normal Authorization',
12 invoice_number => '100100',
16 account_number => '12345',
17 routing_code => '321076441',
18 bank_name => 'First National Test Bank',
20 $ctx->test_transaction(1); # test, dont really charge
23 print $ctx->is_success()."\n";
25 if($ctx->is_success()) {
28 warn $ctx->result_code. ': '. $ctx->error_message();
29 print "not ok 1 (".$ctx->error_message().")\n";