initial import
[Business-OnlinePayment-BankOfAmerica.git] / t2 / bad_auth.t
1 BEGIN { $| = 1; print "1..1\n"; }
2
3 use Business::OnlinePayment;
4
5 my $tx = new Business::OnlinePayment("BankOfAmerica", 'merchant_id' => 'YOURMERCHANTID' );
6 $tx->content(
7     type           => 'VISA',
8     action         => 'Authorization Only',
9     description    => 'Business::OnlinePayment::BankOfAmerica visa test',
10     amount         => '49.95',
11     invoice_number => '100',
12     customer_id    => 'jsk',
13     first_name     => 'Tofu',
14     last_name      => 'Beast',
15     address        => '123 Anystreet',
16     city           => 'Anywhere',
17     state          => 'UT',
18     zip            => '84058',
19     country        => 'US',
20     email          => 'ivan-bofa@420.am',
21 #    card_number    => '4007000000027',
22     expiration     => '08/2004',
23     referer        => 'http://cleanwhisker.420.am/',
24 );
25 $tx->submit();
26
27 if($tx->is_success()) {
28     print "not ok 1\n";
29 } else {
30 #    warn '***** '. $tx->error_message. " *****\n";
31     print "ok 1\n";
32 }