From 196db498d6a75d4a772946049fbaee6b4700dd85 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 2 May 2007 01:32:31 +0000 Subject: - Update for new test account. - Add "cargs" argument including "-k" when in test mode. - Move tests from t2/ and have them actually work out of the box. - get rid of old Exporter / AutoLoader cruft - patch from Mark D. Anderson : - addrnum should be first digit string, not first word - avoid uninitialized variable warnings in lpperl due to webspace and debug - Map customer_ip, customer_id, invoice_number and description fields - Pass email, company, fax fields - Set lpperl debug if our $DEBUG is set - Better/supplimental download link for lpperl.pm --- t2/bad_auth.t | 41 ----------------------------------------- t2/credit_card.t | 40 ---------------------------------------- t2/echeck.t | 43 ------------------------------------------- t2/load.t | 5 ----- 4 files changed, 129 deletions(-) delete mode 100644 t2/bad_auth.t delete mode 100644 t2/credit_card.t delete mode 100644 t2/echeck.t delete mode 100644 t2/load.t (limited to 't2') diff --git a/t2/bad_auth.t b/t2/bad_auth.t deleted file mode 100644 index 689b0cc..0000000 --- a/t2/bad_auth.t +++ /dev/null @@ -1,41 +0,0 @@ -BEGIN { $| = 1; print "1..1\n"; } - -use Business::OnlinePayment; - -my $tx = new Business::OnlinePayment("LinkPoint", - 'storename' => '1909922411', - 'keyfile' => './test.pem', -); - -$tx->content( - type => 'VISA', - action => 'Normal Authorization', - description => 'Business::OnlinePayment::LinkPoint visa test', - amount => '0.01', - first_name => 'Tofu', - last_name => 'Beast', - address => '123 Anystreet', - city => 'Anywhere', - state => 'UT', - zip => '84058', - country => 'US', - email => 'ivan-linkpoint@420.am', - card_number => '4007000000027', - expiration => '12/2008', - result => 'DECLINE', -); - -$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; -} - diff --git a/t2/credit_card.t b/t2/credit_card.t deleted file mode 100644 index 0748c6a..0000000 --- a/t2/credit_card.t +++ /dev/null @@ -1,40 +0,0 @@ -BEGIN { $| = 1; print "1..1\n"; } - -use Business::OnlinePayment; - -my $tx = new Business::OnlinePayment("LinkPoint", - 'storename' => '1909922411', - 'keyfile' => './test.pem', -); - -$tx->content( - type => 'VISA', - action => 'Normal Authorization', - description => 'Business::OnlinePayment::LinkPoint visa test', - amount => '0.01', - first_name => 'Tofu', - last_name => 'Beast', - address => '123 Anystreet', - city => 'Anywhere', - state => 'UT', - zip => '84058', - country => 'US', - email => 'ivan-linkpoint@420.am', - card_number => '4007000000027', - expiration => '12/2008', -); - -$tx->test_transaction(1); - -$tx->submit(); - -if($tx->is_success()) { - print "ok 1\n"; - $auth = $tx->authorization; - warn "********* $auth ***********\n"; -} else { - print "not ok 1\n"; - warn '***** '. $tx->error_message. " *****\n"; - exit; -} - diff --git a/t2/echeck.t b/t2/echeck.t deleted file mode 100644 index 24dca67..0000000 --- a/t2/echeck.t +++ /dev/null @@ -1,43 +0,0 @@ -BEGIN { $| = 1; print "1..1\n"; } - -use Business::OnlinePayment; - -my $tx = new Business::OnlinePayment("LinkPoint", - 'storename' => '1909922411', - 'keyfile' => './test.pem', -); - -$tx->content( - type => 'CHECK', - action => 'Normal Authorization', - description => 'Business::OnlinePayment::LinkPoint visa test', - amount => '0.01', - first_name => 'Tofu', - last_name => 'Beast', - address => '123 Anystreet', - city => 'Anywhere', - state => 'UT', - zip => '84058', - country => 'US', - email => 'ivan-linkpoint@420.am', - account_number => '0027', - account_type => 'Personal Checking', - routing_code => '400700000', - bank_name => 'SomeBank', - bank_state => 'UT', -); - -$tx->test_transaction(1); - -$tx->submit(); - -if($tx->is_success()) { - print "ok 1\n"; - $auth = $tx->authorization; - warn "********* $auth ***********\n"; -} else { - print "not ok 1\n"; - warn '***** '. $tx->error_message. " *****\n"; - exit; -} - diff --git a/t2/load.t b/t2/load.t deleted file mode 100644 index ac1adbd..0000000 --- a/t2/load.t +++ /dev/null @@ -1,5 +0,0 @@ -BEGIN { $| = 1; print "1..1\n"; } -END {print "not ok 1\n" unless $loaded;} -use Business::OnlinePayment::LinkPoint; -$loaded = 1; -print "ok 1\n"; -- cgit v1.2.1