2 $| = 1; print "1..1\n";
3 $Business::OnlinePayment::HTTPS::skip_NetSSLeay=1;
4 $Business::OnlinePayment::HTTPS::skip_NetSSLeay=1;
7 eval "use Crypt::SSLeay;";
9 print "ok 1 # Skipped: Crypt::SSLeay is not installed\n"; exit;
12 use Business::OnlinePayment;
14 require "t/lib/test_account.pl";
15 my($login, $regkey) = test_account_or_skip();
17 my $tx = new Business::OnlinePayment("TransactionCentral");
19 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
20 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
21 #$Business::OnlinePayment::TransactionCentral::DEBUG = 1;
22 #$Business::OnlinePayment::TransactionCentral::DEBUG = 1;
28 action => 'Normal Authorization',
29 description => 'Business::OnlinePayment::TransactionCentral test',
31 card_number => '4012000000001',
32 expiration => '08/06',
35 address => '123 Anystreet',
40 email => 'ivan-transactioncentral-test@420.am',
42 $tx->test_transaction(1); # test, dont really charge
45 if($tx->is_success()) {
48 #warn $tx->server_response."\n";
49 warn $tx->error_message. "\n";