1 BEGIN { $| = 1; print "1..1\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("OpenECHO");
13 #login => '123>4684752',
14 login => '1234684752',
15 password => '43400210',
16 action => 'Normal Authorization',
17 description => 'Business::OnlinePayment visa test',
19 invoice_number => '100100',
23 address => '123 Anystreet',
27 phone => '420-543-2199',
28 card_number => '4005550000000019',
29 expiration => '08/06',
31 $tx->test_transaction(1); # test, dont really charge
34 if($tx->is_success()) {
37 #warn $tx->server_response."\n";
38 warn $tx->error_message. "\n";