echeck imrovements
[Business-OnlinePayment-LinkPoint.git] / t2 / echeck.t
1 BEGIN { $| = 1; print "1..1\n"; }
2
3 use Business::OnlinePayment;
4
5 my $tx = new Business::OnlinePayment("LinkPoint",
6   'storename' => '1909922411',
7   'keyfile'   => './test.pem',
8 );
9
10 $tx->content(
11     type           => 'CHECK',
12     action         => 'Normal Authorization',
13     description    => 'Business::OnlinePayment::LinkPoint visa test',
14     amount         => '0.01',
15     first_name     => 'Tofu',
16     last_name      => 'Beast',
17     address        => '123 Anystreet',
18     city           => 'Anywhere',
19     state          => 'UT',
20     zip            => '84058',
21     country        => 'US',
22     email          => 'ivan-linkpoint@420.am',
23     account_number => '0027',
24     account_type   => 'Personal Checking',
25     routing_code   => '400700000',
26     bank_name      => 'SomeBank',
27     bank_state     => 'UT',
28 );
29
30 $tx->test_transaction(1);
31
32 $tx->submit();
33
34 if($tx->is_success()) {
35     print "ok 1\n";
36     $auth = $tx->authorization;
37     warn "********* $auth ***********\n";
38 } else {
39     print "not ok 1\n";
40     warn '***** '. $tx->error_message. " *****\n";
41     exit;
42 }
43