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