summaryrefslogtreecommitdiff
path: root/t2/bad_auth.t
diff options
context:
space:
mode:
authorivan <ivan>2004-05-01 09:34:09 +0000
committerivan <ivan>2004-05-01 09:34:09 +0000
commit50e4bcc992753f5536b0ab1960b4c6e982cb6212 (patch)
treeaab36fcc7a8d558beb7c0b71d75bbda0a1586cba /t2/bad_auth.t
Diffstat (limited to 't2/bad_auth.t')
-rw-r--r--t2/bad_auth.t42
1 files changed, 42 insertions, 0 deletions
diff --git a/t2/bad_auth.t b/t2/bad_auth.t
new file mode 100644
index 0000000..8e49e67
--- /dev/null
+++ b/t2/bad_auth.t
@@ -0,0 +1,42 @@
+BEGIN { $| = 1; print "1..1\n"; }
+
+use Business::OnlinePayment;
+
+my $tx = new Business::OnlinePayment("StGeorge",
+# 'cert_path' => './java.cert',
+ 'cert_path' => '/home/ivan/Business-OnlinePayment-StGeorge/t2/java.cert',
+);
+
+$tx->content(
+ login => '10005432',
+ password => 'certphrase',
+ type => 'CC',
+ action => 'Normal Authorization',
+ description => 'Business::OnlinePayment::LinkPoint visa test',
+ amount => '1.51',
+ first_name => 'Tofu',
+ last_name => 'Beast',
+ address => '123 Anystreet',
+ city => 'Anywhere',
+ state => 'UT',
+ zip => '84058',
+ country => 'US',
+ email => 'ivan-stgeorge@420.am',
+ card_number => '5430489999999992',
+ expiration => '12/2005',
+);
+
+$tx->test_transaction(1);
+
+$tx->submit();
+
+if($tx->is_success()) {
+ print "not ok 1\n";
+ $auth = $tx->authorization;
+ warn "********* $auth ***********\n";
+} else {
+ print "ok 1\n";
+ warn '***** '. $tx->error_message. " *****\n";
+ exit;
+}
+