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 my $tx = new Business::OnlinePayment("TransactionCentral");
12 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
13 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
14 #$Business::OnlinePayment::TransactionCentral::DEBUG = 1;
15 #$Business::OnlinePayment::TransactionCentral::DEBUG = 1;
20 password => 'KK48NPYEJHMAH6DK', #regkey
21 action => 'Normal Authorization',
22 description => 'Business::OnlinePayment::TransactionCentral test',
24 card_number => '4012000000001',
25 expiration => '01/06',
28 address => '123 Anystreet',
33 email => 'ivan-transactioncentral-test@420.am',
35 $tx->test_transaction(1); # test, dont really charge
38 if($tx->is_success() && $tx->order_number =~ /^(\w+)$/ ) {
41 warn "order number: ". $tx->order_number."\n";
42 #warn $tx->error_message. "\n";