1 BEGIN { $| = 1; print "1..1\n"; }
3 use Business::OnlinePayment;
5 require "t/lib/test_account.pl";
6 my($login, $regkey) = test_account_or_skip();
8 my $ctx = Business::OnlinePayment->new("TransactionCentral");
10 #$Business::OnlinePayment::TransactionCentral::DEBUG = 1;
11 #$Business::OnlinePayment::TransactionCentral::DEBUG = 1;
17 action => 'Normal Authorization',
19 invoice_number => '100100',
22 account_number => '12345',
23 routing_code => '111000025', # BoA in Texas taken from Wikipedia
24 bank_name => 'First National Test Bank',
25 account_type => 'Checking',
26 license_num => '12345678',
27 license_state => 'OR',
28 license_dob => '1975-05-21',
30 $ctx->test_transaction(1); # test, dont really charge
33 if($ctx->is_success()) {
36 warn "error message : ". $ctx->error_message(). "\n";
37 warn "response code : ". $ctx->response_code(). "\n";
38 warn "response page : ". $ctx->response_page(). "\n";
40 print "not ok 1 (".$ctx->error_message().")\n";