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("Capstone");
16 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
17 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
18 #$Business::OnlinePayment::Capstone::DEBUG = 1;
19 #$Business::OnlinePayment::Capstone::DEBUG = 1;
24 password => 'testing',
25 action => 'Normal Authorization',
26 description => 'Business::OnlinePayment::Capstone test',
28 card_number => '4111111111111111',
29 expiration => '08/06',
32 address => '123 Anystreet',
37 email => 'ivan-capstone-test@420.am',
39 $tx->test_transaction(1); # test, dont really charge
42 if($tx->is_success()) {
45 #warn $tx->server_response."\n";
46 warn $tx->error_message. "\n";