1 BEGIN { $| = 1; print "1..2\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("Skipjack");
12 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
13 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
14 #$Business::OnlinePayment::Skipjack::DEBUG = 1;
15 #$Business::OnlinePayment::Skipjack::DEBUG = 1;
17 my $login = $ENV{'sj_html_serial_number'} || '000843232776';
18 my $password = $ENV{'sj_devel_serial_number'} || '100025931874';
22 login => $login, # "HTML serial number"
23 password => $password, # "Developer serial number"
24 action => 'Normal Authorization',
25 description => 'Business::OnlinePayment::Skipjack test',
27 card_number => '4445999922225',
28 expiration => '03/10',
35 phone => '415-420-5454',
36 email => 'ivan-skipjack-test@420.am',
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";
49 my $v_tx = new Business::OnlinePayment("Skipjack");
53 login => $login, # "HTML serial number"
54 password => $password, # "Developer serial number"
56 description => 'Business::OnlinePayment::Skipjack test',
57 order_number => $tx->order_number(),
60 $v_tx->test_transaction(1); # test, dont really charge
63 if($v_tx->is_success()) {
66 #warn $v_tx->server_response."\n";
67 warn $v_tx->error_message. "\n";