$csv->error is not a method.
[Business-OnlinePayment-Skipjack.git] / t / credit_card_mc.t
1 BEGIN { $| = 1; print "1..1\n"; }
2
3 eval "use Net::SSLeay;";
4 if ( $@ ) {
5   print "ok 1 # Skipped: Net::SSLeay is not installed\n"; exit;
6 }
7
8 use Business::OnlinePayment;
9
10 my $tx = new Business::OnlinePayment("Skipjack");
11
12 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
13 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
14 #$Business::OnlinePayment::Skipjack::DEBUG = 1;
15 #$Business::OnlinePayment::Skipjack::DEBUG = 1;
16
17 $tx->content(
18     type           => 'VISA',
19     login          => '000944785470', # "HTML serial number"
20     action         => 'Normal Authorization',
21     description    => 'Business::OnlinePayment::Skipjack test',
22     amount         => '32',
23     card_number    => '5121212121212124',
24     expiration     => '03/10',
25     name           => 'Tofu Beast',
26     address        => '123 Anystreet',
27     city           => 'Anywhere',
28     state          => 'UT',
29     zip            => '84058',
30     phone          => '415-420-5454',
31     email          => 'ivan-skipjack-test@420.am',
32 );
33 $tx->test_transaction(1); # test, dont really charge
34 $tx->submit();
35
36 if($tx->is_success()) {
37     print "ok 1\n";
38 } else {
39     #warn $tx->server_response."\n";
40     warn $tx->error_message. "\n";
41     print "not ok 1\n";
42 }
43