1 BEGIN { $| = 1; print "1..2\n"; }
3 #print "ok 1 # Skipped: Voids not working with test account\n";
4 #print "ok 2 # Skipped: Voids not working with test account\n";
7 eval "use Net::SSLeay;";
9 print "ok 1 # Skipped: Net::SSLeay is not installed\n";
10 print "ok 2 # Skipped: Net::SSLeay is not installed\n";
14 use Business::OnlinePayment;
16 my $tx = new Business::OnlinePayment("eSelectPlus", 'currency' => 'CAD' );
22 action => 'Normal Authorization',
25 card_number => '4242424242424242',
26 expiration => '01/12',
28 $tx->test_transaction(1); # test, dont really charge
31 if($tx->is_success()) {
32 #warn "authorization:". $tx->authorization."\n";
33 #warn "order_number: ". $tx->order_number."\n";
37 warn $tx->server_response."\n";
38 warn $tx->error_message. "\n";
44 my $void = new Business::OnlinePayment("eSelectPlus", 'currency' => 'CAD' );
52 authorization => $tx->authorization,
53 order_number => $tx->order_number,
54 amount => '0.80', #not used, but shouldn't error out
62 #$VAR18 = 'http://cleanwhisker.420.am/';
64 $void->test_transaction(1); # test, dont really charge
67 if($void->is_success()) {
70 warn $void->server_response."\n";
71 warn $void->error_message. "\n";