2 $| = 1; print "1..1\n";
3 $Business::OnlinePayment::HTTPS::skip_NetSSLeay=1;
4 $Business::OnlinePayment::HTTPS::skip_NetSSLeay=1;
7 eval "use Crypt::SSLeay;";
9 print "ok 1 # Skipped: Crypt::SSLeay is not installed\n"; exit;
12 use Business::OnlinePayment;
14 my $tx = new Business::OnlinePayment("Skipjack");
16 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
17 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
18 #$Business::OnlinePayment::Skipjack::DEBUG = 1;
19 #$Business::OnlinePayment::Skipjack::DEBUG = 1;
21 my $login = $ENV{'sj_html_serial_number'} || '000792524556';
22 my $password = $ENV{'sj_devel_serial_number'} || '100025931874';
26 login => $login, # "HTML serial number"
27 password => $password, # "Developer serial number"
28 action => 'Normal Authorization',
29 description => 'Business::OnlinePayment::Skipjack test',
31 #card_number => '5212345678901234',
32 card_number => '5222222222222222',
33 expiration => '03/10',
35 address => '123 Anystreet',
39 phone => '415-420-5454',
40 email => 'ivan-skipjack-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";