X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=t2%2Fecheck.t;fp=t2%2Fecheck.t;h=b21d5d4a3d261321710e2201920e11eb78b9037b;hb=21773ec5acb73387a04255979ce6148534629f84;hp=0000000000000000000000000000000000000000;hpb=d863745b80581d5e20756016200cda2aca357754;p=Business-OnlinePayment-LinkPoint.git diff --git a/t2/echeck.t b/t2/echeck.t new file mode 100644 index 0000000..b21d5d4 --- /dev/null +++ b/t2/echeck.t @@ -0,0 +1,41 @@ +BEGIN { $| = 1; print "1..1\n"; } + +use Business::OnlinePayment; + +my $tx = new Business::OnlinePayment("LinkPoint", + 'storename' => '1909922411', + 'keyfile' => './test.pem', +); + +$tx->content( + type => 'CHECK', + action => 'Normal Authorization', + description => 'Business::OnlinePayment::LinkPoint visa test', + amount => '0.01', + first_name => 'Tofu', + last_name => 'Beast', + address => '123 Anystreet', + city => 'Anywhere', + state => 'UT', + zip => '84058', + country => 'US', + email => 'ivan-linkpoint@420.am', + card_number => '4007000000027', + expiration => '12/2008', + bankstate => 'UT', +); + +$tx->test_transaction(1); + +$tx->submit(); + +if($tx->is_success()) { + print "ok 1\n"; + $auth = $tx->authorization; + warn "********* $auth ***********\n"; +} else { + print "not ok 1\n"; + warn '***** '. $tx->error_message. " *****\n"; + exit; +} +