1 # Before `make install' is performed this script should be runnable with
2 # `make test'. After `make install' it should work as `perl eWay.t'
5 BEGIN { plan tests => 6 };
6 use Business::OnlineThirdPartyPayment::Dummy;
9 my ($tx, $txnum, $res);
10 ok($tx = new Business::OnlineThirdPartyPayment("Dummy"));
15 action => 'Authorization Only',
16 description => 'Business::OnlineThirdPartyPayment test',
18 invoice_number => '100100',
20 card_number => '4646464646464646',
21 expiration => '11/08',
24 ok($tx->test_transaction(1));
26 ok($tx->is_success());
27 ok($tx->authorization(), 'Authorized');