fixed silly bug with expiration dates
[Business-OnlinePayment-Network1Financial.git] / t / credit_card.t
1 BEGIN { $| = 1; print "1..1\n"; }
2
3 use Business::OnlinePayment;
4
5 my $tx = new Business::OnlinePayment("Network1Financial");
6 $tx->content(
7     type           => 'VISA',
8     login          => '999999999996',
9     password       => 'J4BGW3Q2K8N4',
10     action         => 'Normal Authorization',
11     description    => 'Business::OnlinePayment visa test',
12     amount         => '49.95',
13     invoice_number => '100100',
14     customer_id    => 'jsk',
15     first_name     => 'Tofu',
16     last_name      => 'Beast',
17     'name'         => 'Tofu Beast',
18     address        => '123 Anystreet',
19     city           => 'Anywhere',
20     state          => 'UT',
21     zip            => '84058',
22     card_number    => '4111111111111111',
23     expiration     => '04/05',
24 );
25 $tx->test_transaction(1); # test, dont really charge
26 $tx->submit();
27
28 if($tx->is_success()) {
29     print "ok 1\n";
30 } else {
31     warn $tx->error_message;
32     print "not ok 1\n";
33 }