initial import
[Business-OnlinePayment-Network1Financial.git] / t / bad_auth.t
1 BEGIN { $| = 1; print "1..1\n"; }
2
3 use Business::OnlinePayment;
4
5 my $tx = new Business::OnlinePayment("Network1Financial");
6 $tx->content(
7     type           => 'VISA',
8     login          => '999999999999',
9     password       => 'AAAAAAAAAAAA',
10     action         => 'Normal Authorization',
11     description    => 'Business::OnlinePayment visa test',
12     amount         => '49.95',
13     invoice_number => '100100',
14     customer_id    => 'jsk',
15     first_name     => 'Tofu',
16     last_name      => 'Beast',
17     address        => '123 Anystreet',
18     city           => 'Anywhere',
19     state          => 'UT',
20     zip            => '84058',
21     card_number    => 'testfailure',
22     expiration     => '08/06',
23 );
24 $tx->test_transaction(1); # test, dont really charge
25 $tx->submit();
26
27 if($tx->is_success()) {
28     print "not ok 1\n";
29     #warn $tx->error_message;
30 } else {
31     print "ok 1\n";
32 }