diff options
Diffstat (limited to 't/Interswitchng.t')
-rw-r--r-- | t/Interswitchng.t | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/t/Interswitchng.t b/t/Interswitchng.t new file mode 100644 index 0000000..615dd9e --- /dev/null +++ b/t/Interswitchng.t @@ -0,0 +1,25 @@ +# Before `make install' is performed this script should be runnable with +# `make test'. After `make install' it should work as `perl eWay.t' + +use Test; +BEGIN { plan tests => 5 }; +use Business::OnlineThirdPartyPayment::Interswitchng; + +# a test transaction +my ($tx, $txnum, $res); +ok($tx = new Business::OnlineThirdPartyPayment("Interswitchng")); +ok( + $tx->content( + type => 'CC', + login => '87654321', + password => 'secret', + action => 'Authorization Only', + description => 'Business::OnlineThirdPartyPayment test', + amount => '49.95', + reference => '1349', + ) +); +ok($tx->test_transaction(1)); +ok($tx->submit()); +ok($tx->is_success()); + |