summaryrefslogtreecommitdiff
path: root/t/Dummy.t
diff options
context:
space:
mode:
authorjeff <jeff>2009-03-02 23:50:16 +0000
committerjeff <jeff>2009-03-02 23:50:16 +0000
commitb526887fd57cb8da5d3d666a25d6517357d40188 (patch)
tree88475baca676a3d05da4c16bc07f437522b4ec98 /t/Dummy.t
Diffstat (limited to 't/Dummy.t')
-rw-r--r--t/Dummy.t28
1 files changed, 28 insertions, 0 deletions
diff --git a/t/Dummy.t b/t/Dummy.t
new file mode 100644
index 0000000..ede60df
--- /dev/null
+++ b/t/Dummy.t
@@ -0,0 +1,28 @@
+# 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 => 6 };
+use Business::OnlineThirdPartyPayment::Dummy;
+
+# a test transaction
+my ($tx, $txnum, $res);
+ok($tx = new Business::OnlineThirdPartyPayment("Dummy"));
+ok(
+ $tx->content(
+ type => 'CC',
+ login => '87654321',
+ action => 'Authorization Only',
+ description => 'Business::OnlineThirdPartyPayment test',
+ amount => '49.95',
+ invoice_number => '100100',
+ name => 'Tofu Beast',
+ card_number => '4646464646464646',
+ expiration => '11/08',
+ )
+);
+ok($tx->test_transaction(1));
+ok($tx->submit());
+ok($tx->is_success());
+ok($tx->authorization(), 'Authorized');
+