summaryrefslogtreecommitdiff
path: root/t2/multiple_xactions.t
diff options
context:
space:
mode:
authorivan <ivan>2004-05-07 06:58:08 +0000
committerivan <ivan>2004-05-07 06:58:08 +0000
commitbeca426b64a1a53c495146815cd122f328e689e3 (patch)
tree127c4c45655bc3d53adf38aaa596aeb8acaece4f /t2/multiple_xactions.t
parent0430d22d4819bea8ccd61e2ea6b7e9554359ed48 (diff)
fix filename
Diffstat (limited to 't2/multiple_xactions.t')
-rw-r--r--t2/multiple_xactions.t52
1 files changed, 52 insertions, 0 deletions
diff --git a/t2/multiple_xactions.t b/t2/multiple_xactions.t
new file mode 100644
index 0000000..b756f05
--- /dev/null
+++ b/t2/multiple_xactions.t
@@ -0,0 +1,52 @@
+BEGIN { $| = 1; print "1..2\n"; }
+
+use Business::OnlinePayment;
+
+for my $testnum ( 1 .. 2 ) {
+ &run_xaction($testnum);
+}
+
+sub run_xaction {
+
+ my $testnum = shift;
+
+ 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.00',
+ first_name => 'Tofu',
+ last_name => 'Beast',
+ address => '123 Anystreet',
+ city => 'Anywhere',
+ state => 'UT',
+ zip => '84058',
+ country => 'US',
+ email => 'ivan-stgeorge@420.am',
+ card_number => '4564456445644564',
+ expiration => '12/2005',
+ );
+
+ $tx->test_transaction(1);
+
+ $tx->submit();
+
+ if($tx->is_success()) {
+ print "ok $testnum\n";
+ $auth = $tx->authorization;
+ warn "********* $auth ***********\n";
+ } else {
+ print "not ok $testnum\n";
+ warn '***** '. $tx->error_message. " *****\n";
+ exit;
+ }
+
+}
+