summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorjeff <jeff>2009-03-02 23:46:12 +0000
committerjeff <jeff>2009-03-02 23:46:12 +0000
commit5f0a0938cc0f64c12f8ffcea379fd0b4b7ad39e7 (patch)
treed4c68f52df6e843c0d8abe946b39c38dffa44e5c /t
Diffstat (limited to 't')
-rw-r--r--t/Interswitchng.t25
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());
+