1 BEGIN {$| = 1; print "1..1\n"; }
3 print "ok 1 # Skipped: No way to get a decline response out of test account";
6 eval "use Net::SSLeay;";
8 print "ok 1 # Skipped: Net::SSLeay is not installed\n"; exit;
11 use Business::OnlinePayment;
13 require "t/lib/test_account.pl";
14 my($login, $regkey) = test_account_or_skip();
16 my $tx = new Business::OnlinePayment("TransactionCentral");
18 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
19 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
20 $Business::OnlinePayment::TransactionCentral::DEBUG = 1;
21 $Business::OnlinePayment::TransactionCentral::DEBUG = 1;
27 action => 'Normal Authorization',
29 #card_number => '4012000000001',
30 #card_number => '4342424242424242',
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";