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("SecureHostingUPG");
12 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
13 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
14 #$Business::OnlinePayment::SecureHostingUPG::DEBUG = 1;
15 #$Business::OnlinePayment::SecureHostingUPG::DEBUG = 1;
19 login => 'SH207361', #SecureHosting Reference
20 password => '495376', #SecureHosting Checkcode value
21 action => 'Normal Authorization',
22 description => 'Business::OnlinePayment visa test',
26 address => '123 Anystreet',
30 phone => '420-543-2199',
31 email => 'tofu.beast@example.com',
32 card_number => '4005550000000020',
33 expiration => '08/06',
34 card_start => '05/04',
35 cvv2 => '1234', #optional
36 issue_number => '5678',
38 $tx->test_transaction(1); # test, dont really charge
41 if($tx->is_success()) {
44 #warn $tx->server_response."\n";
45 #warn $tx->error_message. "\n";