s/amount/amt/ and a working test account... passes all tests!
authorivan <ivan>
Tue, 10 Dec 2002 22:21:07 +0000 (22:21 +0000)
committerivan <ivan>
Tue, 10 Dec 2002 22:21:07 +0000 (22:21 +0000)
Network1Financial.pm
t/bad_auth.t
t/credit_card.t

index 3a85e53..343c624 100644 (file)
@@ -137,7 +137,7 @@ sub submit {
         'C_email'           => 'email',
         'C_cardnumber'      => 'card_number',
         'C_exp'             => \$exp,
-        'T_amount'          => 'amount',
+        'T_amt'             => 'amount',
         'T_code'            => 'action',
         #'T_ordernum'        => 'invoice_number', #probably not unique...
         #'T_auth'            =>
index c5e3482..141b399 100644 (file)
@@ -5,8 +5,8 @@ use Business::OnlinePayment;
 my $tx = new Business::OnlinePayment("Network1Financial");
 $tx->content(
     type           => 'VISA',
-    login          => '999999999999',
-    password       => 'AAAAAAAAAAAA',
+    login          => '999999999996',
+    password       => 'J4BGW3Q2K8N4',
     action         => 'Normal Authorization',
     description    => 'Business::OnlinePayment visa test',
     amount         => '49.95',
@@ -14,11 +14,12 @@ $tx->content(
     customer_id    => 'jsk',
     first_name     => 'Tofu',
     last_name      => 'Beast',
+    name           => 'Tofu Beast',
     address        => '123 Anystreet',
     city           => 'Anywhere',
     state          => 'UT',
     zip            => '84058',
-    card_number    => 'testfailure',
+    card_number    => '4111111111111112',
     expiration     => '08/06',
 );
 $tx->test_transaction(1); # test, dont really charge
index d2ed2d1..3c27806 100644 (file)
@@ -5,8 +5,8 @@ use Business::OnlinePayment;
 my $tx = new Business::OnlinePayment("Network1Financial");
 $tx->content(
     type           => 'VISA',
-    login          => '999999999999',
-    password       => 'AAAAAAAAAAAA',
+    login          => '999999999996',
+    password       => 'J4BGW3Q2K8N4',
     action         => 'Normal Authorization',
     description    => 'Business::OnlinePayment visa test',
     amount         => '49.95',
@@ -14,11 +14,12 @@ $tx->content(
     customer_id    => 'jsk',
     first_name     => 'Tofu',
     last_name      => 'Beast',
+    'name'         => 'Tofu Beast',
     address        => '123 Anystreet',
     city           => 'Anywhere',
     state          => 'UT',
     zip            => '84058',
-    card_number    => '4111111111111',
+    card_number    => '4111111111111111',
     expiration     => '01/05',
 );
 $tx->test_transaction(1); # test, dont really charge