From: ivan Date: Tue, 10 Dec 2002 22:21:07 +0000 (+0000) Subject: s/amount/amt/ and a working test account... passes all tests! X-Git-Tag: BUSINESS_ONLINEPAYMENT_NETWORK1FINANCIAL_0_01~3 X-Git-Url: http://git.freeside.biz/gitweb/?p=Business-OnlinePayment-Network1Financial.git;a=commitdiff_plain;h=2b36ee521e0000a08d41e5df0f06036572195385 s/amount/amt/ and a working test account... passes all tests! --- diff --git a/Network1Financial.pm b/Network1Financial.pm index 3a85e53..343c624 100644 --- a/Network1Financial.pm +++ b/Network1Financial.pm @@ -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' => diff --git a/t/bad_auth.t b/t/bad_auth.t index c5e3482..141b399 100644 --- a/t/bad_auth.t +++ b/t/bad_auth.t @@ -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 diff --git a/t/credit_card.t b/t/credit_card.t index d2ed2d1..3c27806 100644 --- a/t/credit_card.t +++ b/t/credit_card.t @@ -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