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");
18 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
19 #$Business::OnlinePayment::HTTPS::DEBUG = 1;
20 $Business::OnlinePayment::eSelectPlus::DEBUG = 1;
21 $Business::OnlinePayment::eSelectPlus::DEBUG = 1;
27 action => 'Normal Authorization',
30 card_number => '4242424242424242',
31 expiration => '01/12',
33 $tx->test_transaction(1); # test, dont really charge
36 if($tx->is_success()) {
39 warn $tx->server_response."\n";
40 warn $tx->error_message. "\n";
46 my $void = new Business::OnlinePayment("eSelectPlus");
53 authorization => $tx->authorization,
54 order_number => $tx->order_number,
57 $void->test_transaction(1); # test, dont really charge
60 if($void->is_success()) {
63 warn $void->server_response."\n";
64 warn $void->error_message. "\n";