projects
/
Business-OnlinePayment-OpenECHO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s/CHECK/ECHECK/, DOH
[Business-OnlinePayment-OpenECHO.git]
/
t
/
check.t
diff --git
a/t/check.t
b/t/check.t
index
d64d49c
..
f8c83a3
100644
(file)
--- a/
t/check.t
+++ b/
t/check.t
@@
-1,15
+1,18
@@
BEGIN { $| = 1; print "1..1\n"; }
BEGIN { $| = 1; print "1..1\n"; }
-print "ok 1 # Skipped: no ACH test yet\n"; exit;
+eval "use Net::SSLeay;";
+if ( $@ ) {
+ print "ok 1 # Skipped: Net::SSLeay is not installed\n"; exit;
+}
use Business::OnlinePayment;
# checks are broken it seems
my $ctx = new Business::OnlinePayment("OpenECHO");
$ctx->content(
use Business::OnlinePayment;
# checks are broken it seems
my $ctx = new Business::OnlinePayment("OpenECHO");
$ctx->content(
- type => 'CHECK',
-
login => 'testing
',
-
password => 'testing
',
+ type => '
E
CHECK',
+
'login' => '123>4685706
',
+
'password' => '09437869
',
action => 'Normal Authorization',
amount => '49.95',
invoice_number => '100100',
action => 'Normal Authorization',
amount => '49.95',
invoice_number => '100100',
@@
-17,8
+20,11
@@
$ctx->content(
first_name => 'Tofu',
last_name => 'Beast',
account_number => '12345',
first_name => 'Tofu',
last_name => 'Beast',
account_number => '12345',
- routing_code => '
123456789
',
+ routing_code => '
026009593
',
bank_name => 'First National Test Bank',
bank_name => 'First National Test Bank',
+ phone => '420-420-5454',
+ payee => 'Tofu Heavy Enterprises, GmbH',
+ check_number => '420',
);
$ctx->test_transaction(1); # test, dont really charge
$ctx->submit();
);
$ctx->test_transaction(1); # test, dont really charge
$ctx->submit();
@@
-28,5
+34,6
@@
print $ctx->is_success()."\n";
if($ctx->is_success()) {
print "ok 1\n";
} else {
if($ctx->is_success()) {
print "ok 1\n";
} else {
+ warn $ctx->error_message();
print "not ok 1 (".$ctx->error_message().")\n";
}
print "not ok 1 (".$ctx->error_message().")\n";
}