Subject: | Test account no longer valid. |
Installing B::ON::AuthorizeNet I got a failure in credit_card.t. After
uncommenting the warning on failure...
1..1
(TESTMODE) The merchant login ID or password is invalid or the account
is inactive. at t/credit_card.t line 33.
not ok 1
This seems to come from two problems. First, the username/password in
the test doesn't seem valid anymore. Second, Authorize.net says to use
https://test.authorize.net/gateway/transact.dll for testing.
This patch should solve the second problem. Don't know what to do about
the first.
--- AuthorizeNet.pm (revision 19622)
+++ AuthorizeNet.pm (local)
@@ -26,6 +26,14 @@
));
}
+sub test_transaction {
+ my $self = shift;
+ my $is_test = shift;
+
+ $self->server('test.authorize.net') if $is_test;
+ $self->SUPER::test_transaction(@_);
+}
+
sub map_fields {
my($self) = @_;