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',
29 address => '123 Anystreet',
35 referer => 'http://cleanwhisker.420.am/',
36 email => 'ivan-transactioncentral-test@420.am',
37 #email => 'tofubeast@example.com',
38 phone => '530-555-3300',
40 'customer_ip' => '5.4.3.2',
41 #invoice_number => '420',
42 card_number => '4012000000001',
43 expiration => '01/06',
46 $tx->test_transaction(1); # test, dont really charge
49 if($tx->is_success()) {
52 #warn $tx->server_response."\n";
53 warn $tx->error_message. "\n";