1 BEGIN { $| = 1; print "1..1\n"; }
3 eval "use Net::SSLeay;";
5 print "ok 1 # Skipped: Net::SSLeay is not installed\n"; exit;
8 use Business::OnlinePayment;
10 require "t/lib/test_account.pl";
11 my($login, $regkey) = test_account_or_skip();
13 my $tx = new Business::OnlinePayment("TransactionCentral");
15 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
16 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
17 #$Business::OnlinePayment::TransactionCentral::DEBUG = 1;
18 #$Business::OnlinePayment::TransactionCentral::DEBUG = 1;
24 action => 'Normal Authorization',
25 description => 'Business::OnlinePayment::TransactionCentral test',
27 card_number => '4012000000001',
28 expiration => '01/06',
31 address => '123 Anystreet',
36 email => 'ivan-transactioncentral-test@420.am',
38 $tx->test_transaction(1); # test, dont really charge
41 if($tx->is_success() && $tx->order_number =~ /^(\w+)$/ ) {
44 warn "order number: ". $tx->order_number."\n";
45 #warn $tx->error_message. "\n";