diff options
author | jeff <jeff> | 2009-03-02 23:46:12 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-03-02 23:46:12 +0000 |
commit | 5f0a0938cc0f64c12f8ffcea379fd0b4b7ad39e7 (patch) | |
tree | d4c68f52df6e843c0d8abe946b39c38dffa44e5c /t |
Diffstat (limited to '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()); + |