add these tests
[Business-OnlinePayment-TransactionCentral.git] / t / credit_card_onedigitmonth.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("TransactionCentral");
11
12 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
13 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
14 #$Business::OnlinePayment::TransactionCentral::DEBUG = 1;
15 #$Business::OnlinePayment::TransactionCentral::DEBUG = 1;
16
17 $tx->content(
18     type           => 'VISA',
19     login          => '10011',
20     password       => 'KK48NPYEJHMAH6DK', #regkey
21     action         => 'Normal Authorization',
22     description    => 'Business::OnlinePayment::TransactionCentral test',
23     amount         => '32',
24     card_number    => '4012000000001',
25     expiration     => '1/12',
26     cvv2           => '420',
27     name           => 'Tofu Beast',
28     address        => '123 Anystreet',
29     city           => 'Anywhere',
30     state          => 'UT',
31     zip            => '84058',
32     country        => 'US',
33     email          => 'ivan-transactioncentral-test@420.am',
34 );
35 $tx->test_transaction(1); # test, dont really charge
36 $tx->submit();
37
38 if($tx->is_success()) {
39     print "ok 1\n";
40 } else {
41     #warn $tx->server_response."\n";
42     warn $tx->error_message. "\n";
43     print "not ok 1\n";
44 }
45