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;
19 login => '000944785470', # "HTML serial number"
20 action => 'Normal Authorization',
21 description => 'Business::OnlinePayment::Skipjack test',
23 card_number => '5121212121212124',
24 expiration => '03/10',
31 phone => '415-420-5454',
32 email => 'ivan-skipjack-test@420.am',
34 $tx->test_transaction(1); # test, dont really charge
37 if($tx->is_success()) {
40 #warn $tx->server_response."\n";
41 warn $tx->error_message. "\n";
45 print "ok 2 # Skipped: Credit needs a settled transaction\n"; exit;
47 my $cr_tx = new Business::OnlinePayment("Skipjack");
51 login => '000944785470', # "HTML serial number"
52 password => '100594217288', # "developer serial number"
54 description => 'Business::OnlinePayment::Skipjack test',
56 order_number => $tx->order_number(),
59 $cr_tx->test_transaction(1); # test, dont really charge
62 if($cr_tx->is_success()) {
65 #warn $cr_tx->server_response."\n";
66 warn $cr_tx->error_message. "\n";