CC: | bug-Business-AuthorizeNet-CIM [...] rt.cpan.org |
Subject: | validationMode bug |
Date: | Wed, 12 Jan 2011 18:00:23 -0500 |
To: | fayland [...] gmail.com |
From: | Gordon Hunt <ghunt [...] huntcal.com> |
Fayland,
I created a test account with Authorize.net and downloaded and installed your
perl module from cpan:
Business::AuthorizeNet::CIM-0.02
I'm running perl 5.8.8 built for x86_64-linux-thread-multi.
Since it is a test account, it needs to connect to:
https://apitest.authorize.net/xml/v1/request.api
I copied your simple test and inserted my values for login and transaction key,
and added debug and test_mode attributes:
use Business::AuthorizeNet::CIM;
use Data::Dumper;
my $cim = Business::AuthorizeNet::CIM->new( login => $cfg{login}, transactionKey
=> $cfg{password}, debug => 1, test_mode => 1 );
my @ProfileIds = $cim->getCustomerProfileIds();
foreach my $id (@ProfileIds) {
my $d = $cim->getCustomerProfile($id);
print Dumper(\$d);
}
I received an error "...invalid child element 'validationMode'...".
According to the XML documenation, validationMode is not valid for
getCustomerProfileIdsRequest or getCustomerProfileRequest.
If I comment out:
$writer->dataElement( 'validationMode', 'testMode' );
in getCustomerProfile() and getCustomerProfileIds(), it works OK.
Thanks for taking the time to create this module.
Regards,
Gordon Hunt