Subject: | bug and fix in ARB.pm |
Date: | Tue, 11 Aug 2009 10:55:47 -0700 |
To: | bug-business-onlinepayment-authorizenet [...] rt.cpan.org |
From: | John Springer <john [...] dpo.org> |
In AuthorizeNet::ARB, version 0.01,
this array:
tie my %schedule, 'Tie::IxHash',
$self->revmap_fields(
interval => \%interval,
startDate => 'start',
totalOccurrences => 'periods',
trialOccurrences => 'trialperiods',
phoneNumber => 'phone',
);
should NOT include phoneNumber. (The same field occurs later in the
right place under customer data.)
Authorize.net gives this error with the array as defined:
An error occurred trying to set up your monthly contribution.
The bank said "The element 'paymentSchedule' in namespace
'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element
'phoneNumber' in namespace
'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.".
Removing the reference to phoneNumber here makes the ARB module work
correctly.
--
John Springer
Tech Dude
Democratic Party of Oregon
(503) 239-8635
--
John Springer
Tech Dude
Democratic Party of Oregon
(503) 239-8635