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("OpenECHO");
17 'login' => '123>4685706',
18 'password' => '09437869',
19 action => 'Normal Authorization',
20 description => 'Business::OnlinePayment visa test',
22 invoice_number => '100100',
26 address => '123 Anystreet',
30 phone => '420-543-2199',
31 card_number => '4005550000000019',
32 expiration => '08/06',
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";