diff options
author | ivan <ivan> | 2002-12-17 19:14:09 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-12-17 19:14:09 +0000 |
commit | 7d8253e2ac3dda28c8013aca209570d3e4496567 (patch) | |
tree | 391fe0115c2a213a6794a7b7fb2c3284f5bec659 /t/bad_check.t | |
parent | 449221e481daad31410736547ee5741a00f0f4b8 (diff) |
finally working
Diffstat (limited to 't/bad_check.t')
-rw-r--r-- | t/bad_check.t | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/t/bad_check.t b/t/bad_check.t new file mode 100644 index 0000000..5aa127b --- /dev/null +++ b/t/bad_check.t @@ -0,0 +1,32 @@ +BEGIN { $| = 1; print "1..1\n"; } + +use Business::OnlinePayment; + +my $ctx = new Business::OnlinePayment("PaymentsGateway"); +$ctx->content( + type => 'CHECK', + login => '2000', + password => 'merchant4demo', + action => 'Normal Authorization', + amount => '49.95', + invoice_number => '100100', + customer_id => 'jsk', + first_name => 'Tofu', + last_name => 'Beast', + account_number => '12345', + #account_number => 'badaccountnumber', + routing_code => '123456789', + #routing_code => 'badroutingcode', + bank_name => 'First National Test Bank', +); +$ctx->test_transaction(1); # test, dont really charge +$ctx->submit(); + +print $ctx->is_success()."\n"; + +if($ctx->is_success()) { + print "not ok 1\n"; +} else { + #warn $ctx->error_message(); + print "ok 1\n"; +} |